From 34093b78ef8f804b09f30cdf2b557f78ba7e897b Mon Sep 17 00:00:00 2001 From: sdk-team Date: Fri, 8 Oct 2021 09:51:03 +0000 Subject: [PATCH] Adjust ecs openapi endpoint. --- CHANGELOG | 3 + VERSION | 2 +- .../model/AcceptInquiredSystemEventRequest.h | 104 +- .../model/ActivateRouterInterfaceRequest.h | 92 +- .../ecs/model/AddBandwidthPackageIpsRequest.h | 110 +- .../alibabacloud/ecs/model/AddTagsRequest.h | 114 +- .../ecs/model/AllocateDedicatedHostsRequest.h | 228 ++-- .../ecs/model/AllocateEipAddressRequest.h | 122 +- .../model/AllocatePublicIpAddressRequest.h | 104 +- .../model/ApplyAutoSnapshotPolicyRequest.h | 98 +- .../ecs/model/AssignIpv6AddressesRequest.h | 110 +- .../model/AssignPrivateIpAddressesRequest.h | 116 +- .../ecs/model/AssociateEipAddressRequest.h | 110 +- .../ecs/model/AssociateHaVipRequest.h | 110 +- .../ecs/model/AttachClassicLinkVpcRequest.h | 98 +- .../ecs/model/AttachDiskRequest.h | 128 +- .../ecs/model/AttachInstanceRamRoleRequest.h | 104 +- .../ecs/model/AttachKeyPairRequest.h | 98 +- .../ecs/model/AttachNetworkInterfaceRequest.h | 116 +- .../AuthorizeSecurityGroupEgressRequest.h | 194 ++- .../ecs/model/AuthorizeSecurityGroupRequest.h | 194 ++- .../model/CancelAutoSnapshotPolicyRequest.h | 92 +- .../ecs/model/CancelCopyImageRequest.h | 98 +- .../CancelImagePipelineExecutionRequest.h | 114 +- .../model/CancelPhysicalConnectionRequest.h | 110 +- .../CancelSimulatedSystemEventsRequest.h | 98 +- .../ecs/model/CancelTaskRequest.h | 92 +- .../ecs/model/ConnectRouterInterfaceRequest.h | 92 +- .../model/ConvertNatPublicIpToEipRequest.h | 92 +- .../alibabacloud/ecs/model/CopyImageRequest.h | 156 ++- .../ecs/model/CopySnapshotRequest.h | 138 +- .../ecs/model/CreateActivationRequest.h | 122 +- .../CreateAutoProvisioningGroupRequest.h | 462 ++++--- .../model/CreateAutoSnapshotPolicyRequest.h | 150 +-- .../model/CreateCapacityReservationRequest.h | 228 ++-- .../ecs/model/CreateCommandRequest.h | 134 +- ...reateDedicatedBlockStorageClusterRequest.h | 152 ++- .../model/CreateDedicatedHostClusterRequest.h | 138 +- .../ecs/model/CreateDemandRequest.h | 158 ++- .../ecs/model/CreateDeploymentSetRequest.h | 140 +- .../ecs/model/CreateDiskReplicaPairRequest.h | 128 +- .../ecs/model/CreateDiskRequest.h | 233 ++-- .../model/CreateElasticityAssuranceRequest.h | 216 ++-- .../ecs/model/CreateForwardEntryRequest.h | 128 +- .../ecs/model/CreateHaVipRequest.h | 116 +- .../ecs/model/CreateHpcClusterRequest.h | 110 +- .../ecs/model/CreateImageComponentRequest.h | 150 +-- .../ecs/model/CreateImagePipelineRequest.h | 198 ++- .../ecs/model/CreateImageRequest.h | 187 ++- .../ecs/model/CreateInstanceRequest.h | 529 ++++---- .../ecs/model/CreateKeyPairRequest.h | 114 +- .../ecs/model/CreateLaunchTemplateRequest.h | 420 +++--- .../CreateLaunchTemplateVersionRequest.h | 405 +++--- .../ecs/model/CreateNatGatewayRequest.h | 134 +- .../CreateNetworkInterfacePermissionRequest.h | 110 +- .../CreateNetworkInterfacePermissionResult.h | 2 +- .../ecs/model/CreateNetworkInterfaceRequest.h | 216 ++-- .../model/CreatePhysicalConnectionRequest.h | 164 ++- .../ecs/model/CreatePrefixListRequest.h | 138 +- .../ecs/model/CreateRouteEntryRequest.h | 138 +- .../ecs/model/CreateRouterInterfaceRequest.h | 218 ++-- .../ecs/model/CreateSecurityGroupRequest.h | 150 +-- .../CreateSimulatedSystemEventsRequest.h | 110 +- .../ecs/model/CreateSnapshotGroupRequest.h | 156 ++- .../ecs/model/CreateSnapshotRequest.h | 156 ++- .../ecs/model/CreateStorageSetRequest.h | 122 +- .../ecs/model/CreateVSwitchRequest.h | 128 +- .../model/CreateVirtualBorderRouterRequest.h | 158 ++- .../alibabacloud/ecs/model/CreateVpcRequest.h | 122 +- .../model/DeactivateRouterInterfaceRequest.h | 92 +- .../ecs/model/DeleteActivationRequest.h | 98 +- .../ecs/model/DeleteActivationResult.h | 6 +- .../DeleteAutoProvisioningGroupRequest.h | 104 +- .../model/DeleteAutoSnapshotPolicyRequest.h | 92 +- .../ecs/model/DeleteBandwidthPackageRequest.h | 98 +- .../ecs/model/DeleteCommandRequest.h | 98 +- .../model/DeleteDedicatedHostClusterRequest.h | 98 +- .../ecs/model/DeleteDemandRequest.h | 110 +- .../ecs/model/DeleteDeploymentSetRequest.h | 98 +- .../ecs/model/DeleteDiskReplicaPairRequest.h | 98 +- .../ecs/model/DeleteDiskRequest.h | 92 +- .../ecs/model/DeleteForwardEntryRequest.h | 104 +- .../ecs/model/DeleteHaVipRequest.h | 104 +- .../ecs/model/DeleteHpcClusterRequest.h | 104 +- .../ecs/model/DeleteImageComponentRequest.h | 114 +- .../ecs/model/DeleteImagePipelineRequest.h | 114 +- .../ecs/model/DeleteImageRequest.h | 104 +- .../ecs/model/DeleteInstanceRequest.h | 104 +- .../ecs/model/DeleteInstancesRequest.h | 122 +- .../ecs/model/DeleteKeyPairsRequest.h | 92 +- .../ecs/model/DeleteLaunchTemplateRequest.h | 104 +- .../DeleteLaunchTemplateVersionRequest.h | 110 +- .../ecs/model/DeleteNatGatewayRequest.h | 98 +- .../DeleteNetworkInterfacePermissionRequest.h | 104 +- .../ecs/model/DeleteNetworkInterfaceRequest.h | 98 +- .../model/DeletePhysicalConnectionRequest.h | 104 +- .../ecs/model/DeletePrefixListRequest.h | 98 +- .../ecs/model/DeleteRouteEntryRequest.h | 126 +- .../ecs/model/DeleteRouterInterfaceRequest.h | 110 +- .../ecs/model/DeleteSecurityGroupRequest.h | 98 +- .../ecs/model/DeleteSnapshotGroupRequest.h | 98 +- .../ecs/model/DeleteSnapshotRequest.h | 98 +- .../ecs/model/DeleteStorageSetRequest.h | 104 +- .../ecs/model/DeleteVSwitchRequest.h | 98 +- .../model/DeleteVirtualBorderRouterRequest.h | 110 +- .../alibabacloud/ecs/model/DeleteVpcRequest.h | 98 +- .../model/DeregisterManagedInstanceRequest.h | 98 +- .../model/DeregisterManagedInstanceResult.h | 2 +- .../ecs/model/DescribeAccessPointsRequest.h | 119 +- .../ecs/model/DescribeAccessPointsResult.h | 4 +- .../model/DescribeAccountAttributesRequest.h | 98 +- .../ecs/model/DescribeActivationsRequest.h | 116 +- .../ecs/model/DescribeActivationsResult.h | 6 +- ...cribeAutoProvisioningGroupHistoryRequest.h | 122 +- ...ibeAutoProvisioningGroupInstancesRequest.h | 110 +- ...ribeAutoProvisioningGroupInstancesResult.h | 2 +- .../DescribeAutoProvisioningGroupsRequest.h | 122 +- .../DescribeAutoProvisioningGroupsResult.h | 6 +- .../DescribeAutoSnapshotPolicyExRequest.h | 132 +- .../model/DescribeAvailableResourceRequest.h | 182 ++- .../DescribeBandwidthLimitationRequest.h | 122 +- .../model/DescribeBandwidthPackagesRequest.h | 116 +- .../model/DescribeBandwidthPackagesResult.h | 2 +- ...cribeCapacityReservationInstancesRequest.h | 116 +- .../DescribeCapacityReservationsRequest.h | 168 ++- .../DescribeClassicLinkInstancesRequest.h | 110 +- .../DescribeCloudAssistantStatusRequest.h | 116 +- .../ecs/model/DescribeClustersRequest.h | 92 +- .../ecs/model/DescribeCommandsRequest.h | 140 +- .../ecs/model/DescribeCommandsResult.h | 6 +- ...ribeDedicatedBlockStorageClustersRequest.h | 128 +- .../DescribeDedicatedHostAutoRenewRequest.h | 98 +- .../DescribeDedicatedHostClustersRequest.h | 156 ++- .../DescribeDedicatedHostClustersResult.h | 4 +- .../model/DescribeDedicatedHostTypesRequest.h | 104 +- .../model/DescribeDedicatedHostTypesResult.h | 2 +- .../ecs/model/DescribeDedicatedHostsRequest.h | 174 ++- .../ecs/model/DescribeDemandsRequest.h | 168 ++- .../ecs/model/DescribeDemandsResult.h | 4 +- ...entSetSupportedInstanceTypeFamilyRequest.h | 92 +- .../ecs/model/DescribeDeploymentSetsRequest.h | 140 +- .../model/DescribeDiskMonitorDataRequest.h | 110 +- .../ecs/model/DescribeDiskMonitorDataResult.h | 6 +- .../model/DescribeDiskReplicaPairsRequest.h | 104 +- .../model/DescribeDiskReplicaPairsResult.h | 2 +- .../model/DescribeDisksFullStatusRequest.h | 146 +-- .../ecs/model/DescribeDisksRequest.h | 294 +++-- .../ecs/model/DescribeEipAddressesRequest.h | 176 ++- .../ecs/model/DescribeEipMonitorDataRequest.h | 116 +- ...cribeElasticityAssuranceInstancesRequest.h | 116 +- .../DescribeElasticityAssurancesRequest.h | 168 ++- .../DescribeElasticityAssurancesResult.h | 2 +- .../ecs/model/DescribeEniMonitorDataRequest.h | 122 +- .../DescribeForwardTableEntriesRequest.h | 116 +- .../ecs/model/DescribeHaVipsRequest.h | 119 +- .../ecs/model/DescribeHpcClustersRequest.h | 116 +- .../model/DescribeImageComponentsRequest.h | 144 +-- .../model/DescribeImageFromFamilyRequest.h | 98 +- .../ecs/model/DescribeImageFromFamilyResult.h | 8 +- .../DescribeImagePipelineExecutionsRequest.h | 138 +- .../ecs/model/DescribeImagePipelinesRequest.h | 138 +- .../DescribeImageSharePermissionRequest.h | 110 +- ...DescribeImageSupportInstanceTypesRequest.h | 114 +- .../ecs/model/DescribeImagesRequest.h | 243 ++-- ...cribeInstanceAttachmentAttributesRequest.h | 110 +- .../model/DescribeInstanceAttributeRequest.h | 92 +- .../model/DescribeInstanceAttributeResult.h | 14 +- ...escribeInstanceAutoRenewAttributeRequest.h | 116 +- .../DescribeInstanceHistoryEventsRequest.h | 204 ++- ...ribeInstanceMaintenanceAttributesRequest.h | 110 +- ...DescribeInstanceModificationPriceRequest.h | 128 +- .../DescribeInstanceMonitorDataRequest.h | 110 +- .../model/DescribeInstanceMonitorDataResult.h | 8 +- .../model/DescribeInstanceRamRoleRequest.h | 110 +- .../ecs/model/DescribeInstanceStatusRequest.h | 122 +- .../model/DescribeInstanceTopologyRequest.h | 92 +- .../DescribeInstanceTypeFamiliesRequest.h | 98 +- .../ecs/model/DescribeInstanceTypesRequest.h | 110 +- .../model/DescribeInstanceVncPasswdRequest.h | 98 +- .../ecs/model/DescribeInstanceVncUrlRequest.h | 98 +- .../DescribeInstancesFullStatusRequest.h | 164 ++- .../ecs/model/DescribeInstancesRequest.h | 366 +++--- .../model/DescribeInvocationResultsRequest.h | 140 +- .../ecs/model/DescribeInvocationsRequest.h | 164 ++- .../ecs/model/DescribeKeyPairsRequest.h | 132 +- .../DescribeLaunchTemplateVersionsRequest.h | 146 +-- .../DescribeLaunchTemplateVersionsResult.h | 18 +- .../model/DescribeLaunchTemplatesRequest.h | 138 +- .../ecs/model/DescribeLimitationRequest.h | 92 +- .../model/DescribeManagedInstancesRequest.h | 134 +- .../model/DescribeManagedInstancesResult.h | 4 +- .../ecs/model/DescribeNatGatewaysRequest.h | 116 +- ...DescribeNetworkInterfaceAttributeRequest.h | 120 +- .../DescribeNetworkInterfaceAttributeResult.h | 12 +- ...scribeNetworkInterfacePermissionsRequest.h | 116 +- ...escribeNetworkInterfacePermissionsResult.h | 2 +- .../model/DescribeNetworkInterfacesRequest.h | 210 ++- .../DescribeNewProjectEipMonitorDataRequest.h | 116 +- .../DescribePhysicalConnectionsRequest.h | 131 +- .../model/DescribePhysicalConnectionsResult.h | 6 +- .../DescribePrefixListAssociationsRequest.h | 110 +- .../DescribePrefixListAttributesRequest.h | 98 +- .../ecs/model/DescribePrefixListsRequest.h | 122 +- .../ecs/model/DescribePriceRequest.h | 320 +++-- .../DescribeRecommendInstanceTypeRequest.h | 182 ++- .../DescribeRecommendInstanceTypeResult.h | 4 +- .../ecs/model/DescribeRegionsRequest.h | 104 +- .../ecs/model/DescribeRenewalPriceRequest.h | 122 +- .../model/DescribeReservedInstancesRequest.h | 180 ++- .../model/DescribeReservedInstancesResult.h | 4 +- .../ecs/model/DescribeResourceByTagsRequest.h | 120 +- .../DescribeResourcesModificationRequest.h | 134 +- .../ecs/model/DescribeRouteTablesRequest.h | 134 +- .../model/DescribeRouterInterfacesRequest.h | 113 +- .../model/DescribeRouterInterfacesResult.h | 4 +- .../DescribeSecurityGroupAttributeRequest.h | 110 +- .../DescribeSecurityGroupAttributeResult.h | 16 +- .../DescribeSecurityGroupReferencesRequest.h | 98 +- .../ecs/model/DescribeSecurityGroupsRequest.h | 192 ++- .../model/DescribeSendFileResultsRequest.h | 122 +- .../ecs/model/DescribeSendFileResultsResult.h | 2 +- .../ecs/model/DescribeSnapshotGroupsRequest.h | 156 ++- .../ecs/model/DescribeSnapshotLinksRequest.h | 122 +- .../DescribeSnapshotMonitorDataRequest.h | 116 +- .../model/DescribeSnapshotPackageRequest.h | 104 +- .../ecs/model/DescribeSnapshotPackageResult.h | 2 +- .../ecs/model/DescribeSnapshotsRequest.h | 240 ++-- .../ecs/model/DescribeSnapshotsUsageRequest.h | 92 +- .../ecs/model/DescribeSpotAdviceRequest.h | 164 ++- .../ecs/model/DescribeSpotAdviceResult.h | 2 +- .../model/DescribeSpotPriceHistoryRequest.h | 146 +-- .../DescribeStorageCapacityUnitsRequest.h | 150 +-- .../model/DescribeStorageSetDetailsRequest.h | 128 +- .../ecs/model/DescribeStorageSetsRequest.h | 128 +- .../ecs/model/DescribeTagsRequest.h | 132 +- .../ecs/model/DescribeTagsResult.h | 2 +- .../ecs/model/DescribeTaskAttributeRequest.h | 92 +- .../ecs/model/DescribeTaskAttributeResult.h | 8 +- .../ecs/model/DescribeTasksRequest.h | 134 +- .../ecs/model/DescribeTasksResult.h | 2 +- .../DescribeUserBusinessBehaviorRequest.h | 98 +- .../ecs/model/DescribeUserDataRequest.h | 92 +- .../ecs/model/DescribeVRoutersRequest.h | 110 +- .../ecs/model/DescribeVSwitchesRequest.h | 128 +- ...orderRoutersForPhysicalConnectionRequest.h | 119 +- ...BorderRoutersForPhysicalConnectionResult.h | 2 +- .../DescribeVirtualBorderRoutersRequest.h | 113 +- .../DescribeVirtualBorderRoutersResult.h | 4 +- .../ecs/model/DescribeVpcsRequest.h | 116 +- .../ecs/model/DescribeZonesRequest.h | 116 +- .../ecs/model/DetachClassicLinkVpcRequest.h | 98 +- .../ecs/model/DetachDiskRequest.h | 104 +- .../ecs/model/DetachInstanceRamRoleRequest.h | 98 +- .../ecs/model/DetachKeyPairRequest.h | 98 +- .../ecs/model/DetachNetworkInterfaceRequest.h | 110 +- .../ecs/model/DisableActivationRequest.h | 98 +- .../ecs/model/DisableActivationResult.h | 6 +- .../ecs/model/EipFillParamsRequest.h | 104 +- .../ecs/model/EipFillParamsResult.h | 4 +- .../ecs/model/EipFillProductRequest.h | 104 +- .../ecs/model/EipFillProductResult.h | 4 +- .../ecs/model/EipNotifyPaidRequest.h | 104 +- .../ecs/model/EipNotifyPaidResult.h | 4 +- .../model/EnablePhysicalConnectionRequest.h | 110 +- .../ecs/model/ExportImageRequest.h | 116 +- .../ecs/model/ExportSnapshotRequest.h | 104 +- .../model/GetInstanceConsoleOutputRequest.h | 104 +- .../model/GetInstanceConsoleOutputResult.h | 4 +- .../ecs/model/GetInstanceScreenshotRequest.h | 104 +- .../ecs/model/ImportImageRequest.h | 179 ++- .../ecs/model/ImportKeyPairRequest.h | 120 +- .../ecs/model/ImportSnapshotRequest.h | 110 +- .../ecs/model/InstallCloudAssistantRequest.h | 98 +- .../ecs/model/InvokeCommandRequest.h | 140 +- .../ecs/model/JoinResourceGroupRequest.h | 110 +- .../ecs/model/JoinSecurityGroupRequest.h | 110 +- .../ecs/model/LeaveSecurityGroupRequest.h | 110 +- .../ecs/model/ListTagResourcesRequest.h | 140 +- .../ModifyAutoProvisioningGroupRequest.h | 168 ++- .../model/ModifyAutoSnapshotPolicyExRequest.h | 134 +- .../model/ModifyAutoSnapshotPolicyRequest.h | 134 +- .../model/ModifyBandwidthPackageSpecRequest.h | 104 +- .../model/ModifyCapacityReservationRequest.h | 146 +-- .../ecs/model/ModifyCommandRequest.h | 128 +- .../ModifyDedicatedHostAttributeRequest.h | 146 +-- ...odifyDedicatedHostAutoReleaseTimeRequest.h | 104 +- ...fyDedicatedHostAutoRenewAttributeRequest.h | 128 +- ...difyDedicatedHostClusterAttributeRequest.h | 110 +- .../ModifyDedicatedHostsChargeTypeRequest.h | 140 +- .../ModifyDedicatedHostsChargeTypeResult.h | 2 +- .../ecs/model/ModifyDemandRequest.h | 164 ++- .../ModifyDeploymentSetAttributeRequest.h | 110 +- .../ecs/model/ModifyDiskAttributeRequest.h | 134 +- .../ecs/model/ModifyDiskChargeTypeRequest.h | 122 +- .../ecs/model/ModifyDiskSpecRequest.h | 110 +- .../model/ModifyEipAddressAttributeRequest.h | 104 +- .../model/ModifyElasticityAssuranceRequest.h | 116 +- .../ecs/model/ModifyForwardEntryRequest.h | 134 +- .../ecs/model/ModifyHaVipAttributeRequest.h | 110 +- .../model/ModifyHpcClusterAttributeRequest.h | 116 +- .../ecs/model/ModifyImageAttributeRequest.h | 134 +- .../ModifyImageShareGroupPermissionRequest.h | 110 +- .../model/ModifyImageSharePermissionRequest.h | 122 +- ...odifyInstanceAttachmentAttributesRequest.h | 110 +- .../model/ModifyInstanceAttributeRequest.h | 152 ++- .../ModifyInstanceAutoReleaseTimeRequest.h | 104 +- .../ModifyInstanceAutoRenewAttributeRequest.h | 122 +- .../model/ModifyInstanceChargeTypeRequest.h | 146 +-- .../model/ModifyInstanceDeploymentRequest.h | 152 ++- ...difyInstanceMaintenanceAttributesRequest.h | 126 +- .../ModifyInstanceMetadataOptionsRequest.h | 110 +- .../model/ModifyInstanceNetworkSpecRequest.h | 146 +-- .../ecs/model/ModifyInstanceSpecRequest.h | 152 ++- .../model/ModifyInstanceVncPasswdRequest.h | 104 +- .../model/ModifyInstanceVpcAttributeRequest.h | 116 +- ...odifyLaunchTemplateDefaultVersionRequest.h | 110 +- .../ecs/model/ModifyManagedInstanceRequest.h | 104 +- .../ModifyNetworkInterfaceAttributeRequest.h | 122 +- ...ModifyPhysicalConnectionAttributeRequest.h | 158 ++- .../ecs/model/ModifyPrefixListRequest.h | 139 +- .../model/ModifyPrepayInstanceSpecRequest.h | 152 ++- .../ModifyReservedInstanceAttributeRequest.h | 110 +- .../model/ModifyReservedInstancesRequest.h | 120 +- .../ModifyRouterInterfaceAttributeRequest.h | 140 +- .../model/ModifyRouterInterfaceSpecRequest.h | 116 +- .../ModifySecurityGroupAttributeRequest.h | 110 +- .../ModifySecurityGroupEgressRuleRequest.h | 194 ++- .../model/ModifySecurityGroupPolicyRequest.h | 110 +- .../model/ModifySecurityGroupRuleRequest.h | 194 ++- .../model/ModifySnapshotAttributeRequest.h | 110 +- .../ecs/model/ModifySnapshotGroupRequest.h | 110 +- ...odifyStorageCapacityUnitAttributeRequest.h | 110 +- .../model/ModifyStorageSetAttributeRequest.h | 116 +- .../model/ModifyUserBusinessBehaviorRequest.h | 104 +- .../ecs/model/ModifyVRouterAttributeRequest.h | 110 +- .../ecs/model/ModifyVSwitchAttributeRequest.h | 110 +- ...odifyVirtualBorderRouterAttributeRequest.h | 152 ++- .../ecs/model/ModifyVpcAttributeRequest.h | 122 +- ...PurchaseReservedInstancesOfferingRequest.h | 180 ++- .../PurchaseStorageCapacityUnitRequest.h | 162 ++- .../ecs/model/ReActivateInstancesRequest.h | 98 +- .../ecs/model/ReInitDiskRequest.h | 116 +- .../ecs/model/RebootInstanceRequest.h | 104 +- .../ecs/model/RebootInstancesRequest.h | 116 +- .../model/RecoverVirtualBorderRouterRequest.h | 110 +- .../ecs/model/RedeployDedicatedHostRequest.h | 98 +- .../ecs/model/RedeployInstanceRequest.h | 98 +- .../model/ReleaseCapacityReservationRequest.h | 104 +- .../ecs/model/ReleaseDedicatedHostRequest.h | 98 +- .../ecs/model/ReleaseEipAddressRequest.h | 98 +- .../ecs/model/ReleasePublicIpAddressRequest.h | 98 +- .../model/RemoveBandwidthPackageIpsRequest.h | 110 +- .../ecs/model/RemoveTagsRequest.h | 114 +- .../ecs/model/RenewDedicatedHostsRequest.h | 116 +- .../ecs/model/RenewInstanceRequest.h | 116 +- .../ecs/model/ReplaceSystemDiskRequest.h | 158 ++- .../ecs/model/ReportInstancesStatusRequest.h | 140 +- .../alibabacloud/ecs/model/ResetDiskRequest.h | 98 +- .../ecs/model/ResetDisksRequest.h | 108 +- .../ecs/model/ResizeDiskRequest.h | 110 +- .../model/RevokeSecurityGroupEgressRequest.h | 194 ++- .../ecs/model/RevokeSecurityGroupRequest.h | 194 ++- .../ecs/model/RunCommandRequest.h | 188 ++- .../ecs/model/RunInstancesRequest.h | 651 +++++----- .../alibabacloud/ecs/model/SendFileRequest.h | 158 ++- .../ecs/model/StartDiskReplicaPairRequest.h | 98 +- .../model/StartElasticityAssuranceRequest.h | 98 +- .../StartImagePipelineExecutionRequest.h | 120 +- .../ecs/model/StartInstanceRequest.h | 110 +- .../ecs/model/StartInstancesRequest.h | 110 +- .../ecs/model/StartTerminalSessionRequest.h | 98 +- .../ecs/model/StopDiskReplicaPairRequest.h | 98 +- .../ecs/model/StopInstanceRequest.h | 122 +- .../ecs/model/StopInstancesRequest.h | 122 +- .../ecs/model/StopInvocationRequest.h | 104 +- .../ecs/model/TagResourcesRequest.h | 114 +- .../TerminatePhysicalConnectionRequest.h | 110 +- .../TerminateVirtualBorderRouterRequest.h | 110 +- .../ecs/model/UnassignIpv6AddressesRequest.h | 104 +- .../model/UnassignPrivateIpAddressesRequest.h | 104 +- .../ecs/model/UnassociateEipAddressRequest.h | 110 +- .../ecs/model/UnassociateHaVipRequest.h | 116 +- .../ecs/model/UntagResourcesRequest.h | 116 +- .../model/AcceptInquiredSystemEventRequest.cc | 118 +- .../model/ActivateRouterInterfaceRequest.cc | 94 +- .../model/AddBandwidthPackageIpsRequest.cc | 130 +- ecs/src/model/AddTagsRequest.cc | 128 +- .../model/AllocateDedicatedHostsRequest.cc | 356 +++-- ecs/src/model/AllocateEipAddressRequest.cc | 154 +-- .../model/AllocatePublicIpAddressRequest.cc | 118 +- .../model/ApplyAutoSnapshotPolicyRequest.cc | 106 +- ecs/src/model/AssignIpv6AddressesRequest.cc | 131 +- .../model/AssignPrivateIpAddressesRequest.cc | 143 +-- ecs/src/model/AssociateEipAddressRequest.cc | 130 +- ecs/src/model/AssociateHaVipRequest.cc | 130 +- ecs/src/model/AttachClassicLinkVpcRequest.cc | 106 +- ecs/src/model/AttachDiskRequest.cc | 166 +-- ecs/src/model/AttachInstanceRamRoleRequest.cc | 118 +- ecs/src/model/AttachInstanceRamRoleResult.cc | 12 +- ecs/src/model/AttachKeyPairRequest.cc | 106 +- ecs/src/model/AttachKeyPairResult.cc | 12 +- .../model/AttachNetworkInterfaceRequest.cc | 142 +- .../AuthorizeSecurityGroupEgressRequest.cc | 298 ++--- .../model/AuthorizeSecurityGroupRequest.cc | 298 ++--- .../model/CancelAutoSnapshotPolicyRequest.cc | 94 +- ecs/src/model/CancelCopyImageRequest.cc | 106 +- .../CancelImagePipelineExecutionRequest.cc | 128 +- .../model/CancelPhysicalConnectionRequest.cc | 130 +- .../CancelSimulatedSystemEventsRequest.cc | 107 +- ecs/src/model/CancelTaskRequest.cc | 94 +- .../model/ConnectRouterInterfaceRequest.cc | 94 +- .../model/ConvertNatPublicIpToEipRequest.cc | 94 +- ecs/src/model/CopyImageRequest.cc | 212 ++- ecs/src/model/CopySnapshotRequest.cc | 176 ++- ecs/src/model/CreateActivationRequest.cc | 154 +-- ecs/src/model/CreateActivationResult.cc | 4 +- .../CreateAutoProvisioningGroupRequest.cc | 775 +++++------ .../model/CreateAutoSnapshotPolicyRequest.cc | 200 ++- .../model/CreateCapacityReservationRequest.cc | 357 +++-- ecs/src/model/CreateCommandRequest.cc | 178 ++- ...eateDedicatedBlockStorageClusterRequest.cc | 214 ++- .../CreateDedicatedHostClusterRequest.cc | 176 ++- ecs/src/model/CreateDemandRequest.cc | 226 ++-- ecs/src/model/CreateDeploymentSetRequest.cc | 190 ++- ecs/src/model/CreateDiskReplicaPairRequest.cc | 166 +-- ecs/src/model/CreateDiskRequest.cc | 356 +++-- .../model/CreateElasticityAssuranceRequest.cc | 334 ++--- ecs/src/model/CreateForwardEntryRequest.cc | 166 +-- ecs/src/model/CreateHaVipRequest.cc | 142 +- ecs/src/model/CreateHpcClusterRequest.cc | 130 +- ecs/src/model/CreateImageComponentRequest.cc | 200 ++- ecs/src/model/CreateImagePipelineRequest.cc | 298 ++--- ecs/src/model/CreateImageRequest.cc | 262 ++-- ecs/src/model/CreateInstanceRequest.cc | 914 ++++++------- ecs/src/model/CreateKeyPairRequest.cc | 128 +- ecs/src/model/CreateKeyPairResult.cc | 12 +- ecs/src/model/CreateLaunchTemplateRequest.cc | 698 +++++----- .../CreateLaunchTemplateVersionRequest.cc | 676 ++++------ ecs/src/model/CreateNatGatewayRequest.cc | 166 ++- ...CreateNetworkInterfacePermissionRequest.cc | 130 +- .../CreateNetworkInterfacePermissionResult.cc | 16 +- .../model/CreateNetworkInterfaceRequest.cc | 335 ++--- .../model/CreatePhysicalConnectionRequest.cc | 238 ++-- ecs/src/model/CreatePrefixListRequest.cc | 176 ++- ecs/src/model/CreateRouteEntryRequest.cc | 176 ++- ecs/src/model/CreateRouterInterfaceRequest.cc | 346 +++-- ecs/src/model/CreateRouterInterfaceResult.cc | 4 +- ecs/src/model/CreateSecurityGroupRequest.cc | 200 ++- .../CreateSimulatedSystemEventsRequest.cc | 131 +- ecs/src/model/CreateSnapshotGroupRequest.cc | 214 ++- ecs/src/model/CreateSnapshotRequest.cc | 212 ++- ecs/src/model/CreateStorageSetRequest.cc | 154 +-- ecs/src/model/CreateVSwitchRequest.cc | 166 +-- .../model/CreateVirtualBorderRouterRequest.cc | 226 ++-- ecs/src/model/CreateVpcRequest.cc | 154 +-- .../model/DeactivateRouterInterfaceRequest.cc | 94 +- ecs/src/model/DeleteActivationRequest.cc | 106 +- ecs/src/model/DeleteActivationResult.cc | 32 +- .../DeleteAutoProvisioningGroupRequest.cc | 118 +- .../model/DeleteAutoSnapshotPolicyRequest.cc | 94 +- .../model/DeleteBandwidthPackageRequest.cc | 106 +- ecs/src/model/DeleteCommandRequest.cc | 106 +- .../DeleteDedicatedHostClusterRequest.cc | 106 +- ecs/src/model/DeleteDemandRequest.cc | 130 +- ecs/src/model/DeleteDeploymentSetRequest.cc | 106 +- ecs/src/model/DeleteDiskReplicaPairRequest.cc | 106 +- ecs/src/model/DeleteDiskRequest.cc | 94 +- ecs/src/model/DeleteForwardEntryRequest.cc | 118 +- ecs/src/model/DeleteHaVipRequest.cc | 118 +- ecs/src/model/DeleteHpcClusterRequest.cc | 118 +- ecs/src/model/DeleteImageComponentRequest.cc | 128 +- ecs/src/model/DeleteImagePipelineRequest.cc | 128 +- ecs/src/model/DeleteImageRequest.cc | 118 +- ecs/src/model/DeleteInstanceRequest.cc | 118 +- ecs/src/model/DeleteInstancesRequest.cc | 155 +-- ecs/src/model/DeleteKeyPairsRequest.cc | 94 +- ecs/src/model/DeleteLaunchTemplateRequest.cc | 118 +- .../DeleteLaunchTemplateVersionRequest.cc | 131 +- ecs/src/model/DeleteNatGatewayRequest.cc | 106 +- ...DeleteNetworkInterfacePermissionRequest.cc | 118 +- .../model/DeleteNetworkInterfaceRequest.cc | 106 +- .../model/DeletePhysicalConnectionRequest.cc | 118 +- ecs/src/model/DeletePrefixListRequest.cc | 106 +- ecs/src/model/DeleteRouteEntryRequest.cc | 152 +-- ecs/src/model/DeleteRouterInterfaceRequest.cc | 130 +- ecs/src/model/DeleteSecurityGroupRequest.cc | 106 +- ecs/src/model/DeleteSnapshotGroupRequest.cc | 106 +- ecs/src/model/DeleteSnapshotRequest.cc | 106 +- ecs/src/model/DeleteStorageSetRequest.cc | 118 +- ecs/src/model/DeleteVSwitchRequest.cc | 106 +- .../model/DeleteVirtualBorderRouterRequest.cc | 130 +- ecs/src/model/DeleteVpcRequest.cc | 106 +- .../model/DeregisterManagedInstanceRequest.cc | 106 +- .../model/DeregisterManagedInstanceResult.cc | 36 +- ecs/src/model/DescribeAccessPointsRequest.cc | 141 +- ecs/src/model/DescribeAccessPointsResult.cc | 16 +- .../model/DescribeAccountAttributesRequest.cc | 107 +- .../model/DescribeAccountAttributesResult.cc | 8 +- ecs/src/model/DescribeActivationsRequest.cc | 142 +- ecs/src/model/DescribeActivationsResult.cc | 44 +- ...ribeAutoProvisioningGroupHistoryRequest.cc | 154 +-- ...cribeAutoProvisioningGroupHistoryResult.cc | 20 +- ...beAutoProvisioningGroupInstancesRequest.cc | 130 +- ...ibeAutoProvisioningGroupInstancesResult.cc | 48 +- .../DescribeAutoProvisioningGroupsRequest.cc | 156 +-- .../DescribeAutoProvisioningGroupsResult.cc | 84 +- .../DescribeAutoSnapshotPolicyExRequest.cc | 164 +-- .../model/DescribeAvailableResourceRequest.cc | 274 ++-- .../model/DescribeAvailableResourceResult.cc | 16 +- .../DescribeBandwidthLimitationRequest.cc | 154 +-- .../DescribeBandwidthLimitationResult.cc | 4 +- .../model/DescribeBandwidthPackagesRequest.cc | 142 +- .../model/DescribeBandwidthPackagesResult.cc | 48 +- ...ribeCapacityReservationInstancesRequest.cc | 142 +- ...cribeCapacityReservationInstancesResult.cc | 4 +- .../DescribeCapacityReservationsRequest.cc | 236 ++-- .../DescribeClassicLinkInstancesRequest.cc | 130 +- .../DescribeClassicLinkInstancesResult.cc | 12 +- .../DescribeCloudAssistantStatusRequest.cc | 143 +-- ecs/src/model/DescribeClustersRequest.cc | 94 +- ecs/src/model/DescribeCommandsRequest.cc | 190 ++- ecs/src/model/DescribeCommandsResult.cc | 48 +- ...ibeDedicatedBlockStorageClustersRequest.cc | 168 +-- .../DescribeDedicatedHostAutoRenewRequest.cc | 106 +- .../DescribeDedicatedHostClustersRequest.cc | 212 ++- .../DescribeDedicatedHostClustersResult.cc | 44 +- .../DescribeDedicatedHostTypesRequest.cc | 118 +- .../model/DescribeDedicatedHostTypesResult.cc | 36 +- .../model/DescribeDedicatedHostsRequest.cc | 248 ++-- ecs/src/model/DescribeDemandsRequest.cc | 237 ++-- ecs/src/model/DescribeDemandsResult.cc | 52 +- ...ntSetSupportedInstanceTypeFamilyRequest.cc | 94 +- .../model/DescribeDeploymentSetsRequest.cc | 190 ++- ecs/src/model/DescribeDeploymentSetsResult.cc | 48 +- .../model/DescribeDiskMonitorDataRequest.cc | 130 +- .../model/DescribeDiskMonitorDataResult.cc | 28 +- .../model/DescribeDiskReplicaPairsRequest.cc | 118 +- .../model/DescribeDiskReplicaPairsResult.cc | 28 +- .../model/DescribeDisksFullStatusRequest.cc | 204 ++- .../model/DescribeDisksFullStatusResult.cc | 24 +- ecs/src/model/DescribeDisksRequest.cc | 489 +++---- ecs/src/model/DescribeEipAddressesRequest.cc | 262 ++-- ecs/src/model/DescribeEipAddressesResult.cc | 40 +- .../model/DescribeEipMonitorDataRequest.cc | 142 +- ecs/src/model/DescribeEipMonitorDataResult.cc | 12 +- ...ribeElasticityAssuranceInstancesRequest.cc | 142 +- ...cribeElasticityAssuranceInstancesResult.cc | 4 +- .../DescribeElasticityAssurancesRequest.cc | 236 ++-- .../DescribeElasticityAssurancesResult.cc | 52 +- .../model/DescribeEniMonitorDataRequest.cc | 154 +-- ecs/src/model/DescribeEniMonitorDataResult.cc | 20 +- .../DescribeForwardTableEntriesRequest.cc | 142 +- .../DescribeForwardTableEntriesResult.cc | 28 +- ecs/src/model/DescribeHaVipsRequest.cc | 141 +- ecs/src/model/DescribeHaVipsResult.cc | 30 +- ecs/src/model/DescribeHpcClustersRequest.cc | 142 +- ecs/src/model/DescribeHpcClustersResult.cc | 8 +- .../model/DescribeImageComponentsRequest.cc | 189 ++- .../model/DescribeImageFromFamilyRequest.cc | 106 +- .../model/DescribeImageFromFamilyResult.cc | 80 +- .../DescribeImagePipelineExecutionsRequest.cc | 176 ++- .../model/DescribeImagePipelinesRequest.cc | 177 ++- .../DescribeImageSharePermissionRequest.cc | 130 +- .../DescribeImageSharePermissionResult.cc | 8 +- ...escribeImageSupportInstanceTypesRequest.cc | 128 +- ...DescribeImageSupportInstanceTypesResult.cc | 8 +- ecs/src/model/DescribeImagesRequest.cc | 378 +++--- ...ribeInstanceAttachmentAttributesRequest.cc | 130 +- ...cribeInstanceAttachmentAttributesResult.cc | 12 +- .../model/DescribeInstanceAttributeRequest.cc | 94 +- .../model/DescribeInstanceAttributeResult.cc | 114 +- ...scribeInstanceAutoRenewAttributeRequest.cc | 142 +- ...escribeInstanceAutoRenewAttributeResult.cc | 12 +- .../DescribeInstanceHistoryEventsRequest.cc | 312 ++--- ...ibeInstanceMaintenanceAttributesRequest.cc | 131 +- ...ribeInstanceMaintenanceAttributesResult.cc | 20 +- ...escribeInstanceModificationPriceRequest.cc | 154 +-- .../DescribeInstanceMonitorDataRequest.cc | 130 +- .../DescribeInstanceMonitorDataResult.cc | 56 +- .../model/DescribeInstanceRamRoleRequest.cc | 130 +- .../model/DescribeInstanceRamRoleResult.cc | 8 +- .../model/DescribeInstanceStatusRequest.cc | 155 +-- ecs/src/model/DescribeInstanceStatusResult.cc | 12 +- .../model/DescribeInstanceTopologyRequest.cc | 94 +- .../model/DescribeInstanceTopologyResult.cc | 4 +- .../DescribeInstanceTypeFamiliesRequest.cc | 106 +- .../DescribeInstanceTypeFamiliesResult.cc | 4 +- ecs/src/model/DescribeInstanceTypesRequest.cc | 131 +- .../model/DescribeInstanceVncPasswdRequest.cc | 106 +- .../model/DescribeInstanceVncUrlRequest.cc | 106 +- .../DescribeInstancesFullStatusRequest.cc | 241 ++-- .../DescribeInstancesFullStatusResult.cc | 48 +- ecs/src/model/DescribeInstancesRequest.cc | 634 ++++----- .../model/DescribeInvocationResultsRequest.cc | 190 ++- .../model/DescribeInvocationResultsResult.cc | 36 +- ecs/src/model/DescribeInvocationsRequest.cc | 238 ++-- ecs/src/model/DescribeKeyPairsRequest.cc | 164 +-- ecs/src/model/DescribeKeyPairsResult.cc | 16 +- .../DescribeLaunchTemplateVersionsRequest.cc | 203 ++- .../DescribeLaunchTemplateVersionsResult.cc | 212 +-- .../model/DescribeLaunchTemplatesRequest.cc | 178 ++- .../model/DescribeLaunchTemplatesResult.cc | 32 +- ecs/src/model/DescribeLimitationRequest.cc | 94 +- .../model/DescribeManagedInstancesRequest.cc | 179 ++- .../model/DescribeManagedInstancesResult.cc | 56 +- ecs/src/model/DescribeNatGatewaysRequest.cc | 142 +- ecs/src/model/DescribeNatGatewaysResult.cc | 36 +- ...escribeNetworkInterfaceAttributeRequest.cc | 140 +- ...DescribeNetworkInterfaceAttributeResult.cc | 88 +- ...cribeNetworkInterfacePermissionsRequest.cc | 143 +-- ...scribeNetworkInterfacePermissionsResult.cc | 24 +- .../model/DescribeNetworkInterfacesRequest.cc | 323 ++--- ...DescribeNewProjectEipMonitorDataRequest.cc | 142 +- .../DescribeNewProjectEipMonitorDataResult.cc | 12 +- .../DescribePhysicalConnectionsRequest.cc | 165 +-- .../DescribePhysicalConnectionsResult.cc | 56 +- .../DescribePrefixListAssociationsRequest.cc | 130 +- .../DescribePrefixListAttributesRequest.cc | 106 +- .../DescribePrefixListAttributesResult.cc | 20 +- ecs/src/model/DescribePrefixListsRequest.cc | 155 +-- ecs/src/model/DescribePrefixListsResult.cc | 20 +- ecs/src/model/DescribePriceRequest.cc | 551 ++++---- .../DescribeRecommendInstanceTypeRequest.cc | 275 ++-- .../DescribeRecommendInstanceTypeResult.cc | 32 +- ecs/src/model/DescribeRegionsRequest.cc | 118 +- ecs/src/model/DescribeRegionsResult.cc | 12 +- ecs/src/model/DescribeRenewalPriceRequest.cc | 154 +-- ecs/src/model/DescribeRenewalPriceResult.cc | 12 +- .../model/DescribeReservedInstancesRequest.cc | 262 ++-- .../model/DescribeReservedInstancesResult.cc | 60 +- .../model/DescribeResourceByTagsRequest.cc | 140 +- ecs/src/model/DescribeResourceByTagsResult.cc | 4 +- .../DescribeResourcesModificationRequest.cc | 178 ++- .../DescribeResourcesModificationResult.cc | 16 +- ecs/src/model/DescribeRouteTablesRequest.cc | 178 ++- ecs/src/model/DescribeRouteTablesResult.cc | 40 +- .../model/DescribeRouterInterfacesRequest.cc | 129 +- .../model/DescribeRouterInterfacesResult.cc | 76 +- .../DescribeSecurityGroupAttributeRequest.cc | 130 +- .../DescribeSecurityGroupAttributeResult.cc | 112 +- .../DescribeSecurityGroupReferencesRequest.cc | 107 +- .../DescribeSecurityGroupReferencesResult.cc | 4 +- .../model/DescribeSecurityGroupsRequest.cc | 284 ++-- .../model/DescribeSendFileResultsRequest.cc | 154 +-- .../model/DescribeSendFileResultsResult.cc | 64 +- .../model/DescribeSnapshotGroupsRequest.cc | 215 ++-- ecs/src/model/DescribeSnapshotLinksRequest.cc | 154 +-- .../DescribeSnapshotMonitorDataRequest.cc | 142 +- .../DescribeSnapshotMonitorDataResult.cc | 4 +- .../model/DescribeSnapshotPackageRequest.cc | 118 +- .../model/DescribeSnapshotPackageResult.cc | 20 +- ecs/src/model/DescribeSnapshotsRequest.cc | 380 +++--- .../model/DescribeSnapshotsUsageRequest.cc | 94 +- ecs/src/model/DescribeSnapshotsUsageResult.cc | 4 +- ecs/src/model/DescribeSpotAdviceRequest.cc | 239 ++-- ecs/src/model/DescribeSpotAdviceResult.cc | 8 +- .../model/DescribeSpotPriceHistoryRequest.cc | 202 ++- .../model/DescribeSpotPriceHistoryResult.cc | 16 +- .../DescribeStorageCapacityUnitsRequest.cc | 202 ++- .../model/DescribeStorageSetDetailsRequest.cc | 166 +-- .../model/DescribeStorageSetDetailsResult.cc | 28 +- ecs/src/model/DescribeStorageSetsRequest.cc | 166 +-- ecs/src/model/DescribeStorageSetsResult.cc | 24 +- ecs/src/model/DescribeTagsRequest.cc | 164 +-- ecs/src/model/DescribeTagsResult.cc | 28 +- ecs/src/model/DescribeTaskAttributeRequest.cc | 94 +- ecs/src/model/DescribeTaskAttributeResult.cc | 52 +- ecs/src/model/DescribeTasksRequest.cc | 178 ++- ecs/src/model/DescribeTasksResult.cc | 28 +- .../DescribeUserBusinessBehaviorRequest.cc | 106 +- ecs/src/model/DescribeUserDataRequest.cc | 94 +- ecs/src/model/DescribeUserDataResult.cc | 4 +- ecs/src/model/DescribeVRoutersRequest.cc | 130 +- ecs/src/model/DescribeVRoutersResult.cc | 24 +- ecs/src/model/DescribeVSwitchesRequest.cc | 166 +-- ...rderRoutersForPhysicalConnectionRequest.cc | 141 +- ...orderRoutersForPhysicalConnectionResult.cc | 24 +- .../DescribeVirtualBorderRoutersRequest.cc | 129 +- .../DescribeVirtualBorderRoutersResult.cc | 68 +- ecs/src/model/DescribeVpcsRequest.cc | 142 +- ecs/src/model/DescribeVpcsResult.cc | 32 +- ecs/src/model/DescribeZonesRequest.cc | 142 +- ecs/src/model/DetachClassicLinkVpcRequest.cc | 106 +- ecs/src/model/DetachDiskRequest.cc | 118 +- ecs/src/model/DetachInstanceRamRoleRequest.cc | 106 +- ecs/src/model/DetachInstanceRamRoleResult.cc | 16 +- ecs/src/model/DetachKeyPairRequest.cc | 106 +- ecs/src/model/DetachKeyPairResult.cc | 12 +- .../model/DetachNetworkInterfaceRequest.cc | 130 +- ecs/src/model/DisableActivationRequest.cc | 106 +- ecs/src/model/DisableActivationResult.cc | 36 +- ecs/src/model/EipFillParamsRequest.cc | 118 +- ecs/src/model/EipFillParamsResult.cc | 18 +- ecs/src/model/EipFillProductRequest.cc | 118 +- ecs/src/model/EipFillProductResult.cc | 18 +- ecs/src/model/EipNotifyPaidRequest.cc | 118 +- ecs/src/model/EipNotifyPaidResult.cc | 22 +- .../model/EnablePhysicalConnectionRequest.cc | 130 +- ecs/src/model/ExportImageRequest.cc | 142 +- ecs/src/model/ExportSnapshotRequest.cc | 118 +- .../model/GetInstanceConsoleOutputRequest.cc | 118 +- .../model/GetInstanceConsoleOutputResult.cc | 14 +- ecs/src/model/GetInstanceScreenshotRequest.cc | 118 +- ecs/src/model/ImportImageRequest.cc | 242 ++-- ecs/src/model/ImportKeyPairRequest.cc | 140 +- ecs/src/model/ImportSnapshotRequest.cc | 130 +- ecs/src/model/InstallCloudAssistantRequest.cc | 107 +- ecs/src/model/InvokeCommandRequest.cc | 191 ++- ecs/src/model/JoinResourceGroupRequest.cc | 130 +- ecs/src/model/JoinSecurityGroupRequest.cc | 130 +- ecs/src/model/LeaveSecurityGroupRequest.cc | 130 +- ecs/src/model/ListTagResourcesRequest.cc | 176 ++- .../ModifyAutoProvisioningGroupRequest.cc | 230 ++-- .../ModifyAutoSnapshotPolicyExRequest.cc | 178 ++- .../model/ModifyAutoSnapshotPolicyRequest.cc | 178 ++- .../ModifyBandwidthPackageSpecRequest.cc | 118 +- .../model/ModifyCapacityReservationRequest.cc | 202 ++- ecs/src/model/ModifyCommandRequest.cc | 166 +-- .../ModifyDedicatedHostAttributeRequest.cc | 202 ++- ...difyDedicatedHostAutoReleaseTimeRequest.cc | 118 +- ...yDedicatedHostAutoRenewAttributeRequest.cc | 166 +-- ...ifyDedicatedHostClusterAttributeRequest.cc | 130 +- .../ModifyDedicatedHostsChargeTypeRequest.cc | 190 ++- .../ModifyDedicatedHostsChargeTypeResult.cc | 4 +- ecs/src/model/ModifyDemandRequest.cc | 238 ++-- .../ModifyDeploymentSetAttributeRequest.cc | 130 +- ecs/src/model/ModifyDiskAttributeRequest.cc | 179 ++- ecs/src/model/ModifyDiskChargeTypeRequest.cc | 154 +-- ecs/src/model/ModifyDiskSpecRequest.cc | 130 +- .../model/ModifyEipAddressAttributeRequest.cc | 118 +- .../model/ModifyElasticityAssuranceRequest.cc | 142 +- ecs/src/model/ModifyForwardEntryRequest.cc | 178 ++- ecs/src/model/ModifyHaVipAttributeRequest.cc | 130 +- .../model/ModifyHpcClusterAttributeRequest.cc | 142 +- ecs/src/model/ModifyImageAttributeRequest.cc | 178 ++- .../ModifyImageShareGroupPermissionRequest.cc | 130 +- .../ModifyImageSharePermissionRequest.cc | 156 +-- ...difyInstanceAttachmentAttributesRequest.cc | 130 +- .../model/ModifyInstanceAttributeRequest.cc | 215 ++-- .../ModifyInstanceAutoReleaseTimeRequest.cc | 118 +- ...ModifyInstanceAutoRenewAttributeRequest.cc | 154 +-- .../model/ModifyInstanceChargeTypeRequest.cc | 202 ++- .../model/ModifyInstanceDeploymentRequest.cc | 214 ++- ...ifyInstanceMaintenanceAttributesRequest.cc | 153 +-- .../ModifyInstanceMetadataOptionsRequest.cc | 130 +- .../model/ModifyInstanceNetworkSpecRequest.cc | 202 ++- ecs/src/model/ModifyInstanceSpecRequest.cc | 214 ++- .../model/ModifyInstanceVncPasswdRequest.cc | 118 +- .../ModifyInstanceVpcAttributeRequest.cc | 143 +-- ...difyLaunchTemplateDefaultVersionRequest.cc | 130 +- ecs/src/model/ModifyManagedInstanceRequest.cc | 118 +- ecs/src/model/ModifyManagedInstanceResult.cc | 4 +- .../ModifyNetworkInterfaceAttributeRequest.cc | 155 +-- ...odifyPhysicalConnectionAttributeRequest.cc | 226 ++-- ecs/src/model/ModifyPrefixListRequest.cc | 172 ++- .../model/ModifyPrepayInstanceSpecRequest.cc | 214 ++- .../ModifyReservedInstanceAttributeRequest.cc | 130 +- .../ModifyReservedInstanceAttributeResult.cc | 4 +- .../model/ModifyReservedInstancesRequest.cc | 135 +- .../ModifyRouterInterfaceAttributeRequest.cc | 190 ++- .../model/ModifyRouterInterfaceSpecRequest.cc | 142 +- .../ModifySecurityGroupAttributeRequest.cc | 130 +- .../ModifySecurityGroupEgressRuleRequest.cc | 298 ++--- .../model/ModifySecurityGroupPolicyRequest.cc | 130 +- .../model/ModifySecurityGroupRuleRequest.cc | 298 ++--- .../model/ModifySnapshotAttributeRequest.cc | 130 +- ecs/src/model/ModifySnapshotGroupRequest.cc | 130 +- ...difyStorageCapacityUnitAttributeRequest.cc | 130 +- .../model/ModifyStorageSetAttributeRequest.cc | 142 +- .../ModifyUserBusinessBehaviorRequest.cc | 118 +- .../model/ModifyVRouterAttributeRequest.cc | 130 +- .../model/ModifyVSwitchAttributeRequest.cc | 130 +- ...difyVirtualBorderRouterAttributeRequest.cc | 214 ++- ecs/src/model/ModifyVpcAttributeRequest.cc | 154 +-- ...urchaseReservedInstancesOfferingRequest.cc | 260 ++-- .../PurchaseStorageCapacityUnitRequest.cc | 224 ++-- ecs/src/model/ReActivateInstancesRequest.cc | 106 +- ecs/src/model/ReInitDiskRequest.cc | 142 +- ecs/src/model/RebootInstanceRequest.cc | 118 +- ecs/src/model/RebootInstancesRequest.cc | 143 +-- ecs/src/model/RebootInstancesResult.cc | 12 +- .../RecoverVirtualBorderRouterRequest.cc | 130 +- ecs/src/model/RedeployDedicatedHostRequest.cc | 106 +- ecs/src/model/RedeployInstanceRequest.cc | 106 +- .../ReleaseCapacityReservationRequest.cc | 118 +- ecs/src/model/ReleaseDedicatedHostRequest.cc | 106 +- ecs/src/model/ReleaseEipAddressRequest.cc | 106 +- .../model/ReleasePublicIpAddressRequest.cc | 106 +- .../model/RemoveBandwidthPackageIpsRequest.cc | 131 +- ecs/src/model/RemoveTagsRequest.cc | 128 +- ecs/src/model/RenewDedicatedHostsRequest.cc | 142 +- ecs/src/model/RenewInstanceRequest.cc | 142 +- ecs/src/model/ReplaceSystemDiskRequest.cc | 226 ++-- ecs/src/model/ReportInstancesStatusRequest.cc | 193 ++- ecs/src/model/ResetDiskRequest.cc | 106 +- ecs/src/model/ResetDisksRequest.cc | 116 +- ecs/src/model/ResizeDiskRequest.cc | 130 +- .../model/RevokeSecurityGroupEgressRequest.cc | 298 ++--- ecs/src/model/RevokeSecurityGroupRequest.cc | 298 ++--- ecs/src/model/RunCommandRequest.cc | 287 ++--- ecs/src/model/RunInstancesRequest.cc | 1144 +++++++---------- ecs/src/model/SendFileRequest.cc | 227 ++-- ecs/src/model/StartDiskReplicaPairRequest.cc | 106 +- .../model/StartElasticityAssuranceRequest.cc | 106 +- .../StartImagePipelineExecutionRequest.cc | 140 +- ecs/src/model/StartInstanceRequest.cc | 130 +- ecs/src/model/StartInstancesRequest.cc | 131 +- ecs/src/model/StartTerminalSessionRequest.cc | 107 +- ecs/src/model/StopDiskReplicaPairRequest.cc | 106 +- ecs/src/model/StopInstanceRequest.cc | 154 +-- ecs/src/model/StopInstancesRequest.cc | 155 +-- ecs/src/model/StopInstancesResult.cc | 12 +- ecs/src/model/StopInvocationRequest.cc | 119 +- ecs/src/model/TagResourcesRequest.cc | 129 +- .../TerminatePhysicalConnectionRequest.cc | 130 +- .../TerminateVirtualBorderRouterRequest.cc | 130 +- ecs/src/model/UnassignIpv6AddressesRequest.cc | 119 +- .../UnassignPrivateIpAddressesRequest.cc | 119 +- ecs/src/model/UnassociateEipAddressRequest.cc | 130 +- ecs/src/model/UnassociateHaVipRequest.cc | 142 +- ecs/src/model/UntagResourcesRequest.cc | 144 +-- 821 files changed, 47471 insertions(+), 58187 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index dce2099af..b5bb4c891 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2021-10-08 Version: 1.36.895 +- Adjust ecs openapi endpoint. + 2021-10-08 Version: 1.36.894 - Fixed SDK update delay. diff --git a/VERSION b/VERSION index 903bfc4fe..0f74834bd 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.894 \ No newline at end of file +1.36.895 \ No newline at end of file diff --git a/ecs/include/alibabacloud/ecs/model/AcceptInquiredSystemEventRequest.h b/ecs/include/alibabacloud/ecs/model/AcceptInquiredSystemEventRequest.h index 0d0044bcc..6b697bbef 100644 --- a/ecs/include/alibabacloud/ecs/model/AcceptInquiredSystemEventRequest.h +++ b/ecs/include/alibabacloud/ecs/model/AcceptInquiredSystemEventRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ACCEPTINQUIREDSYSTEMEVENTREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_ACCEPTINQUIREDSYSTEMEVENTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AcceptInquiredSystemEventRequest : public RpcServiceRequest - { - - public: - AcceptInquiredSystemEventRequest(); - ~AcceptInquiredSystemEventRequest(); - - std::string getEventId()const; - void setEventId(const std::string& eventId); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getChoice()const; - void setChoice(const std::string& choice); - - private: - std::string eventId_; - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string choice_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_ACCEPTINQUIREDSYSTEMEVENTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ACCEPTINQUIREDSYSTEMEVENTREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ACCEPTINQUIREDSYSTEMEVENTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT AcceptInquiredSystemEventRequest : public RpcServiceRequest { +public: + AcceptInquiredSystemEventRequest(); + ~AcceptInquiredSystemEventRequest(); + std::string getEventId() const; + void setEventId(const std::string &eventId); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getChoice() const; + void setChoice(const std::string &choice); + +private: + std::string eventId_; + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string choice_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_ACCEPTINQUIREDSYSTEMEVENTREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ActivateRouterInterfaceRequest.h b/ecs/include/alibabacloud/ecs/model/ActivateRouterInterfaceRequest.h index 9f8d16c63..86283b197 100644 --- a/ecs/include/alibabacloud/ecs/model/ActivateRouterInterfaceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ActivateRouterInterfaceRequest.h @@ -1,60 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ACTIVATEROUTERINTERFACEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_ACTIVATEROUTERINTERFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ActivateRouterInterfaceRequest : public RpcServiceRequest - { - - public: - ActivateRouterInterfaceRequest(); - ~ActivateRouterInterfaceRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getRouterInterfaceId()const; - void setRouterInterfaceId(const std::string& routerInterfaceId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - long ownerId_; - std::string routerInterfaceId_; - std::string regionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_ACTIVATEROUTERINTERFACEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ACTIVATEROUTERINTERFACEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ACTIVATEROUTERINTERFACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ActivateRouterInterfaceRequest : public RpcServiceRequest { +public: + ActivateRouterInterfaceRequest(); + ~ActivateRouterInterfaceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getRouterInterfaceId() const; + void setRouterInterfaceId(const std::string &routerInterfaceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string routerInterfaceId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_ACTIVATEROUTERINTERFACEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/AddBandwidthPackageIpsRequest.h b/ecs/include/alibabacloud/ecs/model/AddBandwidthPackageIpsRequest.h index 44cf29932..d3d4b5e07 100644 --- a/ecs/include/alibabacloud/ecs/model/AddBandwidthPackageIpsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/AddBandwidthPackageIpsRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ADDBANDWIDTHPACKAGEIPSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_ADDBANDWIDTHPACKAGEIPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AddBandwidthPackageIpsRequest : public RpcServiceRequest - { - - public: - AddBandwidthPackageIpsRequest(); - ~AddBandwidthPackageIpsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getBandwidthPackageId()const; - void setBandwidthPackageId(const std::string& bandwidthPackageId); - std::string getResourceOwnerAccount()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 getIpCount()const; - void setIpCount(const std::string& ipCount); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - std::string bandwidthPackageId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string ipCount_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_ADDBANDWIDTHPACKAGEIPSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ADDBANDWIDTHPACKAGEIPSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ADDBANDWIDTHPACKAGEIPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT AddBandwidthPackageIpsRequest : public RpcServiceRequest { +public: + AddBandwidthPackageIpsRequest(); + ~AddBandwidthPackageIpsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getBandwidthPackageId() const; + void setBandwidthPackageId(const std::string &bandwidthPackageId); + std::string getResourceOwnerAccount() 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 getIpCount() const; + void setIpCount(const std::string &ipCount); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string bandwidthPackageId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string ipCount_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_ADDBANDWIDTHPACKAGEIPSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/AddTagsRequest.h b/ecs/include/alibabacloud/ecs/model/AddTagsRequest.h index aa7e3ad95..0542242f0 100644 --- a/ecs/include/alibabacloud/ecs/model/AddTagsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/AddTagsRequest.h @@ -1,72 +1,64 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ADDTAGSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_ADDTAGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AddTagsRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - - public: - AddTagsRequest(); - ~AddTagsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getResourceId()const; - void setResourceId(const std::string& resourceId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getResourceType()const; - void setResourceType(const std::string& resourceType); - - private: - long resourceOwnerId_; - std::string regionId_; - std::vector tag_; - std::string resourceId_; - std::string resourceOwnerAccount_; - long ownerId_; - std::string resourceType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_ADDTAGSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ADDTAGSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ADDTAGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT AddTagsRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + AddTagsRequest(); + ~AddTagsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + +private: + long resourceOwnerId_; + std::string regionId_; + std::vector tag_; + std::string resourceId_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string resourceType_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_ADDTAGSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/AllocateDedicatedHostsRequest.h b/ecs/include/alibabacloud/ecs/model/AllocateDedicatedHostsRequest.h index 59acd7c18..096b4340a 100644 --- a/ecs/include/alibabacloud/ecs/model/AllocateDedicatedHostsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/AllocateDedicatedHostsRequest.h @@ -1,129 +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. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ALLOCATEDEDICATEDHOSTSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_ALLOCATEDEDICATEDHOSTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AllocateDedicatedHostsRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string key; - std::string value; - }; - - public: - AllocateDedicatedHostsRequest(); - ~AllocateDedicatedHostsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getDescription()const; - void setDescription(const std::string& description); - float getCpuOverCommitRatio()const; - void setCpuOverCommitRatio(float cpuOverCommitRatio); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - int getMinQuantity()const; - void setMinQuantity(int minQuantity); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getActionOnMaintenance()const; - void setActionOnMaintenance(const std::string& actionOnMaintenance); - std::string getDedicatedHostClusterId()const; - void setDedicatedHostClusterId(const std::string& dedicatedHostClusterId); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getDedicatedHostType()const; - void setDedicatedHostType(const std::string& dedicatedHostType); - int getAutoRenewPeriod()const; - void setAutoRenewPeriod(int autoRenewPeriod); - int getPeriod()const; - void setPeriod(int period); - int getQuantity()const; - void setQuantity(int quantity); - std::string getDedicatedHostName()const; - void setDedicatedHostName(const std::string& dedicatedHostName); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getAutoReleaseTime()const; - void setAutoReleaseTime(const std::string& autoReleaseTime); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPeriodUnit()const; - void setPeriodUnit(const std::string& periodUnit); - bool getAutoRenew()const; - void setAutoRenew(bool autoRenew); - int getNetworkAttributesSlbUdpTimeout()const; - void setNetworkAttributesSlbUdpTimeout(int networkAttributesSlbUdpTimeout); - std::string getZoneId()const; - void setZoneId(const std::string& zoneId); - std::string getAutoPlacement()const; - void setAutoPlacement(const std::string& autoPlacement); - std::string getChargeType()const; - void setChargeType(const std::string& chargeType); - int getNetworkAttributesUdpTimeout()const; - void setNetworkAttributesUdpTimeout(int networkAttributesUdpTimeout); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string description_; - float cpuOverCommitRatio_; - std::string resourceGroupId_; - int minQuantity_; - std::string regionId_; - std::string actionOnMaintenance_; - std::string dedicatedHostClusterId_; - std::vector tag_; - std::string dedicatedHostType_; - int autoRenewPeriod_; - int period_; - int quantity_; - std::string dedicatedHostName_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string autoReleaseTime_; - long ownerId_; - std::string periodUnit_; - bool autoRenew_; - int networkAttributesSlbUdpTimeout_; - std::string zoneId_; - std::string autoPlacement_; - std::string chargeType_; - int networkAttributesUdpTimeout_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_ALLOCATEDEDICATEDHOSTSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ALLOCATEDEDICATEDHOSTSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ALLOCATEDEDICATEDHOSTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT AllocateDedicatedHostsRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + AllocateDedicatedHostsRequest(); + ~AllocateDedicatedHostsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDescription() const; + void setDescription(const std::string &description); + float getCpuOverCommitRatio() const; + void setCpuOverCommitRatio(float cpuOverCommitRatio); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + int getMinQuantity() const; + void setMinQuantity(int minQuantity); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getActionOnMaintenance() const; + void setActionOnMaintenance(const std::string &actionOnMaintenance); + std::string getDedicatedHostClusterId() const; + void setDedicatedHostClusterId(const std::string &dedicatedHostClusterId); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getDedicatedHostType() const; + void setDedicatedHostType(const std::string &dedicatedHostType); + int getAutoRenewPeriod() const; + void setAutoRenewPeriod(int autoRenewPeriod); + int getPeriod() const; + void setPeriod(int period); + int getQuantity() const; + void setQuantity(int quantity); + std::string getDedicatedHostName() const; + void setDedicatedHostName(const std::string &dedicatedHostName); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getAutoReleaseTime() const; + void setAutoReleaseTime(const std::string &autoReleaseTime); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPeriodUnit() const; + void setPeriodUnit(const std::string &periodUnit); + bool getAutoRenew() const; + void setAutoRenew(bool autoRenew); + int getNetworkAttributesSlbUdpTimeout() const; + void setNetworkAttributesSlbUdpTimeout(int networkAttributesSlbUdpTimeout); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + std::string getAutoPlacement() const; + void setAutoPlacement(const std::string &autoPlacement); + std::string getChargeType() const; + void setChargeType(const std::string &chargeType); + int getNetworkAttributesUdpTimeout() const; + void setNetworkAttributesUdpTimeout(int networkAttributesUdpTimeout); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string description_; + float cpuOverCommitRatio_; + std::string resourceGroupId_; + int minQuantity_; + std::string regionId_; + std::string actionOnMaintenance_; + std::string dedicatedHostClusterId_; + std::vector tag_; + std::string dedicatedHostType_; + int autoRenewPeriod_; + int period_; + int quantity_; + std::string dedicatedHostName_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string autoReleaseTime_; + long ownerId_; + std::string periodUnit_; + bool autoRenew_; + int networkAttributesSlbUdpTimeout_; + std::string zoneId_; + std::string autoPlacement_; + std::string chargeType_; + int networkAttributesUdpTimeout_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_ALLOCATEDEDICATEDHOSTSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/AllocateEipAddressRequest.h b/ecs/include/alibabacloud/ecs/model/AllocateEipAddressRequest.h index e3c9cdf9e..388859966 100644 --- a/ecs/include/alibabacloud/ecs/model/AllocateEipAddressRequest.h +++ b/ecs/include/alibabacloud/ecs/model/AllocateEipAddressRequest.h @@ -1,75 +1,69 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ALLOCATEEIPADDRESSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_ALLOCATEEIPADDRESSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AllocateEipAddressRequest : public RpcServiceRequest - { - - public: - AllocateEipAddressRequest(); - ~AllocateEipAddressRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getISP()const; - void setISP(const std::string& iSP); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getBandwidth()const; - void setBandwidth(const std::string& bandwidth); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - long getActivityId()const; - void setActivityId(long activityId); - std::string getInternetChargeType()const; - void setInternetChargeType(const std::string& internetChargeType); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string iSP_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string bandwidth_; - std::string ownerAccount_; - long ownerId_; - long activityId_; - std::string internetChargeType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_ALLOCATEEIPADDRESSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ALLOCATEEIPADDRESSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ALLOCATEEIPADDRESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT AllocateEipAddressRequest : public RpcServiceRequest { +public: + AllocateEipAddressRequest(); + ~AllocateEipAddressRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getISP() const; + void setISP(const std::string &iSP); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getBandwidth() const; + void setBandwidth(const std::string &bandwidth); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + long getActivityId() const; + void setActivityId(long activityId); + std::string getInternetChargeType() const; + void setInternetChargeType(const std::string &internetChargeType); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string iSP_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string bandwidth_; + std::string ownerAccount_; + long ownerId_; + long activityId_; + std::string internetChargeType_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_ALLOCATEEIPADDRESSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/AllocatePublicIpAddressRequest.h b/ecs/include/alibabacloud/ecs/model/AllocatePublicIpAddressRequest.h index 4449eaf21..d53be8b7c 100644 --- a/ecs/include/alibabacloud/ecs/model/AllocatePublicIpAddressRequest.h +++ b/ecs/include/alibabacloud/ecs/model/AllocatePublicIpAddressRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ALLOCATEPUBLICIPADDRESSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_ALLOCATEPUBLICIPADDRESSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AllocatePublicIpAddressRequest : public RpcServiceRequest - { - - public: - AllocatePublicIpAddressRequest(); - ~AllocatePublicIpAddressRequest(); - - std::string getIpAddress()const; - void setIpAddress(const std::string& ipAddress); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getVlanId()const; - void setVlanId(const std::string& vlanId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string ipAddress_; - long resourceOwnerId_; - std::string vlanId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_ALLOCATEPUBLICIPADDRESSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ALLOCATEPUBLICIPADDRESSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ALLOCATEPUBLICIPADDRESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT AllocatePublicIpAddressRequest : public RpcServiceRequest { +public: + AllocatePublicIpAddressRequest(); + ~AllocatePublicIpAddressRequest(); + std::string getIpAddress() const; + void setIpAddress(const std::string &ipAddress); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getVlanId() const; + void setVlanId(const std::string &vlanId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string ipAddress_; + long resourceOwnerId_; + std::string vlanId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_ALLOCATEPUBLICIPADDRESSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ApplyAutoSnapshotPolicyRequest.h b/ecs/include/alibabacloud/ecs/model/ApplyAutoSnapshotPolicyRequest.h index 2be8ff13a..cbc4e1ee0 100644 --- a/ecs/include/alibabacloud/ecs/model/ApplyAutoSnapshotPolicyRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ApplyAutoSnapshotPolicyRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_APPLYAUTOSNAPSHOTPOLICYREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_APPLYAUTOSNAPSHOTPOLICYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ApplyAutoSnapshotPolicyRequest : public RpcServiceRequest - { - - public: - ApplyAutoSnapshotPolicyRequest(); - ~ApplyAutoSnapshotPolicyRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAutoSnapshotPolicyId()const; - void setAutoSnapshotPolicyId(const std::string& autoSnapshotPolicyId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getDiskIds()const; - void setDiskIds(const std::string& diskIds); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string autoSnapshotPolicyId_; - std::string regionId_; - std::string diskIds_; - std::string resourceOwnerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_APPLYAUTOSNAPSHOTPOLICYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_APPLYAUTOSNAPSHOTPOLICYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_APPLYAUTOSNAPSHOTPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ApplyAutoSnapshotPolicyRequest : public RpcServiceRequest { +public: + ApplyAutoSnapshotPolicyRequest(); + ~ApplyAutoSnapshotPolicyRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAutoSnapshotPolicyId() const; + void setAutoSnapshotPolicyId(const std::string &autoSnapshotPolicyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDiskIds() const; + void setDiskIds(const std::string &diskIds); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string autoSnapshotPolicyId_; + std::string regionId_; + std::string diskIds_; + std::string resourceOwnerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_APPLYAUTOSNAPSHOTPOLICYREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/AssignIpv6AddressesRequest.h b/ecs/include/alibabacloud/ecs/model/AssignIpv6AddressesRequest.h index ded20d29a..12af7206a 100644 --- a/ecs/include/alibabacloud/ecs/model/AssignIpv6AddressesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/AssignIpv6AddressesRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ASSIGNIPV6ADDRESSESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_ASSIGNIPV6ADDRESSESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AssignIpv6AddressesRequest : public RpcServiceRequest - { - - public: - AssignIpv6AddressesRequest(); - ~AssignIpv6AddressesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - int getIpv6AddressCount()const; - void setIpv6AddressCount(int ipv6AddressCount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getNetworkInterfaceId()const; - void setNetworkInterfaceId(const std::string& networkInterfaceId); - std::vector getIpv6Address()const; - void setIpv6Address(const std::vector& ipv6Address); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - int ipv6AddressCount_; - std::string ownerAccount_; - long ownerId_; - std::string networkInterfaceId_; - std::vector ipv6Address_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_ASSIGNIPV6ADDRESSESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ASSIGNIPV6ADDRESSESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ASSIGNIPV6ADDRESSESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT AssignIpv6AddressesRequest : public RpcServiceRequest { +public: + AssignIpv6AddressesRequest(); + ~AssignIpv6AddressesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + int getIpv6AddressCount() const; + void setIpv6AddressCount(int ipv6AddressCount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getNetworkInterfaceId() const; + void setNetworkInterfaceId(const std::string &networkInterfaceId); + std::vector getIpv6Address() const; + void setIpv6Address(const std::vector &ipv6Address); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + int ipv6AddressCount_; + std::string ownerAccount_; + long ownerId_; + std::string networkInterfaceId_; + std::vector ipv6Address_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_ASSIGNIPV6ADDRESSESREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/AssignPrivateIpAddressesRequest.h b/ecs/include/alibabacloud/ecs/model/AssignPrivateIpAddressesRequest.h index 5aabdbcaf..d73062895 100644 --- a/ecs/include/alibabacloud/ecs/model/AssignPrivateIpAddressesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/AssignPrivateIpAddressesRequest.h @@ -1,72 +1,66 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ASSIGNPRIVATEIPADDRESSESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_ASSIGNPRIVATEIPADDRESSESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AssignPrivateIpAddressesRequest : public RpcServiceRequest - { - - public: - AssignPrivateIpAddressesRequest(); - ~AssignPrivateIpAddressesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - int getSecondaryPrivateIpAddressCount()const; - void setSecondaryPrivateIpAddressCount(int secondaryPrivateIpAddressCount); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::vector getPrivateIpAddress()const; - void setPrivateIpAddress(const std::vector& privateIpAddress); - std::string getNetworkInterfaceId()const; - void setNetworkInterfaceId(const std::string& networkInterfaceId); - - private: - long resourceOwnerId_; - std::string clientToken_; - int secondaryPrivateIpAddressCount_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::vector privateIpAddress_; - std::string networkInterfaceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_ASSIGNPRIVATEIPADDRESSESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ASSIGNPRIVATEIPADDRESSESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ASSIGNPRIVATEIPADDRESSESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT AssignPrivateIpAddressesRequest : public RpcServiceRequest { +public: + AssignPrivateIpAddressesRequest(); + ~AssignPrivateIpAddressesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + int getSecondaryPrivateIpAddressCount() const; + void setSecondaryPrivateIpAddressCount(int secondaryPrivateIpAddressCount); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getPrivateIpAddress() const; + void setPrivateIpAddress(const std::vector &privateIpAddress); + std::string getNetworkInterfaceId() const; + void setNetworkInterfaceId(const std::string &networkInterfaceId); + +private: + long resourceOwnerId_; + std::string clientToken_; + int secondaryPrivateIpAddressCount_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::vector privateIpAddress_; + std::string networkInterfaceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_ASSIGNPRIVATEIPADDRESSESREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/AssociateEipAddressRequest.h b/ecs/include/alibabacloud/ecs/model/AssociateEipAddressRequest.h index 435e3c3d2..23a733dd5 100644 --- a/ecs/include/alibabacloud/ecs/model/AssociateEipAddressRequest.h +++ b/ecs/include/alibabacloud/ecs/model/AssociateEipAddressRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ASSOCIATEEIPADDRESSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_ASSOCIATEEIPADDRESSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AssociateEipAddressRequest : public RpcServiceRequest - { - - public: - AssociateEipAddressRequest(); - ~AssociateEipAddressRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAllocationId()const; - void setAllocationId(const std::string& allocationId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getInstanceType()const; - void setInstanceType(const std::string& instanceType); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - long resourceOwnerId_; - std::string allocationId_; - std::string regionId_; - std::string instanceType_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_ASSOCIATEEIPADDRESSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ASSOCIATEEIPADDRESSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ASSOCIATEEIPADDRESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT AssociateEipAddressRequest : public RpcServiceRequest { +public: + AssociateEipAddressRequest(); + ~AssociateEipAddressRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAllocationId() const; + void setAllocationId(const std::string &allocationId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + long resourceOwnerId_; + std::string allocationId_; + std::string regionId_; + std::string instanceType_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_ASSOCIATEEIPADDRESSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/AssociateHaVipRequest.h b/ecs/include/alibabacloud/ecs/model/AssociateHaVipRequest.h index e0ee24c8a..a444216bf 100644 --- a/ecs/include/alibabacloud/ecs/model/AssociateHaVipRequest.h +++ b/ecs/include/alibabacloud/ecs/model/AssociateHaVipRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ASSOCIATEHAVIPREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_ASSOCIATEHAVIPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AssociateHaVipRequest : public RpcServiceRequest - { - - public: - AssociateHaVipRequest(); - ~AssociateHaVipRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getHaVipId()const; - void setHaVipId(const std::string& haVipId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - std::string haVipId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_ASSOCIATEHAVIPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ASSOCIATEHAVIPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ASSOCIATEHAVIPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT AssociateHaVipRequest : public RpcServiceRequest { +public: + AssociateHaVipRequest(); + ~AssociateHaVipRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getHaVipId() const; + void setHaVipId(const std::string &haVipId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string haVipId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_ASSOCIATEHAVIPREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/AttachClassicLinkVpcRequest.h b/ecs/include/alibabacloud/ecs/model/AttachClassicLinkVpcRequest.h index fb99a4934..b3d89847c 100644 --- a/ecs/include/alibabacloud/ecs/model/AttachClassicLinkVpcRequest.h +++ b/ecs/include/alibabacloud/ecs/model/AttachClassicLinkVpcRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ATTACHCLASSICLINKVPCREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_ATTACHCLASSICLINKVPCREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AttachClassicLinkVpcRequest : public RpcServiceRequest - { - - public: - AttachClassicLinkVpcRequest(); - ~AttachClassicLinkVpcRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getVpcId()const; - void setVpcId(const std::string& vpcId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - long ownerId_; - std::string instanceId_; - std::string vpcId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_ATTACHCLASSICLINKVPCREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ATTACHCLASSICLINKVPCREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ATTACHCLASSICLINKVPCREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT AttachClassicLinkVpcRequest : public RpcServiceRequest { +public: + AttachClassicLinkVpcRequest(); + ~AttachClassicLinkVpcRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string instanceId_; + std::string vpcId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_ATTACHCLASSICLINKVPCREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/AttachDiskRequest.h b/ecs/include/alibabacloud/ecs/model/AttachDiskRequest.h index 0d41c15e1..90289e87c 100644 --- a/ecs/include/alibabacloud/ecs/model/AttachDiskRequest.h +++ b/ecs/include/alibabacloud/ecs/model/AttachDiskRequest.h @@ -1,78 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ATTACHDISKREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_ATTACHDISKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AttachDiskRequest : public RpcServiceRequest - { - - public: - AttachDiskRequest(); - ~AttachDiskRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getKeyPairName()const; - void setKeyPairName(const std::string& keyPairName); - bool getBootable()const; - void setBootable(bool bootable); - std::string getPassword()const; - void setPassword(const std::string& password); - std::string getDiskId()const; - void setDiskId(const std::string& diskId); - bool getDeleteWithInstance()const; - void setDeleteWithInstance(bool deleteWithInstance); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getDevice()const; - void setDevice(const std::string& device); - - private: - long resourceOwnerId_; - std::string keyPairName_; - bool bootable_; - std::string password_; - std::string diskId_; - bool deleteWithInstance_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string instanceId_; - std::string device_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_ATTACHDISKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ATTACHDISKREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ATTACHDISKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT AttachDiskRequest : public RpcServiceRequest { +public: + AttachDiskRequest(); + ~AttachDiskRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getKeyPairName() const; + void setKeyPairName(const std::string &keyPairName); + bool getBootable() const; + void setBootable(bool bootable); + std::string getPassword() const; + void setPassword(const std::string &password); + std::string getDiskId() const; + void setDiskId(const std::string &diskId); + bool getDeleteWithInstance() const; + void setDeleteWithInstance(bool deleteWithInstance); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getDevice() const; + void setDevice(const std::string &device); + +private: + long resourceOwnerId_; + std::string keyPairName_; + bool bootable_; + std::string password_; + std::string diskId_; + bool deleteWithInstance_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; + std::string device_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_ATTACHDISKREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/AttachInstanceRamRoleRequest.h b/ecs/include/alibabacloud/ecs/model/AttachInstanceRamRoleRequest.h index f2a9bfa8a..906b068ac 100644 --- a/ecs/include/alibabacloud/ecs/model/AttachInstanceRamRoleRequest.h +++ b/ecs/include/alibabacloud/ecs/model/AttachInstanceRamRoleRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ATTACHINSTANCERAMROLEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_ATTACHINSTANCERAMROLEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AttachInstanceRamRoleRequest : public RpcServiceRequest - { - - public: - AttachInstanceRamRoleRequest(); - ~AttachInstanceRamRoleRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getPolicy()const; - void setPolicy(const std::string& policy); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getRamRoleName()const; - void setRamRoleName(const std::string& ramRoleName); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceIds()const; - void setInstanceIds(const std::string& instanceIds); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string policy_; - std::string resourceOwnerAccount_; - std::string ramRoleName_; - long ownerId_; - std::string instanceIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_ATTACHINSTANCERAMROLEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ATTACHINSTANCERAMROLEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ATTACHINSTANCERAMROLEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT AttachInstanceRamRoleRequest : public RpcServiceRequest { +public: + AttachInstanceRamRoleRequest(); + ~AttachInstanceRamRoleRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getPolicy() const; + void setPolicy(const std::string &policy); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getRamRoleName() const; + void setRamRoleName(const std::string &ramRoleName); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceIds() const; + void setInstanceIds(const std::string &instanceIds); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string policy_; + std::string resourceOwnerAccount_; + std::string ramRoleName_; + long ownerId_; + std::string instanceIds_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_ATTACHINSTANCERAMROLEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/AttachKeyPairRequest.h b/ecs/include/alibabacloud/ecs/model/AttachKeyPairRequest.h index 2b7398770..d13328bd8 100644 --- a/ecs/include/alibabacloud/ecs/model/AttachKeyPairRequest.h +++ b/ecs/include/alibabacloud/ecs/model/AttachKeyPairRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ATTACHKEYPAIRREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_ATTACHKEYPAIRREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AttachKeyPairRequest : public RpcServiceRequest - { - - public: - AttachKeyPairRequest(); - ~AttachKeyPairRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getKeyPairName()const; - void setKeyPairName(const std::string& keyPairName); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceIds()const; - void setInstanceIds(const std::string& instanceIds); - - private: - long resourceOwnerId_; - std::string keyPairName_; - std::string regionId_; - std::string resourceOwnerAccount_; - long ownerId_; - std::string instanceIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_ATTACHKEYPAIRREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ATTACHKEYPAIRREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ATTACHKEYPAIRREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT AttachKeyPairRequest : public RpcServiceRequest { +public: + AttachKeyPairRequest(); + ~AttachKeyPairRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getKeyPairName() const; + void setKeyPairName(const std::string &keyPairName); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceIds() const; + void setInstanceIds(const std::string &instanceIds); + +private: + long resourceOwnerId_; + std::string keyPairName_; + std::string regionId_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string instanceIds_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_ATTACHKEYPAIRREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/AttachNetworkInterfaceRequest.h b/ecs/include/alibabacloud/ecs/model/AttachNetworkInterfaceRequest.h index bac3e9a90..1be354e3e 100644 --- a/ecs/include/alibabacloud/ecs/model/AttachNetworkInterfaceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/AttachNetworkInterfaceRequest.h @@ -1,72 +1,66 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ATTACHNETWORKINTERFACEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_ATTACHNETWORKINTERFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AttachNetworkInterfaceRequest : public RpcServiceRequest - { - - public: - AttachNetworkInterfaceRequest(); - ~AttachNetworkInterfaceRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getTrunkNetworkInstanceId()const; - void setTrunkNetworkInstanceId(const std::string& trunkNetworkInstanceId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - bool getWaitForNetworkConfigurationReady()const; - void setWaitForNetworkConfigurationReady(bool waitForNetworkConfigurationReady); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getNetworkInterfaceId()const; - void setNetworkInterfaceId(const std::string& networkInterfaceId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string trunkNetworkInstanceId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - bool waitForNetworkConfigurationReady_; - long ownerId_; - std::string instanceId_; - std::string networkInterfaceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_ATTACHNETWORKINTERFACEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ATTACHNETWORKINTERFACEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ATTACHNETWORKINTERFACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT AttachNetworkInterfaceRequest : public RpcServiceRequest { +public: + AttachNetworkInterfaceRequest(); + ~AttachNetworkInterfaceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getTrunkNetworkInstanceId() const; + void setTrunkNetworkInstanceId(const std::string &trunkNetworkInstanceId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + bool getWaitForNetworkConfigurationReady() const; + void setWaitForNetworkConfigurationReady(bool waitForNetworkConfigurationReady); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getNetworkInterfaceId() const; + void setNetworkInterfaceId(const std::string &networkInterfaceId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string trunkNetworkInstanceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + bool waitForNetworkConfigurationReady_; + long ownerId_; + std::string instanceId_; + std::string networkInterfaceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_ATTACHNETWORKINTERFACEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupEgressRequest.h b/ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupEgressRequest.h index fccae4bb7..4a809e5f7 100644 --- a/ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupEgressRequest.h +++ b/ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupEgressRequest.h @@ -1,111 +1,105 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_AUTHORIZESECURITYGROUPEGRESSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_AUTHORIZESECURITYGROUPEGRESSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AuthorizeSecurityGroupEgressRequest : public RpcServiceRequest - { - - public: - AuthorizeSecurityGroupEgressRequest(); - ~AuthorizeSecurityGroupEgressRequest(); - - std::string getNicType()const; - void setNicType(const std::string& nicType); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getSourcePortRange()const; - void setSourcePortRange(const std::string& sourcePortRange); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getDestPrefixListId()const; - void setDestPrefixListId(const std::string& destPrefixListId); - std::string getSecurityGroupId()const; - void setSecurityGroupId(const std::string& securityGroupId); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getIpv6DestCidrIp()const; - void setIpv6DestCidrIp(const std::string& ipv6DestCidrIp); - std::string getIpv6SourceCidrIp()const; - void setIpv6SourceCidrIp(const std::string& ipv6SourceCidrIp); - std::string getPolicy()const; - void setPolicy(const std::string& policy); - std::string getPortRange()const; - void setPortRange(const std::string& portRange); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getIpProtocol()const; - void setIpProtocol(const std::string& ipProtocol); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getSourceCidrIp()const; - void setSourceCidrIp(const std::string& sourceCidrIp); - std::string getDestGroupId()const; - void setDestGroupId(const std::string& destGroupId); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getDestGroupOwnerAccount()const; - void setDestGroupOwnerAccount(const std::string& destGroupOwnerAccount); - std::string getPriority()const; - void setPriority(const std::string& priority); - std::string getDestCidrIp()const; - void setDestCidrIp(const std::string& destCidrIp); - long getDestGroupOwnerId()const; - void setDestGroupOwnerId(long destGroupOwnerId); - - private: - std::string nicType_; - long resourceOwnerId_; - std::string sourcePortRange_; - std::string clientToken_; - std::string destPrefixListId_; - std::string securityGroupId_; - std::string description_; - std::string regionId_; - std::string ipv6DestCidrIp_; - std::string ipv6SourceCidrIp_; - std::string policy_; - std::string portRange_; - std::string resourceOwnerAccount_; - std::string ipProtocol_; - std::string ownerAccount_; - std::string sourceCidrIp_; - std::string destGroupId_; - long ownerId_; - std::string destGroupOwnerAccount_; - std::string priority_; - std::string destCidrIp_; - long destGroupOwnerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_AUTHORIZESECURITYGROUPEGRESSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_AUTHORIZESECURITYGROUPEGRESSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_AUTHORIZESECURITYGROUPEGRESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT AuthorizeSecurityGroupEgressRequest : public RpcServiceRequest { +public: + AuthorizeSecurityGroupEgressRequest(); + ~AuthorizeSecurityGroupEgressRequest(); + std::string getNicType() const; + void setNicType(const std::string &nicType); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourcePortRange() const; + void setSourcePortRange(const std::string &sourcePortRange); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDestPrefixListId() const; + void setDestPrefixListId(const std::string &destPrefixListId); + std::string getSecurityGroupId() const; + void setSecurityGroupId(const std::string &securityGroupId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getIpv6DestCidrIp() const; + void setIpv6DestCidrIp(const std::string &ipv6DestCidrIp); + std::string getIpv6SourceCidrIp() const; + void setIpv6SourceCidrIp(const std::string &ipv6SourceCidrIp); + std::string getPolicy() const; + void setPolicy(const std::string &policy); + std::string getPortRange() const; + void setPortRange(const std::string &portRange); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getIpProtocol() const; + void setIpProtocol(const std::string &ipProtocol); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getSourceCidrIp() const; + void setSourceCidrIp(const std::string &sourceCidrIp); + std::string getDestGroupId() const; + void setDestGroupId(const std::string &destGroupId); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getDestGroupOwnerAccount() const; + void setDestGroupOwnerAccount(const std::string &destGroupOwnerAccount); + std::string getPriority() const; + void setPriority(const std::string &priority); + std::string getDestCidrIp() const; + void setDestCidrIp(const std::string &destCidrIp); + long getDestGroupOwnerId() const; + void setDestGroupOwnerId(long destGroupOwnerId); + +private: + std::string nicType_; + long resourceOwnerId_; + std::string sourcePortRange_; + std::string clientToken_; + std::string destPrefixListId_; + std::string securityGroupId_; + std::string description_; + std::string regionId_; + std::string ipv6DestCidrIp_; + std::string ipv6SourceCidrIp_; + std::string policy_; + std::string portRange_; + std::string resourceOwnerAccount_; + std::string ipProtocol_; + std::string ownerAccount_; + std::string sourceCidrIp_; + std::string destGroupId_; + long ownerId_; + std::string destGroupOwnerAccount_; + std::string priority_; + std::string destCidrIp_; + long destGroupOwnerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_AUTHORIZESECURITYGROUPEGRESSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupRequest.h b/ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupRequest.h index 8c33eea55..2dcb76133 100644 --- a/ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupRequest.h +++ b/ecs/include/alibabacloud/ecs/model/AuthorizeSecurityGroupRequest.h @@ -1,111 +1,105 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_AUTHORIZESECURITYGROUPREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_AUTHORIZESECURITYGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT AuthorizeSecurityGroupRequest : public RpcServiceRequest - { - - public: - AuthorizeSecurityGroupRequest(); - ~AuthorizeSecurityGroupRequest(); - - std::string getNicType()const; - void setNicType(const std::string& nicType); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getSourcePrefixListId()const; - void setSourcePrefixListId(const std::string& sourcePrefixListId); - std::string getSourcePortRange()const; - void setSourcePortRange(const std::string& sourcePortRange); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getSecurityGroupId()const; - void setSecurityGroupId(const std::string& securityGroupId); - std::string getDescription()const; - void setDescription(const std::string& description); - long getSourceGroupOwnerId()const; - void setSourceGroupOwnerId(long sourceGroupOwnerId); - std::string getSourceGroupOwnerAccount()const; - void setSourceGroupOwnerAccount(const std::string& sourceGroupOwnerAccount); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getIpv6SourceCidrIp()const; - void setIpv6SourceCidrIp(const std::string& ipv6SourceCidrIp); - std::string getIpv6DestCidrIp()const; - void setIpv6DestCidrIp(const std::string& ipv6DestCidrIp); - std::string getPolicy()const; - void setPolicy(const std::string& policy); - std::string getPortRange()const; - void setPortRange(const std::string& portRange); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getIpProtocol()const; - void setIpProtocol(const std::string& ipProtocol); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getSourceCidrIp()const; - void setSourceCidrIp(const std::string& sourceCidrIp); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPriority()const; - void setPriority(const std::string& priority); - std::string getDestCidrIp()const; - void setDestCidrIp(const std::string& destCidrIp); - std::string getSourceGroupId()const; - void setSourceGroupId(const std::string& sourceGroupId); - - private: - std::string nicType_; - long resourceOwnerId_; - std::string sourcePrefixListId_; - std::string sourcePortRange_; - std::string clientToken_; - std::string securityGroupId_; - std::string description_; - long sourceGroupOwnerId_; - std::string sourceGroupOwnerAccount_; - std::string regionId_; - std::string ipv6SourceCidrIp_; - std::string ipv6DestCidrIp_; - std::string policy_; - std::string portRange_; - std::string resourceOwnerAccount_; - std::string ipProtocol_; - std::string ownerAccount_; - std::string sourceCidrIp_; - long ownerId_; - std::string priority_; - std::string destCidrIp_; - std::string sourceGroupId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_AUTHORIZESECURITYGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_AUTHORIZESECURITYGROUPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_AUTHORIZESECURITYGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT AuthorizeSecurityGroupRequest : public RpcServiceRequest { +public: + AuthorizeSecurityGroupRequest(); + ~AuthorizeSecurityGroupRequest(); + std::string getNicType() const; + void setNicType(const std::string &nicType); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourcePrefixListId() const; + void setSourcePrefixListId(const std::string &sourcePrefixListId); + std::string getSourcePortRange() const; + void setSourcePortRange(const std::string &sourcePortRange); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getSecurityGroupId() const; + void setSecurityGroupId(const std::string &securityGroupId); + std::string getDescription() const; + void setDescription(const std::string &description); + long getSourceGroupOwnerId() const; + void setSourceGroupOwnerId(long sourceGroupOwnerId); + std::string getSourceGroupOwnerAccount() const; + void setSourceGroupOwnerAccount(const std::string &sourceGroupOwnerAccount); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getIpv6SourceCidrIp() const; + void setIpv6SourceCidrIp(const std::string &ipv6SourceCidrIp); + std::string getIpv6DestCidrIp() const; + void setIpv6DestCidrIp(const std::string &ipv6DestCidrIp); + std::string getPolicy() const; + void setPolicy(const std::string &policy); + std::string getPortRange() const; + void setPortRange(const std::string &portRange); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getIpProtocol() const; + void setIpProtocol(const std::string &ipProtocol); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getSourceCidrIp() const; + void setSourceCidrIp(const std::string &sourceCidrIp); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPriority() const; + void setPriority(const std::string &priority); + std::string getDestCidrIp() const; + void setDestCidrIp(const std::string &destCidrIp); + std::string getSourceGroupId() const; + void setSourceGroupId(const std::string &sourceGroupId); + +private: + std::string nicType_; + long resourceOwnerId_; + std::string sourcePrefixListId_; + std::string sourcePortRange_; + std::string clientToken_; + std::string securityGroupId_; + std::string description_; + long sourceGroupOwnerId_; + std::string sourceGroupOwnerAccount_; + std::string regionId_; + std::string ipv6SourceCidrIp_; + std::string ipv6DestCidrIp_; + std::string policy_; + std::string portRange_; + std::string resourceOwnerAccount_; + std::string ipProtocol_; + std::string ownerAccount_; + std::string sourceCidrIp_; + long ownerId_; + std::string priority_; + std::string destCidrIp_; + std::string sourceGroupId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_AUTHORIZESECURITYGROUPREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/CancelAutoSnapshotPolicyRequest.h b/ecs/include/alibabacloud/ecs/model/CancelAutoSnapshotPolicyRequest.h index 98070ace1..de81ecb74 100644 --- a/ecs/include/alibabacloud/ecs/model/CancelAutoSnapshotPolicyRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CancelAutoSnapshotPolicyRequest.h @@ -1,60 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CANCELAUTOSNAPSHOTPOLICYREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CANCELAUTOSNAPSHOTPOLICYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CancelAutoSnapshotPolicyRequest : public RpcServiceRequest - { - - public: - CancelAutoSnapshotPolicyRequest(); - ~CancelAutoSnapshotPolicyRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getDiskIds()const; - void setDiskIds(const std::string& diskIds); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string diskIds_; - std::string resourceOwnerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_CANCELAUTOSNAPSHOTPOLICYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CANCELAUTOSNAPSHOTPOLICYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CANCELAUTOSNAPSHOTPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT CancelAutoSnapshotPolicyRequest : public RpcServiceRequest { +public: + CancelAutoSnapshotPolicyRequest(); + ~CancelAutoSnapshotPolicyRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDiskIds() const; + void setDiskIds(const std::string &diskIds); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string diskIds_; + std::string resourceOwnerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_CANCELAUTOSNAPSHOTPOLICYREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/CancelCopyImageRequest.h b/ecs/include/alibabacloud/ecs/model/CancelCopyImageRequest.h index 01a8bb843..429185793 100644 --- a/ecs/include/alibabacloud/ecs/model/CancelCopyImageRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CancelCopyImageRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CANCELCOPYIMAGEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CANCELCOPYIMAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CancelCopyImageRequest : public RpcServiceRequest - { - - public: - CancelCopyImageRequest(); - ~CancelCopyImageRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getImageId()const; - void setImageId(const std::string& imageId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string imageId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_CANCELCOPYIMAGEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CANCELCOPYIMAGEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CANCELCOPYIMAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT CancelCopyImageRequest : public RpcServiceRequest { +public: + CancelCopyImageRequest(); + ~CancelCopyImageRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getImageId() const; + void setImageId(const std::string &imageId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string imageId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_CANCELCOPYIMAGEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/CancelImagePipelineExecutionRequest.h b/ecs/include/alibabacloud/ecs/model/CancelImagePipelineExecutionRequest.h index 4e309557e..84e3e6e31 100644 --- a/ecs/include/alibabacloud/ecs/model/CancelImagePipelineExecutionRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CancelImagePipelineExecutionRequest.h @@ -1,72 +1,64 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CANCELIMAGEPIPELINEEXECUTIONREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CANCELIMAGEPIPELINEEXECUTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CancelImagePipelineExecutionRequest : public RpcServiceRequest - { - public: - struct TemplateTag - { - std::string key; - std::string value; - }; - - public: - CancelImagePipelineExecutionRequest(); - ~CancelImagePipelineExecutionRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getExecutionId()const; - void setExecutionId(const std::string& executionId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::vector getTemplateTag()const; - void setTemplateTag(const std::vector& templateTag); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string executionId_; - std::string regionId_; - std::vector templateTag_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_CANCELIMAGEPIPELINEEXECUTIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CANCELIMAGEPIPELINEEXECUTIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CANCELIMAGEPIPELINEEXECUTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT CancelImagePipelineExecutionRequest : public RpcServiceRequest { +public: + struct TemplateTag { + std::string key; + std::string value; + }; + CancelImagePipelineExecutionRequest(); + ~CancelImagePipelineExecutionRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getExecutionId() const; + void setExecutionId(const std::string &executionId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getTemplateTag() const; + void setTemplateTag(const std::vector &templateTag); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string executionId_; + std::string regionId_; + std::vector templateTag_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_CANCELIMAGEPIPELINEEXECUTIONREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/CancelPhysicalConnectionRequest.h b/ecs/include/alibabacloud/ecs/model/CancelPhysicalConnectionRequest.h index e6c6fc7bb..a43e95a66 100644 --- a/ecs/include/alibabacloud/ecs/model/CancelPhysicalConnectionRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CancelPhysicalConnectionRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CANCELPHYSICALCONNECTIONREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CANCELPHYSICALCONNECTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CancelPhysicalConnectionRequest : public RpcServiceRequest - { - - public: - CancelPhysicalConnectionRequest(); - ~CancelPhysicalConnectionRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getUserCidr()const; - void setUserCidr(const std::string& userCidr); - std::string getResourceOwnerAccount()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 getPhysicalConnectionId()const; - void setPhysicalConnectionId(const std::string& physicalConnectionId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - std::string userCidr_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string physicalConnectionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_CANCELPHYSICALCONNECTIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CANCELPHYSICALCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CANCELPHYSICALCONNECTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT CancelPhysicalConnectionRequest : public RpcServiceRequest { +public: + CancelPhysicalConnectionRequest(); + ~CancelPhysicalConnectionRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getUserCidr() const; + void setUserCidr(const std::string &userCidr); + std::string getResourceOwnerAccount() 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 getPhysicalConnectionId() const; + void setPhysicalConnectionId(const std::string &physicalConnectionId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string userCidr_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string physicalConnectionId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_CANCELPHYSICALCONNECTIONREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/CancelSimulatedSystemEventsRequest.h b/ecs/include/alibabacloud/ecs/model/CancelSimulatedSystemEventsRequest.h index 7c7534a0e..0e97b2f01 100644 --- a/ecs/include/alibabacloud/ecs/model/CancelSimulatedSystemEventsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CancelSimulatedSystemEventsRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CANCELSIMULATEDSYSTEMEVENTSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CANCELSIMULATEDSYSTEMEVENTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CancelSimulatedSystemEventsRequest : public RpcServiceRequest - { - - public: - CancelSimulatedSystemEventsRequest(); - ~CancelSimulatedSystemEventsRequest(); - - std::vector getEventId()const; - void setEventId(const std::vector& eventId); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - std::vector eventId_; - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_CANCELSIMULATEDSYSTEMEVENTSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CANCELSIMULATEDSYSTEMEVENTSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CANCELSIMULATEDSYSTEMEVENTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT CancelSimulatedSystemEventsRequest : public RpcServiceRequest { +public: + CancelSimulatedSystemEventsRequest(); + ~CancelSimulatedSystemEventsRequest(); + std::vector getEventId() const; + void setEventId(const std::vector &eventId); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::vector eventId_; + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_CANCELSIMULATEDSYSTEMEVENTSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/CancelTaskRequest.h b/ecs/include/alibabacloud/ecs/model/CancelTaskRequest.h index a00cb65cc..77e226847 100644 --- a/ecs/include/alibabacloud/ecs/model/CancelTaskRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CancelTaskRequest.h @@ -1,60 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CANCELTASKREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CANCELTASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CancelTaskRequest : public RpcServiceRequest - { - - public: - CancelTaskRequest(); - ~CancelTaskRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getTaskId()const; - void setTaskId(const std::string& taskId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string taskId_; - std::string resourceOwnerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_CANCELTASKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CANCELTASKREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CANCELTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT CancelTaskRequest : public RpcServiceRequest { +public: + CancelTaskRequest(); + ~CancelTaskRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getTaskId() const; + void setTaskId(const std::string &taskId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string taskId_; + std::string resourceOwnerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_CANCELTASKREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ConnectRouterInterfaceRequest.h b/ecs/include/alibabacloud/ecs/model/ConnectRouterInterfaceRequest.h index 8146d0fcb..be9d8b3a1 100644 --- a/ecs/include/alibabacloud/ecs/model/ConnectRouterInterfaceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ConnectRouterInterfaceRequest.h @@ -1,60 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CONNECTROUTERINTERFACEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CONNECTROUTERINTERFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ConnectRouterInterfaceRequest : public RpcServiceRequest - { - - public: - ConnectRouterInterfaceRequest(); - ~ConnectRouterInterfaceRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getRouterInterfaceId()const; - void setRouterInterfaceId(const std::string& routerInterfaceId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - long ownerId_; - std::string routerInterfaceId_; - std::string regionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_CONNECTROUTERINTERFACEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CONNECTROUTERINTERFACEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CONNECTROUTERINTERFACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ConnectRouterInterfaceRequest : public RpcServiceRequest { +public: + ConnectRouterInterfaceRequest(); + ~ConnectRouterInterfaceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getRouterInterfaceId() const; + void setRouterInterfaceId(const std::string &routerInterfaceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string routerInterfaceId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_CONNECTROUTERINTERFACEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ConvertNatPublicIpToEipRequest.h b/ecs/include/alibabacloud/ecs/model/ConvertNatPublicIpToEipRequest.h index b65e1f240..9965308c5 100644 --- a/ecs/include/alibabacloud/ecs/model/ConvertNatPublicIpToEipRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ConvertNatPublicIpToEipRequest.h @@ -1,60 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CONVERTNATPUBLICIPTOEIPREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CONVERTNATPUBLICIPTOEIPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ConvertNatPublicIpToEipRequest : public RpcServiceRequest - { - - public: - ConvertNatPublicIpToEipRequest(); - ~ConvertNatPublicIpToEipRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - long ownerId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_CONVERTNATPUBLICIPTOEIPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CONVERTNATPUBLICIPTOEIPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CONVERTNATPUBLICIPTOEIPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ConvertNatPublicIpToEipRequest : public RpcServiceRequest { +public: + ConvertNatPublicIpToEipRequest(); + ~ConvertNatPublicIpToEipRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_CONVERTNATPUBLICIPTOEIPREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/CopyImageRequest.h b/ecs/include/alibabacloud/ecs/model/CopyImageRequest.h index 6bf9f0a8e..cb153159c 100644 --- a/ecs/include/alibabacloud/ecs/model/CopyImageRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CopyImageRequest.h @@ -1,93 +1,85 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_COPYIMAGEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_COPYIMAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CopyImageRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - - public: - CopyImageRequest(); - ~CopyImageRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getImageId()const; - void setImageId(const std::string& imageId); - std::string getEncryptAlgorithm()const; - void setEncryptAlgorithm(const std::string& encryptAlgorithm); - std::string getDestinationRegionId()const; - void setDestinationRegionId(const std::string& destinationRegionId); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getDestinationImageName()const; - void setDestinationImageName(const std::string& destinationImageName); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - bool getEncrypted()const; - void setEncrypted(bool encrypted); - std::string getKMSKeyId()const; - void setKMSKeyId(const std::string& kMSKeyId); - std::string getDestinationDescription()const; - void setDestinationDescription(const std::string& destinationDescription); - - private: - long resourceOwnerId_; - std::string imageId_; - std::string encryptAlgorithm_; - std::string destinationRegionId_; - std::string resourceGroupId_; - std::string regionId_; - std::vector tag_; - std::string resourceOwnerAccount_; - std::string destinationImageName_; - std::string ownerAccount_; - long ownerId_; - bool encrypted_; - std::string kMSKeyId_; - std::string destinationDescription_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_COPYIMAGEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_COPYIMAGEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_COPYIMAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT CopyImageRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + CopyImageRequest(); + ~CopyImageRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getImageId() const; + void setImageId(const std::string &imageId); + std::string getEncryptAlgorithm() const; + void setEncryptAlgorithm(const std::string &encryptAlgorithm); + std::string getDestinationRegionId() const; + void setDestinationRegionId(const std::string &destinationRegionId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDestinationImageName() const; + void setDestinationImageName(const std::string &destinationImageName); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + bool getEncrypted() const; + void setEncrypted(bool encrypted); + std::string getKMSKeyId() const; + void setKMSKeyId(const std::string &kMSKeyId); + std::string getDestinationDescription() const; + void setDestinationDescription(const std::string &destinationDescription); + +private: + long resourceOwnerId_; + std::string imageId_; + std::string encryptAlgorithm_; + std::string destinationRegionId_; + std::string resourceGroupId_; + std::string regionId_; + std::vector tag_; + std::string resourceOwnerAccount_; + std::string destinationImageName_; + std::string ownerAccount_; + long ownerId_; + bool encrypted_; + std::string kMSKeyId_; + std::string destinationDescription_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_COPYIMAGEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/CopySnapshotRequest.h b/ecs/include/alibabacloud/ecs/model/CopySnapshotRequest.h index cac6cc814..f41e30334 100644 --- a/ecs/include/alibabacloud/ecs/model/CopySnapshotRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CopySnapshotRequest.h @@ -1,84 +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_ECS_MODEL_COPYSNAPSHOTREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_COPYSNAPSHOTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CopySnapshotRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string key; - std::string value; - }; - - public: - CopySnapshotRequest(); - ~CopySnapshotRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getSnapshotId()const; - void setSnapshotId(const std::string& snapshotId); - std::string getDestinationRegionId()const; - void setDestinationRegionId(const std::string& destinationRegionId); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getDestinationSnapshotName()const; - void setDestinationSnapshotName(const std::string& destinationSnapshotName); - std::string getDestinationSnapshotDescription()const; - void setDestinationSnapshotDescription(const std::string& destinationSnapshotDescription); - int getRetentionDays()const; - void setRetentionDays(int retentionDays); - - private: - long resourceOwnerId_; - std::string snapshotId_; - std::string destinationRegionId_; - std::string resourceGroupId_; - std::string regionId_; - std::vector tag_; - std::string resourceOwnerAccount_; - long ownerId_; - std::string destinationSnapshotName_; - std::string destinationSnapshotDescription_; - int retentionDays_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_COPYSNAPSHOTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_COPYSNAPSHOTREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_COPYSNAPSHOTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT CopySnapshotRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + CopySnapshotRequest(); + ~CopySnapshotRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSnapshotId() const; + void setSnapshotId(const std::string &snapshotId); + std::string getDestinationRegionId() const; + void setDestinationRegionId(const std::string &destinationRegionId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getDestinationSnapshotName() const; + void setDestinationSnapshotName(const std::string &destinationSnapshotName); + std::string getDestinationSnapshotDescription() const; + void setDestinationSnapshotDescription(const std::string &destinationSnapshotDescription); + int getRetentionDays() const; + void setRetentionDays(int retentionDays); + +private: + long resourceOwnerId_; + std::string snapshotId_; + std::string destinationRegionId_; + std::string resourceGroupId_; + std::string regionId_; + std::vector tag_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string destinationSnapshotName_; + std::string destinationSnapshotDescription_; + int retentionDays_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_COPYSNAPSHOTREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/CreateActivationRequest.h b/ecs/include/alibabacloud/ecs/model/CreateActivationRequest.h index 88b45f51a..28526d461 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateActivationRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateActivationRequest.h @@ -1,75 +1,69 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATEACTIVATIONREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEACTIVATIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateActivationRequest : public RpcServiceRequest - { - - public: - CreateActivationRequest(); - ~CreateActivationRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getInstanceCount()const; - void setInstanceCount(int instanceCount); - std::string getResourceOwnerAccount()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 getInstanceName()const; - void setInstanceName(const std::string& instanceName); - long getTimeToLiveInHours()const; - void setTimeToLiveInHours(long timeToLiveInHours); - std::string getIpAddressRange()const; - void setIpAddressRange(const std::string& ipAddressRange); - - private: - long resourceOwnerId_; - std::string description_; - std::string regionId_; - int instanceCount_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string instanceName_; - long timeToLiveInHours_; - std::string ipAddressRange_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_CREATEACTIVATIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEACTIVATIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEACTIVATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT CreateActivationRequest : public RpcServiceRequest { +public: + CreateActivationRequest(); + ~CreateActivationRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getInstanceCount() const; + void setInstanceCount(int instanceCount); + std::string getResourceOwnerAccount() 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 getInstanceName() const; + void setInstanceName(const std::string &instanceName); + long getTimeToLiveInHours() const; + void setTimeToLiveInHours(long timeToLiveInHours); + std::string getIpAddressRange() const; + void setIpAddressRange(const std::string &ipAddressRange); + +private: + long resourceOwnerId_; + std::string description_; + std::string regionId_; + int instanceCount_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceName_; + long timeToLiveInHours_; + std::string ipAddressRange_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEACTIVATIONREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/CreateAutoProvisioningGroupRequest.h b/ecs/include/alibabacloud/ecs/model/CreateAutoProvisioningGroupRequest.h index c40e9d71c..e851eb193 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateAutoProvisioningGroupRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateAutoProvisioningGroupRequest.h @@ -1,248 +1,236 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATEAUTOPROVISIONINGGROUPREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEAUTOPROVISIONINGGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateAutoProvisioningGroupRequest : public RpcServiceRequest - { - public: - struct LaunchConfigurationDataDisk - { - std::string performanceLevel; - std::string kmsKeyId; - std::string description; - std::string snapshotId; - int size; - std::string device; - std::string diskName; - std::string category; - bool deleteWithInstance; - bool encrypted; - }; - struct SystemDiskConfig - { - std::string diskCategory; - }; - struct DataDiskConfig - { - std::string diskCategory; - }; - struct LaunchTemplateConfig - { - std::string vSwitchId; - double maxPrice; - int priority; - std::string instanceType; - double weightedCapacity; - }; - struct LaunchConfigurationTag - { - std::string key; - std::string value; - }; - - public: - CreateAutoProvisioningGroupRequest(); - ~CreateAutoProvisioningGroupRequest(); - - std::vector getLaunchConfigurationDataDisk()const; - void setLaunchConfigurationDataDisk(const std::vector& launchConfigurationDataDisk); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getLaunchConfigurationSystemDiskCategory()const; - void setLaunchConfigurationSystemDiskCategory(const std::string& launchConfigurationSystemDiskCategory); - std::string getAutoProvisioningGroupType()const; - void setAutoProvisioningGroupType(const std::string& autoProvisioningGroupType); - std::string getLaunchConfigurationSystemDiskPerformanceLevel()const; - void setLaunchConfigurationSystemDiskPerformanceLevel(const std::string& launchConfigurationSystemDiskPerformanceLevel); - std::vector getLaunchConfigurationHostNames()const; - void setLaunchConfigurationHostNames(const std::vector& launchConfigurationHostNames); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getLaunchConfigurationImageId()const; - void setLaunchConfigurationImageId(const std::string& launchConfigurationImageId); - std::string getLaunchConfigurationResourceGroupId()const; - void setLaunchConfigurationResourceGroupId(const std::string& launchConfigurationResourceGroupId); - std::string getLaunchConfigurationPassword()const; - void setLaunchConfigurationPassword(const std::string& launchConfigurationPassword); - std::string getPayAsYouGoAllocationStrategy()const; - void setPayAsYouGoAllocationStrategy(const std::string& payAsYouGoAllocationStrategy); - std::string getDefaultTargetCapacityType()const; - void setDefaultTargetCapacityType(const std::string& defaultTargetCapacityType); - std::string getLaunchConfigurationKeyPairName()const; - void setLaunchConfigurationKeyPairName(const std::string& launchConfigurationKeyPairName); - std::vector getSystemDiskConfig()const; - void setSystemDiskConfig(const std::vector& systemDiskConfig); - std::vector getDataDiskConfig()const; - void setDataDiskConfig(const std::vector& dataDiskConfig); - std::string getValidUntil()const; - void setValidUntil(const std::string& validUntil); - std::string getLaunchTemplateId()const; - void setLaunchTemplateId(const std::string& launchTemplateId); - long getOwnerId()const; - void setOwnerId(long ownerId); - int getLaunchConfigurationSystemDiskSize()const; - void setLaunchConfigurationSystemDiskSize(int launchConfigurationSystemDiskSize); - int getLaunchConfigurationInternetMaxBandwidthOut()const; - void setLaunchConfigurationInternetMaxBandwidthOut(int launchConfigurationInternetMaxBandwidthOut); - std::string getLaunchConfigurationHostName()const; - void setLaunchConfigurationHostName(const std::string& launchConfigurationHostName); - std::string getMinTargetCapacity()const; - void setMinTargetCapacity(const std::string& minTargetCapacity); - float getMaxSpotPrice()const; - void setMaxSpotPrice(float maxSpotPrice); - bool getLaunchConfigurationPasswordInherit()const; - void setLaunchConfigurationPasswordInherit(bool launchConfigurationPasswordInherit); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getLaunchConfigurationSecurityGroupId()const; - void setLaunchConfigurationSecurityGroupId(const std::string& launchConfigurationSecurityGroupId); - std::string getDescription()const; - void setDescription(const std::string& description); - bool getTerminateInstancesWithExpiration()const; - void setTerminateInstancesWithExpiration(bool terminateInstancesWithExpiration); - std::string getLaunchConfigurationUserData()const; - void setLaunchConfigurationUserData(const std::string& launchConfigurationUserData); - std::string getLaunchConfigurationCreditSpecification()const; - void setLaunchConfigurationCreditSpecification(const std::string& launchConfigurationCreditSpecification); - std::string getLaunchConfigurationInstanceName()const; - void setLaunchConfigurationInstanceName(const std::string& launchConfigurationInstanceName); - std::string getLaunchConfigurationInstanceDescription()const; - void setLaunchConfigurationInstanceDescription(const std::string& launchConfigurationInstanceDescription); - std::string getSpotAllocationStrategy()const; - void setSpotAllocationStrategy(const std::string& spotAllocationStrategy); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - bool getTerminateInstances()const; - void setTerminateInstances(bool terminateInstances); - std::string getLaunchConfigurationSystemDiskName()const; - void setLaunchConfigurationSystemDiskName(const std::string& launchConfigurationSystemDiskName); - std::string getLaunchConfigurationSystemDiskDescription()const; - void setLaunchConfigurationSystemDiskDescription(const std::string& launchConfigurationSystemDiskDescription); - std::string getExcessCapacityTerminationPolicy()const; - void setExcessCapacityTerminationPolicy(const std::string& excessCapacityTerminationPolicy); - std::vector getLaunchTemplateConfig()const; - void setLaunchTemplateConfig(const std::vector& launchTemplateConfig); - std::string getLaunchConfigurationRamRoleName()const; - void setLaunchConfigurationRamRoleName(const std::string& launchConfigurationRamRoleName); - int getLaunchConfigurationInternetMaxBandwidthIn()const; - void setLaunchConfigurationInternetMaxBandwidthIn(int launchConfigurationInternetMaxBandwidthIn); - std::string getSpotInstanceInterruptionBehavior()const; - void setSpotInstanceInterruptionBehavior(const std::string& spotInstanceInterruptionBehavior); - std::string getLaunchConfigurationSecurityEnhancementStrategy()const; - void setLaunchConfigurationSecurityEnhancementStrategy(const std::string& launchConfigurationSecurityEnhancementStrategy); - std::vector getLaunchConfigurationTag()const; - void setLaunchConfigurationTag(const std::vector& launchConfigurationTag); - std::string getLaunchConfigurationDeploymentSetId()const; - void setLaunchConfigurationDeploymentSetId(const std::string& launchConfigurationDeploymentSetId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - int getSpotInstancePoolsToUseCount()const; - void setSpotInstancePoolsToUseCount(int spotInstancePoolsToUseCount); - std::string getLaunchConfigurationInternetChargeType()const; - void setLaunchConfigurationInternetChargeType(const std::string& launchConfigurationInternetChargeType); - std::string getLaunchTemplateVersion()const; - void setLaunchTemplateVersion(const std::string& launchTemplateVersion); - std::string getLaunchConfigurationIoOptimized()const; - void setLaunchConfigurationIoOptimized(const std::string& launchConfigurationIoOptimized); - std::string getPayAsYouGoTargetCapacity()const; - void setPayAsYouGoTargetCapacity(const std::string& payAsYouGoTargetCapacity); - std::string getTotalTargetCapacity()const; - void setTotalTargetCapacity(const std::string& totalTargetCapacity); - std::string getSpotTargetCapacity()const; - void setSpotTargetCapacity(const std::string& spotTargetCapacity); - std::string getValidFrom()const; - void setValidFrom(const std::string& validFrom); - std::string getAutoProvisioningGroupName()const; - void setAutoProvisioningGroupName(const std::string& autoProvisioningGroupName); - - private: - std::vector launchConfigurationDataDisk_; - long resourceOwnerId_; - std::string launchConfigurationSystemDiskCategory_; - std::string autoProvisioningGroupType_; - std::string launchConfigurationSystemDiskPerformanceLevel_; - std::vector launchConfigurationHostNames_; - std::string resourceGroupId_; - std::string launchConfigurationImageId_; - std::string launchConfigurationResourceGroupId_; - std::string launchConfigurationPassword_; - std::string payAsYouGoAllocationStrategy_; - std::string defaultTargetCapacityType_; - std::string launchConfigurationKeyPairName_; - std::vector systemDiskConfig_; - std::vector dataDiskConfig_; - std::string validUntil_; - std::string launchTemplateId_; - long ownerId_; - int launchConfigurationSystemDiskSize_; - int launchConfigurationInternetMaxBandwidthOut_; - std::string launchConfigurationHostName_; - std::string minTargetCapacity_; - float maxSpotPrice_; - bool launchConfigurationPasswordInherit_; - std::string clientToken_; - std::string launchConfigurationSecurityGroupId_; - std::string description_; - bool terminateInstancesWithExpiration_; - std::string launchConfigurationUserData_; - std::string launchConfigurationCreditSpecification_; - std::string launchConfigurationInstanceName_; - std::string launchConfigurationInstanceDescription_; - std::string spotAllocationStrategy_; - std::string regionId_; - bool terminateInstances_; - std::string launchConfigurationSystemDiskName_; - std::string launchConfigurationSystemDiskDescription_; - std::string excessCapacityTerminationPolicy_; - std::vector launchTemplateConfig_; - std::string launchConfigurationRamRoleName_; - int launchConfigurationInternetMaxBandwidthIn_; - std::string spotInstanceInterruptionBehavior_; - std::string launchConfigurationSecurityEnhancementStrategy_; - std::vector launchConfigurationTag_; - std::string launchConfigurationDeploymentSetId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - int spotInstancePoolsToUseCount_; - std::string launchConfigurationInternetChargeType_; - std::string launchTemplateVersion_; - std::string launchConfigurationIoOptimized_; - std::string payAsYouGoTargetCapacity_; - std::string totalTargetCapacity_; - std::string spotTargetCapacity_; - std::string validFrom_; - std::string autoProvisioningGroupName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_CREATEAUTOPROVISIONINGGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEAUTOPROVISIONINGGROUPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEAUTOPROVISIONINGGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT CreateAutoProvisioningGroupRequest : public RpcServiceRequest { +public: + struct LaunchConfigurationDataDisk { + std::string performanceLevel; + std::string kmsKeyId; + std::string description; + std::string snapshotId; + int size; + std::string device; + std::string diskName; + std::string category; + bool deleteWithInstance; + bool encrypted; + }; + struct SystemDiskConfig { + std::string diskCategory; + }; + struct DataDiskConfig { + std::string diskCategory; + }; + struct LaunchTemplateConfig { + std::string vSwitchId; + double maxPrice; + int priority; + std::string instanceType; + double weightedCapacity; + }; + struct LaunchConfigurationTag { + std::string key; + std::string value; + }; + CreateAutoProvisioningGroupRequest(); + ~CreateAutoProvisioningGroupRequest(); + std::vector getLaunchConfigurationDataDisk() const; + void setLaunchConfigurationDataDisk(const std::vector &launchConfigurationDataDisk); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getLaunchConfigurationSystemDiskCategory() const; + void setLaunchConfigurationSystemDiskCategory(const std::string &launchConfigurationSystemDiskCategory); + std::string getAutoProvisioningGroupType() const; + void setAutoProvisioningGroupType(const std::string &autoProvisioningGroupType); + std::string getLaunchConfigurationSystemDiskPerformanceLevel() const; + void setLaunchConfigurationSystemDiskPerformanceLevel(const std::string &launchConfigurationSystemDiskPerformanceLevel); + std::vector getLaunchConfigurationHostNames() const; + void setLaunchConfigurationHostNames(const std::vector &launchConfigurationHostNames); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getLaunchConfigurationImageId() const; + void setLaunchConfigurationImageId(const std::string &launchConfigurationImageId); + std::string getLaunchConfigurationResourceGroupId() const; + void setLaunchConfigurationResourceGroupId(const std::string &launchConfigurationResourceGroupId); + std::string getLaunchConfigurationPassword() const; + void setLaunchConfigurationPassword(const std::string &launchConfigurationPassword); + std::string getPayAsYouGoAllocationStrategy() const; + void setPayAsYouGoAllocationStrategy(const std::string &payAsYouGoAllocationStrategy); + std::string getDefaultTargetCapacityType() const; + void setDefaultTargetCapacityType(const std::string &defaultTargetCapacityType); + std::string getLaunchConfigurationKeyPairName() const; + void setLaunchConfigurationKeyPairName(const std::string &launchConfigurationKeyPairName); + std::vector getSystemDiskConfig() const; + void setSystemDiskConfig(const std::vector &systemDiskConfig); + std::vector getDataDiskConfig() const; + void setDataDiskConfig(const std::vector &dataDiskConfig); + std::string getValidUntil() const; + void setValidUntil(const std::string &validUntil); + std::string getLaunchTemplateId() const; + void setLaunchTemplateId(const std::string &launchTemplateId); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getLaunchConfigurationSystemDiskSize() const; + void setLaunchConfigurationSystemDiskSize(int launchConfigurationSystemDiskSize); + int getLaunchConfigurationInternetMaxBandwidthOut() const; + void setLaunchConfigurationInternetMaxBandwidthOut(int launchConfigurationInternetMaxBandwidthOut); + std::string getLaunchConfigurationHostName() const; + void setLaunchConfigurationHostName(const std::string &launchConfigurationHostName); + std::string getMinTargetCapacity() const; + void setMinTargetCapacity(const std::string &minTargetCapacity); + float getMaxSpotPrice() const; + void setMaxSpotPrice(float maxSpotPrice); + bool getLaunchConfigurationPasswordInherit() const; + void setLaunchConfigurationPasswordInherit(bool launchConfigurationPasswordInherit); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getLaunchConfigurationSecurityGroupId() const; + void setLaunchConfigurationSecurityGroupId(const std::string &launchConfigurationSecurityGroupId); + std::string getDescription() const; + void setDescription(const std::string &description); + bool getTerminateInstancesWithExpiration() const; + void setTerminateInstancesWithExpiration(bool terminateInstancesWithExpiration); + std::string getLaunchConfigurationUserData() const; + void setLaunchConfigurationUserData(const std::string &launchConfigurationUserData); + std::string getLaunchConfigurationCreditSpecification() const; + void setLaunchConfigurationCreditSpecification(const std::string &launchConfigurationCreditSpecification); + std::string getLaunchConfigurationInstanceName() const; + void setLaunchConfigurationInstanceName(const std::string &launchConfigurationInstanceName); + std::string getLaunchConfigurationInstanceDescription() const; + void setLaunchConfigurationInstanceDescription(const std::string &launchConfigurationInstanceDescription); + std::string getSpotAllocationStrategy() const; + void setSpotAllocationStrategy(const std::string &spotAllocationStrategy); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getTerminateInstances() const; + void setTerminateInstances(bool terminateInstances); + std::string getLaunchConfigurationSystemDiskName() const; + void setLaunchConfigurationSystemDiskName(const std::string &launchConfigurationSystemDiskName); + std::string getLaunchConfigurationSystemDiskDescription() const; + void setLaunchConfigurationSystemDiskDescription(const std::string &launchConfigurationSystemDiskDescription); + std::string getExcessCapacityTerminationPolicy() const; + void setExcessCapacityTerminationPolicy(const std::string &excessCapacityTerminationPolicy); + std::vector getLaunchTemplateConfig() const; + void setLaunchTemplateConfig(const std::vector &launchTemplateConfig); + std::string getLaunchConfigurationRamRoleName() const; + void setLaunchConfigurationRamRoleName(const std::string &launchConfigurationRamRoleName); + int getLaunchConfigurationInternetMaxBandwidthIn() const; + void setLaunchConfigurationInternetMaxBandwidthIn(int launchConfigurationInternetMaxBandwidthIn); + std::string getSpotInstanceInterruptionBehavior() const; + void setSpotInstanceInterruptionBehavior(const std::string &spotInstanceInterruptionBehavior); + std::string getLaunchConfigurationSecurityEnhancementStrategy() const; + void setLaunchConfigurationSecurityEnhancementStrategy(const std::string &launchConfigurationSecurityEnhancementStrategy); + std::vector getLaunchConfigurationTag() const; + void setLaunchConfigurationTag(const std::vector &launchConfigurationTag); + std::string getLaunchConfigurationDeploymentSetId() const; + void setLaunchConfigurationDeploymentSetId(const std::string &launchConfigurationDeploymentSetId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + int getSpotInstancePoolsToUseCount() const; + void setSpotInstancePoolsToUseCount(int spotInstancePoolsToUseCount); + std::string getLaunchConfigurationInternetChargeType() const; + void setLaunchConfigurationInternetChargeType(const std::string &launchConfigurationInternetChargeType); + std::string getLaunchTemplateVersion() const; + void setLaunchTemplateVersion(const std::string &launchTemplateVersion); + std::string getLaunchConfigurationIoOptimized() const; + void setLaunchConfigurationIoOptimized(const std::string &launchConfigurationIoOptimized); + std::string getPayAsYouGoTargetCapacity() const; + void setPayAsYouGoTargetCapacity(const std::string &payAsYouGoTargetCapacity); + std::string getTotalTargetCapacity() const; + void setTotalTargetCapacity(const std::string &totalTargetCapacity); + std::string getSpotTargetCapacity() const; + void setSpotTargetCapacity(const std::string &spotTargetCapacity); + std::string getValidFrom() const; + void setValidFrom(const std::string &validFrom); + std::string getAutoProvisioningGroupName() const; + void setAutoProvisioningGroupName(const std::string &autoProvisioningGroupName); + +private: + std::vector launchConfigurationDataDisk_; + long resourceOwnerId_; + std::string launchConfigurationSystemDiskCategory_; + std::string autoProvisioningGroupType_; + std::string launchConfigurationSystemDiskPerformanceLevel_; + std::vector launchConfigurationHostNames_; + std::string resourceGroupId_; + std::string launchConfigurationImageId_; + std::string launchConfigurationResourceGroupId_; + std::string launchConfigurationPassword_; + std::string payAsYouGoAllocationStrategy_; + std::string defaultTargetCapacityType_; + std::string launchConfigurationKeyPairName_; + std::vector systemDiskConfig_; + std::vector dataDiskConfig_; + std::string validUntil_; + std::string launchTemplateId_; + long ownerId_; + int launchConfigurationSystemDiskSize_; + int launchConfigurationInternetMaxBandwidthOut_; + std::string launchConfigurationHostName_; + std::string minTargetCapacity_; + float maxSpotPrice_; + bool launchConfigurationPasswordInherit_; + std::string clientToken_; + std::string launchConfigurationSecurityGroupId_; + std::string description_; + bool terminateInstancesWithExpiration_; + std::string launchConfigurationUserData_; + std::string launchConfigurationCreditSpecification_; + std::string launchConfigurationInstanceName_; + std::string launchConfigurationInstanceDescription_; + std::string spotAllocationStrategy_; + std::string regionId_; + bool terminateInstances_; + std::string launchConfigurationSystemDiskName_; + std::string launchConfigurationSystemDiskDescription_; + std::string excessCapacityTerminationPolicy_; + std::vector launchTemplateConfig_; + std::string launchConfigurationRamRoleName_; + int launchConfigurationInternetMaxBandwidthIn_; + std::string spotInstanceInterruptionBehavior_; + std::string launchConfigurationSecurityEnhancementStrategy_; + std::vector launchConfigurationTag_; + std::string launchConfigurationDeploymentSetId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int spotInstancePoolsToUseCount_; + std::string launchConfigurationInternetChargeType_; + std::string launchTemplateVersion_; + std::string launchConfigurationIoOptimized_; + std::string payAsYouGoTargetCapacity_; + std::string totalTargetCapacity_; + std::string spotTargetCapacity_; + std::string validFrom_; + std::string autoProvisioningGroupName_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEAUTOPROVISIONINGGROUPREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/CreateAutoSnapshotPolicyRequest.h b/ecs/include/alibabacloud/ecs/model/CreateAutoSnapshotPolicyRequest.h index 18c31ff30..3735ebc4a 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateAutoSnapshotPolicyRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateAutoSnapshotPolicyRequest.h @@ -1,90 +1,82 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATEAUTOSNAPSHOTPOLICYREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEAUTOSNAPSHOTPOLICYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateAutoSnapshotPolicyRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - - public: - CreateAutoSnapshotPolicyRequest(); - ~CreateAutoSnapshotPolicyRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getCopiedSnapshotsRetentionDays()const; - void setCopiedSnapshotsRetentionDays(int copiedSnapshotsRetentionDays); - std::string getTimePoints()const; - void setTimePoints(const std::string& timePoints); - std::string getRepeatWeekdays()const; - void setRepeatWeekdays(const std::string& repeatWeekdays); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::vector getTag()const; - void setTag(const std::vector& tag); - bool getEnableCrossRegionCopy()const; - void setEnableCrossRegionCopy(bool enableCrossRegionCopy); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAutoSnapshotPolicyName()const; - void setAutoSnapshotPolicyName(const std::string& autoSnapshotPolicyName); - int getRetentionDays()const; - void setRetentionDays(int retentionDays); - std::string getTargetCopyRegions()const; - void setTargetCopyRegions(const std::string& targetCopyRegions); - - private: - long resourceOwnerId_; - int copiedSnapshotsRetentionDays_; - std::string timePoints_; - std::string repeatWeekdays_; - std::string resourceGroupId_; - std::string regionId_; - std::vector tag_; - bool enableCrossRegionCopy_; - std::string resourceOwnerAccount_; - long ownerId_; - std::string autoSnapshotPolicyName_; - int retentionDays_; - std::string targetCopyRegions_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_CREATEAUTOSNAPSHOTPOLICYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEAUTOSNAPSHOTPOLICYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEAUTOSNAPSHOTPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT CreateAutoSnapshotPolicyRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + CreateAutoSnapshotPolicyRequest(); + ~CreateAutoSnapshotPolicyRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getCopiedSnapshotsRetentionDays() const; + void setCopiedSnapshotsRetentionDays(int copiedSnapshotsRetentionDays); + std::string getTimePoints() const; + void setTimePoints(const std::string &timePoints); + std::string getRepeatWeekdays() const; + void setRepeatWeekdays(const std::string &repeatWeekdays); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); + bool getEnableCrossRegionCopy() const; + void setEnableCrossRegionCopy(bool enableCrossRegionCopy); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAutoSnapshotPolicyName() const; + void setAutoSnapshotPolicyName(const std::string &autoSnapshotPolicyName); + int getRetentionDays() const; + void setRetentionDays(int retentionDays); + std::string getTargetCopyRegions() const; + void setTargetCopyRegions(const std::string &targetCopyRegions); + +private: + long resourceOwnerId_; + int copiedSnapshotsRetentionDays_; + std::string timePoints_; + std::string repeatWeekdays_; + std::string resourceGroupId_; + std::string regionId_; + std::vector tag_; + bool enableCrossRegionCopy_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string autoSnapshotPolicyName_; + int retentionDays_; + std::string targetCopyRegions_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEAUTOSNAPSHOTPOLICYREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/CreateCapacityReservationRequest.h b/ecs/include/alibabacloud/ecs/model/CreateCapacityReservationRequest.h index d3158c9bf..6d62f9015 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateCapacityReservationRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateCapacityReservationRequest.h @@ -1,129 +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. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATECAPACITYRESERVATIONREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATECAPACITYRESERVATIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateCapacityReservationRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string key; - std::string value; - }; - - public: - CreateCapacityReservationRequest(); - ~CreateCapacityReservationRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getPlatform()const; - void setPlatform(const std::string& platform); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getPrivatePoolOptionsMatchCriteria()const; - void setPrivatePoolOptionsMatchCriteria(const std::string& privatePoolOptionsMatchCriteria); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getInstanceType()const; - void setInstanceType(const std::string& instanceType); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getInstanceChargeType()const; - void setInstanceChargeType(const std::string& instanceChargeType); - int getEfficientStatus()const; - void setEfficientStatus(int efficientStatus); - int getPeriod()const; - void setPeriod(int period); - std::string getEndTimeType()const; - void setEndTimeType(const std::string& endTimeType); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getPrivatePoolOptionsName()const; - void setPrivatePoolOptionsName(const std::string& privatePoolOptionsName); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getResourceType()const; - void setResourceType(const std::string& resourceType); - std::string getPeriodUnit()const; - void setPeriodUnit(const std::string& periodUnit); - std::string getTimeSlot()const; - void setTimeSlot(const std::string& timeSlot); - std::vector getZoneId()const; - void setZoneId(const std::vector& zoneId); - std::string getChargeType()const; - void setChargeType(const std::string& chargeType); - std::string getPackageType()const; - void setPackageType(const std::string& packageType); - int getInstanceAmount()const; - void setInstanceAmount(int instanceAmount); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string description_; - std::string startTime_; - std::string platform_; - std::string resourceGroupId_; - std::string privatePoolOptionsMatchCriteria_; - std::string regionId_; - std::string instanceType_; - std::vector tag_; - std::string instanceChargeType_; - int efficientStatus_; - int period_; - std::string endTimeType_; - std::string resourceOwnerAccount_; - std::string privatePoolOptionsName_; - std::string ownerAccount_; - std::string endTime_; - long ownerId_; - std::string resourceType_; - std::string periodUnit_; - std::string timeSlot_; - std::vector zoneId_; - std::string chargeType_; - std::string packageType_; - int instanceAmount_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_CREATECAPACITYRESERVATIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATECAPACITYRESERVATIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATECAPACITYRESERVATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT CreateCapacityReservationRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + CreateCapacityReservationRequest(); + ~CreateCapacityReservationRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getPlatform() const; + void setPlatform(const std::string &platform); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getPrivatePoolOptionsMatchCriteria() const; + void setPrivatePoolOptionsMatchCriteria(const std::string &privatePoolOptionsMatchCriteria); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getInstanceChargeType() const; + void setInstanceChargeType(const std::string &instanceChargeType); + int getEfficientStatus() const; + void setEfficientStatus(int efficientStatus); + int getPeriod() const; + void setPeriod(int period); + std::string getEndTimeType() const; + void setEndTimeType(const std::string &endTimeType); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getPrivatePoolOptionsName() const; + void setPrivatePoolOptionsName(const std::string &privatePoolOptionsName); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getPeriodUnit() const; + void setPeriodUnit(const std::string &periodUnit); + std::string getTimeSlot() const; + void setTimeSlot(const std::string &timeSlot); + std::vector getZoneId() const; + void setZoneId(const std::vector &zoneId); + std::string getChargeType() const; + void setChargeType(const std::string &chargeType); + std::string getPackageType() const; + void setPackageType(const std::string &packageType); + int getInstanceAmount() const; + void setInstanceAmount(int instanceAmount); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string description_; + std::string startTime_; + std::string platform_; + std::string resourceGroupId_; + std::string privatePoolOptionsMatchCriteria_; + std::string regionId_; + std::string instanceType_; + std::vector tag_; + std::string instanceChargeType_; + int efficientStatus_; + int period_; + std::string endTimeType_; + std::string resourceOwnerAccount_; + std::string privatePoolOptionsName_; + std::string ownerAccount_; + std::string endTime_; + long ownerId_; + std::string resourceType_; + std::string periodUnit_; + std::string timeSlot_; + std::vector zoneId_; + std::string chargeType_; + std::string packageType_; + int instanceAmount_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_CREATECAPACITYRESERVATIONREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/CreateCommandRequest.h b/ecs/include/alibabacloud/ecs/model/CreateCommandRequest.h index 6039aba85..9194d2173 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateCommandRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateCommandRequest.h @@ -1,81 +1,75 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATECOMMANDREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATECOMMANDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateCommandRequest : public RpcServiceRequest - { - - public: - CreateCommandRequest(); - ~CreateCommandRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getWorkingDir()const; - void setWorkingDir(const std::string& workingDir); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getType()const; - void setType(const std::string& type); - std::string getCommandContent()const; - void setCommandContent(const std::string& commandContent); - long getTimeout()const; - void setTimeout(long timeout); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getName()const; - void setName(const std::string& name); - bool getEnableParameter()const; - void setEnableParameter(bool enableParameter); - - private: - long resourceOwnerId_; - std::string workingDir_; - std::string description_; - std::string type_; - std::string commandContent_; - long timeout_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string name_; - bool enableParameter_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_CREATECOMMANDREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATECOMMANDREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATECOMMANDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT CreateCommandRequest : public RpcServiceRequest { +public: + CreateCommandRequest(); + ~CreateCommandRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getWorkingDir() const; + void setWorkingDir(const std::string &workingDir); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getType() const; + void setType(const std::string &type); + std::string getCommandContent() const; + void setCommandContent(const std::string &commandContent); + long getTimeout() const; + void setTimeout(long timeout); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getName() const; + void setName(const std::string &name); + bool getEnableParameter() const; + void setEnableParameter(bool enableParameter); + +private: + long resourceOwnerId_; + std::string workingDir_; + std::string description_; + std::string type_; + std::string commandContent_; + long timeout_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string name_; + bool enableParameter_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_CREATECOMMANDREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/CreateDedicatedBlockStorageClusterRequest.h b/ecs/include/alibabacloud/ecs/model/CreateDedicatedBlockStorageClusterRequest.h index ed251aa06..fef50fb86 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateDedicatedBlockStorageClusterRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateDedicatedBlockStorageClusterRequest.h @@ -1,90 +1,84 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATEDEDICATEDBLOCKSTORAGECLUSTERREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEDEDICATEDBLOCKSTORAGECLUSTERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateDedicatedBlockStorageClusterRequest : public RpcServiceRequest - { - - public: - CreateDedicatedBlockStorageClusterRequest(); - ~CreateDedicatedBlockStorageClusterRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDedicatedBlockStorageClusterName()const; - void setDedicatedBlockStorageClusterName(const std::string& dedicatedBlockStorageClusterName); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getType()const; - void setType(const std::string& type); - int getCapacity()const; - void setCapacity(int capacity); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPeriod()const; - void setPeriod(int period); - std::string getFromApp()const; - void setFromApp(const std::string& fromApp); - std::string getResourceOwnerAccount()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 getPeriodUnit()const; - void setPeriodUnit(const std::string& periodUnit); - std::string getZoneId()const; - void setZoneId(const std::string& zoneId); - std::string getCategory()const; - void setCategory(const std::string& category); - - private: - long resourceOwnerId_; - std::string dedicatedBlockStorageClusterName_; - std::string clientToken_; - std::string description_; - std::string type_; - int capacity_; - std::string regionId_; - int period_; - std::string fromApp_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string periodUnit_; - std::string zoneId_; - std::string category_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_CREATEDEDICATEDBLOCKSTORAGECLUSTERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEDEDICATEDBLOCKSTORAGECLUSTERREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEDEDICATEDBLOCKSTORAGECLUSTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT CreateDedicatedBlockStorageClusterRequest : public RpcServiceRequest { +public: + CreateDedicatedBlockStorageClusterRequest(); + ~CreateDedicatedBlockStorageClusterRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDedicatedBlockStorageClusterName() const; + void setDedicatedBlockStorageClusterName(const std::string &dedicatedBlockStorageClusterName); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getType() const; + void setType(const std::string &type); + int getCapacity() const; + void setCapacity(int capacity); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPeriod() const; + void setPeriod(int period); + std::string getFromApp() const; + void setFromApp(const std::string &fromApp); + std::string getResourceOwnerAccount() 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 getPeriodUnit() const; + void setPeriodUnit(const std::string &periodUnit); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + std::string getCategory() const; + void setCategory(const std::string &category); + +private: + long resourceOwnerId_; + std::string dedicatedBlockStorageClusterName_; + std::string clientToken_; + std::string description_; + std::string type_; + int capacity_; + std::string regionId_; + int period_; + std::string fromApp_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string periodUnit_; + std::string zoneId_; + std::string category_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEDEDICATEDBLOCKSTORAGECLUSTERREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/CreateDedicatedHostClusterRequest.h b/ecs/include/alibabacloud/ecs/model/CreateDedicatedHostClusterRequest.h index ec43e3e98..0e8243625 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateDedicatedHostClusterRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateDedicatedHostClusterRequest.h @@ -1,84 +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_ECS_MODEL_CREATEDEDICATEDHOSTCLUSTERREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEDEDICATEDHOSTCLUSTERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateDedicatedHostClusterRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string key; - std::string value; - }; - - public: - CreateDedicatedHostClusterRequest(); - ~CreateDedicatedHostClusterRequest(); - - std::string getDedicatedHostClusterName()const; - void setDedicatedHostClusterName(const std::string& dedicatedHostClusterName); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::vector getTag()const; - void setTag(const std::vector& tag); - bool getDryRun()const; - void setDryRun(bool dryRun); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getZoneId()const; - void setZoneId(const std::string& zoneId); - - private: - std::string dedicatedHostClusterName_; - long resourceOwnerId_; - std::string description_; - std::string resourceGroupId_; - std::string regionId_; - std::vector tag_; - bool dryRun_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string zoneId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_CREATEDEDICATEDHOSTCLUSTERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEDEDICATEDHOSTCLUSTERREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEDEDICATEDHOSTCLUSTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT CreateDedicatedHostClusterRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + CreateDedicatedHostClusterRequest(); + ~CreateDedicatedHostClusterRequest(); + std::string getDedicatedHostClusterName() const; + void setDedicatedHostClusterName(const std::string &dedicatedHostClusterName); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + +private: + std::string dedicatedHostClusterName_; + long resourceOwnerId_; + std::string description_; + std::string resourceGroupId_; + std::string regionId_; + std::vector tag_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string zoneId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEDEDICATEDHOSTCLUSTERREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/CreateDemandRequest.h b/ecs/include/alibabacloud/ecs/model/CreateDemandRequest.h index 68f35801d..1a207bf20 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateDemandRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateDemandRequest.h @@ -1,93 +1,87 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATEDEMANDREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEDEMANDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateDemandRequest : public RpcServiceRequest - { - - public: - CreateDemandRequest(); - ~CreateDemandRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getDemandDescription()const; - void setDemandDescription(const std::string& demandDescription); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getInstanceType()const; - void setInstanceType(const std::string& instanceType); - std::string getInstanceChargeType()const; - void setInstanceChargeType(const std::string& instanceChargeType); - std::string getDemandName()const; - void setDemandName(const std::string& demandName); - int getAmount()const; - void setAmount(int amount); - int getPeriod()const; - void setPeriod(int period); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPeriodUnit()const; - void setPeriodUnit(const std::string& periodUnit); - std::string getZoneId()const; - void setZoneId(const std::string& zoneId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string startTime_; - std::string demandDescription_; - std::string regionId_; - std::string instanceType_; - std::string instanceChargeType_; - std::string demandName_; - int amount_; - int period_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string endTime_; - long ownerId_; - std::string periodUnit_; - std::string zoneId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_CREATEDEMANDREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEDEMANDREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEDEMANDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT CreateDemandRequest : public RpcServiceRequest { +public: + CreateDemandRequest(); + ~CreateDemandRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getDemandDescription() const; + void setDemandDescription(const std::string &demandDescription); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + std::string getInstanceChargeType() const; + void setInstanceChargeType(const std::string &instanceChargeType); + std::string getDemandName() const; + void setDemandName(const std::string &demandName); + int getAmount() const; + void setAmount(int amount); + int getPeriod() const; + void setPeriod(int period); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPeriodUnit() const; + void setPeriodUnit(const std::string &periodUnit); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string startTime_; + std::string demandDescription_; + std::string regionId_; + std::string instanceType_; + std::string instanceChargeType_; + std::string demandName_; + int amount_; + int period_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string endTime_; + long ownerId_; + std::string periodUnit_; + std::string zoneId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEDEMANDREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/CreateDeploymentSetRequest.h b/ecs/include/alibabacloud/ecs/model/CreateDeploymentSetRequest.h index 8ded3cf31..5d32f4b36 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateDeploymentSetRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateDeploymentSetRequest.h @@ -1,84 +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_ECS_MODEL_CREATEDEPLOYMENTSETREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEDEPLOYMENTSETREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateDeploymentSetRequest : public RpcServiceRequest - { - - public: - CreateDeploymentSetRequest(); - ~CreateDeploymentSetRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - long getGroupCount()const; - void setGroupCount(long groupCount); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getDeploymentSetName()const; - void setDeploymentSetName(const std::string& deploymentSetName); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getOnUnableToRedeployFailedInstance()const; - void setOnUnableToRedeployFailedInstance(const std::string& onUnableToRedeployFailedInstance); - std::string getGranularity()const; - void setGranularity(const std::string& granularity); - std::string getDomain()const; - void setDomain(const std::string& domain); - std::string getStrategy()const; - void setStrategy(const std::string& strategy); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string description_; - std::string regionId_; - long groupCount_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string deploymentSetName_; - long ownerId_; - std::string onUnableToRedeployFailedInstance_; - std::string granularity_; - std::string domain_; - std::string strategy_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_CREATEDEPLOYMENTSETREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEDEPLOYMENTSETREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEDEPLOYMENTSETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT CreateDeploymentSetRequest : public RpcServiceRequest { +public: + CreateDeploymentSetRequest(); + ~CreateDeploymentSetRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + long getGroupCount() const; + void setGroupCount(long groupCount); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getDeploymentSetName() const; + void setDeploymentSetName(const std::string &deploymentSetName); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getOnUnableToRedeployFailedInstance() const; + void setOnUnableToRedeployFailedInstance(const std::string &onUnableToRedeployFailedInstance); + std::string getGranularity() const; + void setGranularity(const std::string &granularity); + std::string getDomain() const; + void setDomain(const std::string &domain); + std::string getStrategy() const; + void setStrategy(const std::string &strategy); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string description_; + std::string regionId_; + long groupCount_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string deploymentSetName_; + long ownerId_; + std::string onUnableToRedeployFailedInstance_; + std::string granularity_; + std::string domain_; + std::string strategy_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEDEPLOYMENTSETREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/CreateDiskReplicaPairRequest.h b/ecs/include/alibabacloud/ecs/model/CreateDiskReplicaPairRequest.h index 450ac3ee2..65ab9cb35 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateDiskReplicaPairRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateDiskReplicaPairRequest.h @@ -1,78 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATEDISKREPLICAPAIRREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEDISKREPLICAPAIRREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateDiskReplicaPairRequest : public RpcServiceRequest - { - - public: - CreateDiskReplicaPairRequest(); - ~CreateDiskReplicaPairRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getPairName()const; - void setPairName(const std::string& pairName); - std::string getDestinationRegionId()const; - void setDestinationRegionId(const std::string& destinationRegionId); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getDiskId()const; - void setDiskId(const std::string& diskId); - int getAsyncCycle()const; - void setAsyncCycle(int asyncCycle); - std::string getResourceOwnerAccount()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 getDestinationDiskId()const; - void setDestinationDiskId(const std::string& destinationDiskId); - - private: - long resourceOwnerId_; - std::string pairName_; - std::string destinationRegionId_; - std::string description_; - std::string regionId_; - std::string diskId_; - int asyncCycle_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string destinationDiskId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_CREATEDISKREPLICAPAIRREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEDISKREPLICAPAIRREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEDISKREPLICAPAIRREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT CreateDiskReplicaPairRequest : public RpcServiceRequest { +public: + CreateDiskReplicaPairRequest(); + ~CreateDiskReplicaPairRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPairName() const; + void setPairName(const std::string &pairName); + std::string getDestinationRegionId() const; + void setDestinationRegionId(const std::string &destinationRegionId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDiskId() const; + void setDiskId(const std::string &diskId); + int getAsyncCycle() const; + void setAsyncCycle(int asyncCycle); + std::string getResourceOwnerAccount() 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 getDestinationDiskId() const; + void setDestinationDiskId(const std::string &destinationDiskId); + +private: + long resourceOwnerId_; + std::string pairName_; + std::string destinationRegionId_; + std::string description_; + std::string regionId_; + std::string diskId_; + int asyncCycle_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string destinationDiskId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEDISKREPLICAPAIRREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/CreateDiskRequest.h b/ecs/include/alibabacloud/ecs/model/CreateDiskRequest.h index 831c4d8a4..a109216a9 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateDiskRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateDiskRequest.h @@ -1,132 +1,123 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATEDISKREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEDISKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateDiskRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - struct Arn - { - std::string rolearn; - std::string roleType; - long assumeRoleFor; - }; - - public: - CreateDiskRequest(); - ~CreateDiskRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getSnapshotId()const; - void setSnapshotId(const std::string& snapshotId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getEncryptAlgorithm()const; - void setEncryptAlgorithm(const std::string& encryptAlgorithm); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getDiskName()const; - void setDiskName(const std::string& diskName); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getDiskCategory()const; - void setDiskCategory(const std::string& diskCategory); - int getStorageSetPartitionNumber()const; - void setStorageSetPartitionNumber(int storageSetPartitionNumber); - std::string getMultiAttach()const; - void setMultiAttach(const std::string& multiAttach); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getAdvancedFeatures()const; - void setAdvancedFeatures(const std::string& advancedFeatures); - std::vector getArn()const; - void setArn(const std::vector& arn); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getPerformanceLevel()const; - void setPerformanceLevel(const std::string& performanceLevel); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getStorageSetId()const; - void setStorageSetId(const std::string& storageSetId); - int getSize()const; - void setSize(int size); - bool getEncrypted()const; - void setEncrypted(bool encrypted); - std::string getZoneId()const; - void setZoneId(const std::string& zoneId); - std::string getStorageClusterId()const; - void setStorageClusterId(const std::string& storageClusterId); - std::string getKMSKeyId()const; - void setKMSKeyId(const std::string& kMSKeyId); - - private: - long resourceOwnerId_; - std::string snapshotId_; - std::string clientToken_; - std::string encryptAlgorithm_; - std::string description_; - std::string diskName_; - std::string resourceGroupId_; - std::string regionId_; - std::string diskCategory_; - int storageSetPartitionNumber_; - std::string multiAttach_; - std::vector tag_; - std::string advancedFeatures_; - std::vector arn_; - std::string resourceOwnerAccount_; - std::string performanceLevel_; - std::string ownerAccount_; - long ownerId_; - std::string instanceId_; - std::string storageSetId_; - int size_; - bool encrypted_; - std::string zoneId_; - std::string storageClusterId_; - std::string kMSKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_CREATEDISKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEDISKREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEDISKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT CreateDiskRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + struct Arn { + std::string rolearn; + std::string roleType; + long assumeRoleFor; + }; + CreateDiskRequest(); + ~CreateDiskRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSnapshotId() const; + void setSnapshotId(const std::string &snapshotId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getEncryptAlgorithm() const; + void setEncryptAlgorithm(const std::string &encryptAlgorithm); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getDiskName() const; + void setDiskName(const std::string &diskName); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDiskCategory() const; + void setDiskCategory(const std::string &diskCategory); + int getStorageSetPartitionNumber() const; + void setStorageSetPartitionNumber(int storageSetPartitionNumber); + std::string getMultiAttach() const; + void setMultiAttach(const std::string &multiAttach); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getAdvancedFeatures() const; + void setAdvancedFeatures(const std::string &advancedFeatures); + std::vector getArn() const; + void setArn(const std::vector &arn); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getPerformanceLevel() const; + void setPerformanceLevel(const std::string &performanceLevel); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getStorageSetId() const; + void setStorageSetId(const std::string &storageSetId); + int getSize() const; + void setSize(int size); + bool getEncrypted() const; + void setEncrypted(bool encrypted); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + std::string getStorageClusterId() const; + void setStorageClusterId(const std::string &storageClusterId); + std::string getKMSKeyId() const; + void setKMSKeyId(const std::string &kMSKeyId); + +private: + long resourceOwnerId_; + std::string snapshotId_; + std::string clientToken_; + std::string encryptAlgorithm_; + std::string description_; + std::string diskName_; + std::string resourceGroupId_; + std::string regionId_; + std::string diskCategory_; + int storageSetPartitionNumber_; + std::string multiAttach_; + std::vector tag_; + std::string advancedFeatures_; + std::vector arn_; + std::string resourceOwnerAccount_; + std::string performanceLevel_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; + std::string storageSetId_; + int size_; + bool encrypted_; + std::string zoneId_; + std::string storageClusterId_; + std::string kMSKeyId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEDISKREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/CreateElasticityAssuranceRequest.h b/ecs/include/alibabacloud/ecs/model/CreateElasticityAssuranceRequest.h index 4c7c376f3..af58c0f57 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateElasticityAssuranceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateElasticityAssuranceRequest.h @@ -1,123 +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. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATEELASTICITYASSURANCEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEELASTICITYASSURANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateElasticityAssuranceRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string key; - std::string value; - }; - - public: - CreateElasticityAssuranceRequest(); - ~CreateElasticityAssuranceRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getPlatform()const; - void setPlatform(const std::string& platform); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getPrivatePoolOptionsMatchCriteria()const; - void setPrivatePoolOptionsMatchCriteria(const std::string& privatePoolOptionsMatchCriteria); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::vector getInstanceType()const; - void setInstanceType(const std::vector& instanceType); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getInstanceChargeType()const; - void setInstanceChargeType(const std::string& instanceChargeType); - int getPeriod()const; - void setPeriod(int period); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getPrivatePoolOptionsName()const; - void setPrivatePoolOptionsName(const std::string& privatePoolOptionsName); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getAssuranceTimes()const; - void setAssuranceTimes(const std::string& assuranceTimes); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getResourceType()const; - void setResourceType(const std::string& resourceType); - int getInstanceCpuCoreCount()const; - void setInstanceCpuCoreCount(int instanceCpuCoreCount); - std::string getPeriodUnit()const; - void setPeriodUnit(const std::string& periodUnit); - std::vector getZoneId()const; - void setZoneId(const std::vector& zoneId); - std::string getChargeType()const; - void setChargeType(const std::string& chargeType); - std::string getPackageType()const; - void setPackageType(const std::string& packageType); - int getInstanceAmount()const; - void setInstanceAmount(int instanceAmount); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string description_; - std::string startTime_; - std::string platform_; - std::string resourceGroupId_; - std::string privatePoolOptionsMatchCriteria_; - std::string regionId_; - std::vector instanceType_; - std::vector tag_; - std::string instanceChargeType_; - int period_; - std::string resourceOwnerAccount_; - std::string privatePoolOptionsName_; - std::string ownerAccount_; - std::string assuranceTimes_; - long ownerId_; - std::string resourceType_; - int instanceCpuCoreCount_; - std::string periodUnit_; - std::vector zoneId_; - std::string chargeType_; - std::string packageType_; - int instanceAmount_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_CREATEELASTICITYASSURANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEELASTICITYASSURANCEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEELASTICITYASSURANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT CreateElasticityAssuranceRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + CreateElasticityAssuranceRequest(); + ~CreateElasticityAssuranceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getPlatform() const; + void setPlatform(const std::string &platform); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getPrivatePoolOptionsMatchCriteria() const; + void setPrivatePoolOptionsMatchCriteria(const std::string &privatePoolOptionsMatchCriteria); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getInstanceType() const; + void setInstanceType(const std::vector &instanceType); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getInstanceChargeType() const; + void setInstanceChargeType(const std::string &instanceChargeType); + int getPeriod() const; + void setPeriod(int period); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getPrivatePoolOptionsName() const; + void setPrivatePoolOptionsName(const std::string &privatePoolOptionsName); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getAssuranceTimes() const; + void setAssuranceTimes(const std::string &assuranceTimes); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + int getInstanceCpuCoreCount() const; + void setInstanceCpuCoreCount(int instanceCpuCoreCount); + std::string getPeriodUnit() const; + void setPeriodUnit(const std::string &periodUnit); + std::vector getZoneId() const; + void setZoneId(const std::vector &zoneId); + std::string getChargeType() const; + void setChargeType(const std::string &chargeType); + std::string getPackageType() const; + void setPackageType(const std::string &packageType); + int getInstanceAmount() const; + void setInstanceAmount(int instanceAmount); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string description_; + std::string startTime_; + std::string platform_; + std::string resourceGroupId_; + std::string privatePoolOptionsMatchCriteria_; + std::string regionId_; + std::vector instanceType_; + std::vector tag_; + std::string instanceChargeType_; + int period_; + std::string resourceOwnerAccount_; + std::string privatePoolOptionsName_; + std::string ownerAccount_; + std::string assuranceTimes_; + long ownerId_; + std::string resourceType_; + int instanceCpuCoreCount_; + std::string periodUnit_; + std::vector zoneId_; + std::string chargeType_; + std::string packageType_; + int instanceAmount_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEELASTICITYASSURANCEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/CreateForwardEntryRequest.h b/ecs/include/alibabacloud/ecs/model/CreateForwardEntryRequest.h index c4bb15df4..75db531f3 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateForwardEntryRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateForwardEntryRequest.h @@ -1,78 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATEFORWARDENTRYREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEFORWARDENTRYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateForwardEntryRequest : public RpcServiceRequest - { - - public: - CreateForwardEntryRequest(); - ~CreateForwardEntryRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getForwardTableId()const; - void setForwardTableId(const std::string& forwardTableId); - std::string getInternalIp()const; - void setInternalIp(const std::string& internalIp); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getExternalIp()const; - void setExternalIp(const std::string& externalIp); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getIpProtocol()const; - void setIpProtocol(const std::string& ipProtocol); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInternalPort()const; - void setInternalPort(const std::string& internalPort); - std::string getExternalPort()const; - void setExternalPort(const std::string& externalPort); - - private: - long resourceOwnerId_; - std::string forwardTableId_; - std::string internalIp_; - std::string regionId_; - std::string externalIp_; - std::string resourceOwnerAccount_; - std::string ipProtocol_; - std::string ownerAccount_; - long ownerId_; - std::string internalPort_; - std::string externalPort_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_CREATEFORWARDENTRYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEFORWARDENTRYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEFORWARDENTRYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT CreateForwardEntryRequest : public RpcServiceRequest { +public: + CreateForwardEntryRequest(); + ~CreateForwardEntryRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getForwardTableId() const; + void setForwardTableId(const std::string &forwardTableId); + std::string getInternalIp() const; + void setInternalIp(const std::string &internalIp); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getExternalIp() const; + void setExternalIp(const std::string &externalIp); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getIpProtocol() const; + void setIpProtocol(const std::string &ipProtocol); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInternalPort() const; + void setInternalPort(const std::string &internalPort); + std::string getExternalPort() const; + void setExternalPort(const std::string &externalPort); + +private: + long resourceOwnerId_; + std::string forwardTableId_; + std::string internalIp_; + std::string regionId_; + std::string externalIp_; + std::string resourceOwnerAccount_; + std::string ipProtocol_; + std::string ownerAccount_; + long ownerId_; + std::string internalPort_; + std::string externalPort_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEFORWARDENTRYREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/CreateHaVipRequest.h b/ecs/include/alibabacloud/ecs/model/CreateHaVipRequest.h index 4c792882a..7fe422a6f 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateHaVipRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateHaVipRequest.h @@ -1,72 +1,66 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATEHAVIPREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEHAVIPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateHaVipRequest : public RpcServiceRequest - { - - public: - CreateHaVipRequest(); - ~CreateHaVipRequest(); - - std::string getIpAddress()const; - void setIpAddress(const std::string& ipAddress); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getVSwitchId()const; - void setVSwitchId(const std::string& vSwitchId); - - private: - std::string ipAddress_; - long resourceOwnerId_; - std::string clientToken_; - std::string description_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string vSwitchId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_CREATEHAVIPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEHAVIPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEHAVIPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT CreateHaVipRequest : public RpcServiceRequest { +public: + CreateHaVipRequest(); + ~CreateHaVipRequest(); + std::string getIpAddress() const; + void setIpAddress(const std::string &ipAddress); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getVSwitchId() const; + void setVSwitchId(const std::string &vSwitchId); + +private: + std::string ipAddress_; + long resourceOwnerId_; + std::string clientToken_; + std::string description_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vSwitchId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEHAVIPREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/CreateHpcClusterRequest.h b/ecs/include/alibabacloud/ecs/model/CreateHpcClusterRequest.h index e9cc4bba5..59939e63c 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateHpcClusterRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateHpcClusterRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATEHPCCLUSTERREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEHPCCLUSTERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateHpcClusterRequest : public RpcServiceRequest - { - - public: - CreateHpcClusterRequest(); - ~CreateHpcClusterRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string description_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_CREATEHPCCLUSTERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEHPCCLUSTERREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEHPCCLUSTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT CreateHpcClusterRequest : public RpcServiceRequest { +public: + CreateHpcClusterRequest(); + ~CreateHpcClusterRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string description_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string name_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEHPCCLUSTERREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/CreateImageComponentRequest.h b/ecs/include/alibabacloud/ecs/model/CreateImageComponentRequest.h index 64cb1f692..acc4520d0 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateImageComponentRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateImageComponentRequest.h @@ -1,90 +1,82 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATEIMAGECOMPONENTREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEIMAGECOMPONENTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateImageComponentRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string key; - std::string value; - }; - - public: - CreateImageComponentRequest(); - ~CreateImageComponentRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getSystemType()const; - void setSystemType(const std::string& systemType); - std::string getContent()const; - void setContent(const std::string& content); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getComponentType()const; - void setComponentType(const std::string& componentType); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string description_; - std::string systemType_; - std::string content_; - std::string resourceGroupId_; - std::string regionId_; - std::vector tag_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string componentType_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_CREATEIMAGECOMPONENTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEIMAGECOMPONENTREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEIMAGECOMPONENTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT CreateImageComponentRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + CreateImageComponentRequest(); + ~CreateImageComponentRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getSystemType() const; + void setSystemType(const std::string &systemType); + std::string getContent() const; + void setContent(const std::string &content); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getComponentType() const; + void setComponentType(const std::string &componentType); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string description_; + std::string systemType_; + std::string content_; + std::string resourceGroupId_; + std::string regionId_; + std::vector tag_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string componentType_; + std::string name_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEIMAGECOMPONENTREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/CreateImagePipelineRequest.h b/ecs/include/alibabacloud/ecs/model/CreateImagePipelineRequest.h index 8a1d6c957..31081390a 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateImagePipelineRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateImagePipelineRequest.h @@ -1,114 +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. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATEIMAGEPIPELINEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEIMAGEPIPELINEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateImagePipelineRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string key; - std::string value; - }; - - public: - CreateImagePipelineRequest(); - ~CreateImagePipelineRequest(); - - std::string getBaseImageType()const; - void setBaseImageType(const std::string& baseImageType); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::vector getToRegionId()const; - void setToRegionId(const std::vector& toRegionId); - int getInternetMaxBandwidthOut()const; - void setInternetMaxBandwidthOut(int internetMaxBandwidthOut); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getImageName()const; - void setImageName(const std::string& imageName); - int getSystemDiskSize()const; - void setSystemDiskSize(int systemDiskSize); - std::string getInstanceType()const; - void setInstanceType(const std::string& instanceType); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getBaseImage()const; - void setBaseImage(const std::string& baseImage); - std::string getVSwitchId()const; - void setVSwitchId(const std::string& vSwitchId); - std::vector getAddAccount()const; - void setAddAccount(const std::vector& addAccount); - bool getDeleteInstanceOnFailure()const; - void setDeleteInstanceOnFailure(bool deleteInstanceOnFailure); - std::string getName()const; - void setName(const std::string& name); - std::string getBuildContent()const; - void setBuildContent(const std::string& buildContent); - - private: - std::string baseImageType_; - long resourceOwnerId_; - std::string clientToken_; - std::vector toRegionId_; - int internetMaxBandwidthOut_; - std::string description_; - std::string resourceGroupId_; - std::string regionId_; - std::string imageName_; - int systemDiskSize_; - std::string instanceType_; - std::vector tag_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string baseImage_; - std::string vSwitchId_; - std::vector addAccount_; - bool deleteInstanceOnFailure_; - std::string name_; - std::string buildContent_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_CREATEIMAGEPIPELINEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEIMAGEPIPELINEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEIMAGEPIPELINEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT CreateImagePipelineRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + CreateImagePipelineRequest(); + ~CreateImagePipelineRequest(); + std::string getBaseImageType() const; + void setBaseImageType(const std::string &baseImageType); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::vector getToRegionId() const; + void setToRegionId(const std::vector &toRegionId); + int getInternetMaxBandwidthOut() const; + void setInternetMaxBandwidthOut(int internetMaxBandwidthOut); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getImageName() const; + void setImageName(const std::string &imageName); + int getSystemDiskSize() const; + void setSystemDiskSize(int systemDiskSize); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getBaseImage() const; + void setBaseImage(const std::string &baseImage); + std::string getVSwitchId() const; + void setVSwitchId(const std::string &vSwitchId); + std::vector getAddAccount() const; + void setAddAccount(const std::vector &addAccount); + bool getDeleteInstanceOnFailure() const; + void setDeleteInstanceOnFailure(bool deleteInstanceOnFailure); + std::string getName() const; + void setName(const std::string &name); + std::string getBuildContent() const; + void setBuildContent(const std::string &buildContent); + +private: + std::string baseImageType_; + long resourceOwnerId_; + std::string clientToken_; + std::vector toRegionId_; + int internetMaxBandwidthOut_; + std::string description_; + std::string resourceGroupId_; + std::string regionId_; + std::string imageName_; + int systemDiskSize_; + std::string instanceType_; + std::vector tag_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string baseImage_; + std::string vSwitchId_; + std::vector addAccount_; + bool deleteInstanceOnFailure_; + std::string name_; + std::string buildContent_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEIMAGEPIPELINEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/CreateImageRequest.h b/ecs/include/alibabacloud/ecs/model/CreateImageRequest.h index 27218b8b7..cf4adfc6f 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateImageRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateImageRequest.h @@ -1,109 +1,100 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATEIMAGEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEIMAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateImageRequest : public RpcServiceRequest - { - public: - struct DiskDeviceMapping - { - std::string snapshotId; - int size; - std::string diskType; - std::string device; - }; - struct Tag - { - std::string value; - std::string key; - }; - - public: - CreateImageRequest(); - ~CreateImageRequest(); - - std::vector getDiskDeviceMapping()const; - void setDiskDeviceMapping(const std::vector& diskDeviceMapping); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getSnapshotId()const; - void setSnapshotId(const std::string& snapshotId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getPlatform()const; - void setPlatform(const std::string& platform); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getImageName()const; - void setImageName(const std::string& imageName); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getArchitecture()const; - void setArchitecture(const std::string& architecture); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getImageFamily()const; - void setImageFamily(const std::string& imageFamily); - std::string getImageVersion()const; - void setImageVersion(const std::string& imageVersion); - - private: - std::vector diskDeviceMapping_; - long resourceOwnerId_; - std::string snapshotId_; - std::string clientToken_; - std::string description_; - std::string platform_; - std::string resourceGroupId_; - std::string regionId_; - std::string imageName_; - std::vector tag_; - std::string architecture_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string instanceId_; - std::string imageFamily_; - std::string imageVersion_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_CREATEIMAGEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEIMAGEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEIMAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT CreateImageRequest : public RpcServiceRequest { +public: + struct DiskDeviceMapping { + std::string snapshotId; + int size; + std::string diskType; + std::string device; + }; + struct Tag { + std::string value; + std::string key; + }; + CreateImageRequest(); + ~CreateImageRequest(); + std::vector getDiskDeviceMapping() const; + void setDiskDeviceMapping(const std::vector &diskDeviceMapping); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSnapshotId() const; + void setSnapshotId(const std::string &snapshotId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getPlatform() const; + void setPlatform(const std::string &platform); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getImageName() const; + void setImageName(const std::string &imageName); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getArchitecture() const; + void setArchitecture(const std::string &architecture); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getImageFamily() const; + void setImageFamily(const std::string &imageFamily); + std::string getImageVersion() const; + void setImageVersion(const std::string &imageVersion); + +private: + std::vector diskDeviceMapping_; + long resourceOwnerId_; + std::string snapshotId_; + std::string clientToken_; + std::string description_; + std::string platform_; + std::string resourceGroupId_; + std::string regionId_; + std::string imageName_; + std::vector tag_; + std::string architecture_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; + std::string imageFamily_; + std::string imageVersion_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEIMAGEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/CreateInstanceRequest.h b/ecs/include/alibabacloud/ecs/model/CreateInstanceRequest.h index e35fb2fdd..36ea0a985 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateInstanceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateInstanceRequest.h @@ -1,279 +1,272 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATEINSTANCEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateInstanceRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - struct Arn - { - std::string rolearn; - std::string roleType; - long assumeRoleFor; - }; - struct DataDisk - { - std::string diskName; - std::string snapshotId; - int size; - bool encrypted; - std::string performanceLevel; - std::string encryptAlgorithm; - std::string description; - std::string storageClusterId; - std::string category; - std::string kMSKeyId; - std::string device; - bool deleteWithInstance; - }; - - public: - CreateInstanceRequest(); - ~CreateInstanceRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getHpcClusterId()const; - void setHpcClusterId(const std::string& hpcClusterId); - int getHttpPutResponseHopLimit()const; - void setHttpPutResponseHopLimit(int httpPutResponseHopLimit); - std::string getSecurityEnhancementStrategy()const; - void setSecurityEnhancementStrategy(const std::string& securityEnhancementStrategy); - std::string getKeyPairName()const; - void setKeyPairName(const std::string& keyPairName); - float getSpotPriceLimit()const; - void setSpotPriceLimit(float spotPriceLimit); - bool getDeletionProtection()const; - void setDeletionProtection(bool deletionProtection); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getPrivatePoolOptionsMatchCriteria()const; - void setPrivatePoolOptionsMatchCriteria(const std::string& privatePoolOptionsMatchCriteria); - std::string getHostName()const; - void setHostName(const std::string& hostName); - std::string getPassword()const; - void setPassword(const std::string& password); - Struct getSystemDisk()const; - void setSystemDisk(const Struct& systemDisk); - int getDeploymentSetGroupNo()const; - void setDeploymentSetGroupNo(int deploymentSetGroupNo); - int getStorageSetPartitionNumber()const; - void setStorageSetPartitionNumber(int storageSetPartitionNumber); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getPrivatePoolOptionsId()const; - void setPrivatePoolOptionsId(const std::string& privatePoolOptionsId); - int getAutoRenewPeriod()const; - void setAutoRenewPeriod(int autoRenewPeriod); - std::string getNodeControllerId()const; - void setNodeControllerId(const std::string& nodeControllerId); - int getPeriod()const; - void setPeriod(int period); - bool getDryRun()const; - void setDryRun(bool dryRun); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getCapacityReservationPreference()const; - void setCapacityReservationPreference(const std::string& capacityReservationPreference); - std::string getVSwitchId()const; - void setVSwitchId(const std::string& vSwitchId); - std::string getPrivateIpAddress()const; - void setPrivateIpAddress(const std::string& privateIpAddress); - std::string getSpotStrategy()const; - void setSpotStrategy(const std::string& spotStrategy); - std::string getPeriodUnit()const; - void setPeriodUnit(const std::string& periodUnit); - std::string getInstanceName()const; - void setInstanceName(const std::string& instanceName); - bool getAutoRenew()const; - void setAutoRenew(bool autoRenew); - std::string getInternetChargeType()const; - void setInternetChargeType(const std::string& internetChargeType); - std::string getZoneId()const; - void setZoneId(const std::string& zoneId); - int getInternetMaxBandwidthIn()const; - void setInternetMaxBandwidthIn(int internetMaxBandwidthIn); - bool getUseAdditionalService()const; - void setUseAdditionalService(bool useAdditionalService); - std::string getAffinity()const; - void setAffinity(const std::string& affinity); - std::string getImageId()const; - void setImageId(const std::string& imageId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getVlanId()const; - void setVlanId(const std::string& vlanId); - std::string getSpotInterruptionBehavior()const; - void setSpotInterruptionBehavior(const std::string& spotInterruptionBehavior); - std::string getIoOptimized()const; - void setIoOptimized(const std::string& ioOptimized); - std::string getSecurityGroupId()const; - void setSecurityGroupId(const std::string& securityGroupId); - int getInternetMaxBandwidthOut()const; - void setInternetMaxBandwidthOut(int internetMaxBandwidthOut); - bool getHibernationOptionsConfigured()const; - void setHibernationOptionsConfigured(bool hibernationOptionsConfigured); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getSystemDiskCategory()const; - void setSystemDiskCategory(const std::string& systemDiskCategory); - std::string getCapacityReservationId()const; - void setCapacityReservationId(const std::string& capacityReservationId); - std::string getSystemDiskPerformanceLevel()const; - void setSystemDiskPerformanceLevel(const std::string& systemDiskPerformanceLevel); - std::string getUserData()const; - void setUserData(const std::string& userData); - bool getPasswordInherit()const; - void setPasswordInherit(bool passwordInherit); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getHttpEndpoint()const; - void setHttpEndpoint(const std::string& httpEndpoint); - std::string getInstanceType()const; - void setInstanceType(const std::string& instanceType); - std::vector getArn()const; - void setArn(const std::vector& arn); - std::string getInstanceChargeType()const; - void setInstanceChargeType(const std::string& instanceChargeType); - std::string getDeploymentSetId()const; - void setDeploymentSetId(const std::string& deploymentSetId); - std::string getInnerIpAddress()const; - void setInnerIpAddress(const std::string& innerIpAddress); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getTenancy()const; - void setTenancy(const std::string& tenancy); - std::string getSystemDiskDiskName()const; - void setSystemDiskDiskName(const std::string& systemDiskDiskName); - std::string getRamRoleName()const; - void setRamRoleName(const std::string& ramRoleName); - std::string getDedicatedHostId()const; - void setDedicatedHostId(const std::string& dedicatedHostId); - std::string getClusterId()const; - void setClusterId(const std::string& clusterId); - std::string getCreditSpecification()const; - void setCreditSpecification(const std::string& creditSpecification); - int getSpotDuration()const; - void setSpotDuration(int spotDuration); - std::vector getDataDisk()const; - void setDataDisk(const std::vector& dataDisk); - std::string getStorageSetId()const; - void setStorageSetId(const std::string& storageSetId); - int getSystemDiskSize()const; - void setSystemDiskSize(int systemDiskSize); - std::string getImageFamily()const; - void setImageFamily(const std::string& imageFamily); - std::string getHttpTokens()const; - void setHttpTokens(const std::string& httpTokens); - std::string getSystemDiskDescription()const; - void setSystemDiskDescription(const std::string& systemDiskDescription); - - private: - long resourceOwnerId_; - std::string hpcClusterId_; - int httpPutResponseHopLimit_; - std::string securityEnhancementStrategy_; - std::string keyPairName_; - float spotPriceLimit_; - bool deletionProtection_; - std::string resourceGroupId_; - std::string privatePoolOptionsMatchCriteria_; - std::string hostName_; - std::string password_; - Struct systemDisk_; - int deploymentSetGroupNo_; - int storageSetPartitionNumber_; - std::vector tag_; - std::string privatePoolOptionsId_; - int autoRenewPeriod_; - std::string nodeControllerId_; - int period_; - bool dryRun_; - long ownerId_; - std::string capacityReservationPreference_; - std::string vSwitchId_; - std::string privateIpAddress_; - std::string spotStrategy_; - std::string periodUnit_; - std::string instanceName_; - bool autoRenew_; - std::string internetChargeType_; - std::string zoneId_; - int internetMaxBandwidthIn_; - bool useAdditionalService_; - std::string affinity_; - std::string imageId_; - std::string clientToken_; - std::string vlanId_; - std::string spotInterruptionBehavior_; - std::string ioOptimized_; - std::string securityGroupId_; - int internetMaxBandwidthOut_; - bool hibernationOptionsConfigured_; - std::string description_; - std::string systemDiskCategory_; - std::string capacityReservationId_; - std::string systemDiskPerformanceLevel_; - std::string userData_; - bool passwordInherit_; - std::string regionId_; - std::string httpEndpoint_; - std::string instanceType_; - std::vector arn_; - std::string instanceChargeType_; - std::string deploymentSetId_; - std::string innerIpAddress_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string tenancy_; - std::string systemDiskDiskName_; - std::string ramRoleName_; - std::string dedicatedHostId_; - std::string clusterId_; - std::string creditSpecification_; - int spotDuration_; - std::vector dataDisk_; - std::string storageSetId_; - int systemDiskSize_; - std::string imageFamily_; - std::string httpTokens_; - std::string systemDiskDescription_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_CREATEINSTANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT CreateInstanceRequest : public RpcServiceRequest { +public: + struct SystemDisk { + std::string storageClusterId; + }; + struct Tag { + std::string value; + std::string key; + }; + struct Arn { + std::string rolearn; + std::string roleType; + long assumeRoleFor; + }; + struct DataDisk { + std::string diskName; + std::string snapshotId; + int size; + bool encrypted; + std::string performanceLevel; + std::string encryptAlgorithm; + std::string description; + std::string storageClusterId; + std::string category; + std::string kMSKeyId; + std::string device; + bool deleteWithInstance; + }; + CreateInstanceRequest(); + ~CreateInstanceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getHpcClusterId() const; + void setHpcClusterId(const std::string &hpcClusterId); + int getHttpPutResponseHopLimit() const; + void setHttpPutResponseHopLimit(int httpPutResponseHopLimit); + std::string getSecurityEnhancementStrategy() const; + void setSecurityEnhancementStrategy(const std::string &securityEnhancementStrategy); + std::string getKeyPairName() const; + void setKeyPairName(const std::string &keyPairName); + float getSpotPriceLimit() const; + void setSpotPriceLimit(float spotPriceLimit); + bool getDeletionProtection() const; + void setDeletionProtection(bool deletionProtection); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getPrivatePoolOptionsMatchCriteria() const; + void setPrivatePoolOptionsMatchCriteria(const std::string &privatePoolOptionsMatchCriteria); + std::string getHostName() const; + void setHostName(const std::string &hostName); + std::string getPassword() const; + void setPassword(const std::string &password); + SystemDisk getSystemDisk() const; + void setSystemDisk(const SystemDisk &systemDisk); + int getDeploymentSetGroupNo() const; + void setDeploymentSetGroupNo(int deploymentSetGroupNo); + int getStorageSetPartitionNumber() const; + void setStorageSetPartitionNumber(int storageSetPartitionNumber); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getPrivatePoolOptionsId() const; + void setPrivatePoolOptionsId(const std::string &privatePoolOptionsId); + int getAutoRenewPeriod() const; + void setAutoRenewPeriod(int autoRenewPeriod); + std::string getNodeControllerId() const; + void setNodeControllerId(const std::string &nodeControllerId); + int getPeriod() const; + void setPeriod(int period); + bool getDryRun() const; + void setDryRun(bool dryRun); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getCapacityReservationPreference() const; + void setCapacityReservationPreference(const std::string &capacityReservationPreference); + std::string getVSwitchId() const; + void setVSwitchId(const std::string &vSwitchId); + std::string getPrivateIpAddress() const; + void setPrivateIpAddress(const std::string &privateIpAddress); + std::string getSpotStrategy() const; + void setSpotStrategy(const std::string &spotStrategy); + std::string getPeriodUnit() const; + void setPeriodUnit(const std::string &periodUnit); + std::string getInstanceName() const; + void setInstanceName(const std::string &instanceName); + bool getAutoRenew() const; + void setAutoRenew(bool autoRenew); + std::string getInternetChargeType() const; + void setInternetChargeType(const std::string &internetChargeType); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + int getInternetMaxBandwidthIn() const; + void setInternetMaxBandwidthIn(int internetMaxBandwidthIn); + bool getUseAdditionalService() const; + void setUseAdditionalService(bool useAdditionalService); + std::string getAffinity() const; + void setAffinity(const std::string &affinity); + std::string getImageId() const; + void setImageId(const std::string &imageId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getVlanId() const; + void setVlanId(const std::string &vlanId); + std::string getSpotInterruptionBehavior() const; + void setSpotInterruptionBehavior(const std::string &spotInterruptionBehavior); + std::string getIoOptimized() const; + void setIoOptimized(const std::string &ioOptimized); + std::string getSecurityGroupId() const; + void setSecurityGroupId(const std::string &securityGroupId); + int getInternetMaxBandwidthOut() const; + void setInternetMaxBandwidthOut(int internetMaxBandwidthOut); + bool getHibernationOptionsConfigured() const; + void setHibernationOptionsConfigured(bool hibernationOptionsConfigured); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getSystemDiskCategory() const; + void setSystemDiskCategory(const std::string &systemDiskCategory); + std::string getCapacityReservationId() const; + void setCapacityReservationId(const std::string &capacityReservationId); + std::string getSystemDiskPerformanceLevel() const; + void setSystemDiskPerformanceLevel(const std::string &systemDiskPerformanceLevel); + std::string getUserData() const; + void setUserData(const std::string &userData); + bool getPasswordInherit() const; + void setPasswordInherit(bool passwordInherit); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getHttpEndpoint() const; + void setHttpEndpoint(const std::string &httpEndpoint); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + std::vector getArn() const; + void setArn(const std::vector &arn); + std::string getInstanceChargeType() const; + void setInstanceChargeType(const std::string &instanceChargeType); + std::string getDeploymentSetId() const; + void setDeploymentSetId(const std::string &deploymentSetId); + std::string getInnerIpAddress() const; + void setInnerIpAddress(const std::string &innerIpAddress); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getTenancy() const; + void setTenancy(const std::string &tenancy); + std::string getSystemDiskDiskName() const; + void setSystemDiskDiskName(const std::string &systemDiskDiskName); + std::string getRamRoleName() const; + void setRamRoleName(const std::string &ramRoleName); + std::string getDedicatedHostId() const; + void setDedicatedHostId(const std::string &dedicatedHostId); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getCreditSpecification() const; + void setCreditSpecification(const std::string &creditSpecification); + int getSpotDuration() const; + void setSpotDuration(int spotDuration); + std::vector getDataDisk() const; + void setDataDisk(const std::vector &dataDisk); + std::string getStorageSetId() const; + void setStorageSetId(const std::string &storageSetId); + int getSystemDiskSize() const; + void setSystemDiskSize(int systemDiskSize); + std::string getImageFamily() const; + void setImageFamily(const std::string &imageFamily); + std::string getHttpTokens() const; + void setHttpTokens(const std::string &httpTokens); + std::string getSystemDiskDescription() const; + void setSystemDiskDescription(const std::string &systemDiskDescription); + +private: + long resourceOwnerId_; + std::string hpcClusterId_; + int httpPutResponseHopLimit_; + std::string securityEnhancementStrategy_; + std::string keyPairName_; + float spotPriceLimit_; + bool deletionProtection_; + std::string resourceGroupId_; + std::string privatePoolOptionsMatchCriteria_; + std::string hostName_; + std::string password_; + SystemDisk systemDisk_; + int deploymentSetGroupNo_; + int storageSetPartitionNumber_; + std::vector tag_; + std::string privatePoolOptionsId_; + int autoRenewPeriod_; + std::string nodeControllerId_; + int period_; + bool dryRun_; + long ownerId_; + std::string capacityReservationPreference_; + std::string vSwitchId_; + std::string privateIpAddress_; + std::string spotStrategy_; + std::string periodUnit_; + std::string instanceName_; + bool autoRenew_; + std::string internetChargeType_; + std::string zoneId_; + int internetMaxBandwidthIn_; + bool useAdditionalService_; + std::string affinity_; + std::string imageId_; + std::string clientToken_; + std::string vlanId_; + std::string spotInterruptionBehavior_; + std::string ioOptimized_; + std::string securityGroupId_; + int internetMaxBandwidthOut_; + bool hibernationOptionsConfigured_; + std::string description_; + std::string systemDiskCategory_; + std::string capacityReservationId_; + std::string systemDiskPerformanceLevel_; + std::string userData_; + bool passwordInherit_; + std::string regionId_; + std::string httpEndpoint_; + std::string instanceType_; + std::vector arn_; + std::string instanceChargeType_; + std::string deploymentSetId_; + std::string innerIpAddress_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string tenancy_; + std::string systemDiskDiskName_; + std::string ramRoleName_; + std::string dedicatedHostId_; + std::string clusterId_; + std::string creditSpecification_; + int spotDuration_; + std::vector dataDisk_; + std::string storageSetId_; + int systemDiskSize_; + std::string imageFamily_; + std::string httpTokens_; + std::string systemDiskDescription_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEINSTANCEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/CreateKeyPairRequest.h b/ecs/include/alibabacloud/ecs/model/CreateKeyPairRequest.h index 4564ddf6d..00fd3fb7b 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateKeyPairRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateKeyPairRequest.h @@ -1,72 +1,64 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATEKEYPAIRREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEKEYPAIRREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateKeyPairRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - - public: - CreateKeyPairRequest(); - ~CreateKeyPairRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getKeyPairName()const; - void setKeyPairName(const std::string& keyPairName); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string keyPairName_; - std::string resourceGroupId_; - std::string regionId_; - std::vector tag_; - std::string resourceOwnerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_CREATEKEYPAIRREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEKEYPAIRREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEKEYPAIRREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT CreateKeyPairRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + CreateKeyPairRequest(); + ~CreateKeyPairRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getKeyPairName() const; + void setKeyPairName(const std::string &keyPairName); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string keyPairName_; + std::string resourceGroupId_; + std::string regionId_; + std::vector tag_; + std::string resourceOwnerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEKEYPAIRREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/CreateLaunchTemplateRequest.h b/ecs/include/alibabacloud/ecs/model/CreateLaunchTemplateRequest.h index b80861beb..7206d7645 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateLaunchTemplateRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateLaunchTemplateRequest.h @@ -1,227 +1,215 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATELAUNCHTEMPLATEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATELAUNCHTEMPLATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateLaunchTemplateRequest : public RpcServiceRequest - { - public: - struct TemplateTag - { - std::string key; - std::string value; - }; - struct Tag - { - std::string key; - std::string value; - }; - struct NetworkInterface - { - std::string primaryIpAddress; - std::string vSwitchId; - std::string securityGroupId; - std::string networkInterfaceName; - std::string description; - std::vector securityGroupIds; - }; - struct DataDisk - { - int size; - std::string snapshotId; - std::string category; - std::string encrypted; - std::string diskName; - std::string description; - bool deleteWithInstance; - std::string device; - std::string performanceLevel; - }; - - public: - CreateLaunchTemplateRequest(); - ~CreateLaunchTemplateRequest(); - - std::string getLaunchTemplateName()const; - void setLaunchTemplateName(const std::string& launchTemplateName); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getSecurityEnhancementStrategy()const; - void setSecurityEnhancementStrategy(const std::string& securityEnhancementStrategy); - std::string getNetworkType()const; - void setNetworkType(const std::string& networkType); - std::string getKeyPairName()const; - void setKeyPairName(const std::string& keyPairName); - float getSpotPriceLimit()const; - void setSpotPriceLimit(float spotPriceLimit); - std::string getImageOwnerAlias()const; - void setImageOwnerAlias(const std::string& imageOwnerAlias); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getHostName()const; - void setHostName(const std::string& hostName); - int getSystemDiskIops()const; - void setSystemDiskIops(int systemDiskIops); - std::vector getTemplateTag()const; - void setTemplateTag(const std::vector& templateTag); - std::vector getTag()const; - void setTag(const std::vector& tag); - int getPeriod()const; - void setPeriod(int period); - std::string getTemplateResourceGroupId()const; - void setTemplateResourceGroupId(const std::string& templateResourceGroupId); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getVSwitchId()const; - void setVSwitchId(const std::string& vSwitchId); - std::string getSpotStrategy()const; - void setSpotStrategy(const std::string& spotStrategy); - std::string getPrivateIpAddress()const; - void setPrivateIpAddress(const std::string& privateIpAddress); - std::string getInstanceName()const; - void setInstanceName(const std::string& instanceName); - std::string getInternetChargeType()const; - void setInternetChargeType(const std::string& internetChargeType); - std::string getZoneId()const; - void setZoneId(const std::string& zoneId); - int getInternetMaxBandwidthIn()const; - void setInternetMaxBandwidthIn(int internetMaxBandwidthIn); - std::string getVersionDescription()const; - void setVersionDescription(const std::string& versionDescription); - bool getSystemDiskDeleteWithInstance()const; - void setSystemDiskDeleteWithInstance(bool systemDiskDeleteWithInstance); - std::string getImageId()const; - void setImageId(const std::string& imageId); - std::string getIoOptimized()const; - void setIoOptimized(const std::string& ioOptimized); - std::string getSecurityGroupId()const; - void setSecurityGroupId(const std::string& securityGroupId); - int getInternetMaxBandwidthOut()const; - void setInternetMaxBandwidthOut(int internetMaxBandwidthOut); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getSystemDiskCategory()const; - void setSystemDiskCategory(const std::string& systemDiskCategory); - std::string getSystemDiskPerformanceLevel()const; - void setSystemDiskPerformanceLevel(const std::string& systemDiskPerformanceLevel); - std::string getUserData()const; - void setUserData(const std::string& userData); - bool getPasswordInherit()const; - void setPasswordInherit(bool passwordInherit); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getInstanceType()const; - void setInstanceType(const std::string& instanceType); - std::string getInstanceChargeType()const; - void setInstanceChargeType(const std::string& instanceChargeType); - bool getEnableVmOsConfig()const; - void setEnableVmOsConfig(bool enableVmOsConfig); - std::vector getNetworkInterface()const; - void setNetworkInterface(const std::vector& networkInterface); - std::string getDeploymentSetId()const; - void setDeploymentSetId(const std::string& deploymentSetId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getSystemDiskDiskName()const; - void setSystemDiskDiskName(const std::string& systemDiskDiskName); - std::string getRamRoleName()const; - void setRamRoleName(const std::string& ramRoleName); - std::string getAutoReleaseTime()const; - void setAutoReleaseTime(const std::string& autoReleaseTime); - int getSpotDuration()const; - void setSpotDuration(int spotDuration); - std::vector getSecurityGroupIds()const; - void setSecurityGroupIds(const std::vector& securityGroupIds); - std::vector getDataDisk()const; - void setDataDisk(const std::vector& dataDisk); - int getSystemDiskSize()const; - void setSystemDiskSize(int systemDiskSize); - std::string getVpcId()const; - void setVpcId(const std::string& vpcId); - std::string getSystemDiskDescription()const; - void setSystemDiskDescription(const std::string& systemDiskDescription); - - private: - std::string launchTemplateName_; - long resourceOwnerId_; - std::string securityEnhancementStrategy_; - std::string networkType_; - std::string keyPairName_; - float spotPriceLimit_; - std::string imageOwnerAlias_; - std::string resourceGroupId_; - std::string hostName_; - int systemDiskIops_; - std::vector templateTag_; - std::vector tag_; - int period_; - std::string templateResourceGroupId_; - long ownerId_; - std::string vSwitchId_; - std::string spotStrategy_; - std::string privateIpAddress_; - std::string instanceName_; - std::string internetChargeType_; - std::string zoneId_; - int internetMaxBandwidthIn_; - std::string versionDescription_; - bool systemDiskDeleteWithInstance_; - std::string imageId_; - std::string ioOptimized_; - std::string securityGroupId_; - int internetMaxBandwidthOut_; - std::string description_; - std::string systemDiskCategory_; - std::string systemDiskPerformanceLevel_; - std::string userData_; - bool passwordInherit_; - std::string regionId_; - std::string instanceType_; - std::string instanceChargeType_; - bool enableVmOsConfig_; - std::vector networkInterface_; - std::string deploymentSetId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string systemDiskDiskName_; - std::string ramRoleName_; - std::string autoReleaseTime_; - int spotDuration_; - std::vector securityGroupIds_; - std::vector dataDisk_; - int systemDiskSize_; - std::string vpcId_; - std::string systemDiskDescription_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_CREATELAUNCHTEMPLATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATELAUNCHTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATELAUNCHTEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT CreateLaunchTemplateRequest : public RpcServiceRequest { +public: + struct TemplateTag { + std::string key; + std::string value; + }; + struct Tag { + std::string key; + std::string value; + }; + struct NetworkInterface { + std::string vSwitchId; + std::string networkInterfaceName; + std::string description; + std::string securityGroupId; + std::string primaryIpAddress; + }; + struct DataDisk { + std::string performanceLevel; + std::string description; + std::string snapshotId; + int size; + std::string device; + std::string diskName; + std::string category; + bool deleteWithInstance; + std::string encrypted; + }; + CreateLaunchTemplateRequest(); + ~CreateLaunchTemplateRequest(); + std::string getLaunchTemplateName() const; + void setLaunchTemplateName(const std::string &launchTemplateName); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSecurityEnhancementStrategy() const; + void setSecurityEnhancementStrategy(const std::string &securityEnhancementStrategy); + std::string getNetworkType() const; + void setNetworkType(const std::string &networkType); + std::string getKeyPairName() const; + void setKeyPairName(const std::string &keyPairName); + float getSpotPriceLimit() const; + void setSpotPriceLimit(float spotPriceLimit); + std::string getImageOwnerAlias() const; + void setImageOwnerAlias(const std::string &imageOwnerAlias); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getHostName() const; + void setHostName(const std::string &hostName); + int getSystemDiskIops() const; + void setSystemDiskIops(int systemDiskIops); + std::vector getTemplateTag() const; + void setTemplateTag(const std::vector &templateTag); + std::vector getTag() const; + void setTag(const std::vector &tag); + int getPeriod() const; + void setPeriod(int period); + std::string getTemplateResourceGroupId() const; + void setTemplateResourceGroupId(const std::string &templateResourceGroupId); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getVSwitchId() const; + void setVSwitchId(const std::string &vSwitchId); + std::string getSpotStrategy() const; + void setSpotStrategy(const std::string &spotStrategy); + std::string getPrivateIpAddress() const; + void setPrivateIpAddress(const std::string &privateIpAddress); + std::string getInstanceName() const; + void setInstanceName(const std::string &instanceName); + std::string getInternetChargeType() const; + void setInternetChargeType(const std::string &internetChargeType); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + int getInternetMaxBandwidthIn() const; + void setInternetMaxBandwidthIn(int internetMaxBandwidthIn); + std::string getVersionDescription() const; + void setVersionDescription(const std::string &versionDescription); + bool getSystemDiskDeleteWithInstance() const; + void setSystemDiskDeleteWithInstance(bool systemDiskDeleteWithInstance); + std::string getImageId() const; + void setImageId(const std::string &imageId); + std::string getIoOptimized() const; + void setIoOptimized(const std::string &ioOptimized); + std::string getSecurityGroupId() const; + void setSecurityGroupId(const std::string &securityGroupId); + int getInternetMaxBandwidthOut() const; + void setInternetMaxBandwidthOut(int internetMaxBandwidthOut); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getSystemDiskCategory() const; + void setSystemDiskCategory(const std::string &systemDiskCategory); + std::string getSystemDiskPerformanceLevel() const; + void setSystemDiskPerformanceLevel(const std::string &systemDiskPerformanceLevel); + std::string getUserData() const; + void setUserData(const std::string &userData); + bool getPasswordInherit() const; + void setPasswordInherit(bool passwordInherit); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + std::string getInstanceChargeType() const; + void setInstanceChargeType(const std::string &instanceChargeType); + bool getEnableVmOsConfig() const; + void setEnableVmOsConfig(bool enableVmOsConfig); + std::string getDeploymentSetId() const; + void setDeploymentSetId(const std::string &deploymentSetId); + std::vector getNetworkInterface() const; + void setNetworkInterface(const std::vector &networkInterface); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getSystemDiskDiskName() const; + void setSystemDiskDiskName(const std::string &systemDiskDiskName); + std::string getRamRoleName() const; + void setRamRoleName(const std::string &ramRoleName); + std::string getAutoReleaseTime() const; + void setAutoReleaseTime(const std::string &autoReleaseTime); + int getSpotDuration() const; + void setSpotDuration(int spotDuration); + std::vector getSecurityGroupIds() const; + void setSecurityGroupIds(const std::vector &securityGroupIds); + std::vector getDataDisk() const; + void setDataDisk(const std::vector &dataDisk); + int getSystemDiskSize() const; + void setSystemDiskSize(int systemDiskSize); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + std::string getSystemDiskDescription() const; + void setSystemDiskDescription(const std::string &systemDiskDescription); + +private: + std::string launchTemplateName_; + long resourceOwnerId_; + std::string securityEnhancementStrategy_; + std::string networkType_; + std::string keyPairName_; + float spotPriceLimit_; + std::string imageOwnerAlias_; + std::string resourceGroupId_; + std::string hostName_; + int systemDiskIops_; + std::vector templateTag_; + std::vector tag_; + int period_; + std::string templateResourceGroupId_; + long ownerId_; + std::string vSwitchId_; + std::string spotStrategy_; + std::string privateIpAddress_; + std::string instanceName_; + std::string internetChargeType_; + std::string zoneId_; + int internetMaxBandwidthIn_; + std::string versionDescription_; + bool systemDiskDeleteWithInstance_; + std::string imageId_; + std::string ioOptimized_; + std::string securityGroupId_; + int internetMaxBandwidthOut_; + std::string description_; + std::string systemDiskCategory_; + std::string systemDiskPerformanceLevel_; + std::string userData_; + bool passwordInherit_; + std::string regionId_; + std::string instanceType_; + std::string instanceChargeType_; + bool enableVmOsConfig_; + std::string deploymentSetId_; + std::vector networkInterface_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string systemDiskDiskName_; + std::string ramRoleName_; + std::string autoReleaseTime_; + int spotDuration_; + std::vector securityGroupIds_; + std::vector dataDisk_; + int systemDiskSize_; + std::string vpcId_; + std::string systemDiskDescription_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_CREATELAUNCHTEMPLATEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/CreateLaunchTemplateVersionRequest.h b/ecs/include/alibabacloud/ecs/model/CreateLaunchTemplateVersionRequest.h index 14f77627d..7055746a1 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateLaunchTemplateVersionRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateLaunchTemplateVersionRequest.h @@ -1,219 +1,208 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATELAUNCHTEMPLATEVERSIONREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATELAUNCHTEMPLATEVERSIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateLaunchTemplateVersionRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string key; - std::string value; - }; - struct NetworkInterface - { - std::string primaryIpAddress; - std::string vSwitchId; - std::string securityGroupId; - std::string networkInterfaceName; - std::string description; - std::vector securityGroupIds; - }; - struct DataDisk - { - int size; - std::string snapshotId; - std::string category; - std::string encrypted; - std::string diskName; - std::string description; - bool deleteWithInstance; - std::string device; - std::string performanceLevel; - }; - - public: - CreateLaunchTemplateVersionRequest(); - ~CreateLaunchTemplateVersionRequest(); - - std::string getLaunchTemplateName()const; - void setLaunchTemplateName(const std::string& launchTemplateName); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getSecurityEnhancementStrategy()const; - void setSecurityEnhancementStrategy(const std::string& securityEnhancementStrategy); - std::string getNetworkType()const; - void setNetworkType(const std::string& networkType); - std::string getKeyPairName()const; - void setKeyPairName(const std::string& keyPairName); - float getSpotPriceLimit()const; - void setSpotPriceLimit(float spotPriceLimit); - std::string getImageOwnerAlias()const; - void setImageOwnerAlias(const std::string& imageOwnerAlias); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getHostName()const; - void setHostName(const std::string& hostName); - int getSystemDiskIops()const; - void setSystemDiskIops(int systemDiskIops); - std::vector getTag()const; - void setTag(const std::vector& tag); - int getPeriod()const; - void setPeriod(int period); - std::string getLaunchTemplateId()const; - void setLaunchTemplateId(const std::string& launchTemplateId); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getVSwitchId()const; - void setVSwitchId(const std::string& vSwitchId); - std::string getSpotStrategy()const; - void setSpotStrategy(const std::string& spotStrategy); - std::string getPrivateIpAddress()const; - void setPrivateIpAddress(const std::string& privateIpAddress); - std::string getInstanceName()const; - void setInstanceName(const std::string& instanceName); - std::string getInternetChargeType()const; - void setInternetChargeType(const std::string& internetChargeType); - std::string getZoneId()const; - void setZoneId(const std::string& zoneId); - int getInternetMaxBandwidthIn()const; - void setInternetMaxBandwidthIn(int internetMaxBandwidthIn); - std::string getVersionDescription()const; - void setVersionDescription(const std::string& versionDescription); - bool getSystemDiskDeleteWithInstance()const; - void setSystemDiskDeleteWithInstance(bool systemDiskDeleteWithInstance); - std::string getImageId()const; - void setImageId(const std::string& imageId); - std::string getIoOptimized()const; - void setIoOptimized(const std::string& ioOptimized); - std::string getSecurityGroupId()const; - void setSecurityGroupId(const std::string& securityGroupId); - int getInternetMaxBandwidthOut()const; - void setInternetMaxBandwidthOut(int internetMaxBandwidthOut); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getSystemDiskCategory()const; - void setSystemDiskCategory(const std::string& systemDiskCategory); - std::string getSystemDiskPerformanceLevel()const; - void setSystemDiskPerformanceLevel(const std::string& systemDiskPerformanceLevel); - std::string getUserData()const; - void setUserData(const std::string& userData); - bool getPasswordInherit()const; - void setPasswordInherit(bool passwordInherit); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getInstanceType()const; - void setInstanceType(const std::string& instanceType); - std::string getInstanceChargeType()const; - void setInstanceChargeType(const std::string& instanceChargeType); - bool getEnableVmOsConfig()const; - void setEnableVmOsConfig(bool enableVmOsConfig); - std::vector getNetworkInterface()const; - void setNetworkInterface(const std::vector& networkInterface); - std::string getDeploymentSetId()const; - void setDeploymentSetId(const std::string& deploymentSetId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getSystemDiskDiskName()const; - void setSystemDiskDiskName(const std::string& systemDiskDiskName); - std::string getRamRoleName()const; - void setRamRoleName(const std::string& ramRoleName); - std::string getAutoReleaseTime()const; - void setAutoReleaseTime(const std::string& autoReleaseTime); - int getSpotDuration()const; - void setSpotDuration(int spotDuration); - std::vector getSecurityGroupIds()const; - void setSecurityGroupIds(const std::vector& securityGroupIds); - std::vector getDataDisk()const; - void setDataDisk(const std::vector& dataDisk); - int getSystemDiskSize()const; - void setSystemDiskSize(int systemDiskSize); - std::string getVpcId()const; - void setVpcId(const std::string& vpcId); - std::string getSystemDiskDescription()const; - void setSystemDiskDescription(const std::string& systemDiskDescription); - - private: - std::string launchTemplateName_; - long resourceOwnerId_; - std::string securityEnhancementStrategy_; - std::string networkType_; - std::string keyPairName_; - float spotPriceLimit_; - std::string imageOwnerAlias_; - std::string resourceGroupId_; - std::string hostName_; - int systemDiskIops_; - std::vector tag_; - int period_; - std::string launchTemplateId_; - long ownerId_; - std::string vSwitchId_; - std::string spotStrategy_; - std::string privateIpAddress_; - std::string instanceName_; - std::string internetChargeType_; - std::string zoneId_; - int internetMaxBandwidthIn_; - std::string versionDescription_; - bool systemDiskDeleteWithInstance_; - std::string imageId_; - std::string ioOptimized_; - std::string securityGroupId_; - int internetMaxBandwidthOut_; - std::string description_; - std::string systemDiskCategory_; - std::string systemDiskPerformanceLevel_; - std::string userData_; - bool passwordInherit_; - std::string regionId_; - std::string instanceType_; - std::string instanceChargeType_; - bool enableVmOsConfig_; - std::vector networkInterface_; - std::string deploymentSetId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string systemDiskDiskName_; - std::string ramRoleName_; - std::string autoReleaseTime_; - int spotDuration_; - std::vector securityGroupIds_; - std::vector dataDisk_; - int systemDiskSize_; - std::string vpcId_; - std::string systemDiskDescription_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_CREATELAUNCHTEMPLATEVERSIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATELAUNCHTEMPLATEVERSIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATELAUNCHTEMPLATEVERSIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT CreateLaunchTemplateVersionRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + struct NetworkInterface { + std::string vSwitchId; + std::string networkInterfaceName; + std::string description; + std::string securityGroupId; + std::string primaryIpAddress; + }; + struct DataDisk { + std::string performanceLevel; + std::string description; + std::string snapshotId; + int size; + std::string device; + std::string diskName; + std::string category; + bool deleteWithInstance; + std::string encrypted; + }; + CreateLaunchTemplateVersionRequest(); + ~CreateLaunchTemplateVersionRequest(); + std::string getLaunchTemplateName() const; + void setLaunchTemplateName(const std::string &launchTemplateName); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSecurityEnhancementStrategy() const; + void setSecurityEnhancementStrategy(const std::string &securityEnhancementStrategy); + std::string getNetworkType() const; + void setNetworkType(const std::string &networkType); + std::string getKeyPairName() const; + void setKeyPairName(const std::string &keyPairName); + float getSpotPriceLimit() const; + void setSpotPriceLimit(float spotPriceLimit); + std::string getImageOwnerAlias() const; + void setImageOwnerAlias(const std::string &imageOwnerAlias); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getHostName() const; + void setHostName(const std::string &hostName); + int getSystemDiskIops() const; + void setSystemDiskIops(int systemDiskIops); + std::vector getTag() const; + void setTag(const std::vector &tag); + int getPeriod() const; + void setPeriod(int period); + std::string getLaunchTemplateId() const; + void setLaunchTemplateId(const std::string &launchTemplateId); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getVSwitchId() const; + void setVSwitchId(const std::string &vSwitchId); + std::string getSpotStrategy() const; + void setSpotStrategy(const std::string &spotStrategy); + std::string getPrivateIpAddress() const; + void setPrivateIpAddress(const std::string &privateIpAddress); + std::string getInstanceName() const; + void setInstanceName(const std::string &instanceName); + std::string getInternetChargeType() const; + void setInternetChargeType(const std::string &internetChargeType); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + int getInternetMaxBandwidthIn() const; + void setInternetMaxBandwidthIn(int internetMaxBandwidthIn); + std::string getVersionDescription() const; + void setVersionDescription(const std::string &versionDescription); + bool getSystemDiskDeleteWithInstance() const; + void setSystemDiskDeleteWithInstance(bool systemDiskDeleteWithInstance); + std::string getImageId() const; + void setImageId(const std::string &imageId); + std::string getIoOptimized() const; + void setIoOptimized(const std::string &ioOptimized); + std::string getSecurityGroupId() const; + void setSecurityGroupId(const std::string &securityGroupId); + int getInternetMaxBandwidthOut() const; + void setInternetMaxBandwidthOut(int internetMaxBandwidthOut); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getSystemDiskCategory() const; + void setSystemDiskCategory(const std::string &systemDiskCategory); + std::string getSystemDiskPerformanceLevel() const; + void setSystemDiskPerformanceLevel(const std::string &systemDiskPerformanceLevel); + std::string getUserData() const; + void setUserData(const std::string &userData); + bool getPasswordInherit() const; + void setPasswordInherit(bool passwordInherit); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + std::string getInstanceChargeType() const; + void setInstanceChargeType(const std::string &instanceChargeType); + bool getEnableVmOsConfig() const; + void setEnableVmOsConfig(bool enableVmOsConfig); + std::string getDeploymentSetId() const; + void setDeploymentSetId(const std::string &deploymentSetId); + std::vector getNetworkInterface() const; + void setNetworkInterface(const std::vector &networkInterface); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getSystemDiskDiskName() const; + void setSystemDiskDiskName(const std::string &systemDiskDiskName); + std::string getRamRoleName() const; + void setRamRoleName(const std::string &ramRoleName); + std::string getAutoReleaseTime() const; + void setAutoReleaseTime(const std::string &autoReleaseTime); + int getSpotDuration() const; + void setSpotDuration(int spotDuration); + std::vector getSecurityGroupIds() const; + void setSecurityGroupIds(const std::vector &securityGroupIds); + std::vector getDataDisk() const; + void setDataDisk(const std::vector &dataDisk); + int getSystemDiskSize() const; + void setSystemDiskSize(int systemDiskSize); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + std::string getSystemDiskDescription() const; + void setSystemDiskDescription(const std::string &systemDiskDescription); + +private: + std::string launchTemplateName_; + long resourceOwnerId_; + std::string securityEnhancementStrategy_; + std::string networkType_; + std::string keyPairName_; + float spotPriceLimit_; + std::string imageOwnerAlias_; + std::string resourceGroupId_; + std::string hostName_; + int systemDiskIops_; + std::vector tag_; + int period_; + std::string launchTemplateId_; + long ownerId_; + std::string vSwitchId_; + std::string spotStrategy_; + std::string privateIpAddress_; + std::string instanceName_; + std::string internetChargeType_; + std::string zoneId_; + int internetMaxBandwidthIn_; + std::string versionDescription_; + bool systemDiskDeleteWithInstance_; + std::string imageId_; + std::string ioOptimized_; + std::string securityGroupId_; + int internetMaxBandwidthOut_; + std::string description_; + std::string systemDiskCategory_; + std::string systemDiskPerformanceLevel_; + std::string userData_; + bool passwordInherit_; + std::string regionId_; + std::string instanceType_; + std::string instanceChargeType_; + bool enableVmOsConfig_; + std::string deploymentSetId_; + std::vector networkInterface_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string systemDiskDiskName_; + std::string ramRoleName_; + std::string autoReleaseTime_; + int spotDuration_; + std::vector securityGroupIds_; + std::vector dataDisk_; + int systemDiskSize_; + std::string vpcId_; + std::string systemDiskDescription_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_CREATELAUNCHTEMPLATEVERSIONREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/CreateNatGatewayRequest.h b/ecs/include/alibabacloud/ecs/model/CreateNatGatewayRequest.h index d500ef355..898ded179 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateNatGatewayRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateNatGatewayRequest.h @@ -1,82 +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_ECS_MODEL_CREATENATGATEWAYREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATENATGATEWAYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateNatGatewayRequest : public RpcServiceRequest - { - public: - struct BandwidthPackage - { - int bandwidth; - std::string zone; - int ipCount; - }; - - public: - CreateNatGatewayRequest(); - ~CreateNatGatewayRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::vector getBandwidthPackage()const; - void setBandwidthPackage(const std::vector& bandwidthPackage); - std::string getResourceOwnerAccount()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 getVpcId()const; - void setVpcId(const std::string& vpcId); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string description_; - std::string regionId_; - std::vector bandwidthPackage_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string vpcId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_CREATENATGATEWAYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATENATGATEWAYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATENATGATEWAYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT CreateNatGatewayRequest : public RpcServiceRequest { +public: + struct BandwidthPackage { + int bandwidth; + std::string zone; + int ipCount; + }; + CreateNatGatewayRequest(); + ~CreateNatGatewayRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getBandwidthPackage() const; + void setBandwidthPackage(const std::vector &bandwidthPackage); + std::string getResourceOwnerAccount() 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 getVpcId() const; + void setVpcId(const std::string &vpcId); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string description_; + std::string regionId_; + std::vector bandwidthPackage_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vpcId_; + std::string name_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_CREATENATGATEWAYREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/CreateNetworkInterfacePermissionRequest.h b/ecs/include/alibabacloud/ecs/model/CreateNetworkInterfacePermissionRequest.h index 0ff8e8cb7..2d4738fb6 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateNetworkInterfacePermissionRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateNetworkInterfacePermissionRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATENETWORKINTERFACEPERMISSIONREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATENETWORKINTERFACEPERMISSIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateNetworkInterfacePermissionRequest : public RpcServiceRequest - { - - public: - CreateNetworkInterfacePermissionRequest(); - ~CreateNetworkInterfacePermissionRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - long getAccountId()const; - void setAccountId(long accountId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getPermission()const; - void setPermission(const std::string& permission); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getNetworkInterfaceId()const; - void setNetworkInterfaceId(const std::string& networkInterfaceId); - - private: - long resourceOwnerId_; - long accountId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string permission_; - long ownerId_; - std::string networkInterfaceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_CREATENETWORKINTERFACEPERMISSIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATENETWORKINTERFACEPERMISSIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATENETWORKINTERFACEPERMISSIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT CreateNetworkInterfacePermissionRequest : public RpcServiceRequest { +public: + CreateNetworkInterfacePermissionRequest(); + ~CreateNetworkInterfacePermissionRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + long getAccountId() const; + void setAccountId(long accountId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getPermission() const; + void setPermission(const std::string &permission); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getNetworkInterfaceId() const; + void setNetworkInterfaceId(const std::string &networkInterfaceId); + +private: + long resourceOwnerId_; + long accountId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string permission_; + long ownerId_; + std::string networkInterfaceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_CREATENETWORKINTERFACEPERMISSIONREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/CreateNetworkInterfacePermissionResult.h b/ecs/include/alibabacloud/ecs/model/CreateNetworkInterfacePermissionResult.h index 69a3e41be..77c957712 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateNetworkInterfacePermissionResult.h +++ b/ecs/include/alibabacloud/ecs/model/CreateNetworkInterfacePermissionResult.h @@ -36,8 +36,8 @@ namespace AlibabaCloud { std::string permissionState; long accountId; - std::string serviceName; std::string networkInterfacePermissionId; + std::string serviceName; std::string permission; std::string networkInterfaceId; }; diff --git a/ecs/include/alibabacloud/ecs/model/CreateNetworkInterfaceRequest.h b/ecs/include/alibabacloud/ecs/model/CreateNetworkInterfaceRequest.h index f44bfe728..c94317d41 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateNetworkInterfaceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateNetworkInterfaceRequest.h @@ -1,123 +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. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATENETWORKINTERFACEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATENETWORKINTERFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateNetworkInterfaceRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string key; - std::string value; - }; - - public: - CreateNetworkInterfaceRequest(); - ~CreateNetworkInterfaceRequest(); - - int getQueueNumber()const; - void setQueueNumber(int queueNumber); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getSecurityGroupId()const; - void setSecurityGroupId(const std::string& securityGroupId); - std::string getDescription()const; - void setDescription(const std::string& description); - int getSecondaryPrivateIpAddressCount()const; - void setSecondaryPrivateIpAddressCount(int secondaryPrivateIpAddressCount); - std::string getBusinessType()const; - void setBusinessType(const std::string& businessType); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getInstanceType()const; - void setInstanceType(const std::string& instanceType); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getNetworkInterfaceName()const; - void setNetworkInterfaceName(const std::string& networkInterfaceName); - bool getVisible()const; - void setVisible(bool visible); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - int getIpv6AddressCount()const; - void setIpv6AddressCount(int ipv6AddressCount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - int getQueuePairNumber()const; - void setQueuePairNumber(int queuePairNumber); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::vector getSecurityGroupIds()const; - void setSecurityGroupIds(const std::vector& securityGroupIds); - std::string getNetworkInterfaceTrafficMode()const; - void setNetworkInterfaceTrafficMode(const std::string& networkInterfaceTrafficMode); - std::string getVSwitchId()const; - void setVSwitchId(const std::string& vSwitchId); - std::vector getPrivateIpAddress()const; - void setPrivateIpAddress(const std::vector& privateIpAddress); - std::string getPrimaryIpAddress()const; - void setPrimaryIpAddress(const std::string& primaryIpAddress); - std::vector getIpv6Address()const; - void setIpv6Address(const std::vector& ipv6Address); - - private: - int queueNumber_; - long resourceOwnerId_; - std::string clientToken_; - std::string securityGroupId_; - std::string description_; - int secondaryPrivateIpAddressCount_; - std::string businessType_; - std::string resourceGroupId_; - std::string regionId_; - std::string instanceType_; - std::vector tag_; - std::string networkInterfaceName_; - bool visible_; - std::string resourceOwnerAccount_; - int ipv6AddressCount_; - std::string ownerAccount_; - int queuePairNumber_; - long ownerId_; - std::vector securityGroupIds_; - std::string networkInterfaceTrafficMode_; - std::string vSwitchId_; - std::vector privateIpAddress_; - std::string primaryIpAddress_; - std::vector ipv6Address_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_CREATENETWORKINTERFACEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATENETWORKINTERFACEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATENETWORKINTERFACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT CreateNetworkInterfaceRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + CreateNetworkInterfaceRequest(); + ~CreateNetworkInterfaceRequest(); + int getQueueNumber() const; + void setQueueNumber(int queueNumber); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getSecurityGroupId() const; + void setSecurityGroupId(const std::string &securityGroupId); + std::string getDescription() const; + void setDescription(const std::string &description); + int getSecondaryPrivateIpAddressCount() const; + void setSecondaryPrivateIpAddressCount(int secondaryPrivateIpAddressCount); + std::string getBusinessType() const; + void setBusinessType(const std::string &businessType); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getNetworkInterfaceName() const; + void setNetworkInterfaceName(const std::string &networkInterfaceName); + bool getVisible() const; + void setVisible(bool visible); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + int getIpv6AddressCount() const; + void setIpv6AddressCount(int ipv6AddressCount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + int getQueuePairNumber() const; + void setQueuePairNumber(int queuePairNumber); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getSecurityGroupIds() const; + void setSecurityGroupIds(const std::vector &securityGroupIds); + std::string getNetworkInterfaceTrafficMode() const; + void setNetworkInterfaceTrafficMode(const std::string &networkInterfaceTrafficMode); + std::string getVSwitchId() const; + void setVSwitchId(const std::string &vSwitchId); + std::vector getPrivateIpAddress() const; + void setPrivateIpAddress(const std::vector &privateIpAddress); + std::string getPrimaryIpAddress() const; + void setPrimaryIpAddress(const std::string &primaryIpAddress); + std::vector getIpv6Address() const; + void setIpv6Address(const std::vector &ipv6Address); + +private: + int queueNumber_; + long resourceOwnerId_; + std::string clientToken_; + std::string securityGroupId_; + std::string description_; + int secondaryPrivateIpAddressCount_; + std::string businessType_; + std::string resourceGroupId_; + std::string regionId_; + std::string instanceType_; + std::vector tag_; + std::string networkInterfaceName_; + bool visible_; + std::string resourceOwnerAccount_; + int ipv6AddressCount_; + std::string ownerAccount_; + int queuePairNumber_; + long ownerId_; + std::vector securityGroupIds_; + std::string networkInterfaceTrafficMode_; + std::string vSwitchId_; + std::vector privateIpAddress_; + std::string primaryIpAddress_; + std::vector ipv6Address_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_CREATENETWORKINTERFACEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/CreatePhysicalConnectionRequest.h b/ecs/include/alibabacloud/ecs/model/CreatePhysicalConnectionRequest.h index 8ba922b3a..97bf1e2ae 100644 --- a/ecs/include/alibabacloud/ecs/model/CreatePhysicalConnectionRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreatePhysicalConnectionRequest.h @@ -1,96 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATEPHYSICALCONNECTIONREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEPHYSICALCONNECTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreatePhysicalConnectionRequest : public RpcServiceRequest - { - - public: - CreatePhysicalConnectionRequest(); - ~CreatePhysicalConnectionRequest(); - - std::string getAccessPointId()const; - void setAccessPointId(const std::string& accessPointId); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getPortType()const; - void setPortType(const std::string& portType); - std::string getCircuitCode()const; - void setCircuitCode(const std::string& circuitCode); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getType()const; - void setType(const std::string& type); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getUserCidr()const; - void setUserCidr(const std::string& userCidr); - std::string getRedundantPhysicalConnectionId()const; - void setRedundantPhysicalConnectionId(const std::string& redundantPhysicalConnectionId); - std::string getPeerLocation()const; - void setPeerLocation(const std::string& peerLocation); - int getBandwidth()const; - void setBandwidth(int bandwidth); - std::string getResourceOwnerAccount()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 getLineOperator()const; - void setLineOperator(const std::string& lineOperator); - std::string getName()const; - void setName(const std::string& name); - - private: - std::string accessPointId_; - long resourceOwnerId_; - std::string portType_; - std::string circuitCode_; - std::string clientToken_; - std::string description_; - std::string type_; - std::string regionId_; - std::string userCidr_; - std::string redundantPhysicalConnectionId_; - std::string peerLocation_; - int bandwidth_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string lineOperator_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_CREATEPHYSICALCONNECTIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEPHYSICALCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEPHYSICALCONNECTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT CreatePhysicalConnectionRequest : public RpcServiceRequest { +public: + CreatePhysicalConnectionRequest(); + ~CreatePhysicalConnectionRequest(); + std::string getAccessPointId() const; + void setAccessPointId(const std::string &accessPointId); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPortType() const; + void setPortType(const std::string &portType); + std::string getCircuitCode() const; + void setCircuitCode(const std::string &circuitCode); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getType() const; + void setType(const std::string &type); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getUserCidr() const; + void setUserCidr(const std::string &userCidr); + std::string getRedundantPhysicalConnectionId() const; + void setRedundantPhysicalConnectionId(const std::string &redundantPhysicalConnectionId); + std::string getPeerLocation() const; + void setPeerLocation(const std::string &peerLocation); + int getBandwidth() const; + void setBandwidth(int bandwidth); + std::string getResourceOwnerAccount() 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 getLineOperator() const; + void setLineOperator(const std::string &lineOperator); + std::string getName() const; + void setName(const std::string &name); + +private: + std::string accessPointId_; + long resourceOwnerId_; + std::string portType_; + std::string circuitCode_; + std::string clientToken_; + std::string description_; + std::string type_; + std::string regionId_; + std::string userCidr_; + std::string redundantPhysicalConnectionId_; + std::string peerLocation_; + int bandwidth_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string lineOperator_; + std::string name_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEPHYSICALCONNECTIONREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/CreatePrefixListRequest.h b/ecs/include/alibabacloud/ecs/model/CreatePrefixListRequest.h index 88f83aaef..f7995db01 100644 --- a/ecs/include/alibabacloud/ecs/model/CreatePrefixListRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreatePrefixListRequest.h @@ -1,84 +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_ECS_MODEL_CREATEPREFIXLISTREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEPREFIXLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreatePrefixListRequest : public RpcServiceRequest - { - public: - struct Entry - { - std::string cidr; - std::string description; - }; - - public: - CreatePrefixListRequest(); - ~CreatePrefixListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getDescription()const; - void setDescription(const std::string& description); - int getMaxEntries()const; - void setMaxEntries(int maxEntries); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getAddressFamily()const; - void setAddressFamily(const std::string& addressFamily); - std::string getResourceOwnerAccount()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 getPrefixListName()const; - void setPrefixListName(const std::string& prefixListName); - std::vector getEntry()const; - void setEntry(const std::vector& entry); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string description_; - int maxEntries_; - std::string regionId_; - std::string addressFamily_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string prefixListName_; - std::vector entry_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_CREATEPREFIXLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEPREFIXLISTREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEPREFIXLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT CreatePrefixListRequest : public RpcServiceRequest { +public: + struct Entry { + std::string description; + std::string cidr; + }; + CreatePrefixListRequest(); + ~CreatePrefixListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDescription() const; + void setDescription(const std::string &description); + int getMaxEntries() const; + void setMaxEntries(int maxEntries); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAddressFamily() const; + void setAddressFamily(const std::string &addressFamily); + std::string getResourceOwnerAccount() 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 getPrefixListName() const; + void setPrefixListName(const std::string &prefixListName); + std::vector getEntry() const; + void setEntry(const std::vector &entry); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string description_; + int maxEntries_; + std::string regionId_; + std::string addressFamily_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string prefixListName_; + std::vector entry_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEPREFIXLISTREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/CreateRouteEntryRequest.h b/ecs/include/alibabacloud/ecs/model/CreateRouteEntryRequest.h index ebe7fcbac..6ebdeb855 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateRouteEntryRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateRouteEntryRequest.h @@ -1,84 +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_ECS_MODEL_CREATEROUTEENTRYREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEROUTEENTRYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateRouteEntryRequest : public RpcServiceRequest - { - public: - struct NextHopList - { - std::string nextHopId; - std::string nextHopType; - }; - - public: - CreateRouteEntryRequest(); - ~CreateRouteEntryRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getNextHopId()const; - void setNextHopId(const std::string& nextHopId); - std::string getNextHopType()const; - void setNextHopType(const std::string& nextHopType); - std::string getRouteTableId()const; - void setRouteTableId(const std::string& routeTableId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getDestinationCidrBlock()const; - void setDestinationCidrBlock(const std::string& destinationCidrBlock); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::vector getNextHopList()const; - void setNextHopList(const std::vector& nextHopList); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - std::string nextHopId_; - std::string nextHopType_; - std::string routeTableId_; - std::string resourceOwnerAccount_; - std::string destinationCidrBlock_; - std::string ownerAccount_; - long ownerId_; - std::vector nextHopList_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_CREATEROUTEENTRYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEROUTEENTRYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEROUTEENTRYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT CreateRouteEntryRequest : public RpcServiceRequest { +public: + struct NextHopList { + std::string nextHopId; + std::string nextHopType; + }; + CreateRouteEntryRequest(); + ~CreateRouteEntryRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextHopId() const; + void setNextHopId(const std::string &nextHopId); + std::string getNextHopType() const; + void setNextHopType(const std::string &nextHopType); + std::string getRouteTableId() const; + void setRouteTableId(const std::string &routeTableId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDestinationCidrBlock() const; + void setDestinationCidrBlock(const std::string &destinationCidrBlock); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getNextHopList() const; + void setNextHopList(const std::vector &nextHopList); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string nextHopId_; + std::string nextHopType_; + std::string routeTableId_; + std::string resourceOwnerAccount_; + std::string destinationCidrBlock_; + std::string ownerAccount_; + long ownerId_; + std::vector nextHopList_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEROUTEENTRYREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/CreateRouterInterfaceRequest.h b/ecs/include/alibabacloud/ecs/model/CreateRouterInterfaceRequest.h index 455ad9535..1900c410d 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateRouterInterfaceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateRouterInterfaceRequest.h @@ -1,123 +1,117 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATEROUTERINTERFACEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEROUTERINTERFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateRouterInterfaceRequest : public RpcServiceRequest - { - - public: - CreateRouterInterfaceRequest(); - ~CreateRouterInterfaceRequest(); - - std::string getAccessPointId()const; - void setAccessPointId(const std::string& accessPointId); - std::string getOppositeRouterId()const; - void setOppositeRouterId(const std::string& oppositeRouterId); - std::string getOppositeAccessPointId()const; - void setOppositeAccessPointId(const std::string& oppositeAccessPointId); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRole()const; - void setRole(const std::string& role); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getHealthCheckTargetIp()const; - void setHealthCheckTargetIp(const std::string& healthCheckTargetIp); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getSpec()const; - void setSpec(const std::string& spec); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getUserCidr()const; - void setUserCidr(const std::string& userCidr); - std::string getOppositeInterfaceId()const; - void setOppositeInterfaceId(const std::string& oppositeInterfaceId); - std::string getInstanceChargeType()const; - void setInstanceChargeType(const std::string& instanceChargeType); - int getPeriod()const; - void setPeriod(int period); - bool getAutoPay()const; - void setAutoPay(bool autoPay); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOppositeRegionId()const; - void setOppositeRegionId(const std::string& oppositeRegionId); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getOppositeInterfaceOwnerId()const; - void setOppositeInterfaceOwnerId(const std::string& oppositeInterfaceOwnerId); - std::string getRouterType()const; - void setRouterType(const std::string& routerType); - std::string getHealthCheckSourceIp()const; - void setHealthCheckSourceIp(const std::string& healthCheckSourceIp); - std::string getRouterId()const; - void setRouterId(const std::string& routerId); - std::string getOppositeRouterType()const; - void setOppositeRouterType(const std::string& oppositeRouterType); - std::string getName()const; - void setName(const std::string& name); - std::string getPricingCycle()const; - void setPricingCycle(const std::string& pricingCycle); - - private: - std::string accessPointId_; - std::string oppositeRouterId_; - std::string oppositeAccessPointId_; - long resourceOwnerId_; - std::string role_; - std::string clientToken_; - std::string healthCheckTargetIp_; - std::string description_; - std::string spec_; - std::string regionId_; - std::string userCidr_; - std::string oppositeInterfaceId_; - std::string instanceChargeType_; - int period_; - bool autoPay_; - std::string resourceOwnerAccount_; - std::string oppositeRegionId_; - std::string ownerAccount_; - long ownerId_; - std::string oppositeInterfaceOwnerId_; - std::string routerType_; - std::string healthCheckSourceIp_; - std::string routerId_; - std::string oppositeRouterType_; - std::string name_; - std::string pricingCycle_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_CREATEROUTERINTERFACEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEROUTERINTERFACEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEROUTERINTERFACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT CreateRouterInterfaceRequest : public RpcServiceRequest { +public: + CreateRouterInterfaceRequest(); + ~CreateRouterInterfaceRequest(); + std::string getAccessPointId() const; + void setAccessPointId(const std::string &accessPointId); + std::string getOppositeRouterId() const; + void setOppositeRouterId(const std::string &oppositeRouterId); + std::string getOppositeAccessPointId() const; + void setOppositeAccessPointId(const std::string &oppositeAccessPointId); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRole() const; + void setRole(const std::string &role); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getHealthCheckTargetIp() const; + void setHealthCheckTargetIp(const std::string &healthCheckTargetIp); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getSpec() const; + void setSpec(const std::string &spec); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getUserCidr() const; + void setUserCidr(const std::string &userCidr); + std::string getOppositeInterfaceId() const; + void setOppositeInterfaceId(const std::string &oppositeInterfaceId); + std::string getInstanceChargeType() const; + void setInstanceChargeType(const std::string &instanceChargeType); + int getPeriod() const; + void setPeriod(int period); + bool getAutoPay() const; + void setAutoPay(bool autoPay); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOppositeRegionId() const; + void setOppositeRegionId(const std::string &oppositeRegionId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getOppositeInterfaceOwnerId() const; + void setOppositeInterfaceOwnerId(const std::string &oppositeInterfaceOwnerId); + std::string getRouterType() const; + void setRouterType(const std::string &routerType); + std::string getHealthCheckSourceIp() const; + void setHealthCheckSourceIp(const std::string &healthCheckSourceIp); + std::string getRouterId() const; + void setRouterId(const std::string &routerId); + std::string getOppositeRouterType() const; + void setOppositeRouterType(const std::string &oppositeRouterType); + std::string getName() const; + void setName(const std::string &name); + std::string getPricingCycle() const; + void setPricingCycle(const std::string &pricingCycle); + +private: + std::string accessPointId_; + std::string oppositeRouterId_; + std::string oppositeAccessPointId_; + long resourceOwnerId_; + std::string role_; + std::string clientToken_; + std::string healthCheckTargetIp_; + std::string description_; + std::string spec_; + std::string regionId_; + std::string userCidr_; + std::string oppositeInterfaceId_; + std::string instanceChargeType_; + int period_; + bool autoPay_; + std::string resourceOwnerAccount_; + std::string oppositeRegionId_; + std::string ownerAccount_; + long ownerId_; + std::string oppositeInterfaceOwnerId_; + std::string routerType_; + std::string healthCheckSourceIp_; + std::string routerId_; + std::string oppositeRouterType_; + std::string name_; + std::string pricingCycle_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEROUTERINTERFACEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/CreateSecurityGroupRequest.h b/ecs/include/alibabacloud/ecs/model/CreateSecurityGroupRequest.h index cfde4e9f1..232072fbb 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateSecurityGroupRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateSecurityGroupRequest.h @@ -1,90 +1,82 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATESECURITYGROUPREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATESECURITYGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateSecurityGroupRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - - public: - CreateSecurityGroupRequest(); - ~CreateSecurityGroupRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - bool getServiceManaged()const; - void setServiceManaged(bool serviceManaged); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getSecurityGroupName()const; - void setSecurityGroupName(const std::string& securityGroupName); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSecurityGroupType()const; - void setSecurityGroupType(const std::string& securityGroupType); - std::string getVpcId()const; - void setVpcId(const std::string& vpcId); - - private: - long resourceOwnerId_; - std::string clientToken_; - bool serviceManaged_; - std::string description_; - std::string securityGroupName_; - std::string resourceGroupId_; - std::string regionId_; - std::vector tag_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string securityGroupType_; - std::string vpcId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_CREATESECURITYGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATESECURITYGROUPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATESECURITYGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT CreateSecurityGroupRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + CreateSecurityGroupRequest(); + ~CreateSecurityGroupRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + bool getServiceManaged() const; + void setServiceManaged(bool serviceManaged); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getSecurityGroupName() const; + void setSecurityGroupName(const std::string &securityGroupName); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSecurityGroupType() const; + void setSecurityGroupType(const std::string &securityGroupType); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + +private: + long resourceOwnerId_; + std::string clientToken_; + bool serviceManaged_; + std::string description_; + std::string securityGroupName_; + std::string resourceGroupId_; + std::string regionId_; + std::vector tag_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string securityGroupType_; + std::string vpcId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_CREATESECURITYGROUPREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/CreateSimulatedSystemEventsRequest.h b/ecs/include/alibabacloud/ecs/model/CreateSimulatedSystemEventsRequest.h index edd6588b0..c87f9dad6 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateSimulatedSystemEventsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateSimulatedSystemEventsRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATESIMULATEDSYSTEMEVENTSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATESIMULATEDSYSTEMEVENTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateSimulatedSystemEventsRequest : public RpcServiceRequest - { - - public: - CreateSimulatedSystemEventsRequest(); - ~CreateSimulatedSystemEventsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getNotBefore()const; - void setNotBefore(const std::string& notBefore); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::vector getInstanceId()const; - void setInstanceId(const std::vector& instanceId); - std::string getEventType()const; - void setEventType(const std::string& eventType); - - private: - long resourceOwnerId_; - std::string notBefore_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::vector instanceId_; - std::string eventType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_CREATESIMULATEDSYSTEMEVENTSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATESIMULATEDSYSTEMEVENTSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATESIMULATEDSYSTEMEVENTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT CreateSimulatedSystemEventsRequest : public RpcServiceRequest { +public: + CreateSimulatedSystemEventsRequest(); + ~CreateSimulatedSystemEventsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getNotBefore() const; + void setNotBefore(const std::string ¬Before); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getInstanceId() const; + void setInstanceId(const std::vector &instanceId); + std::string getEventType() const; + void setEventType(const std::string &eventType); + +private: + long resourceOwnerId_; + std::string notBefore_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::vector instanceId_; + std::string eventType_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_CREATESIMULATEDSYSTEMEVENTSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/CreateSnapshotGroupRequest.h b/ecs/include/alibabacloud/ecs/model/CreateSnapshotGroupRequest.h index 337655208..ab52793ff 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateSnapshotGroupRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateSnapshotGroupRequest.h @@ -1,93 +1,85 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATESNAPSHOTGROUPREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATESNAPSHOTGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateSnapshotGroupRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string key; - std::string value; - }; - - public: - CreateSnapshotGroupRequest(); - ~CreateSnapshotGroupRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - bool getInstantAccess()const; - void setInstantAccess(bool instantAccess); - std::vector getExcludeDiskId()const; - void setExcludeDiskId(const std::vector& excludeDiskId); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - int getInstantAccessRetentionDays()const; - void setInstantAccessRetentionDays(int instantAccessRetentionDays); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::vector getDiskId()const; - void setDiskId(const std::vector& diskId); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - bool instantAccess_; - std::vector excludeDiskId_; - std::string description_; - std::string resourceGroupId_; - int instantAccessRetentionDays_; - std::string regionId_; - std::vector diskId_; - std::vector tag_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string instanceId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_CREATESNAPSHOTGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATESNAPSHOTGROUPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATESNAPSHOTGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT CreateSnapshotGroupRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + CreateSnapshotGroupRequest(); + ~CreateSnapshotGroupRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + bool getInstantAccess() const; + void setInstantAccess(bool instantAccess); + std::vector getExcludeDiskId() const; + void setExcludeDiskId(const std::vector &excludeDiskId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + int getInstantAccessRetentionDays() const; + void setInstantAccessRetentionDays(int instantAccessRetentionDays); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getDiskId() const; + void setDiskId(const std::vector &diskId); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + bool instantAccess_; + std::vector excludeDiskId_; + std::string description_; + std::string resourceGroupId_; + int instantAccessRetentionDays_; + std::string regionId_; + std::vector diskId_; + std::vector tag_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; + std::string name_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_CREATESNAPSHOTGROUPREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/CreateSnapshotRequest.h b/ecs/include/alibabacloud/ecs/model/CreateSnapshotRequest.h index b0a412acd..99de1f368 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateSnapshotRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateSnapshotRequest.h @@ -1,93 +1,85 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATESNAPSHOTREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATESNAPSHOTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateSnapshotRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - - public: - CreateSnapshotRequest(); - ~CreateSnapshotRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - bool getInstantAccess()const; - void setInstantAccess(bool instantAccess); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getSnapshotName()const; - void setSnapshotName(const std::string& snapshotName); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - int getInstantAccessRetentionDays()const; - void setInstantAccessRetentionDays(int instantAccessRetentionDays); - std::string getDiskId()const; - void setDiskId(const std::string& diskId); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - int getRetentionDays()const; - void setRetentionDays(int retentionDays); - std::string getCategory()const; - void setCategory(const std::string& category); - - private: - long resourceOwnerId_; - std::string clientToken_; - bool instantAccess_; - std::string description_; - std::string snapshotName_; - std::string resourceGroupId_; - int instantAccessRetentionDays_; - std::string diskId_; - std::vector tag_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - int retentionDays_; - std::string category_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_CREATESNAPSHOTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATESNAPSHOTREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATESNAPSHOTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT CreateSnapshotRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + CreateSnapshotRequest(); + ~CreateSnapshotRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + bool getInstantAccess() const; + void setInstantAccess(bool instantAccess); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getSnapshotName() const; + void setSnapshotName(const std::string &snapshotName); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + int getInstantAccessRetentionDays() const; + void setInstantAccessRetentionDays(int instantAccessRetentionDays); + std::string getDiskId() const; + void setDiskId(const std::string &diskId); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getRetentionDays() const; + void setRetentionDays(int retentionDays); + std::string getCategory() const; + void setCategory(const std::string &category); + +private: + long resourceOwnerId_; + std::string clientToken_; + bool instantAccess_; + std::string description_; + std::string snapshotName_; + std::string resourceGroupId_; + int instantAccessRetentionDays_; + std::string diskId_; + std::vector tag_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + int retentionDays_; + std::string category_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_CREATESNAPSHOTREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/CreateStorageSetRequest.h b/ecs/include/alibabacloud/ecs/model/CreateStorageSetRequest.h index 3e559ffea..283e77e1b 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateStorageSetRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateStorageSetRequest.h @@ -1,75 +1,69 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATESTORAGESETREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATESTORAGESETREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateStorageSetRequest : public RpcServiceRequest - { - - public: - CreateStorageSetRequest(); - ~CreateStorageSetRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - int getMaxPartitionNumber()const; - void setMaxPartitionNumber(int maxPartitionNumber); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getZoneId()const; - void setZoneId(const std::string& zoneId); - std::string getStorageSetName()const; - void setStorageSetName(const std::string& storageSetName); - - private: - long resourceOwnerId_; - std::string clientToken_; - int maxPartitionNumber_; - std::string description_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string zoneId_; - std::string storageSetName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_CREATESTORAGESETREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATESTORAGESETREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATESTORAGESETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT CreateStorageSetRequest : public RpcServiceRequest { +public: + CreateStorageSetRequest(); + ~CreateStorageSetRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + int getMaxPartitionNumber() const; + void setMaxPartitionNumber(int maxPartitionNumber); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + std::string getStorageSetName() const; + void setStorageSetName(const std::string &storageSetName); + +private: + long resourceOwnerId_; + std::string clientToken_; + int maxPartitionNumber_; + std::string description_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string zoneId_; + std::string storageSetName_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_CREATESTORAGESETREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/CreateVSwitchRequest.h b/ecs/include/alibabacloud/ecs/model/CreateVSwitchRequest.h index 727527067..c6c358d17 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateVSwitchRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateVSwitchRequest.h @@ -1,78 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATEVSWITCHREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEVSWITCHREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateVSwitchRequest : public RpcServiceRequest - { - - public: - CreateVSwitchRequest(); - ~CreateVSwitchRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getVpcId()const; - void setVpcId(const std::string& vpcId); - std::string getVSwitchName()const; - void setVSwitchName(const std::string& vSwitchName); - std::string getCidrBlock()const; - void setCidrBlock(const std::string& cidrBlock); - std::string getZoneId()const; - void setZoneId(const std::string& zoneId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string description_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string vpcId_; - std::string vSwitchName_; - std::string cidrBlock_; - std::string zoneId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_CREATEVSWITCHREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEVSWITCHREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEVSWITCHREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT CreateVSwitchRequest : public RpcServiceRequest { +public: + CreateVSwitchRequest(); + ~CreateVSwitchRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + std::string getVSwitchName() const; + void setVSwitchName(const std::string &vSwitchName); + std::string getCidrBlock() const; + void setCidrBlock(const std::string &cidrBlock); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string description_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vpcId_; + std::string vSwitchName_; + std::string cidrBlock_; + std::string zoneId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEVSWITCHREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/CreateVirtualBorderRouterRequest.h b/ecs/include/alibabacloud/ecs/model/CreateVirtualBorderRouterRequest.h index 7964647e7..152fc1aba 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateVirtualBorderRouterRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateVirtualBorderRouterRequest.h @@ -1,93 +1,87 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATEVIRTUALBORDERROUTERREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEVIRTUALBORDERROUTERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateVirtualBorderRouterRequest : public RpcServiceRequest - { - - public: - CreateVirtualBorderRouterRequest(); - ~CreateVirtualBorderRouterRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getCircuitCode()const; - void setCircuitCode(const std::string& circuitCode); - int getVlanId()const; - void setVlanId(int vlanId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getPeerGatewayIp()const; - void setPeerGatewayIp(const std::string& peerGatewayIp); - std::string getPeeringSubnetMask()const; - void setPeeringSubnetMask(const std::string& peeringSubnetMask); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getLocalGatewayIp()const; - void setLocalGatewayIp(const std::string& localGatewayIp); - std::string getUserCidr()const; - void setUserCidr(const std::string& userCidr); - std::string getResourceOwnerAccount()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 getPhysicalConnectionId()const; - void setPhysicalConnectionId(const std::string& physicalConnectionId); - std::string getName()const; - void setName(const std::string& name); - long getVbrOwnerId()const; - void setVbrOwnerId(long vbrOwnerId); - - private: - long resourceOwnerId_; - std::string circuitCode_; - int vlanId_; - std::string clientToken_; - std::string description_; - std::string peerGatewayIp_; - std::string peeringSubnetMask_; - std::string regionId_; - std::string localGatewayIp_; - std::string userCidr_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string physicalConnectionId_; - std::string name_; - long vbrOwnerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_CREATEVIRTUALBORDERROUTERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEVIRTUALBORDERROUTERREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEVIRTUALBORDERROUTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT CreateVirtualBorderRouterRequest : public RpcServiceRequest { +public: + CreateVirtualBorderRouterRequest(); + ~CreateVirtualBorderRouterRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getCircuitCode() const; + void setCircuitCode(const std::string &circuitCode); + int getVlanId() const; + void setVlanId(int vlanId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getPeerGatewayIp() const; + void setPeerGatewayIp(const std::string &peerGatewayIp); + std::string getPeeringSubnetMask() const; + void setPeeringSubnetMask(const std::string &peeringSubnetMask); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getLocalGatewayIp() const; + void setLocalGatewayIp(const std::string &localGatewayIp); + std::string getUserCidr() const; + void setUserCidr(const std::string &userCidr); + std::string getResourceOwnerAccount() 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 getPhysicalConnectionId() const; + void setPhysicalConnectionId(const std::string &physicalConnectionId); + std::string getName() const; + void setName(const std::string &name); + long getVbrOwnerId() const; + void setVbrOwnerId(long vbrOwnerId); + +private: + long resourceOwnerId_; + std::string circuitCode_; + int vlanId_; + std::string clientToken_; + std::string description_; + std::string peerGatewayIp_; + std::string peeringSubnetMask_; + std::string regionId_; + std::string localGatewayIp_; + std::string userCidr_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string physicalConnectionId_; + std::string name_; + long vbrOwnerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEVIRTUALBORDERROUTERREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/CreateVpcRequest.h b/ecs/include/alibabacloud/ecs/model/CreateVpcRequest.h index 0acf6a010..456c7d514 100644 --- a/ecs/include/alibabacloud/ecs/model/CreateVpcRequest.h +++ b/ecs/include/alibabacloud/ecs/model/CreateVpcRequest.h @@ -1,75 +1,69 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_CREATEVPCREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_CREATEVPCREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT CreateVpcRequest : public RpcServiceRequest - { - - public: - CreateVpcRequest(); - ~CreateVpcRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getVpcName()const; - void setVpcName(const std::string& vpcName); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getUserCidr()const; - void setUserCidr(const std::string& userCidr); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getCidrBlock()const; - void setCidrBlock(const std::string& cidrBlock); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string description_; - std::string vpcName_; - std::string regionId_; - std::string userCidr_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string cidrBlock_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_CREATEVPCREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_CREATEVPCREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_CREATEVPCREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT CreateVpcRequest : public RpcServiceRequest { +public: + CreateVpcRequest(); + ~CreateVpcRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getVpcName() const; + void setVpcName(const std::string &vpcName); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getUserCidr() const; + void setUserCidr(const std::string &userCidr); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getCidrBlock() const; + void setCidrBlock(const std::string &cidrBlock); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string description_; + std::string vpcName_; + std::string regionId_; + std::string userCidr_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string cidrBlock_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_CREATEVPCREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DeactivateRouterInterfaceRequest.h b/ecs/include/alibabacloud/ecs/model/DeactivateRouterInterfaceRequest.h index bbf1cdd04..3ad6b9c48 100644 --- a/ecs/include/alibabacloud/ecs/model/DeactivateRouterInterfaceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeactivateRouterInterfaceRequest.h @@ -1,60 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DEACTIVATEROUTERINTERFACEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DEACTIVATEROUTERINTERFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeactivateRouterInterfaceRequest : public RpcServiceRequest - { - - public: - DeactivateRouterInterfaceRequest(); - ~DeactivateRouterInterfaceRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getRouterInterfaceId()const; - void setRouterInterfaceId(const std::string& routerInterfaceId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - long ownerId_; - std::string routerInterfaceId_; - std::string regionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DEACTIVATEROUTERINTERFACEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DEACTIVATEROUTERINTERFACEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DEACTIVATEROUTERINTERFACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DeactivateRouterInterfaceRequest : public RpcServiceRequest { +public: + DeactivateRouterInterfaceRequest(); + ~DeactivateRouterInterfaceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getRouterInterfaceId() const; + void setRouterInterfaceId(const std::string &routerInterfaceId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string routerInterfaceId_; + std::string regionId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DEACTIVATEROUTERINTERFACEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DeleteActivationRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteActivationRequest.h index c8efc59fd..865d5d996 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteActivationRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteActivationRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEACTIVATIONREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEACTIVATIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteActivationRequest : public RpcServiceRequest - { - - public: - DeleteActivationRequest(); - ~DeleteActivationRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getActivationId()const; - void setActivationId(const std::string& activationId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string activationId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DELETEACTIVATIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEACTIVATIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEACTIVATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DeleteActivationRequest : public RpcServiceRequest { +public: + DeleteActivationRequest(); + ~DeleteActivationRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getActivationId() const; + void setActivationId(const std::string &activationId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string activationId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEACTIVATIONREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DeleteActivationResult.h b/ecs/include/alibabacloud/ecs/model/DeleteActivationResult.h index c4f69e83a..2c54fb8a6 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteActivationResult.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteActivationResult.h @@ -35,13 +35,13 @@ namespace AlibabaCloud struct Activation { std::string instanceName; - int instanceCount; int deregisteredCount; + int instanceCount; std::string description; - std::string activationId; std::string creationTime; - long timeToLiveInHours; + std::string activationId; int registeredCount; + long timeToLiveInHours; std::string ipAddressRange; }; diff --git a/ecs/include/alibabacloud/ecs/model/DeleteAutoProvisioningGroupRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteAutoProvisioningGroupRequest.h index 0145c442f..026641bbc 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteAutoProvisioningGroupRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteAutoProvisioningGroupRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEAUTOPROVISIONINGGROUPREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEAUTOPROVISIONINGGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteAutoProvisioningGroupRequest : public RpcServiceRequest - { - - public: - DeleteAutoProvisioningGroupRequest(); - ~DeleteAutoProvisioningGroupRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - bool getTerminateInstances()const; - void setTerminateInstances(bool terminateInstances); - std::string getResourceOwnerAccount()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 getAutoProvisioningGroupId()const; - void setAutoProvisioningGroupId(const std::string& autoProvisioningGroupId); - - private: - long resourceOwnerId_; - std::string regionId_; - bool terminateInstances_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string autoProvisioningGroupId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DELETEAUTOPROVISIONINGGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEAUTOPROVISIONINGGROUPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEAUTOPROVISIONINGGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DeleteAutoProvisioningGroupRequest : public RpcServiceRequest { +public: + DeleteAutoProvisioningGroupRequest(); + ~DeleteAutoProvisioningGroupRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getTerminateInstances() const; + void setTerminateInstances(bool terminateInstances); + std::string getResourceOwnerAccount() 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 getAutoProvisioningGroupId() const; + void setAutoProvisioningGroupId(const std::string &autoProvisioningGroupId); + +private: + long resourceOwnerId_; + std::string regionId_; + bool terminateInstances_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string autoProvisioningGroupId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEAUTOPROVISIONINGGROUPREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DeleteAutoSnapshotPolicyRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteAutoSnapshotPolicyRequest.h index d0f6a1921..a48fae8fe 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteAutoSnapshotPolicyRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteAutoSnapshotPolicyRequest.h @@ -1,60 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEAUTOSNAPSHOTPOLICYREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEAUTOSNAPSHOTPOLICYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteAutoSnapshotPolicyRequest : public RpcServiceRequest - { - - public: - DeleteAutoSnapshotPolicyRequest(); - ~DeleteAutoSnapshotPolicyRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAutoSnapshotPolicyId()const; - void setAutoSnapshotPolicyId(const std::string& autoSnapshotPolicyId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string autoSnapshotPolicyId_; - std::string regionId_; - std::string resourceOwnerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DELETEAUTOSNAPSHOTPOLICYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEAUTOSNAPSHOTPOLICYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEAUTOSNAPSHOTPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DeleteAutoSnapshotPolicyRequest : public RpcServiceRequest { +public: + DeleteAutoSnapshotPolicyRequest(); + ~DeleteAutoSnapshotPolicyRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAutoSnapshotPolicyId() const; + void setAutoSnapshotPolicyId(const std::string &autoSnapshotPolicyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string autoSnapshotPolicyId_; + std::string regionId_; + std::string resourceOwnerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEAUTOSNAPSHOTPOLICYREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DeleteBandwidthPackageRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteBandwidthPackageRequest.h index 255860e81..5a0bd9a9b 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteBandwidthPackageRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteBandwidthPackageRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEBANDWIDTHPACKAGEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEBANDWIDTHPACKAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteBandwidthPackageRequest : public RpcServiceRequest - { - - public: - DeleteBandwidthPackageRequest(); - ~DeleteBandwidthPackageRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getBandwidthPackageId()const; - void setBandwidthPackageId(const std::string& bandwidthPackageId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string bandwidthPackageId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DELETEBANDWIDTHPACKAGEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEBANDWIDTHPACKAGEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEBANDWIDTHPACKAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DeleteBandwidthPackageRequest : public RpcServiceRequest { +public: + DeleteBandwidthPackageRequest(); + ~DeleteBandwidthPackageRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getBandwidthPackageId() const; + void setBandwidthPackageId(const std::string &bandwidthPackageId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string bandwidthPackageId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEBANDWIDTHPACKAGEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DeleteCommandRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteCommandRequest.h index d3f26c8fd..60979d05f 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteCommandRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteCommandRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETECOMMANDREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETECOMMANDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteCommandRequest : public RpcServiceRequest - { - - public: - DeleteCommandRequest(); - ~DeleteCommandRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getCommandId()const; - void setCommandId(const std::string& commandId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string commandId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DELETECOMMANDREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETECOMMANDREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETECOMMANDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DeleteCommandRequest : public RpcServiceRequest { +public: + DeleteCommandRequest(); + ~DeleteCommandRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getCommandId() const; + void setCommandId(const std::string &commandId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string commandId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DELETECOMMANDREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DeleteDedicatedHostClusterRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteDedicatedHostClusterRequest.h index 3ec5ba60f..74f463a97 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteDedicatedHostClusterRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteDedicatedHostClusterRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEDEDICATEDHOSTCLUSTERREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEDEDICATEDHOSTCLUSTERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteDedicatedHostClusterRequest : public RpcServiceRequest - { - - public: - DeleteDedicatedHostClusterRequest(); - ~DeleteDedicatedHostClusterRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getDedicatedHostClusterId()const; - void setDedicatedHostClusterId(const std::string& dedicatedHostClusterId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string dedicatedHostClusterId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DELETEDEDICATEDHOSTCLUSTERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEDEDICATEDHOSTCLUSTERREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEDEDICATEDHOSTCLUSTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DeleteDedicatedHostClusterRequest : public RpcServiceRequest { +public: + DeleteDedicatedHostClusterRequest(); + ~DeleteDedicatedHostClusterRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDedicatedHostClusterId() const; + void setDedicatedHostClusterId(const std::string &dedicatedHostClusterId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string dedicatedHostClusterId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEDEDICATEDHOSTCLUSTERREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DeleteDemandRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteDemandRequest.h index 5ea4a1174..51dea63a3 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteDemandRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteDemandRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEDEMANDREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEDEMANDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteDemandRequest : public RpcServiceRequest - { - - public: - DeleteDemandRequest(); - ~DeleteDemandRequest(); - - std::string getReason()const; - void setReason(const std::string& reason); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()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 getDemandId()const; - void setDemandId(const std::string& demandId); - - private: - std::string reason_; - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string demandId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DELETEDEMANDREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEDEMANDREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEDEMANDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DeleteDemandRequest : public RpcServiceRequest { +public: + DeleteDemandRequest(); + ~DeleteDemandRequest(); + std::string getReason() const; + void setReason(const std::string &reason); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() 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 getDemandId() const; + void setDemandId(const std::string &demandId); + +private: + std::string reason_; + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string demandId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEDEMANDREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DeleteDeploymentSetRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteDeploymentSetRequest.h index d4d3ab15c..4d983b7c3 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteDeploymentSetRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteDeploymentSetRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEDEPLOYMENTSETREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEDEPLOYMENTSETREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteDeploymentSetRequest : public RpcServiceRequest - { - - public: - DeleteDeploymentSetRequest(); - ~DeleteDeploymentSetRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getDeploymentSetId()const; - void setDeploymentSetId(const std::string& deploymentSetId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string deploymentSetId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DELETEDEPLOYMENTSETREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEDEPLOYMENTSETREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEDEPLOYMENTSETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DeleteDeploymentSetRequest : public RpcServiceRequest { +public: + DeleteDeploymentSetRequest(); + ~DeleteDeploymentSetRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDeploymentSetId() const; + void setDeploymentSetId(const std::string &deploymentSetId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string deploymentSetId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEDEPLOYMENTSETREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DeleteDiskReplicaPairRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteDiskReplicaPairRequest.h index 21bff6101..6a25260a3 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteDiskReplicaPairRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteDiskReplicaPairRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEDISKREPLICAPAIRREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEDISKREPLICAPAIRREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteDiskReplicaPairRequest : public RpcServiceRequest - { - - public: - DeleteDiskReplicaPairRequest(); - ~DeleteDiskReplicaPairRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getReplicaPairId()const; - void setReplicaPairId(const std::string& replicaPairId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string replicaPairId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DELETEDISKREPLICAPAIRREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEDISKREPLICAPAIRREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEDISKREPLICAPAIRREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DeleteDiskReplicaPairRequest : public RpcServiceRequest { +public: + DeleteDiskReplicaPairRequest(); + ~DeleteDiskReplicaPairRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getReplicaPairId() const; + void setReplicaPairId(const std::string &replicaPairId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string replicaPairId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEDISKREPLICAPAIRREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DeleteDiskRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteDiskRequest.h index b4e6ca483..a9555acaf 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteDiskRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteDiskRequest.h @@ -1,60 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEDISKREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEDISKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteDiskRequest : public RpcServiceRequest - { - - public: - DeleteDiskRequest(); - ~DeleteDiskRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDiskId()const; - void setDiskId(const std::string& diskId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string diskId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DELETEDISKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEDISKREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEDISKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DeleteDiskRequest : public RpcServiceRequest { +public: + DeleteDiskRequest(); + ~DeleteDiskRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDiskId() const; + void setDiskId(const std::string &diskId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string diskId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEDISKREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DeleteForwardEntryRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteForwardEntryRequest.h index fc4304f0f..f50e53c57 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteForwardEntryRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteForwardEntryRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEFORWARDENTRYREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEFORWARDENTRYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteForwardEntryRequest : public RpcServiceRequest - { - - public: - DeleteForwardEntryRequest(); - ~DeleteForwardEntryRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getForwardTableId()const; - void setForwardTableId(const std::string& forwardTableId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getForwardEntryId()const; - void setForwardEntryId(const std::string& forwardEntryId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string forwardTableId_; - std::string regionId_; - std::string forwardEntryId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DELETEFORWARDENTRYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEFORWARDENTRYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEFORWARDENTRYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DeleteForwardEntryRequest : public RpcServiceRequest { +public: + DeleteForwardEntryRequest(); + ~DeleteForwardEntryRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getForwardTableId() const; + void setForwardTableId(const std::string &forwardTableId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getForwardEntryId() const; + void setForwardEntryId(const std::string &forwardEntryId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string forwardTableId_; + std::string regionId_; + std::string forwardEntryId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEFORWARDENTRYREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DeleteHaVipRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteHaVipRequest.h index 8248034ed..ff55bb0f9 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteHaVipRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteHaVipRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEHAVIPREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEHAVIPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteHaVipRequest : public RpcServiceRequest - { - - public: - DeleteHaVipRequest(); - ~DeleteHaVipRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getHaVipId()const; - void setHaVipId(const std::string& haVipId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - std::string haVipId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DELETEHAVIPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEHAVIPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEHAVIPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DeleteHaVipRequest : public RpcServiceRequest { +public: + DeleteHaVipRequest(); + ~DeleteHaVipRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getHaVipId() const; + void setHaVipId(const std::string &haVipId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string haVipId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEHAVIPREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DeleteHpcClusterRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteHpcClusterRequest.h index 94715ba50..9239d3f3d 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteHpcClusterRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteHpcClusterRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEHPCCLUSTERREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEHPCCLUSTERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteHpcClusterRequest : public RpcServiceRequest - { - - public: - DeleteHpcClusterRequest(); - ~DeleteHpcClusterRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getHpcClusterId()const; - void setHpcClusterId(const std::string& hpcClusterId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string hpcClusterId_; - std::string clientToken_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DELETEHPCCLUSTERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEHPCCLUSTERREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEHPCCLUSTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DeleteHpcClusterRequest : public RpcServiceRequest { +public: + DeleteHpcClusterRequest(); + ~DeleteHpcClusterRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getHpcClusterId() const; + void setHpcClusterId(const std::string &hpcClusterId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string hpcClusterId_; + std::string clientToken_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEHPCCLUSTERREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DeleteImageComponentRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteImageComponentRequest.h index 63b7e709b..a05c445f0 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteImageComponentRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteImageComponentRequest.h @@ -1,72 +1,64 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEIMAGECOMPONENTREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEIMAGECOMPONENTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteImageComponentRequest : public RpcServiceRequest - { - public: - struct TemplateTag - { - std::string key; - std::string value; - }; - - public: - DeleteImageComponentRequest(); - ~DeleteImageComponentRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getImageComponentId()const; - void setImageComponentId(const std::string& imageComponentId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::vector getTemplateTag()const; - void setTemplateTag(const std::vector& templateTag); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string imageComponentId_; - std::string regionId_; - std::vector templateTag_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DELETEIMAGECOMPONENTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEIMAGECOMPONENTREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEIMAGECOMPONENTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DeleteImageComponentRequest : public RpcServiceRequest { +public: + struct TemplateTag { + std::string key; + std::string value; + }; + DeleteImageComponentRequest(); + ~DeleteImageComponentRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getImageComponentId() const; + void setImageComponentId(const std::string &imageComponentId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getTemplateTag() const; + void setTemplateTag(const std::vector &templateTag); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string imageComponentId_; + std::string regionId_; + std::vector templateTag_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEIMAGECOMPONENTREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DeleteImagePipelineRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteImagePipelineRequest.h index 2a4b1a70f..3ccb37ad3 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteImagePipelineRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteImagePipelineRequest.h @@ -1,72 +1,64 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEIMAGEPIPELINEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEIMAGEPIPELINEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteImagePipelineRequest : public RpcServiceRequest - { - public: - struct TemplateTag - { - std::string key; - std::string value; - }; - - public: - DeleteImagePipelineRequest(); - ~DeleteImagePipelineRequest(); - - std::string getImagePipelineId()const; - void setImagePipelineId(const std::string& imagePipelineId); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::vector getTemplateTag()const; - void setTemplateTag(const std::vector& templateTag); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - std::string imagePipelineId_; - long resourceOwnerId_; - std::string regionId_; - std::vector templateTag_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DELETEIMAGEPIPELINEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEIMAGEPIPELINEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEIMAGEPIPELINEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DeleteImagePipelineRequest : public RpcServiceRequest { +public: + struct TemplateTag { + std::string key; + std::string value; + }; + DeleteImagePipelineRequest(); + ~DeleteImagePipelineRequest(); + std::string getImagePipelineId() const; + void setImagePipelineId(const std::string &imagePipelineId); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getTemplateTag() const; + void setTemplateTag(const std::vector &templateTag); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::string imagePipelineId_; + long resourceOwnerId_; + std::string regionId_; + std::vector templateTag_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEIMAGEPIPELINEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DeleteImageRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteImageRequest.h index 550776eb0..cc8c82257 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteImageRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteImageRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEIMAGEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEIMAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteImageRequest : public RpcServiceRequest - { - - public: - DeleteImageRequest(); - ~DeleteImageRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getImageId()const; - void setImageId(const std::string& imageId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - bool getForce()const; - void setForce(bool force); - - private: - long resourceOwnerId_; - std::string imageId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - bool force_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DELETEIMAGEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEIMAGEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEIMAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DeleteImageRequest : public RpcServiceRequest { +public: + DeleteImageRequest(); + ~DeleteImageRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getImageId() const; + void setImageId(const std::string &imageId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + bool getForce() const; + void setForce(bool force); + +private: + long resourceOwnerId_; + std::string imageId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + bool force_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEIMAGEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DeleteInstanceRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteInstanceRequest.h index 9f2e3d344..f658ba966 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteInstanceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteInstanceRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEINSTANCEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteInstanceRequest : public RpcServiceRequest - { - - public: - DeleteInstanceRequest(); - ~DeleteInstanceRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - bool getTerminateSubscription()const; - void setTerminateSubscription(bool terminateSubscription); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - bool getForce()const; - void setForce(bool force); - - private: - long resourceOwnerId_; - bool terminateSubscription_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string instanceId_; - bool force_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DELETEINSTANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DeleteInstanceRequest : public RpcServiceRequest { +public: + DeleteInstanceRequest(); + ~DeleteInstanceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + bool getTerminateSubscription() const; + void setTerminateSubscription(bool terminateSubscription); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + bool getForce() const; + void setForce(bool force); + +private: + long resourceOwnerId_; + bool terminateSubscription_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; + bool force_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEINSTANCEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DeleteInstancesRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteInstancesRequest.h index 8436aec0d..6be7aaf47 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteInstancesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteInstancesRequest.h @@ -1,75 +1,69 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEINSTANCESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteInstancesRequest : public RpcServiceRequest - { - - public: - DeleteInstancesRequest(); - ~DeleteInstancesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - bool getTerminateSubscription()const; - void setTerminateSubscription(bool terminateSubscription); - bool getDryRun()const; - void setDryRun(bool dryRun); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::vector getInstanceId()const; - void setInstanceId(const std::vector& instanceId); - bool getForce()const; - void setForce(bool force); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - bool terminateSubscription_; - bool dryRun_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::vector instanceId_; - bool force_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DELETEINSTANCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEINSTANCESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DeleteInstancesRequest : public RpcServiceRequest { +public: + DeleteInstancesRequest(); + ~DeleteInstancesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getTerminateSubscription() const; + void setTerminateSubscription(bool terminateSubscription); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getInstanceId() const; + void setInstanceId(const std::vector &instanceId); + bool getForce() const; + void setForce(bool force); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + bool terminateSubscription_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::vector instanceId_; + bool force_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEINSTANCESREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DeleteKeyPairsRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteKeyPairsRequest.h index 94d9b1773..000aee97d 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteKeyPairsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteKeyPairsRequest.h @@ -1,60 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEKEYPAIRSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEKEYPAIRSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteKeyPairsRequest : public RpcServiceRequest - { - - public: - DeleteKeyPairsRequest(); - ~DeleteKeyPairsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getKeyPairNames()const; - void setKeyPairNames(const std::string& keyPairNames); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string keyPairNames_; - std::string regionId_; - std::string resourceOwnerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DELETEKEYPAIRSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEKEYPAIRSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEKEYPAIRSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DeleteKeyPairsRequest : public RpcServiceRequest { +public: + DeleteKeyPairsRequest(); + ~DeleteKeyPairsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getKeyPairNames() const; + void setKeyPairNames(const std::string &keyPairNames); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string keyPairNames_; + std::string regionId_; + std::string resourceOwnerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEKEYPAIRSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DeleteLaunchTemplateRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteLaunchTemplateRequest.h index 2b20baca1..23f610e19 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteLaunchTemplateRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteLaunchTemplateRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETELAUNCHTEMPLATEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETELAUNCHTEMPLATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteLaunchTemplateRequest : public RpcServiceRequest - { - - public: - DeleteLaunchTemplateRequest(); - ~DeleteLaunchTemplateRequest(); - - std::string getLaunchTemplateName()const; - void setLaunchTemplateName(const std::string& launchTemplateName); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getLaunchTemplateId()const; - void setLaunchTemplateId(const std::string& launchTemplateId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - std::string launchTemplateName_; - long resourceOwnerId_; - std::string regionId_; - std::string launchTemplateId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DELETELAUNCHTEMPLATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETELAUNCHTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETELAUNCHTEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DeleteLaunchTemplateRequest : public RpcServiceRequest { +public: + DeleteLaunchTemplateRequest(); + ~DeleteLaunchTemplateRequest(); + std::string getLaunchTemplateName() const; + void setLaunchTemplateName(const std::string &launchTemplateName); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getLaunchTemplateId() const; + void setLaunchTemplateId(const std::string &launchTemplateId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::string launchTemplateName_; + long resourceOwnerId_; + std::string regionId_; + std::string launchTemplateId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DELETELAUNCHTEMPLATEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DeleteLaunchTemplateVersionRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteLaunchTemplateVersionRequest.h index 0b7da04c9..744fdfe5a 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteLaunchTemplateVersionRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteLaunchTemplateVersionRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETELAUNCHTEMPLATEVERSIONREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETELAUNCHTEMPLATEVERSIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteLaunchTemplateVersionRequest : public RpcServiceRequest - { - - public: - DeleteLaunchTemplateVersionRequest(); - ~DeleteLaunchTemplateVersionRequest(); - - std::string getLaunchTemplateName()const; - void setLaunchTemplateName(const std::string& launchTemplateName); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::vector getDeleteVersion()const; - void setDeleteVersion(const std::vector& deleteVersion); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getLaunchTemplateId()const; - void setLaunchTemplateId(const std::string& launchTemplateId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - std::string launchTemplateName_; - long resourceOwnerId_; - std::vector deleteVersion_; - std::string regionId_; - std::string launchTemplateId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DELETELAUNCHTEMPLATEVERSIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETELAUNCHTEMPLATEVERSIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETELAUNCHTEMPLATEVERSIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DeleteLaunchTemplateVersionRequest : public RpcServiceRequest { +public: + DeleteLaunchTemplateVersionRequest(); + ~DeleteLaunchTemplateVersionRequest(); + std::string getLaunchTemplateName() const; + void setLaunchTemplateName(const std::string &launchTemplateName); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::vector getDeleteVersion() const; + void setDeleteVersion(const std::vector &deleteVersion); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getLaunchTemplateId() const; + void setLaunchTemplateId(const std::string &launchTemplateId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::string launchTemplateName_; + long resourceOwnerId_; + std::vector deleteVersion_; + std::string regionId_; + std::string launchTemplateId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DELETELAUNCHTEMPLATEVERSIONREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DeleteNatGatewayRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteNatGatewayRequest.h index 855ec5d97..60b41cb00 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteNatGatewayRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteNatGatewayRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETENATGATEWAYREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETENATGATEWAYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteNatGatewayRequest : public RpcServiceRequest - { - - public: - DeleteNatGatewayRequest(); - ~DeleteNatGatewayRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getNatGatewayId()const; - void setNatGatewayId(const std::string& natGatewayId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string natGatewayId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DELETENATGATEWAYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETENATGATEWAYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETENATGATEWAYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DeleteNatGatewayRequest : public RpcServiceRequest { +public: + DeleteNatGatewayRequest(); + ~DeleteNatGatewayRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNatGatewayId() const; + void setNatGatewayId(const std::string &natGatewayId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string natGatewayId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DELETENATGATEWAYREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DeleteNetworkInterfacePermissionRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteNetworkInterfacePermissionRequest.h index f87adbe95..cd9aa097d 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteNetworkInterfacePermissionRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteNetworkInterfacePermissionRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETENETWORKINTERFACEPERMISSIONREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETENETWORKINTERFACEPERMISSIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteNetworkInterfacePermissionRequest : public RpcServiceRequest - { - - public: - DeleteNetworkInterfacePermissionRequest(); - ~DeleteNetworkInterfacePermissionRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getNetworkInterfacePermissionId()const; - void setNetworkInterfacePermissionId(const std::string& networkInterfacePermissionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - bool getForce()const; - void setForce(bool force); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string networkInterfacePermissionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - bool force_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DELETENETWORKINTERFACEPERMISSIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETENETWORKINTERFACEPERMISSIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETENETWORKINTERFACEPERMISSIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DeleteNetworkInterfacePermissionRequest : public RpcServiceRequest { +public: + DeleteNetworkInterfacePermissionRequest(); + ~DeleteNetworkInterfacePermissionRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNetworkInterfacePermissionId() const; + void setNetworkInterfacePermissionId(const std::string &networkInterfacePermissionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + bool getForce() const; + void setForce(bool force); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string networkInterfacePermissionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + bool force_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DELETENETWORKINTERFACEPERMISSIONREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DeleteNetworkInterfaceRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteNetworkInterfaceRequest.h index 0b0bced2b..b951c171f 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteNetworkInterfaceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteNetworkInterfaceRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETENETWORKINTERFACEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETENETWORKINTERFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteNetworkInterfaceRequest : public RpcServiceRequest - { - - public: - DeleteNetworkInterfaceRequest(); - ~DeleteNetworkInterfaceRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getNetworkInterfaceId()const; - void setNetworkInterfaceId(const std::string& networkInterfaceId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string networkInterfaceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DELETENETWORKINTERFACEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETENETWORKINTERFACEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETENETWORKINTERFACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DeleteNetworkInterfaceRequest : public RpcServiceRequest { +public: + DeleteNetworkInterfaceRequest(); + ~DeleteNetworkInterfaceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getNetworkInterfaceId() const; + void setNetworkInterfaceId(const std::string &networkInterfaceId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string networkInterfaceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DELETENETWORKINTERFACEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DeletePhysicalConnectionRequest.h b/ecs/include/alibabacloud/ecs/model/DeletePhysicalConnectionRequest.h index 67a8f158e..262304af1 100644 --- a/ecs/include/alibabacloud/ecs/model/DeletePhysicalConnectionRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeletePhysicalConnectionRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEPHYSICALCONNECTIONREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEPHYSICALCONNECTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeletePhysicalConnectionRequest : public RpcServiceRequest - { - - public: - DeletePhysicalConnectionRequest(); - ~DeletePhysicalConnectionRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()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 getPhysicalConnectionId()const; - void setPhysicalConnectionId(const std::string& physicalConnectionId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string physicalConnectionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DELETEPHYSICALCONNECTIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEPHYSICALCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEPHYSICALCONNECTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DeletePhysicalConnectionRequest : public RpcServiceRequest { +public: + DeletePhysicalConnectionRequest(); + ~DeletePhysicalConnectionRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() 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 getPhysicalConnectionId() const; + void setPhysicalConnectionId(const std::string &physicalConnectionId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string physicalConnectionId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEPHYSICALCONNECTIONREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DeletePrefixListRequest.h b/ecs/include/alibabacloud/ecs/model/DeletePrefixListRequest.h index eb0234d11..23af40a88 100644 --- a/ecs/include/alibabacloud/ecs/model/DeletePrefixListRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeletePrefixListRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEPREFIXLISTREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEPREFIXLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeletePrefixListRequest : public RpcServiceRequest - { - - public: - DeletePrefixListRequest(); - ~DeletePrefixListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getPrefixListId()const; - void setPrefixListId(const std::string& prefixListId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string prefixListId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DELETEPREFIXLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEPREFIXLISTREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEPREFIXLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DeletePrefixListRequest : public RpcServiceRequest { +public: + DeletePrefixListRequest(); + ~DeletePrefixListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getPrefixListId() const; + void setPrefixListId(const std::string &prefixListId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string prefixListId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEPREFIXLISTREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DeleteRouteEntryRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteRouteEntryRequest.h index 72da984ba..ba9428397 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteRouteEntryRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteRouteEntryRequest.h @@ -1,78 +1,70 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEROUTEENTRYREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEROUTEENTRYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteRouteEntryRequest : public RpcServiceRequest - { - public: - struct NextHopList - { - std::string nextHopId; - std::string nextHopType; - }; - - public: - DeleteRouteEntryRequest(); - ~DeleteRouteEntryRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getNextHopId()const; - void setNextHopId(const std::string& nextHopId); - std::string getRouteTableId()const; - void setRouteTableId(const std::string& routeTableId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getDestinationCidrBlock()const; - void setDestinationCidrBlock(const std::string& destinationCidrBlock); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::vector getNextHopList()const; - void setNextHopList(const std::vector& nextHopList); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string nextHopId_; - std::string routeTableId_; - std::string resourceOwnerAccount_; - std::string destinationCidrBlock_; - std::string ownerAccount_; - long ownerId_; - std::vector nextHopList_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DELETEROUTEENTRYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEROUTEENTRYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEROUTEENTRYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DeleteRouteEntryRequest : public RpcServiceRequest { +public: + struct NextHopList { + std::string nextHopId; + std::string nextHopType; + }; + DeleteRouteEntryRequest(); + ~DeleteRouteEntryRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextHopId() const; + void setNextHopId(const std::string &nextHopId); + std::string getRouteTableId() const; + void setRouteTableId(const std::string &routeTableId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDestinationCidrBlock() const; + void setDestinationCidrBlock(const std::string &destinationCidrBlock); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getNextHopList() const; + void setNextHopList(const std::vector &nextHopList); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string nextHopId_; + std::string routeTableId_; + std::string resourceOwnerAccount_; + std::string destinationCidrBlock_; + std::string ownerAccount_; + long ownerId_; + std::vector nextHopList_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEROUTEENTRYREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DeleteRouterInterfaceRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteRouterInterfaceRequest.h index c6c12d3ce..0f2495ed7 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteRouterInterfaceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteRouterInterfaceRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEROUTERINTERFACEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEROUTERINTERFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteRouterInterfaceRequest : public RpcServiceRequest - { - - public: - DeleteRouterInterfaceRequest(); - ~DeleteRouterInterfaceRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getUserCidr()const; - void setUserCidr(const std::string& userCidr); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getRouterInterfaceId()const; - void setRouterInterfaceId(const std::string& routerInterfaceId); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - std::string userCidr_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string routerInterfaceId_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DELETEROUTERINTERFACEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEROUTERINTERFACEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEROUTERINTERFACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DeleteRouterInterfaceRequest : public RpcServiceRequest { +public: + DeleteRouterInterfaceRequest(); + ~DeleteRouterInterfaceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getUserCidr() const; + void setUserCidr(const std::string &userCidr); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getRouterInterfaceId() const; + void setRouterInterfaceId(const std::string &routerInterfaceId); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string userCidr_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string routerInterfaceId_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEROUTERINTERFACEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DeleteSecurityGroupRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteSecurityGroupRequest.h index 9be55f769..b62c526b6 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteSecurityGroupRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteSecurityGroupRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETESECURITYGROUPREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETESECURITYGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteSecurityGroupRequest : public RpcServiceRequest - { - - public: - DeleteSecurityGroupRequest(); - ~DeleteSecurityGroupRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getSecurityGroupId()const; - void setSecurityGroupId(const std::string& securityGroupId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string securityGroupId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DELETESECURITYGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETESECURITYGROUPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETESECURITYGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DeleteSecurityGroupRequest : public RpcServiceRequest { +public: + DeleteSecurityGroupRequest(); + ~DeleteSecurityGroupRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSecurityGroupId() const; + void setSecurityGroupId(const std::string &securityGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string securityGroupId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DELETESECURITYGROUPREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DeleteSnapshotGroupRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteSnapshotGroupRequest.h index 2bbd7cfae..4f3b299b5 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteSnapshotGroupRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteSnapshotGroupRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETESNAPSHOTGROUPREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETESNAPSHOTGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteSnapshotGroupRequest : public RpcServiceRequest - { - - public: - DeleteSnapshotGroupRequest(); - ~DeleteSnapshotGroupRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getSnapshotGroupId()const; - void setSnapshotGroupId(const std::string& snapshotGroupId); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string snapshotGroupId_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DELETESNAPSHOTGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETESNAPSHOTGROUPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETESNAPSHOTGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DeleteSnapshotGroupRequest : public RpcServiceRequest { +public: + DeleteSnapshotGroupRequest(); + ~DeleteSnapshotGroupRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getSnapshotGroupId() const; + void setSnapshotGroupId(const std::string &snapshotGroupId); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string snapshotGroupId_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DELETESNAPSHOTGROUPREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DeleteSnapshotRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteSnapshotRequest.h index d76ddd7b4..af164b5a5 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteSnapshotRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteSnapshotRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETESNAPSHOTREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETESNAPSHOTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteSnapshotRequest : public RpcServiceRequest - { - - public: - DeleteSnapshotRequest(); - ~DeleteSnapshotRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getSnapshotId()const; - void setSnapshotId(const std::string& snapshotId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - bool getForce()const; - void setForce(bool force); - - private: - long resourceOwnerId_; - std::string snapshotId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - bool force_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DELETESNAPSHOTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETESNAPSHOTREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETESNAPSHOTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DeleteSnapshotRequest : public RpcServiceRequest { +public: + DeleteSnapshotRequest(); + ~DeleteSnapshotRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSnapshotId() const; + void setSnapshotId(const std::string &snapshotId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + bool getForce() const; + void setForce(bool force); + +private: + long resourceOwnerId_; + std::string snapshotId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + bool force_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DELETESNAPSHOTREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DeleteStorageSetRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteStorageSetRequest.h index e4aade0b4..79ae96d42 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteStorageSetRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteStorageSetRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETESTORAGESETREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETESTORAGESETREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteStorageSetRequest : public RpcServiceRequest - { - - public: - DeleteStorageSetRequest(); - ~DeleteStorageSetRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()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 getStorageSetId()const; - void setStorageSetId(const std::string& storageSetId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string storageSetId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DELETESTORAGESETREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETESTORAGESETREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETESTORAGESETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DeleteStorageSetRequest : public RpcServiceRequest { +public: + DeleteStorageSetRequest(); + ~DeleteStorageSetRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() 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 getStorageSetId() const; + void setStorageSetId(const std::string &storageSetId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string storageSetId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DELETESTORAGESETREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DeleteVSwitchRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteVSwitchRequest.h index 4a3d8aa71..dba1fef92 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteVSwitchRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteVSwitchRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEVSWITCHREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEVSWITCHREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteVSwitchRequest : public RpcServiceRequest - { - - public: - DeleteVSwitchRequest(); - ~DeleteVSwitchRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getVSwitchId()const; - void setVSwitchId(const std::string& vSwitchId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string vSwitchId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DELETEVSWITCHREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEVSWITCHREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEVSWITCHREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DeleteVSwitchRequest : public RpcServiceRequest { +public: + DeleteVSwitchRequest(); + ~DeleteVSwitchRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getVSwitchId() const; + void setVSwitchId(const std::string &vSwitchId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vSwitchId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEVSWITCHREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DeleteVirtualBorderRouterRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteVirtualBorderRouterRequest.h index beac9b2bd..c5c70dc7d 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteVirtualBorderRouterRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteVirtualBorderRouterRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEVIRTUALBORDERROUTERREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEVIRTUALBORDERROUTERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteVirtualBorderRouterRequest : public RpcServiceRequest - { - - public: - DeleteVirtualBorderRouterRequest(); - ~DeleteVirtualBorderRouterRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getVbrId()const; - void setVbrId(const std::string& vbrId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getUserCidr()const; - void setUserCidr(const std::string& userCidr); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string vbrId_; - std::string regionId_; - std::string userCidr_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DELETEVIRTUALBORDERROUTERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEVIRTUALBORDERROUTERREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEVIRTUALBORDERROUTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DeleteVirtualBorderRouterRequest : public RpcServiceRequest { +public: + DeleteVirtualBorderRouterRequest(); + ~DeleteVirtualBorderRouterRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getVbrId() const; + void setVbrId(const std::string &vbrId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getUserCidr() const; + void setUserCidr(const std::string &userCidr); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string vbrId_; + std::string regionId_; + std::string userCidr_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEVIRTUALBORDERROUTERREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DeleteVpcRequest.h b/ecs/include/alibabacloud/ecs/model/DeleteVpcRequest.h index 76a5c82f4..90a43ef97 100644 --- a/ecs/include/alibabacloud/ecs/model/DeleteVpcRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeleteVpcRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DELETEVPCREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DELETEVPCREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeleteVpcRequest : public RpcServiceRequest - { - - public: - DeleteVpcRequest(); - ~DeleteVpcRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getVpcId()const; - void setVpcId(const std::string& vpcId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string vpcId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DELETEVPCREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DELETEVPCREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DELETEVPCREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DeleteVpcRequest : public RpcServiceRequest { +public: + DeleteVpcRequest(); + ~DeleteVpcRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vpcId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DELETEVPCREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DeregisterManagedInstanceRequest.h b/ecs/include/alibabacloud/ecs/model/DeregisterManagedInstanceRequest.h index d7de78434..6ec23989b 100644 --- a/ecs/include/alibabacloud/ecs/model/DeregisterManagedInstanceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DeregisterManagedInstanceRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DEREGISTERMANAGEDINSTANCEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DEREGISTERMANAGEDINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DeregisterManagedInstanceRequest : public RpcServiceRequest - { - - public: - DeregisterManagedInstanceRequest(); - ~DeregisterManagedInstanceRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DEREGISTERMANAGEDINSTANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DEREGISTERMANAGEDINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DEREGISTERMANAGEDINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DeregisterManagedInstanceRequest : public RpcServiceRequest { +public: + DeregisterManagedInstanceRequest(); + ~DeregisterManagedInstanceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DEREGISTERMANAGEDINSTANCEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DeregisterManagedInstanceResult.h b/ecs/include/alibabacloud/ecs/model/DeregisterManagedInstanceResult.h index 83b954724..beaebfe8f 100644 --- a/ecs/include/alibabacloud/ecs/model/DeregisterManagedInstanceResult.h +++ b/ecs/include/alibabacloud/ecs/model/DeregisterManagedInstanceResult.h @@ -39,8 +39,8 @@ namespace AlibabaCloud std::string agentVersion; long invocationCount; std::string osVersion; - std::string activationId; std::string hostname; + std::string activationId; std::string registrationTime; std::string intranetIp; std::string instanceName; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeAccessPointsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeAccessPointsRequest.h index 9fbef39ab..5f392b36b 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeAccessPointsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeAccessPointsRequest.h @@ -1,75 +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_ECS_MODEL_DESCRIBEACCESSPOINTSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEACCESSPOINTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeAccessPointsRequest : public RpcServiceRequest - { - public: - struct Filter - { - std::vector value; - std::string key; - }; - - public: - DescribeAccessPointsRequest(); - ~DescribeAccessPointsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getType()const; - void setType(const std::string& type); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::vector getFilter()const; - void setFilter(const std::vector& filter); - - private: - long resourceOwnerId_; - std::string type_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - long ownerId_; - std::vector filter_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEACCESSPOINTSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEACCESSPOINTSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEACCESSPOINTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeAccessPointsRequest : public RpcServiceRequest { +public: + struct Filter { + std::string key; + }; + DescribeAccessPointsRequest(); + ~DescribeAccessPointsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getType() const; + void setType(const std::string &type); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getFilter() const; + void setFilter(const std::vector &filter); + +private: + long resourceOwnerId_; + std::string type_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + long ownerId_; + std::vector filter_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEACCESSPOINTSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeAccessPointsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeAccessPointsResult.h index 5a620f195..d02e3d9d2 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeAccessPointsResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeAccessPointsResult.h @@ -38,10 +38,10 @@ namespace AlibabaCloud std::string type; std::string description; std::string attachedRegionNo; - std::string accessPointId; std::string hostOperator; - std::string location; + std::string accessPointId; std::string name; + std::string location; }; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeAccountAttributesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeAccountAttributesRequest.h index a615b3d21..46d3f423d 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeAccountAttributesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeAccountAttributesRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEACCOUNTATTRIBUTESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEACCOUNTATTRIBUTESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeAccountAttributesRequest : public RpcServiceRequest - { - - public: - DescribeAccountAttributesRequest(); - ~DescribeAccountAttributesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::vector getAttributeName()const; - void setAttributeName(const std::vector& attributeName); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getZoneId()const; - void setZoneId(const std::string& zoneId); - - private: - long resourceOwnerId_; - std::vector attributeName_; - std::string regionId_; - std::string resourceOwnerAccount_; - long ownerId_; - std::string zoneId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEACCOUNTATTRIBUTESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEACCOUNTATTRIBUTESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEACCOUNTATTRIBUTESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeAccountAttributesRequest : public RpcServiceRequest { +public: + DescribeAccountAttributesRequest(); + ~DescribeAccountAttributesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::vector getAttributeName() const; + void setAttributeName(const std::vector &attributeName); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + +private: + long resourceOwnerId_; + std::vector attributeName_; + std::string regionId_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string zoneId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEACCOUNTATTRIBUTESREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeActivationsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeActivationsRequest.h index 3d7de1aba..85096318b 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeActivationsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeActivationsRequest.h @@ -1,72 +1,66 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEACTIVATIONSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEACTIVATIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeActivationsRequest : public RpcServiceRequest - { - - public: - DescribeActivationsRequest(); - ~DescribeActivationsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - long getPageNumber()const; - void setPageNumber(long pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceName()const; - void setInstanceName(const std::string& instanceName); - std::string getActivationId()const; - void setActivationId(const std::string& activationId); - - private: - long resourceOwnerId_; - long pageNumber_; - std::string regionId_; - long pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string instanceName_; - std::string activationId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEACTIVATIONSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEACTIVATIONSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEACTIVATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeActivationsRequest : public RpcServiceRequest { +public: + DescribeActivationsRequest(); + ~DescribeActivationsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceName() const; + void setInstanceName(const std::string &instanceName); + std::string getActivationId() const; + void setActivationId(const std::string &activationId); + +private: + long resourceOwnerId_; + long pageNumber_; + std::string regionId_; + long pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceName_; + std::string activationId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEACTIVATIONSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeActivationsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeActivationsResult.h index 84442d6f4..30ae52679 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeActivationsResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeActivationsResult.h @@ -35,13 +35,13 @@ namespace AlibabaCloud struct Activation { std::string instanceName; - int instanceCount; int deregisteredCount; + int instanceCount; std::string description; - std::string activationId; std::string creationTime; - long timeToLiveInHours; + std::string activationId; int registeredCount; + long timeToLiveInHours; bool disabled; std::string ipAddressRange; }; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupHistoryRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupHistoryRequest.h index 436dec090..f2a75d60c 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupHistoryRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupHistoryRequest.h @@ -1,75 +1,69 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPHISTORYREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPHISTORYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeAutoProvisioningGroupHistoryRequest : public RpcServiceRequest - { - - public: - DescribeAutoProvisioningGroupHistoryRequest(); - ~DescribeAutoProvisioningGroupHistoryRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAutoProvisioningGroupId()const; - void setAutoProvisioningGroupId(const std::string& autoProvisioningGroupId); - - private: - long resourceOwnerId_; - std::string startTime_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string endTime_; - long ownerId_; - std::string autoProvisioningGroupId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPHISTORYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPHISTORYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPHISTORYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeAutoProvisioningGroupHistoryRequest : public RpcServiceRequest { +public: + DescribeAutoProvisioningGroupHistoryRequest(); + ~DescribeAutoProvisioningGroupHistoryRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAutoProvisioningGroupId() const; + void setAutoProvisioningGroupId(const std::string &autoProvisioningGroupId); + +private: + long resourceOwnerId_; + std::string startTime_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string endTime_; + long ownerId_; + std::string autoProvisioningGroupId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPHISTORYREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupInstancesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupInstancesRequest.h index e0e2da1ee..9fc887972 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupInstancesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupInstancesRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPINSTANCESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeAutoProvisioningGroupInstancesRequest : public RpcServiceRequest - { - - public: - DescribeAutoProvisioningGroupInstancesRequest(); - ~DescribeAutoProvisioningGroupInstancesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAutoProvisioningGroupId()const; - void setAutoProvisioningGroupId(const std::string& autoProvisioningGroupId); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string autoProvisioningGroupId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPINSTANCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPINSTANCESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeAutoProvisioningGroupInstancesRequest : public RpcServiceRequest { +public: + DescribeAutoProvisioningGroupInstancesRequest(); + ~DescribeAutoProvisioningGroupInstancesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAutoProvisioningGroupId() const; + void setAutoProvisioningGroupId(const std::string &autoProvisioningGroupId); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string autoProvisioningGroupId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPINSTANCESREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupInstancesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupInstancesResult.h index fe9b87675..4177cd6eb 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupInstancesResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupInstancesResult.h @@ -40,8 +40,8 @@ namespace AlibabaCloud std::string zoneId; std::string instanceId; std::string osType; - int memory; std::string networkType; + int memory; std::string creationTime; int cPU; std::string regionId; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupsRequest.h index 6278c1941..165fa9bea 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupsRequest.h @@ -1,75 +1,69 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeAutoProvisioningGroupsRequest : public RpcServiceRequest - { - - public: - DescribeAutoProvisioningGroupsRequest(); - ~DescribeAutoProvisioningGroupsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::vector getAutoProvisioningGroupStatus()const; - void setAutoProvisioningGroupStatus(const std::vector& autoProvisioningGroupStatus); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::vector getAutoProvisioningGroupId()const; - void setAutoProvisioningGroupId(const std::vector& autoProvisioningGroupId); - std::string getAutoProvisioningGroupName()const; - void setAutoProvisioningGroupName(const std::string& autoProvisioningGroupName); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::vector autoProvisioningGroupStatus_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::vector autoProvisioningGroupId_; - std::string autoProvisioningGroupName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeAutoProvisioningGroupsRequest : public RpcServiceRequest { +public: + DescribeAutoProvisioningGroupsRequest(); + ~DescribeAutoProvisioningGroupsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::vector getAutoProvisioningGroupStatus() const; + void setAutoProvisioningGroupStatus(const std::vector &autoProvisioningGroupStatus); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getAutoProvisioningGroupId() const; + void setAutoProvisioningGroupId(const std::vector &autoProvisioningGroupId); + std::string getAutoProvisioningGroupName() const; + void setAutoProvisioningGroupName(const std::string &autoProvisioningGroupName); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::vector autoProvisioningGroupStatus_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::vector autoProvisioningGroupId_; + std::string autoProvisioningGroupName_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOPROVISIONINGGROUPSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupsResult.h index 7c25f7403..a0d49226a 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupsResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeAutoProvisioningGroupsResult.h @@ -56,8 +56,8 @@ namespace AlibabaCloud float weightedCapacity; float priority; std::string vSwitchId; - std::string instanceType; float maxPrice; + std::string instanceType; }; std::string status; TargetCapacitySpecification targetCapacitySpecification; @@ -68,12 +68,12 @@ namespace AlibabaCloud std::string launchTemplateId; std::vector launchTemplateConfigs; std::string autoProvisioningGroupType; - std::string validUntil; bool terminateInstancesWithExpiration; + std::string validUntil; std::string state; std::string autoProvisioningGroupId; - std::string launchTemplateVersion; std::string creationTime; + std::string launchTemplateVersion; std::string validFrom; float maxSpotPrice; std::string regionId; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeAutoSnapshotPolicyExRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeAutoSnapshotPolicyExRequest.h index 50269383a..264131ab3 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeAutoSnapshotPolicyExRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeAutoSnapshotPolicyExRequest.h @@ -1,81 +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_ECS_MODEL_DESCRIBEAUTOSNAPSHOTPOLICYEXREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOSNAPSHOTPOLICYEXREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeAutoSnapshotPolicyExRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - - public: - DescribeAutoSnapshotPolicyExRequest(); - ~DescribeAutoSnapshotPolicyExRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAutoSnapshotPolicyId()const; - void setAutoSnapshotPolicyId(const std::string& autoSnapshotPolicyId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string autoSnapshotPolicyId_; - int pageNumber_; - std::string resourceGroupId_; - std::string regionId_; - int pageSize_; - std::vector tag_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOSNAPSHOTPOLICYEXREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOSNAPSHOTPOLICYEXREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOSNAPSHOTPOLICYEXREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeAutoSnapshotPolicyExRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + DescribeAutoSnapshotPolicyExRequest(); + ~DescribeAutoSnapshotPolicyExRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAutoSnapshotPolicyId() const; + void setAutoSnapshotPolicyId(const std::string &autoSnapshotPolicyId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string autoSnapshotPolicyId_; + int pageNumber_; + std::string resourceGroupId_; + std::string regionId_; + int pageSize_; + std::vector tag_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEAUTOSNAPSHOTPOLICYEXREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeAvailableResourceRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeAvailableResourceRequest.h index 4cd661a5b..e72adbe73 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeAvailableResourceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeAvailableResourceRequest.h @@ -1,105 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEAVAILABLERESOURCEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEAVAILABLERESOURCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeAvailableResourceRequest : public RpcServiceRequest - { - - public: - DescribeAvailableResourceRequest(); - ~DescribeAvailableResourceRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - float getMemory()const; - void setMemory(float memory); - std::string getIoOptimized()const; - void setIoOptimized(const std::string& ioOptimized); - std::string getDataDiskCategory()const; - void setDataDiskCategory(const std::string& dataDiskCategory); - int getCores()const; - void setCores(int cores); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getSystemDiskCategory()const; - void setSystemDiskCategory(const std::string& systemDiskCategory); - std::string getScope()const; - void setScope(const std::string& scope); - std::string getInstanceType()const; - void setInstanceType(const std::string& instanceType); - std::string getNetworkCategory()const; - void setNetworkCategory(const std::string& networkCategory); - std::string getInstanceChargeType()const; - void setInstanceChargeType(const std::string& instanceChargeType); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getDedicatedHostId()const; - void setDedicatedHostId(const std::string& dedicatedHostId); - long getOwnerId()const; - void setOwnerId(long ownerId); - int getSpotDuration()const; - void setSpotDuration(int spotDuration); - std::string getResourceType()const; - void setResourceType(const std::string& resourceType); - std::string getSpotStrategy()const; - void setSpotStrategy(const std::string& spotStrategy); - std::string getDestinationResource()const; - void setDestinationResource(const std::string& destinationResource); - std::string getZoneId()const; - void setZoneId(const std::string& zoneId); - - private: - long resourceOwnerId_; - float memory_; - std::string ioOptimized_; - std::string dataDiskCategory_; - int cores_; - std::string regionId_; - std::string systemDiskCategory_; - std::string scope_; - std::string instanceType_; - std::string networkCategory_; - std::string instanceChargeType_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string dedicatedHostId_; - long ownerId_; - int spotDuration_; - std::string resourceType_; - std::string spotStrategy_; - std::string destinationResource_; - std::string zoneId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEAVAILABLERESOURCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEAVAILABLERESOURCEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEAVAILABLERESOURCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeAvailableResourceRequest : public RpcServiceRequest { +public: + DescribeAvailableResourceRequest(); + ~DescribeAvailableResourceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + float getMemory() const; + void setMemory(float memory); + std::string getIoOptimized() const; + void setIoOptimized(const std::string &ioOptimized); + std::string getDataDiskCategory() const; + void setDataDiskCategory(const std::string &dataDiskCategory); + int getCores() const; + void setCores(int cores); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getSystemDiskCategory() const; + void setSystemDiskCategory(const std::string &systemDiskCategory); + std::string getScope() const; + void setScope(const std::string &scope); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + std::string getNetworkCategory() const; + void setNetworkCategory(const std::string &networkCategory); + std::string getInstanceChargeType() const; + void setInstanceChargeType(const std::string &instanceChargeType); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getDedicatedHostId() const; + void setDedicatedHostId(const std::string &dedicatedHostId); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getSpotDuration() const; + void setSpotDuration(int spotDuration); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getSpotStrategy() const; + void setSpotStrategy(const std::string &spotStrategy); + std::string getDestinationResource() const; + void setDestinationResource(const std::string &destinationResource); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + +private: + long resourceOwnerId_; + float memory_; + std::string ioOptimized_; + std::string dataDiskCategory_; + int cores_; + std::string regionId_; + std::string systemDiskCategory_; + std::string scope_; + std::string instanceType_; + std::string networkCategory_; + std::string instanceChargeType_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string dedicatedHostId_; + long ownerId_; + int spotDuration_; + std::string resourceType_; + std::string spotStrategy_; + std::string destinationResource_; + std::string zoneId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEAVAILABLERESOURCEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeBandwidthLimitationRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeBandwidthLimitationRequest.h index 3033e440f..086765dc9 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeBandwidthLimitationRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeBandwidthLimitationRequest.h @@ -1,75 +1,69 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEBANDWIDTHLIMITATIONREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEBANDWIDTHLIMITATIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeBandwidthLimitationRequest : public RpcServiceRequest - { - - public: - DescribeBandwidthLimitationRequest(); - ~DescribeBandwidthLimitationRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getInstanceType()const; - void setInstanceType(const std::string& instanceType); - std::string getInstanceChargeType()const; - void setInstanceChargeType(const std::string& instanceChargeType); - std::string getResourceId()const; - void setResourceId(const std::string& resourceId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getOperationType()const; - void setOperationType(const std::string& operationType); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSpotStrategy()const; - void setSpotStrategy(const std::string& spotStrategy); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string instanceType_; - std::string instanceChargeType_; - std::string resourceId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string operationType_; - long ownerId_; - std::string spotStrategy_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEBANDWIDTHLIMITATIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEBANDWIDTHLIMITATIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEBANDWIDTHLIMITATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeBandwidthLimitationRequest : public RpcServiceRequest { +public: + DescribeBandwidthLimitationRequest(); + ~DescribeBandwidthLimitationRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + std::string getInstanceChargeType() const; + void setInstanceChargeType(const std::string &instanceChargeType); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getOperationType() const; + void setOperationType(const std::string &operationType); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSpotStrategy() const; + void setSpotStrategy(const std::string &spotStrategy); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string instanceType_; + std::string instanceChargeType_; + std::string resourceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string operationType_; + long ownerId_; + std::string spotStrategy_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEBANDWIDTHLIMITATIONREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeBandwidthPackagesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeBandwidthPackagesRequest.h index 02d02e1d0..b0908c674 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeBandwidthPackagesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeBandwidthPackagesRequest.h @@ -1,72 +1,66 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEBANDWIDTHPACKAGESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEBANDWIDTHPACKAGESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeBandwidthPackagesRequest : public RpcServiceRequest - { - - public: - DescribeBandwidthPackagesRequest(); - ~DescribeBandwidthPackagesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getNatGatewayId()const; - void setNatGatewayId(const std::string& natGatewayId); - std::string getBandwidthPackageId()const; - void setBandwidthPackageId(const std::string& bandwidthPackageId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string natGatewayId_; - std::string bandwidthPackageId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEBANDWIDTHPACKAGESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEBANDWIDTHPACKAGESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEBANDWIDTHPACKAGESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeBandwidthPackagesRequest : public RpcServiceRequest { +public: + DescribeBandwidthPackagesRequest(); + ~DescribeBandwidthPackagesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getNatGatewayId() const; + void setNatGatewayId(const std::string &natGatewayId); + std::string getBandwidthPackageId() const; + void setBandwidthPackageId(const std::string &bandwidthPackageId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string natGatewayId_; + std::string bandwidthPackageId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEBANDWIDTHPACKAGESREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeBandwidthPackagesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeBandwidthPackagesResult.h index 0b72484fb..0d2ab6586 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeBandwidthPackagesResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeBandwidthPackagesResult.h @@ -46,8 +46,8 @@ namespace AlibabaCloud std::string instanceChargeType; std::string iSP; std::string businessStatus; - std::string name; std::string internetChargeType; + std::string name; std::string bandwidth; std::string creationTime; std::vector publicIpAddresses; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeCapacityReservationInstancesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeCapacityReservationInstancesRequest.h index 3687f45ad..57d1757d3 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeCapacityReservationInstancesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeCapacityReservationInstancesRequest.h @@ -1,72 +1,66 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBECAPACITYRESERVATIONINSTANCESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBECAPACITYRESERVATIONINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeCapacityReservationInstancesRequest : public RpcServiceRequest - { - - public: - DescribeCapacityReservationInstancesRequest(); - ~DescribeCapacityReservationInstancesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getNextToken()const; - void setNextToken(const std::string& nextToken); - std::string getPrivatePoolOptionsId()const; - void setPrivatePoolOptionsId(const std::string& privatePoolOptionsId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - int getMaxResults()const; - void setMaxResults(int maxResults); - std::string getPackageType()const; - void setPackageType(const std::string& packageType); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string nextToken_; - std::string privatePoolOptionsId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - int maxResults_; - std::string packageType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBECAPACITYRESERVATIONINSTANCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBECAPACITYRESERVATIONINSTANCESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBECAPACITYRESERVATIONINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeCapacityReservationInstancesRequest : public RpcServiceRequest { +public: + DescribeCapacityReservationInstancesRequest(); + ~DescribeCapacityReservationInstancesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getPrivatePoolOptionsId() const; + void setPrivatePoolOptionsId(const std::string &privatePoolOptionsId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getMaxResults() const; + void setMaxResults(int maxResults); + std::string getPackageType() const; + void setPackageType(const std::string &packageType); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string nextToken_; + std::string privatePoolOptionsId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + int maxResults_; + std::string packageType_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBECAPACITYRESERVATIONINSTANCESREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeCapacityReservationsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeCapacityReservationsRequest.h index 55f16aa7f..ebc06e601 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeCapacityReservationsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeCapacityReservationsRequest.h @@ -1,99 +1,91 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBECAPACITYRESERVATIONSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBECAPACITYRESERVATIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeCapacityReservationsRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string key; - std::string value; - }; - - public: - DescribeCapacityReservationsRequest(); - ~DescribeCapacityReservationsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getPlatform()const; - void setPlatform(const std::string& platform); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getNextToken()const; - void setNextToken(const std::string& nextToken); - std::string getInstanceType()const; - void setInstanceType(const std::string& instanceType); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getInstanceChargeType()const; - void setInstanceChargeType(const std::string& instanceChargeType); - std::string getResourceOwnerAccount()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 getPrivatePoolOptionsIds()const; - void setPrivatePoolOptionsIds(const std::string& privatePoolOptionsIds); - int getMaxResults()const; - void setMaxResults(int maxResults); - std::string getZoneId()const; - void setZoneId(const std::string& zoneId); - std::string getPackageType()const; - void setPackageType(const std::string& packageType); - std::string getStatus()const; - void setStatus(const std::string& status); - - private: - long resourceOwnerId_; - std::string platform_; - std::string resourceGroupId_; - std::string regionId_; - std::string nextToken_; - std::string instanceType_; - std::vector tag_; - std::string instanceChargeType_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string privatePoolOptionsIds_; - int maxResults_; - std::string zoneId_; - std::string packageType_; - std::string status_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBECAPACITYRESERVATIONSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBECAPACITYRESERVATIONSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBECAPACITYRESERVATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeCapacityReservationsRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + DescribeCapacityReservationsRequest(); + ~DescribeCapacityReservationsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPlatform() const; + void setPlatform(const std::string &platform); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getInstanceChargeType() const; + void setInstanceChargeType(const std::string &instanceChargeType); + std::string getResourceOwnerAccount() 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 getPrivatePoolOptionsIds() const; + void setPrivatePoolOptionsIds(const std::string &privatePoolOptionsIds); + int getMaxResults() const; + void setMaxResults(int maxResults); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + std::string getPackageType() const; + void setPackageType(const std::string &packageType); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + long resourceOwnerId_; + std::string platform_; + std::string resourceGroupId_; + std::string regionId_; + std::string nextToken_; + std::string instanceType_; + std::vector tag_; + std::string instanceChargeType_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string privatePoolOptionsIds_; + int maxResults_; + std::string zoneId_; + std::string packageType_; + std::string status_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBECAPACITYRESERVATIONSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeClassicLinkInstancesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeClassicLinkInstancesRequest.h index 997009625..35414e891 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeClassicLinkInstancesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeClassicLinkInstancesRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBECLASSICLINKINSTANCESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBECLASSICLINKINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeClassicLinkInstancesRequest : public RpcServiceRequest - { - - public: - DescribeClassicLinkInstancesRequest(); - ~DescribeClassicLinkInstancesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getPageNumber()const; - void setPageNumber(const std::string& pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getPageSize()const; - void setPageSize(const std::string& pageSize); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getVpcId()const; - void setVpcId(const std::string& vpcId); - - private: - long resourceOwnerId_; - std::string pageNumber_; - std::string regionId_; - std::string pageSize_; - std::string resourceOwnerAccount_; - long ownerId_; - std::string instanceId_; - std::string vpcId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBECLASSICLINKINSTANCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBECLASSICLINKINSTANCESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBECLASSICLINKINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeClassicLinkInstancesRequest : public RpcServiceRequest { +public: + DescribeClassicLinkInstancesRequest(); + ~DescribeClassicLinkInstancesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPageNumber() const; + void setPageNumber(const std::string &pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getPageSize() const; + void setPageSize(const std::string &pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + +private: + long resourceOwnerId_; + std::string pageNumber_; + std::string regionId_; + std::string pageSize_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string instanceId_; + std::string vpcId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBECLASSICLINKINSTANCESREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeCloudAssistantStatusRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeCloudAssistantStatusRequest.h index 11cd5003f..f40dd25a5 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeCloudAssistantStatusRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeCloudAssistantStatusRequest.h @@ -1,72 +1,66 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBECLOUDASSISTANTSTATUSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBECLOUDASSISTANTSTATUSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeCloudAssistantStatusRequest : public RpcServiceRequest - { - - public: - DescribeCloudAssistantStatusRequest(); - ~DescribeCloudAssistantStatusRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - long getPageNumber()const; - void setPageNumber(long pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getOSType()const; - void setOSType(const std::string& oSType); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::vector getInstanceId()const; - void setInstanceId(const std::vector& instanceId); - - private: - long resourceOwnerId_; - long pageNumber_; - std::string regionId_; - long pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string oSType_; - long ownerId_; - std::vector instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBECLOUDASSISTANTSTATUSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBECLOUDASSISTANTSTATUSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBECLOUDASSISTANTSTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeCloudAssistantStatusRequest : public RpcServiceRequest { +public: + DescribeCloudAssistantStatusRequest(); + ~DescribeCloudAssistantStatusRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getOSType() const; + void setOSType(const std::string &oSType); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getInstanceId() const; + void setInstanceId(const std::vector &instanceId); + +private: + long resourceOwnerId_; + long pageNumber_; + std::string regionId_; + long pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string oSType_; + long ownerId_; + std::vector instanceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBECLOUDASSISTANTSTATUSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeClustersRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeClustersRequest.h index edbbb576b..4d654b39f 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeClustersRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeClustersRequest.h @@ -1,60 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBECLUSTERSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBECLUSTERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeClustersRequest : public RpcServiceRequest - { - - public: - DescribeClustersRequest(); - ~DescribeClustersRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBECLUSTERSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBECLUSTERSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBECLUSTERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeClustersRequest : public RpcServiceRequest { +public: + DescribeClustersRequest(); + ~DescribeClustersRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBECLUSTERSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeCommandsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeCommandsRequest.h index 94e43105f..3869cf97c 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeCommandsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeCommandsRequest.h @@ -1,84 +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_ECS_MODEL_DESCRIBECOMMANDSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBECOMMANDSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeCommandsRequest : public RpcServiceRequest - { - - public: - DescribeCommandsRequest(); - ~DescribeCommandsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getType()const; - void setType(const std::string& type); - std::string getCommandId()const; - void setCommandId(const std::string& commandId); - long getPageNumber()const; - void setPageNumber(long pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getProvider()const; - void setProvider(const std::string& provider); - std::string getContentEncoding()const; - void setContentEncoding(const std::string& contentEncoding); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string description_; - std::string type_; - std::string commandId_; - long pageNumber_; - std::string regionId_; - std::string provider_; - std::string contentEncoding_; - long pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBECOMMANDSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBECOMMANDSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBECOMMANDSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeCommandsRequest : public RpcServiceRequest { +public: + DescribeCommandsRequest(); + ~DescribeCommandsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getType() const; + void setType(const std::string &type); + std::string getCommandId() const; + void setCommandId(const std::string &commandId); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getProvider() const; + void setProvider(const std::string &provider); + std::string getContentEncoding() const; + void setContentEncoding(const std::string &contentEncoding); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string description_; + std::string type_; + std::string commandId_; + long pageNumber_; + std::string regionId_; + std::string provider_; + std::string contentEncoding_; + long pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string name_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBECOMMANDSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeCommandsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeCommandsResult.h index 32e825dd9..f89e00685 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeCommandsResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeCommandsResult.h @@ -34,14 +34,14 @@ namespace AlibabaCloud public: struct Command { - std::string category; std::string description; + std::string category; std::vector parameterNames; long timeout; - std::string name; std::string provider; - std::string commandContent; + std::string name; std::string workingDir; + std::string commandContent; std::string type; int version; int invokeTimes; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDedicatedBlockStorageClustersRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeDedicatedBlockStorageClustersRequest.h index dea86ba10..dc37b87e1 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeDedicatedBlockStorageClustersRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeDedicatedBlockStorageClustersRequest.h @@ -1,78 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDBLOCKSTORAGECLUSTERSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDBLOCKSTORAGECLUSTERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeDedicatedBlockStorageClustersRequest : public RpcServiceRequest - { - - public: - DescribeDedicatedBlockStorageClustersRequest(); - ~DescribeDedicatedBlockStorageClustersRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getNextToken()const; - void setNextToken(const std::string& nextToken); - std::vector getDedicatedBlockStorageClusterId()const; - void setDedicatedBlockStorageClusterId(const std::vector& dedicatedBlockStorageClusterId); - std::string getResourceOwnerAccount()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 getZoneId()const; - void setZoneId(const std::string& zoneId); - int getMaxResults()const; - void setMaxResults(int maxResults); - std::string getCategory()const; - void setCategory(const std::string& category); - std::vector getStatus()const; - void setStatus(const std::vector& status); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string nextToken_; - std::vector dedicatedBlockStorageClusterId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string zoneId_; - int maxResults_; - std::string category_; - std::vector status_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDBLOCKSTORAGECLUSTERSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDBLOCKSTORAGECLUSTERSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDBLOCKSTORAGECLUSTERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeDedicatedBlockStorageClustersRequest : public RpcServiceRequest { +public: + DescribeDedicatedBlockStorageClustersRequest(); + ~DescribeDedicatedBlockStorageClustersRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::vector getDedicatedBlockStorageClusterId() const; + void setDedicatedBlockStorageClusterId(const std::vector &dedicatedBlockStorageClusterId); + std::string getResourceOwnerAccount() 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 getZoneId() const; + void setZoneId(const std::string &zoneId); + int getMaxResults() const; + void setMaxResults(int maxResults); + std::string getCategory() const; + void setCategory(const std::string &category); + std::vector getStatus() const; + void setStatus(const std::vector &status); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string nextToken_; + std::vector dedicatedBlockStorageClusterId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string zoneId_; + int maxResults_; + std::string category_; + std::vector status_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDBLOCKSTORAGECLUSTERSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostAutoRenewRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostAutoRenewRequest.h index e5d5c728a..491ad5a66 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostAutoRenewRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostAutoRenewRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTAUTORENEWREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTAUTORENEWREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeDedicatedHostAutoRenewRequest : public RpcServiceRequest - { - - public: - DescribeDedicatedHostAutoRenewRequest(); - ~DescribeDedicatedHostAutoRenewRequest(); - - std::string getDedicatedHostIds()const; - void setDedicatedHostIds(const std::string& dedicatedHostIds); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - std::string dedicatedHostIds_; - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTAUTORENEWREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTAUTORENEWREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTAUTORENEWREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeDedicatedHostAutoRenewRequest : public RpcServiceRequest { +public: + DescribeDedicatedHostAutoRenewRequest(); + ~DescribeDedicatedHostAutoRenewRequest(); + std::string getDedicatedHostIds() const; + void setDedicatedHostIds(const std::string &dedicatedHostIds); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::string dedicatedHostIds_; + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTAUTORENEWREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostClustersRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostClustersRequest.h index ed68b031d..6f1754256 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostClustersRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostClustersRequest.h @@ -1,93 +1,85 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTCLUSTERSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTCLUSTERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeDedicatedHostClustersRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string key; - std::string value; - }; - - public: - DescribeDedicatedHostClustersRequest(); - ~DescribeDedicatedHostClustersRequest(); - - std::string getDedicatedHostClusterName()const; - void setDedicatedHostClusterName(const std::string& dedicatedHostClusterName); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDedicatedHostClusterIds()const; - void setDedicatedHostClusterIds(const std::string& dedicatedHostClusterIds); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getLockReason()const; - void setLockReason(const std::string& lockReason); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getZoneId()const; - void setZoneId(const std::string& zoneId); - std::string getStatus()const; - void setStatus(const std::string& status); - - private: - std::string dedicatedHostClusterName_; - long resourceOwnerId_; - std::string dedicatedHostClusterIds_; - int pageNumber_; - std::string resourceGroupId_; - std::string lockReason_; - std::string regionId_; - int pageSize_; - std::vector tag_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string zoneId_; - std::string status_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTCLUSTERSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTCLUSTERSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTCLUSTERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeDedicatedHostClustersRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + DescribeDedicatedHostClustersRequest(); + ~DescribeDedicatedHostClustersRequest(); + std::string getDedicatedHostClusterName() const; + void setDedicatedHostClusterName(const std::string &dedicatedHostClusterName); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDedicatedHostClusterIds() const; + void setDedicatedHostClusterIds(const std::string &dedicatedHostClusterIds); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getLockReason() const; + void setLockReason(const std::string &lockReason); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + std::string dedicatedHostClusterName_; + long resourceOwnerId_; + std::string dedicatedHostClusterIds_; + int pageNumber_; + std::string resourceGroupId_; + std::string lockReason_; + std::string regionId_; + int pageSize_; + std::vector tag_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string zoneId_; + std::string status_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTCLUSTERSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostClustersResult.h b/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostClustersResult.h index 3973302c7..fcc66eb1a 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostClustersResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostClustersResult.h @@ -48,8 +48,8 @@ namespace AlibabaCloud std::string instanceType; }; std::vector availableInstanceTypes; - int totalMemory; int availableMemory; + int totalMemory; int availableVcpus; int totalVcpus; std::vector localStorageCapacities; @@ -60,9 +60,9 @@ namespace AlibabaCloud std::string tagValue; }; std::string description; + std::string resourceGroupId; std::string zoneId; std::string dedicatedHostClusterName; - std::string resourceGroupId; DedicatedHostClusterCapacity dedicatedHostClusterCapacity; std::string regionId; std::vector dedicatedHostIds; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostTypesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostTypesRequest.h index 5fe513233..fdce484b4 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostTypesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostTypesRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTTYPESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTTYPESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeDedicatedHostTypesRequest : public RpcServiceRequest - { - - public: - DescribeDedicatedHostTypesRequest(); - ~DescribeDedicatedHostTypesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getSupportedInstanceTypeFamily()const; - void setSupportedInstanceTypeFamily(const std::string& supportedInstanceTypeFamily); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getDedicatedHostType()const; - void setDedicatedHostType(const std::string& dedicatedHostType); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string supportedInstanceTypeFamily_; - std::string regionId_; - std::string dedicatedHostType_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTTYPESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTTYPESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTTYPESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeDedicatedHostTypesRequest : public RpcServiceRequest { +public: + DescribeDedicatedHostTypesRequest(); + ~DescribeDedicatedHostTypesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSupportedInstanceTypeFamily() const; + void setSupportedInstanceTypeFamily(const std::string &supportedInstanceTypeFamily); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDedicatedHostType() const; + void setDedicatedHostType(const std::string &dedicatedHostType); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string supportedInstanceTypeFamily_; + std::string regionId_; + std::string dedicatedHostType_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTTYPESREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostTypesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostTypesResult.h index 4dd5318ad..9df0d4c36 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostTypesResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostTypesResult.h @@ -41,8 +41,8 @@ namespace AlibabaCloud int localStorageAmount; int cores; std::string localStorageCategory; - int sockets; std::string gPUSpec; + int sockets; std::vector supportedInstanceTypeFamilies; int totalVgpus; std::string cpuOverCommitRatioRange; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostsRequest.h index 383898251..96f206c8f 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeDedicatedHostsRequest.h @@ -1,102 +1,94 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeDedicatedHostsRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - - public: - DescribeDedicatedHostsRequest(); - ~DescribeDedicatedHostsRequest(); - - std::string getDedicatedHostIds()const; - void setDedicatedHostIds(const std::string& dedicatedHostIds); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getLockReason()const; - void setLockReason(const std::string& lockReason); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getDedicatedHostClusterId()const; - void setDedicatedHostClusterId(const std::string& dedicatedHostClusterId); - std::string getDedicatedHostType()const; - void setDedicatedHostType(const std::string& dedicatedHostType); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getNeedHostDetail()const; - void setNeedHostDetail(const std::string& needHostDetail); - std::string getDedicatedHostName()const; - void setDedicatedHostName(const std::string& dedicatedHostName); - std::string getResourceOwnerAccount()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 getZoneId()const; - void setZoneId(const std::string& zoneId); - std::string getStatus()const; - void setStatus(const std::string& status); - - private: - std::string dedicatedHostIds_; - long resourceOwnerId_; - int pageNumber_; - std::string resourceGroupId_; - std::string lockReason_; - std::string regionId_; - int pageSize_; - std::string dedicatedHostClusterId_; - std::string dedicatedHostType_; - std::vector tag_; - std::string needHostDetail_; - std::string dedicatedHostName_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string zoneId_; - std::string status_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeDedicatedHostsRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + DescribeDedicatedHostsRequest(); + ~DescribeDedicatedHostsRequest(); + std::string getDedicatedHostIds() const; + void setDedicatedHostIds(const std::string &dedicatedHostIds); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getLockReason() const; + void setLockReason(const std::string &lockReason); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getDedicatedHostClusterId() const; + void setDedicatedHostClusterId(const std::string &dedicatedHostClusterId); + std::string getDedicatedHostType() const; + void setDedicatedHostType(const std::string &dedicatedHostType); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getNeedHostDetail() const; + void setNeedHostDetail(const std::string &needHostDetail); + std::string getDedicatedHostName() const; + void setDedicatedHostName(const std::string &dedicatedHostName); + std::string getResourceOwnerAccount() 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 getZoneId() const; + void setZoneId(const std::string &zoneId); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + std::string dedicatedHostIds_; + long resourceOwnerId_; + int pageNumber_; + std::string resourceGroupId_; + std::string lockReason_; + std::string regionId_; + int pageSize_; + std::string dedicatedHostClusterId_; + std::string dedicatedHostType_; + std::vector tag_; + std::string needHostDetail_; + std::string dedicatedHostName_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string zoneId_; + std::string status_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDEDICATEDHOSTSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDemandsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeDemandsRequest.h index 65dcffc9f..1c68a61d5 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeDemandsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeDemandsRequest.h @@ -1,99 +1,91 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDEMANDSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDEMANDSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeDemandsRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string key; - std::string value; - }; - - public: - DescribeDemandsRequest(); - ~DescribeDemandsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getInstanceType()const; - void setInstanceType(const std::string& instanceType); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getInstanceChargeType()const; - void setInstanceChargeType(const std::string& instanceChargeType); - bool getDryRun()const; - void setDryRun(bool dryRun); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getInstanceTypeFamily()const; - void setInstanceTypeFamily(const std::string& instanceTypeFamily); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::vector getDemandStatus()const; - void setDemandStatus(const std::vector& demandStatus); - std::string getDemandId()const; - void setDemandId(const std::string& demandId); - std::string getZoneId()const; - void setZoneId(const std::string& zoneId); - std::string getDemandType()const; - void setDemandType(const std::string& demandType); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string instanceType_; - std::vector tag_; - std::string instanceChargeType_; - bool dryRun_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string instanceTypeFamily_; - long ownerId_; - std::vector demandStatus_; - std::string demandId_; - std::string zoneId_; - std::string demandType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDEMANDSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDEMANDSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDEMANDSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeDemandsRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + DescribeDemandsRequest(); + ~DescribeDemandsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getInstanceChargeType() const; + void setInstanceChargeType(const std::string &instanceChargeType); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getInstanceTypeFamily() const; + void setInstanceTypeFamily(const std::string &instanceTypeFamily); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getDemandStatus() const; + void setDemandStatus(const std::vector &demandStatus); + std::string getDemandId() const; + void setDemandId(const std::string &demandId); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + std::string getDemandType() const; + void setDemandType(const std::string &demandType); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string instanceType_; + std::vector tag_; + std::string instanceChargeType_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string instanceTypeFamily_; + long ownerId_; + std::vector demandStatus_; + std::string demandId_; + std::string zoneId_; + std::string demandType_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDEMANDSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDemandsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeDemandsResult.h index f8a580d3f..b505d4858 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeDemandsResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeDemandsResult.h @@ -43,11 +43,11 @@ namespace AlibabaCloud }; std::string demandDescription; std::string comment; - std::string zoneId; std::string demandTime; std::string endTime; - std::string instanceTypeFamily; + std::string zoneId; std::string instanceChargeType; + std::string instanceTypeFamily; std::vector supplyInfos; std::string startTime; std::string demandId; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDeploymentSetSupportedInstanceTypeFamilyRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeDeploymentSetSupportedInstanceTypeFamilyRequest.h index ffabb8ec4..09441a711 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeDeploymentSetSupportedInstanceTypeFamilyRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeDeploymentSetSupportedInstanceTypeFamilyRequest.h @@ -1,60 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDEPLOYMENTSETSUPPORTEDINSTANCETYPEFAMILYREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDEPLOYMENTSETSUPPORTEDINSTANCETYPEFAMILYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeDeploymentSetSupportedInstanceTypeFamilyRequest : public RpcServiceRequest - { - - public: - DescribeDeploymentSetSupportedInstanceTypeFamilyRequest(); - ~DescribeDeploymentSetSupportedInstanceTypeFamilyRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDEPLOYMENTSETSUPPORTEDINSTANCETYPEFAMILYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDEPLOYMENTSETSUPPORTEDINSTANCETYPEFAMILYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDEPLOYMENTSETSUPPORTEDINSTANCETYPEFAMILYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeDeploymentSetSupportedInstanceTypeFamilyRequest : public RpcServiceRequest { +public: + DescribeDeploymentSetSupportedInstanceTypeFamilyRequest(); + ~DescribeDeploymentSetSupportedInstanceTypeFamilyRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDEPLOYMENTSETSUPPORTEDINSTANCETYPEFAMILYREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDeploymentSetsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeDeploymentSetsRequest.h index 131f3b13c..186f9b61f 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeDeploymentSetsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeDeploymentSetsRequest.h @@ -1,84 +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_ECS_MODEL_DESCRIBEDEPLOYMENTSETSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDEPLOYMENTSETSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeDeploymentSetsRequest : public RpcServiceRequest - { - - public: - DescribeDeploymentSetsRequest(); - ~DescribeDeploymentSetsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getNetworkType()const; - void setNetworkType(const std::string& networkType); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getDeploymentSetIds()const; - void setDeploymentSetIds(const std::string& deploymentSetIds); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getDeploymentSetName()const; - void setDeploymentSetName(const std::string& deploymentSetName); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getGranularity()const; - void setGranularity(const std::string& granularity); - std::string getDomain()const; - void setDomain(const std::string& domain); - std::string getStrategy()const; - void setStrategy(const std::string& strategy); - - private: - long resourceOwnerId_; - std::string networkType_; - int pageNumber_; - std::string deploymentSetIds_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string deploymentSetName_; - long ownerId_; - std::string granularity_; - std::string domain_; - std::string strategy_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDEPLOYMENTSETSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDEPLOYMENTSETSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDEPLOYMENTSETSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeDeploymentSetsRequest : public RpcServiceRequest { +public: + DescribeDeploymentSetsRequest(); + ~DescribeDeploymentSetsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getNetworkType() const; + void setNetworkType(const std::string &networkType); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getDeploymentSetIds() const; + void setDeploymentSetIds(const std::string &deploymentSetIds); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getDeploymentSetName() const; + void setDeploymentSetName(const std::string &deploymentSetName); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getGranularity() const; + void setGranularity(const std::string &granularity); + std::string getDomain() const; + void setDomain(const std::string &domain); + std::string getStrategy() const; + void setStrategy(const std::string &strategy); + +private: + long resourceOwnerId_; + std::string networkType_; + int pageNumber_; + std::string deploymentSetIds_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string deploymentSetName_; + long ownerId_; + std::string granularity_; + std::string domain_; + std::string strategy_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDEPLOYMENTSETSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDiskMonitorDataRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeDiskMonitorDataRequest.h index 21eefb2d0..1fd861d12 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeDiskMonitorDataRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeDiskMonitorDataRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKMONITORDATAREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKMONITORDATAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeDiskMonitorDataRequest : public RpcServiceRequest - { - - public: - DescribeDiskMonitorDataRequest(); - ~DescribeDiskMonitorDataRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getDiskId()const; - void setDiskId(const std::string& diskId); - int getPeriod()const; - void setPeriod(int period); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string startTime_; - std::string diskId_; - int period_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string endTime_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKMONITORDATAREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKMONITORDATAREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKMONITORDATAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeDiskMonitorDataRequest : public RpcServiceRequest { +public: + DescribeDiskMonitorDataRequest(); + ~DescribeDiskMonitorDataRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getDiskId() const; + void setDiskId(const std::string &diskId); + int getPeriod() const; + void setPeriod(int period); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string startTime_; + std::string diskId_; + int period_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string endTime_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKMONITORDATAREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDiskMonitorDataResult.h b/ecs/include/alibabacloud/ecs/model/DescribeDiskMonitorDataResult.h index c1d3216a2..2bad65dbe 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeDiskMonitorDataResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeDiskMonitorDataResult.h @@ -35,14 +35,14 @@ namespace AlibabaCloud struct DiskMonitorData { int iOPSRead; - int iOPSWrite; int iOPSTotal; + int iOPSWrite; int bPSTotal; - int bPSWrite; int latencyRead; + int bPSWrite; int bPSRead; - int latencyWrite; std::string timeStamp; + int latencyWrite; std::string diskId; }; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDiskReplicaPairsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeDiskReplicaPairsRequest.h index b2022645e..5838779e4 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeDiskReplicaPairsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeDiskReplicaPairsRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKREPLICAPAIRSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKREPLICAPAIRSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeDiskReplicaPairsRequest : public RpcServiceRequest - { - - public: - DescribeDiskReplicaPairsRequest(); - ~DescribeDiskReplicaPairsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getNextToken()const; - void setNextToken(const std::string& nextToken); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - int getMaxResults()const; - void setMaxResults(int maxResults); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string nextToken_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - int maxResults_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKREPLICAPAIRSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKREPLICAPAIRSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKREPLICAPAIRSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeDiskReplicaPairsRequest : public RpcServiceRequest { +public: + DescribeDiskReplicaPairsRequest(); + ~DescribeDiskReplicaPairsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string nextToken_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + int maxResults_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKREPLICAPAIRSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDiskReplicaPairsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeDiskReplicaPairsResult.h index 9a9fca562..72d80cf9a 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeDiskReplicaPairsResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeDiskReplicaPairsResult.h @@ -35,8 +35,8 @@ namespace AlibabaCloud struct DiskReplicaPair { std::string status; - std::string destinationDiskId; std::string description; + std::string destinationDiskId; std::string pairName; std::string destinationRegion; std::string replicaPairId; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDisksFullStatusRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeDisksFullStatusRequest.h index 9089435fb..14a4fa1e0 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeDisksFullStatusRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeDisksFullStatusRequest.h @@ -1,87 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKSFULLSTATUSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKSFULLSTATUSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeDisksFullStatusRequest : public RpcServiceRequest - { - - public: - DescribeDisksFullStatusRequest(); - ~DescribeDisksFullStatusRequest(); - - std::vector getEventId()const; - void setEventId(const std::vector& eventId); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getEventTimeStart()const; - void setEventTimeStart(const std::string& eventTimeStart); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::vector getDiskId()const; - void setDiskId(const std::vector& diskId); - std::string getResourceOwnerAccount()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 getEventTimeEnd()const; - void setEventTimeEnd(const std::string& eventTimeEnd); - std::string getHealthStatus()const; - void setHealthStatus(const std::string& healthStatus); - std::string getEventType()const; - void setEventType(const std::string& eventType); - std::string getStatus()const; - void setStatus(const std::string& status); - - private: - std::vector eventId_; - long resourceOwnerId_; - int pageNumber_; - std::string eventTimeStart_; - std::string regionId_; - int pageSize_; - std::vector diskId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string eventTimeEnd_; - std::string healthStatus_; - std::string eventType_; - std::string status_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKSFULLSTATUSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKSFULLSTATUSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKSFULLSTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeDisksFullStatusRequest : public RpcServiceRequest { +public: + DescribeDisksFullStatusRequest(); + ~DescribeDisksFullStatusRequest(); + std::vector getEventId() const; + void setEventId(const std::vector &eventId); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getEventTimeStart() const; + void setEventTimeStart(const std::string &eventTimeStart); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::vector getDiskId() const; + void setDiskId(const std::vector &diskId); + std::string getResourceOwnerAccount() 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 getEventTimeEnd() const; + void setEventTimeEnd(const std::string &eventTimeEnd); + std::string getHealthStatus() const; + void setHealthStatus(const std::string &healthStatus); + std::string getEventType() const; + void setEventType(const std::string &eventType); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + std::vector eventId_; + long resourceOwnerId_; + int pageNumber_; + std::string eventTimeStart_; + std::string regionId_; + int pageSize_; + std::vector diskId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string eventTimeEnd_; + std::string healthStatus_; + std::string eventType_; + std::string status_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKSFULLSTATUSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeDisksRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeDisksRequest.h index 1f70842f1..4a13b486e 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeDisksRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeDisksRequest.h @@ -1,162 +1,154 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeDisksRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - - public: - DescribeDisksRequest(); - ~DescribeDisksRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getFilter2Value()const; - void setFilter2Value(const std::string& filter2Value); - std::string getAutoSnapshotPolicyId()const; - void setAutoSnapshotPolicyId(const std::string& autoSnapshotPolicyId); - std::string getDiskName()const; - void setDiskName(const std::string& diskName); - bool getDeleteAutoSnapshot()const; - void setDeleteAutoSnapshot(bool deleteAutoSnapshot); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getDiskChargeType()const; - void setDiskChargeType(const std::string& diskChargeType); - std::string getLockReason()const; - void setLockReason(const std::string& lockReason); - std::string getFilter1Key()const; - void setFilter1Key(const std::string& filter1Key); - std::vector getTag()const; - void setTag(const std::vector& tag); - bool getEnableAutoSnapshot()const; - void setEnableAutoSnapshot(bool enableAutoSnapshot); - bool getDryRun()const; - void setDryRun(bool dryRun); - std::string getFilter1Value()const; - void setFilter1Value(const std::string& filter1Value); - bool getPortable()const; - void setPortable(bool portable); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::vector getAdditionalAttributes()const; - void setAdditionalAttributes(const std::vector& additionalAttributes); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getZoneId()const; - void setZoneId(const std::string& zoneId); - int getMaxResults()const; - void setMaxResults(int maxResults); - std::string getStatus()const; - void setStatus(const std::string& status); - std::string getSnapshotId()const; - void setSnapshotId(const std::string& snapshotId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getNextToken()const; - void setNextToken(const std::string& nextToken); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getDiskIds()const; - void setDiskIds(const std::string& diskIds); - std::string getMultiAttach()const; - void setMultiAttach(const std::string& multiAttach); - bool getDeleteWithInstance()const; - void setDeleteWithInstance(bool deleteWithInstance); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - bool getEnableAutomatedSnapshotPolicy()const; - void setEnableAutomatedSnapshotPolicy(bool enableAutomatedSnapshotPolicy); - std::string getFilter2Key()const; - void setFilter2Key(const std::string& filter2Key); - std::string getDiskType()const; - void setDiskType(const std::string& diskType); - bool getEnableShared()const; - void setEnableShared(bool enableShared); - bool getEncrypted()const; - void setEncrypted(bool encrypted); - std::string getCategory()const; - void setCategory(const std::string& category); - std::string getKMSKeyId()const; - void setKMSKeyId(const std::string& kMSKeyId); - - private: - long resourceOwnerId_; - std::string filter2Value_; - std::string autoSnapshotPolicyId_; - std::string diskName_; - bool deleteAutoSnapshot_; - std::string resourceGroupId_; - std::string diskChargeType_; - std::string lockReason_; - std::string filter1Key_; - std::vector tag_; - bool enableAutoSnapshot_; - bool dryRun_; - std::string filter1Value_; - bool portable_; - long ownerId_; - std::vector additionalAttributes_; - std::string instanceId_; - std::string zoneId_; - int maxResults_; - std::string status_; - std::string snapshotId_; - int pageNumber_; - std::string regionId_; - std::string nextToken_; - int pageSize_; - std::string diskIds_; - std::string multiAttach_; - bool deleteWithInstance_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - bool enableAutomatedSnapshotPolicy_; - std::string filter2Key_; - std::string diskType_; - bool enableShared_; - bool encrypted_; - std::string category_; - std::string kMSKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeDisksRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + DescribeDisksRequest(); + ~DescribeDisksRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getFilter2Value() const; + void setFilter2Value(const std::string &filter2Value); + std::string getAutoSnapshotPolicyId() const; + void setAutoSnapshotPolicyId(const std::string &autoSnapshotPolicyId); + std::string getDiskName() const; + void setDiskName(const std::string &diskName); + bool getDeleteAutoSnapshot() const; + void setDeleteAutoSnapshot(bool deleteAutoSnapshot); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getDiskChargeType() const; + void setDiskChargeType(const std::string &diskChargeType); + std::string getLockReason() const; + void setLockReason(const std::string &lockReason); + std::string getFilter1Key() const; + void setFilter1Key(const std::string &filter1Key); + std::vector getTag() const; + void setTag(const std::vector &tag); + bool getEnableAutoSnapshot() const; + void setEnableAutoSnapshot(bool enableAutoSnapshot); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getFilter1Value() const; + void setFilter1Value(const std::string &filter1Value); + bool getPortable() const; + void setPortable(bool portable); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getAdditionalAttributes() const; + void setAdditionalAttributes(const std::vector &additionalAttributes); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + int getMaxResults() const; + void setMaxResults(int maxResults); + std::string getStatus() const; + void setStatus(const std::string &status); + std::string getSnapshotId() const; + void setSnapshotId(const std::string &snapshotId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getDiskIds() const; + void setDiskIds(const std::string &diskIds); + std::string getMultiAttach() const; + void setMultiAttach(const std::string &multiAttach); + bool getDeleteWithInstance() const; + void setDeleteWithInstance(bool deleteWithInstance); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + bool getEnableAutomatedSnapshotPolicy() const; + void setEnableAutomatedSnapshotPolicy(bool enableAutomatedSnapshotPolicy); + std::string getFilter2Key() const; + void setFilter2Key(const std::string &filter2Key); + std::string getDiskType() const; + void setDiskType(const std::string &diskType); + bool getEnableShared() const; + void setEnableShared(bool enableShared); + bool getEncrypted() const; + void setEncrypted(bool encrypted); + std::string getCategory() const; + void setCategory(const std::string &category); + std::string getKMSKeyId() const; + void setKMSKeyId(const std::string &kMSKeyId); + +private: + long resourceOwnerId_; + std::string filter2Value_; + std::string autoSnapshotPolicyId_; + std::string diskName_; + bool deleteAutoSnapshot_; + std::string resourceGroupId_; + std::string diskChargeType_; + std::string lockReason_; + std::string filter1Key_; + std::vector tag_; + bool enableAutoSnapshot_; + bool dryRun_; + std::string filter1Value_; + bool portable_; + long ownerId_; + std::vector additionalAttributes_; + std::string instanceId_; + std::string zoneId_; + int maxResults_; + std::string status_; + std::string snapshotId_; + int pageNumber_; + std::string regionId_; + std::string nextToken_; + int pageSize_; + std::string diskIds_; + std::string multiAttach_; + bool deleteWithInstance_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + bool enableAutomatedSnapshotPolicy_; + std::string filter2Key_; + std::string diskType_; + bool enableShared_; + bool encrypted_; + std::string category_; + std::string kMSKeyId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEDISKSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeEipAddressesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeEipAddressesRequest.h index 07e495448..754eaa4d0 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeEipAddressesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeEipAddressesRequest.h @@ -1,102 +1,96 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEEIPADDRESSESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEEIPADDRESSESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeEipAddressesRequest : public RpcServiceRequest - { - - public: - DescribeEipAddressesRequest(); - ~DescribeEipAddressesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getFilter2Value()const; - void setFilter2Value(const std::string& filter2Value); - std::string getISP()const; - void setISP(const std::string& iSP); - std::string getAllocationId()const; - void setAllocationId(const std::string& allocationId); - std::string getEipAddress()const; - void setEipAddress(const std::string& eipAddress); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getLockReason()const; - void setLockReason(const std::string& lockReason); - std::string getFilter1Key()const; - void setFilter1Key(const std::string& filter1Key); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getAssociatedInstanceType()const; - void setAssociatedInstanceType(const std::string& associatedInstanceType); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getFilter1Value()const; - void setFilter1Value(const std::string& filter1Value); - std::string getFilter2Key()const; - void setFilter2Key(const std::string& filter2Key); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getChargeType()const; - void setChargeType(const std::string& chargeType); - std::string getAssociatedInstanceId()const; - void setAssociatedInstanceId(const std::string& associatedInstanceId); - std::string getStatus()const; - void setStatus(const std::string& status); - - private: - long resourceOwnerId_; - std::string filter2Value_; - std::string iSP_; - std::string allocationId_; - std::string eipAddress_; - int pageNumber_; - std::string lockReason_; - std::string filter1Key_; - std::string regionId_; - std::string associatedInstanceType_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string filter1Value_; - std::string filter2Key_; - long ownerId_; - std::string chargeType_; - std::string associatedInstanceId_; - std::string status_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEEIPADDRESSESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEEIPADDRESSESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEEIPADDRESSESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeEipAddressesRequest : public RpcServiceRequest { +public: + DescribeEipAddressesRequest(); + ~DescribeEipAddressesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getFilter2Value() const; + void setFilter2Value(const std::string &filter2Value); + std::string getISP() const; + void setISP(const std::string &iSP); + std::string getAllocationId() const; + void setAllocationId(const std::string &allocationId); + std::string getEipAddress() const; + void setEipAddress(const std::string &eipAddress); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getLockReason() const; + void setLockReason(const std::string &lockReason); + std::string getFilter1Key() const; + void setFilter1Key(const std::string &filter1Key); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAssociatedInstanceType() const; + void setAssociatedInstanceType(const std::string &associatedInstanceType); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getFilter1Value() const; + void setFilter1Value(const std::string &filter1Value); + std::string getFilter2Key() const; + void setFilter2Key(const std::string &filter2Key); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getChargeType() const; + void setChargeType(const std::string &chargeType); + std::string getAssociatedInstanceId() const; + void setAssociatedInstanceId(const std::string &associatedInstanceId); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + long resourceOwnerId_; + std::string filter2Value_; + std::string iSP_; + std::string allocationId_; + std::string eipAddress_; + int pageNumber_; + std::string lockReason_; + std::string filter1Key_; + std::string regionId_; + std::string associatedInstanceType_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string filter1Value_; + std::string filter2Key_; + long ownerId_; + std::string chargeType_; + std::string associatedInstanceId_; + std::string status_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEEIPADDRESSESREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeEipMonitorDataRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeEipMonitorDataRequest.h index 34e2415bc..ec0cf2fc4 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeEipMonitorDataRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeEipMonitorDataRequest.h @@ -1,72 +1,66 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEEIPMONITORDATAREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEEIPMONITORDATAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeEipMonitorDataRequest : public RpcServiceRequest - { - - public: - DescribeEipMonitorDataRequest(); - ~DescribeEipMonitorDataRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAllocationId()const; - void setAllocationId(const std::string& allocationId); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPeriod()const; - void setPeriod(int period); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string allocationId_; - std::string startTime_; - std::string regionId_; - int period_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string endTime_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEEIPMONITORDATAREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEEIPMONITORDATAREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEEIPMONITORDATAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeEipMonitorDataRequest : public RpcServiceRequest { +public: + DescribeEipMonitorDataRequest(); + ~DescribeEipMonitorDataRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAllocationId() const; + void setAllocationId(const std::string &allocationId); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPeriod() const; + void setPeriod(int period); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string allocationId_; + std::string startTime_; + std::string regionId_; + int period_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string endTime_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEEIPMONITORDATAREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeElasticityAssuranceInstancesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeElasticityAssuranceInstancesRequest.h index 773fc9707..15200bcec 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeElasticityAssuranceInstancesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeElasticityAssuranceInstancesRequest.h @@ -1,72 +1,66 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEELASTICITYASSURANCEINSTANCESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEELASTICITYASSURANCEINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeElasticityAssuranceInstancesRequest : public RpcServiceRequest - { - - public: - DescribeElasticityAssuranceInstancesRequest(); - ~DescribeElasticityAssuranceInstancesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getNextToken()const; - void setNextToken(const std::string& nextToken); - std::string getPrivatePoolOptionsId()const; - void setPrivatePoolOptionsId(const std::string& privatePoolOptionsId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - int getMaxResults()const; - void setMaxResults(int maxResults); - std::string getPackageType()const; - void setPackageType(const std::string& packageType); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string nextToken_; - std::string privatePoolOptionsId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - int maxResults_; - std::string packageType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEELASTICITYASSURANCEINSTANCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEELASTICITYASSURANCEINSTANCESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEELASTICITYASSURANCEINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeElasticityAssuranceInstancesRequest : public RpcServiceRequest { +public: + DescribeElasticityAssuranceInstancesRequest(); + ~DescribeElasticityAssuranceInstancesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getPrivatePoolOptionsId() const; + void setPrivatePoolOptionsId(const std::string &privatePoolOptionsId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getMaxResults() const; + void setMaxResults(int maxResults); + std::string getPackageType() const; + void setPackageType(const std::string &packageType); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string nextToken_; + std::string privatePoolOptionsId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + int maxResults_; + std::string packageType_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEELASTICITYASSURANCEINSTANCESREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeElasticityAssurancesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeElasticityAssurancesRequest.h index 71470befe..34b7e229d 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeElasticityAssurancesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeElasticityAssurancesRequest.h @@ -1,99 +1,91 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEELASTICITYASSURANCESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEELASTICITYASSURANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeElasticityAssurancesRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string key; - std::string value; - }; - - public: - DescribeElasticityAssurancesRequest(); - ~DescribeElasticityAssurancesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getPlatform()const; - void setPlatform(const std::string& platform); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getNextToken()const; - void setNextToken(const std::string& nextToken); - std::string getInstanceType()const; - void setInstanceType(const std::string& instanceType); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getInstanceChargeType()const; - void setInstanceChargeType(const std::string& instanceChargeType); - std::string getResourceOwnerAccount()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 getPrivatePoolOptionsIds()const; - void setPrivatePoolOptionsIds(const std::string& privatePoolOptionsIds); - int getMaxResults()const; - void setMaxResults(int maxResults); - std::string getZoneId()const; - void setZoneId(const std::string& zoneId); - std::string getPackageType()const; - void setPackageType(const std::string& packageType); - std::string getStatus()const; - void setStatus(const std::string& status); - - private: - long resourceOwnerId_; - std::string platform_; - std::string resourceGroupId_; - std::string regionId_; - std::string nextToken_; - std::string instanceType_; - std::vector tag_; - std::string instanceChargeType_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string privatePoolOptionsIds_; - int maxResults_; - std::string zoneId_; - std::string packageType_; - std::string status_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEELASTICITYASSURANCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEELASTICITYASSURANCESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEELASTICITYASSURANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeElasticityAssurancesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + DescribeElasticityAssurancesRequest(); + ~DescribeElasticityAssurancesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPlatform() const; + void setPlatform(const std::string &platform); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getInstanceChargeType() const; + void setInstanceChargeType(const std::string &instanceChargeType); + std::string getResourceOwnerAccount() 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 getPrivatePoolOptionsIds() const; + void setPrivatePoolOptionsIds(const std::string &privatePoolOptionsIds); + int getMaxResults() const; + void setMaxResults(int maxResults); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + std::string getPackageType() const; + void setPackageType(const std::string &packageType); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + long resourceOwnerId_; + std::string platform_; + std::string resourceGroupId_; + std::string regionId_; + std::string nextToken_; + std::string instanceType_; + std::vector tag_; + std::string instanceChargeType_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string privatePoolOptionsIds_; + int maxResults_; + std::string zoneId_; + std::string packageType_; + std::string status_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEELASTICITYASSURANCESREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeElasticityAssurancesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeElasticityAssurancesResult.h index 5249f2df7..249a61ac5 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeElasticityAssurancesResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeElasticityAssurancesResult.h @@ -51,8 +51,8 @@ namespace AlibabaCloud std::string description; std::string endTime; std::string resourceGroupId; - std::string privatePoolOptionsName; std::string latestStartTime; + std::string privatePoolOptionsName; std::string startTime; std::string privatePoolOptionsMatchCriteria; std::vector allocatedResources; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeEniMonitorDataRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeEniMonitorDataRequest.h index 6e7c1e4ec..1c98b5373 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeEniMonitorDataRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeEniMonitorDataRequest.h @@ -1,75 +1,69 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEENIMONITORDATAREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEENIMONITORDATAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeEniMonitorDataRequest : public RpcServiceRequest - { - - public: - DescribeEniMonitorDataRequest(); - ~DescribeEniMonitorDataRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPeriod()const; - void setPeriod(int period); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getEniId()const; - void setEniId(const std::string& eniId); - - private: - long resourceOwnerId_; - std::string startTime_; - std::string regionId_; - int period_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string endTime_; - long ownerId_; - std::string instanceId_; - std::string eniId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEENIMONITORDATAREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEENIMONITORDATAREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEENIMONITORDATAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeEniMonitorDataRequest : public RpcServiceRequest { +public: + DescribeEniMonitorDataRequest(); + ~DescribeEniMonitorDataRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPeriod() const; + void setPeriod(int period); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getEniId() const; + void setEniId(const std::string &eniId); + +private: + long resourceOwnerId_; + std::string startTime_; + std::string regionId_; + int period_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string endTime_; + long ownerId_; + std::string instanceId_; + std::string eniId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEENIMONITORDATAREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeForwardTableEntriesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeForwardTableEntriesRequest.h index 122ec0cf5..7b6116521 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeForwardTableEntriesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeForwardTableEntriesRequest.h @@ -1,72 +1,66 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEFORWARDTABLEENTRIESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEFORWARDTABLEENTRIESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeForwardTableEntriesRequest : public RpcServiceRequest - { - - public: - DescribeForwardTableEntriesRequest(); - ~DescribeForwardTableEntriesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getForwardTableId()const; - void setForwardTableId(const std::string& forwardTableId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getForwardEntryId()const; - void setForwardEntryId(const std::string& forwardEntryId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string forwardTableId_; - int pageNumber_; - std::string regionId_; - std::string forwardEntryId_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEFORWARDTABLEENTRIESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEFORWARDTABLEENTRIESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEFORWARDTABLEENTRIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeForwardTableEntriesRequest : public RpcServiceRequest { +public: + DescribeForwardTableEntriesRequest(); + ~DescribeForwardTableEntriesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getForwardTableId() const; + void setForwardTableId(const std::string &forwardTableId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getForwardEntryId() const; + void setForwardEntryId(const std::string &forwardEntryId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string forwardTableId_; + int pageNumber_; + std::string regionId_; + std::string forwardEntryId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEFORWARDTABLEENTRIESREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeHaVipsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeHaVipsRequest.h index d14841c77..707e60988 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeHaVipsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeHaVipsRequest.h @@ -1,75 +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_ECS_MODEL_DESCRIBEHAVIPSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEHAVIPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeHaVipsRequest : public RpcServiceRequest - { - public: - struct Filter - { - std::vector value; - std::string key; - }; - - public: - DescribeHaVipsRequest(); - ~DescribeHaVipsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::vector getFilter()const; - void setFilter(const std::vector& filter); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::vector filter_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEHAVIPSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEHAVIPSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEHAVIPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeHaVipsRequest : public RpcServiceRequest { +public: + struct Filter { + std::string key; + }; + DescribeHaVipsRequest(); + ~DescribeHaVipsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getFilter() const; + void setFilter(const std::vector &filter); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::vector filter_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEHAVIPSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeHpcClustersRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeHpcClustersRequest.h index aaef62896..c4de44da4 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeHpcClustersRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeHpcClustersRequest.h @@ -1,72 +1,66 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEHPCCLUSTERSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEHPCCLUSTERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeHpcClustersRequest : public RpcServiceRequest - { - - public: - DescribeHpcClustersRequest(); - ~DescribeHpcClustersRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getHpcClusterIds()const; - void setHpcClusterIds(const std::string& hpcClusterIds); - - private: - long resourceOwnerId_; - std::string clientToken_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string hpcClusterIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEHPCCLUSTERSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEHPCCLUSTERSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEHPCCLUSTERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeHpcClustersRequest : public RpcServiceRequest { +public: + DescribeHpcClustersRequest(); + ~DescribeHpcClustersRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getHpcClusterIds() const; + void setHpcClusterIds(const std::string &hpcClusterIds); + +private: + long resourceOwnerId_; + std::string clientToken_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string hpcClusterIds_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEHPCCLUSTERSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeImageComponentsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeImageComponentsRequest.h index c8745bdc3..1295a4439 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeImageComponentsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeImageComponentsRequest.h @@ -1,87 +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_ECS_MODEL_DESCRIBEIMAGECOMPONENTSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGECOMPONENTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeImageComponentsRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string key; - std::string value; - }; - - public: - DescribeImageComponentsRequest(); - ~DescribeImageComponentsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::vector getImageComponentId()const; - void setImageComponentId(const std::vector& imageComponentId); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getNextToken()const; - void setNextToken(const std::string& nextToken); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getOwner()const; - void setOwner(const std::string& owner); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getName()const; - void setName(const std::string& name); - int getMaxResults()const; - void setMaxResults(int maxResults); - - private: - long resourceOwnerId_; - std::vector imageComponentId_; - std::string resourceGroupId_; - std::string regionId_; - std::string nextToken_; - std::vector tag_; - std::string owner_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string name_; - int maxResults_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGECOMPONENTSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGECOMPONENTSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGECOMPONENTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeImageComponentsRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + DescribeImageComponentsRequest(); + ~DescribeImageComponentsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::vector getImageComponentId() const; + void setImageComponentId(const std::vector &imageComponentId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getOwner() const; + void setOwner(const std::string &owner); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getName() const; + void setName(const std::string &name); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + long resourceOwnerId_; + std::vector imageComponentId_; + std::string resourceGroupId_; + std::string regionId_; + std::string nextToken_; + std::vector tag_; + std::string owner_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string name_; + int maxResults_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGECOMPONENTSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeImageFromFamilyRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeImageFromFamilyRequest.h index 21b45683b..7b5b48c15 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeImageFromFamilyRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeImageFromFamilyRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGEFROMFAMILYREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGEFROMFAMILYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeImageFromFamilyRequest : public RpcServiceRequest - { - - public: - DescribeImageFromFamilyRequest(); - ~DescribeImageFromFamilyRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getImageFamily()const; - void setImageFamily(const std::string& imageFamily); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string imageFamily_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGEFROMFAMILYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGEFROMFAMILYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGEFROMFAMILYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeImageFromFamilyRequest : public RpcServiceRequest { +public: + DescribeImageFromFamilyRequest(); + ~DescribeImageFromFamilyRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getImageFamily() const; + void setImageFamily(const std::string &imageFamily); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string imageFamily_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGEFROMFAMILYREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeImageFromFamilyResult.h b/ecs/include/alibabacloud/ecs/model/DescribeImageFromFamilyResult.h index c71795539..967233f67 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeImageFromFamilyResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeImageFromFamilyResult.h @@ -49,14 +49,14 @@ namespace AlibabaCloud std::string tagKey; std::string tagValue; }; - std::string imageOwnerAlias; std::string status; + std::string imageOwnerAlias; std::string progress; std::string usage; - std::string description; std::string isSelfShared; - std::string architecture; + std::string description; std::string platform; + std::string architecture; std::string productCode; int size; bool isSubscribed; @@ -69,8 +69,8 @@ namespace AlibabaCloud std::vector diskDeviceMappings; std::string imageVersion; std::string oSType; - std::string imageId; std::string creationTime; + std::string imageId; std::vector tags; }; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeImagePipelineExecutionsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeImagePipelineExecutionsRequest.h index b5e13285e..9e7ac44d1 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeImagePipelineExecutionsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeImagePipelineExecutionsRequest.h @@ -1,84 +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_ECS_MODEL_DESCRIBEIMAGEPIPELINEEXECUTIONSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGEPIPELINEEXECUTIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeImagePipelineExecutionsRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string key; - std::string value; - }; - - public: - DescribeImagePipelineExecutionsRequest(); - ~DescribeImagePipelineExecutionsRequest(); - - std::string getImagePipelineId()const; - void setImagePipelineId(const std::string& imagePipelineId); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getExecutionId()const; - void setExecutionId(const std::string& executionId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getNextToken()const; - void setNextToken(const std::string& nextToken); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - int getMaxResults()const; - void setMaxResults(int maxResults); - std::string getStatus()const; - void setStatus(const std::string& status); - - private: - std::string imagePipelineId_; - long resourceOwnerId_; - std::string executionId_; - std::string regionId_; - std::string nextToken_; - std::vector tag_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - int maxResults_; - std::string status_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGEPIPELINEEXECUTIONSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGEPIPELINEEXECUTIONSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGEPIPELINEEXECUTIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeImagePipelineExecutionsRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + DescribeImagePipelineExecutionsRequest(); + ~DescribeImagePipelineExecutionsRequest(); + std::string getImagePipelineId() const; + void setImagePipelineId(const std::string &imagePipelineId); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getExecutionId() const; + void setExecutionId(const std::string &executionId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getMaxResults() const; + void setMaxResults(int maxResults); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + std::string imagePipelineId_; + long resourceOwnerId_; + std::string executionId_; + std::string regionId_; + std::string nextToken_; + std::vector tag_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + int maxResults_; + std::string status_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGEPIPELINEEXECUTIONSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeImagePipelinesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeImagePipelinesRequest.h index 3b256b25e..996f984f4 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeImagePipelinesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeImagePipelinesRequest.h @@ -1,84 +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_ECS_MODEL_DESCRIBEIMAGEPIPELINESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGEPIPELINESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeImagePipelinesRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string key; - std::string value; - }; - - public: - DescribeImagePipelinesRequest(); - ~DescribeImagePipelinesRequest(); - - std::vector getImagePipelineId()const; - void setImagePipelineId(const std::vector& imagePipelineId); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getNextToken()const; - void setNextToken(const std::string& nextToken); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getName()const; - void setName(const std::string& name); - int getMaxResults()const; - void setMaxResults(int maxResults); - - private: - std::vector imagePipelineId_; - long resourceOwnerId_; - std::string resourceGroupId_; - std::string regionId_; - std::string nextToken_; - std::vector tag_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string name_; - int maxResults_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGEPIPELINESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGEPIPELINESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGEPIPELINESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeImagePipelinesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + DescribeImagePipelinesRequest(); + ~DescribeImagePipelinesRequest(); + std::vector getImagePipelineId() const; + void setImagePipelineId(const std::vector &imagePipelineId); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getName() const; + void setName(const std::string &name); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + std::vector imagePipelineId_; + long resourceOwnerId_; + std::string resourceGroupId_; + std::string regionId_; + std::string nextToken_; + std::vector tag_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string name_; + int maxResults_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGEPIPELINESREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeImageSharePermissionRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeImageSharePermissionRequest.h index d8bdae1ee..dcf15e38f 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeImageSharePermissionRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeImageSharePermissionRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESHAREPERMISSIONREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESHAREPERMISSIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeImageSharePermissionRequest : public RpcServiceRequest - { - - public: - DescribeImageSharePermissionRequest(); - ~DescribeImageSharePermissionRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getImageId()const; - void setImageId(const std::string& imageId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string imageId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESHAREPERMISSIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESHAREPERMISSIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESHAREPERMISSIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeImageSharePermissionRequest : public RpcServiceRequest { +public: + DescribeImageSharePermissionRequest(); + ~DescribeImageSharePermissionRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getImageId() const; + void setImageId(const std::string &imageId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string imageId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESHAREPERMISSIONREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeImageSupportInstanceTypesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeImageSupportInstanceTypesRequest.h index 3b1db11d6..e8ca448ab 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeImageSupportInstanceTypesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeImageSupportInstanceTypesRequest.h @@ -1,72 +1,64 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESUPPORTINSTANCETYPESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESUPPORTINSTANCETYPESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeImageSupportInstanceTypesRequest : public RpcServiceRequest - { - public: - struct Filter - { - std::string value; - std::string key; - }; - - public: - DescribeImageSupportInstanceTypesRequest(); - ~DescribeImageSupportInstanceTypesRequest(); - - std::string getActionType()const; - void setActionType(const std::string& actionType); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getImageId()const; - void setImageId(const std::string& imageId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::vector getFilter()const; - void setFilter(const std::vector& filter); - - private: - std::string actionType_; - long resourceOwnerId_; - std::string imageId_; - std::string regionId_; - std::string resourceOwnerAccount_; - long ownerId_; - std::vector filter_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESUPPORTINSTANCETYPESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESUPPORTINSTANCETYPESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESUPPORTINSTANCETYPESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeImageSupportInstanceTypesRequest : public RpcServiceRequest { +public: + struct Filter { + std::string value; + std::string key; + }; + DescribeImageSupportInstanceTypesRequest(); + ~DescribeImageSupportInstanceTypesRequest(); + std::string getActionType() const; + void setActionType(const std::string &actionType); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getImageId() const; + void setImageId(const std::string &imageId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getFilter() const; + void setFilter(const std::vector &filter); + +private: + std::string actionType_; + long resourceOwnerId_; + std::string imageId_; + std::string regionId_; + std::string resourceOwnerAccount_; + long ownerId_; + std::vector filter_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESUPPORTINSTANCETYPESREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeImagesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeImagesRequest.h index f57f35894..18592d47c 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeImagesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeImagesRequest.h @@ -1,137 +1,128 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeImagesRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - struct Filter - { - std::string value; - std::string key; - }; - - public: - DescribeImagesRequest(); - ~DescribeImagesRequest(); - - std::string getActionType()const; - void setActionType(const std::string& actionType); - long getImageOwnerId()const; - void setImageOwnerId(long imageOwnerId); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getImageId()const; - void setImageId(const std::string& imageId); - std::string getSnapshotId()const; - void setSnapshotId(const std::string& snapshotId); - std::string getUsage()const; - void setUsage(const std::string& usage); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getImageOwnerAlias()const; - void setImageOwnerAlias(const std::string& imageOwnerAlias); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - bool getIsSupportIoOptimized()const; - void setIsSupportIoOptimized(bool isSupportIoOptimized); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getImageName()const; - void setImageName(const std::string& imageName); - bool getIsSupportCloudinit()const; - void setIsSupportCloudinit(bool isSupportCloudinit); - bool getIsPublic()const; - void setIsPublic(bool isPublic); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getInstanceType()const; - void setInstanceType(const std::string& instanceType); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getArchitecture()const; - void setArchitecture(const std::string& architecture); - bool getDryRun()const; - void setDryRun(bool dryRun); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - bool getShowExpired()const; - void setShowExpired(bool showExpired); - std::string getOSType()const; - void setOSType(const std::string& oSType); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::vector getFilter()const; - void setFilter(const std::vector& filter); - std::string getImageFamily()const; - void setImageFamily(const std::string& imageFamily); - std::string getStatus()const; - void setStatus(const std::string& status); - - private: - std::string actionType_; - long imageOwnerId_; - long resourceOwnerId_; - std::string imageId_; - std::string snapshotId_; - std::string usage_; - int pageNumber_; - std::string imageOwnerAlias_; - std::string resourceGroupId_; - bool isSupportIoOptimized_; - std::string regionId_; - std::string imageName_; - bool isSupportCloudinit_; - bool isPublic_; - int pageSize_; - std::string instanceType_; - std::vector tag_; - std::string architecture_; - bool dryRun_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - bool showExpired_; - std::string oSType_; - long ownerId_; - std::vector filter_; - std::string imageFamily_; - std::string status_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeImagesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + struct Filter { + std::string value; + std::string key; + }; + DescribeImagesRequest(); + ~DescribeImagesRequest(); + std::string getActionType() const; + void setActionType(const std::string &actionType); + long getImageOwnerId() const; + void setImageOwnerId(long imageOwnerId); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getImageId() const; + void setImageId(const std::string &imageId); + std::string getSnapshotId() const; + void setSnapshotId(const std::string &snapshotId); + std::string getUsage() const; + void setUsage(const std::string &usage); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getImageOwnerAlias() const; + void setImageOwnerAlias(const std::string &imageOwnerAlias); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + bool getIsSupportIoOptimized() const; + void setIsSupportIoOptimized(bool isSupportIoOptimized); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getImageName() const; + void setImageName(const std::string &imageName); + bool getIsSupportCloudinit() const; + void setIsSupportCloudinit(bool isSupportCloudinit); + bool getIsPublic() const; + void setIsPublic(bool isPublic); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getArchitecture() const; + void setArchitecture(const std::string &architecture); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + bool getShowExpired() const; + void setShowExpired(bool showExpired); + std::string getOSType() const; + void setOSType(const std::string &oSType); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getFilter() const; + void setFilter(const std::vector &filter); + std::string getImageFamily() const; + void setImageFamily(const std::string &imageFamily); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + std::string actionType_; + long imageOwnerId_; + long resourceOwnerId_; + std::string imageId_; + std::string snapshotId_; + std::string usage_; + int pageNumber_; + std::string imageOwnerAlias_; + std::string resourceGroupId_; + bool isSupportIoOptimized_; + std::string regionId_; + std::string imageName_; + bool isSupportCloudinit_; + bool isPublic_; + int pageSize_; + std::string instanceType_; + std::vector tag_; + std::string architecture_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + bool showExpired_; + std::string oSType_; + long ownerId_; + std::vector filter_; + std::string imageFamily_; + std::string status_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEIMAGESREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceAttachmentAttributesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceAttachmentAttributesRequest.h index 81947be88..8928a0c93 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstanceAttachmentAttributesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceAttachmentAttributesRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEATTACHMENTATTRIBUTESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEATTACHMENTATTRIBUTESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInstanceAttachmentAttributesRequest : public RpcServiceRequest - { - - public: - DescribeInstanceAttachmentAttributesRequest(); - ~DescribeInstanceAttachmentAttributesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceIds()const; - void setInstanceIds(const std::string& instanceIds); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string instanceIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEATTACHMENTATTRIBUTESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEATTACHMENTATTRIBUTESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEATTACHMENTATTRIBUTESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeInstanceAttachmentAttributesRequest : public RpcServiceRequest { +public: + DescribeInstanceAttachmentAttributesRequest(); + ~DescribeInstanceAttachmentAttributesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceIds() const; + void setInstanceIds(const std::string &instanceIds); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceIds_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEATTACHMENTATTRIBUTESREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceAttributeRequest.h index 2a11933fa..d7445a28c 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstanceAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceAttributeRequest.h @@ -1,60 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInstanceAttributeRequest : public RpcServiceRequest - { - - public: - DescribeInstanceAttributeRequest(); - ~DescribeInstanceAttributeRequest(); - - 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 getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeInstanceAttributeRequest : public RpcServiceRequest { +public: + DescribeInstanceAttributeRequest(); + ~DescribeInstanceAttributeRequest(); + 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 getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEATTRIBUTEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceAttributeResult.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceAttributeResult.h index 10dbac1cd..b75fbf8c2 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstanceAttributeResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceAttributeResult.h @@ -41,8 +41,8 @@ namespace AlibabaCloud }; struct EipAddress { - std::string allocationId; int bandwidth; + std::string allocationId; std::string ipAddress; std::string internetChargeType; }; @@ -71,13 +71,13 @@ namespace AlibabaCloud EipAddress getEipAddress()const; std::string getImageId()const; std::string getInstanceType()const; - std::string getHostName()const; std::string getVlanId()const; + std::string getHostName()const; std::string getStatus()const; std::string getIoOptimized()const; std::string getZoneId()const; - std::string getInstanceId()const; std::string getClusterId()const; + std::string getInstanceId()const; std::string getStoppedMode()const; DedicatedHostAttribute getDedicatedHostAttribute()const; VpcAttributes getVpcAttributes()const; @@ -86,8 +86,8 @@ namespace AlibabaCloud std::string getInternetChargeType()const; std::string getInstanceName()const; int getInternetMaxBandwidthOut()const; - int getInternetMaxBandwidthIn()const; std::string getSerialNumber()const; + int getInternetMaxBandwidthIn()const; std::string getCreationTime()const; std::string getRegionId()const; std::string getCreditSpecification()const; @@ -106,13 +106,13 @@ namespace AlibabaCloud EipAddress eipAddress_; std::string imageId_; std::string instanceType_; - std::string hostName_; std::string vlanId_; + std::string hostName_; std::string status_; std::string ioOptimized_; std::string zoneId_; - std::string instanceId_; std::string clusterId_; + std::string instanceId_; std::string stoppedMode_; DedicatedHostAttribute dedicatedHostAttribute_; VpcAttributes vpcAttributes_; @@ -121,8 +121,8 @@ namespace AlibabaCloud std::string internetChargeType_; std::string instanceName_; int internetMaxBandwidthOut_; - int internetMaxBandwidthIn_; std::string serialNumber_; + int internetMaxBandwidthIn_; std::string creationTime_; std::string regionId_; std::string creditSpecification_; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceAutoRenewAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceAutoRenewAttributeRequest.h index 2f949a88e..5209d7cb2 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstanceAutoRenewAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceAutoRenewAttributeRequest.h @@ -1,72 +1,66 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEAUTORENEWATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEAUTORENEWATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInstanceAutoRenewAttributeRequest : public RpcServiceRequest - { - - public: - DescribeInstanceAutoRenewAttributeRequest(); - ~DescribeInstanceAutoRenewAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getPageNumber()const; - void setPageNumber(const std::string& pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getRenewalStatus()const; - void setRenewalStatus(const std::string& renewalStatus); - std::string getPageSize()const; - void setPageSize(const std::string& pageSize); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - long resourceOwnerId_; - std::string pageNumber_; - std::string regionId_; - std::string renewalStatus_; - std::string pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEAUTORENEWATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEAUTORENEWATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEAUTORENEWATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeInstanceAutoRenewAttributeRequest : public RpcServiceRequest { +public: + DescribeInstanceAutoRenewAttributeRequest(); + ~DescribeInstanceAutoRenewAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPageNumber() const; + void setPageNumber(const std::string &pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getRenewalStatus() const; + void setRenewalStatus(const std::string &renewalStatus); + std::string getPageSize() const; + void setPageSize(const std::string &pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + long resourceOwnerId_; + std::string pageNumber_; + std::string regionId_; + std::string renewalStatus_; + std::string pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEAUTORENEWATTRIBUTEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceHistoryEventsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceHistoryEventsRequest.h index b2f7218b9..ab5096ddd 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstanceHistoryEventsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceHistoryEventsRequest.h @@ -1,117 +1,109 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEHISTORYEVENTSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEHISTORYEVENTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInstanceHistoryEventsRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string key; - std::string value; - }; - - public: - DescribeInstanceHistoryEventsRequest(); - ~DescribeInstanceHistoryEventsRequest(); - - std::vector getEventId()const; - void setEventId(const std::vector& eventId); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getEventCycleStatus()const; - void setEventCycleStatus(const std::string& eventCycleStatus); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getImpactLevel()const; - void setImpactLevel(const std::string& impactLevel); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::vector getInstanceEventCycleStatus()const; - void setInstanceEventCycleStatus(const std::vector& instanceEventCycleStatus); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getEventPublishTimeEnd()const; - void setEventPublishTimeEnd(const std::string& eventPublishTimeEnd); - std::vector getResourceId()const; - void setResourceId(const std::vector& resourceId); - std::vector getInstanceEventType()const; - void setInstanceEventType(const std::vector& instanceEventType); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getNotBeforeStart()const; - void setNotBeforeStart(const std::string& notBeforeStart); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getResourceType()const; - void setResourceType(const std::string& resourceType); - std::string getEventPublishTimeStart()const; - void setEventPublishTimeStart(const std::string& eventPublishTimeStart); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getNotBeforeEnd()const; - void setNotBeforeEnd(const std::string& notBeforeEnd); - std::string getEventType()const; - void setEventType(const std::string& eventType); - - private: - std::vector eventId_; - long resourceOwnerId_; - std::string eventCycleStatus_; - int pageNumber_; - std::string impactLevel_; - std::string resourceGroupId_; - std::string regionId_; - int pageSize_; - std::vector instanceEventCycleStatus_; - std::vector tag_; - std::string eventPublishTimeEnd_; - std::vector resourceId_; - std::vector instanceEventType_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string notBeforeStart_; - long ownerId_; - std::string resourceType_; - std::string eventPublishTimeStart_; - std::string instanceId_; - std::string notBeforeEnd_; - std::string eventType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEHISTORYEVENTSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEHISTORYEVENTSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEHISTORYEVENTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeInstanceHistoryEventsRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + DescribeInstanceHistoryEventsRequest(); + ~DescribeInstanceHistoryEventsRequest(); + std::vector getEventId() const; + void setEventId(const std::vector &eventId); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getEventCycleStatus() const; + void setEventCycleStatus(const std::string &eventCycleStatus); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getImpactLevel() const; + void setImpactLevel(const std::string &impactLevel); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::vector getInstanceEventCycleStatus() const; + void setInstanceEventCycleStatus(const std::vector &instanceEventCycleStatus); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getEventPublishTimeEnd() const; + void setEventPublishTimeEnd(const std::string &eventPublishTimeEnd); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + std::vector getInstanceEventType() const; + void setInstanceEventType(const std::vector &instanceEventType); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getNotBeforeStart() const; + void setNotBeforeStart(const std::string ¬BeforeStart); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getEventPublishTimeStart() const; + void setEventPublishTimeStart(const std::string &eventPublishTimeStart); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getNotBeforeEnd() const; + void setNotBeforeEnd(const std::string ¬BeforeEnd); + std::string getEventType() const; + void setEventType(const std::string &eventType); + +private: + std::vector eventId_; + long resourceOwnerId_; + std::string eventCycleStatus_; + int pageNumber_; + std::string impactLevel_; + std::string resourceGroupId_; + std::string regionId_; + int pageSize_; + std::vector instanceEventCycleStatus_; + std::vector tag_; + std::string eventPublishTimeEnd_; + std::vector resourceId_; + std::vector instanceEventType_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string notBeforeStart_; + long ownerId_; + std::string resourceType_; + std::string eventPublishTimeStart_; + std::string instanceId_; + std::string notBeforeEnd_; + std::string eventType_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEHISTORYEVENTSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceMaintenanceAttributesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceMaintenanceAttributesRequest.h index 998252abc..bfaa6d51c 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstanceMaintenanceAttributesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceMaintenanceAttributesRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEMAINTENANCEATTRIBUTESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEMAINTENANCEATTRIBUTESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInstanceMaintenanceAttributesRequest : public RpcServiceRequest - { - - public: - DescribeInstanceMaintenanceAttributesRequest(); - ~DescribeInstanceMaintenanceAttributesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - long getPageNumber()const; - void setPageNumber(long pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::vector getInstanceId()const; - void setInstanceId(const std::vector& instanceId); - - private: - long resourceOwnerId_; - long pageNumber_; - std::string regionId_; - long pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::vector instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEMAINTENANCEATTRIBUTESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEMAINTENANCEATTRIBUTESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEMAINTENANCEATTRIBUTESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeInstanceMaintenanceAttributesRequest : public RpcServiceRequest { +public: + DescribeInstanceMaintenanceAttributesRequest(); + ~DescribeInstanceMaintenanceAttributesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getInstanceId() const; + void setInstanceId(const std::vector &instanceId); + +private: + long resourceOwnerId_; + long pageNumber_; + std::string regionId_; + long pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::vector instanceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEMAINTENANCEATTRIBUTESREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceModificationPriceRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceModificationPriceRequest.h index 3f5b46059..b54cde991 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstanceModificationPriceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceModificationPriceRequest.h @@ -1,79 +1,71 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEMODIFICATIONPRICEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEMODIFICATIONPRICEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInstanceModificationPriceRequest : public RpcServiceRequest - { - public: - struct DataDisk - { - std::string performanceLevel; - int size; - std::string category; - }; - - public: - DescribeInstanceModificationPriceRequest(); - ~DescribeInstanceModificationPriceRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getSystemDiskCategory()const; - void setSystemDiskCategory(const std::string& systemDiskCategory); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getInstanceType()const; - void setInstanceType(const std::string& instanceType); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::vector getDataDisk()const; - void setDataDisk(const std::vector& dataDisk); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - long resourceOwnerId_; - std::string systemDiskCategory_; - std::string regionId_; - std::string instanceType_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::vector dataDisk_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEMODIFICATIONPRICEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEMODIFICATIONPRICEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEMODIFICATIONPRICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeInstanceModificationPriceRequest : public RpcServiceRequest { +public: + struct DataDisk { + std::string performanceLevel; + int size; + std::string category; + }; + DescribeInstanceModificationPriceRequest(); + ~DescribeInstanceModificationPriceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSystemDiskCategory() const; + void setSystemDiskCategory(const std::string &systemDiskCategory); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getDataDisk() const; + void setDataDisk(const std::vector &dataDisk); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + long resourceOwnerId_; + std::string systemDiskCategory_; + std::string regionId_; + std::string instanceType_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::vector dataDisk_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEMODIFICATIONPRICEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceMonitorDataRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceMonitorDataRequest.h index 14dc8db90..f58b2eef1 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstanceMonitorDataRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceMonitorDataRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEMONITORDATAREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEMONITORDATAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInstanceMonitorDataRequest : public RpcServiceRequest - { - - public: - DescribeInstanceMonitorDataRequest(); - ~DescribeInstanceMonitorDataRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - int getPeriod()const; - void setPeriod(int period); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - long resourceOwnerId_; - std::string startTime_; - int period_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string endTime_; - long ownerId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEMONITORDATAREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEMONITORDATAREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEMONITORDATAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeInstanceMonitorDataRequest : public RpcServiceRequest { +public: + DescribeInstanceMonitorDataRequest(); + ~DescribeInstanceMonitorDataRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + int getPeriod() const; + void setPeriod(int period); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + long resourceOwnerId_; + std::string startTime_; + int period_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string endTime_; + long ownerId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEMONITORDATAREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceMonitorDataResult.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceMonitorDataResult.h index 714c6e7f6..587da3c6d 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstanceMonitorDataResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceMonitorDataResult.h @@ -35,22 +35,22 @@ namespace AlibabaCloud struct InstanceMonitorData { int iOPSRead; - int intranetBandwidth; - int iOPSWrite; float cPUCreditUsage; + int iOPSWrite; + int intranetBandwidth; std::string instanceId; int intranetTX; int cPU; float cPUAdvanceCreditBalance; int bPSRead; - int intranetRX; std::string timeStamp; + int intranetRX; int internetBandwidth; float cPUNotpaidSurplusCreditUsage; float cPUCreditBalance; int internetTX; - int internetRX; int bPSWrite; + int internetRX; }; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceRamRoleRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceRamRoleRequest.h index 8d3e81227..72d11e338 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstanceRamRoleRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceRamRoleRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCERAMROLEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCERAMROLEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInstanceRamRoleRequest : public RpcServiceRequest - { - - public: - DescribeInstanceRamRoleRequest(); - ~DescribeInstanceRamRoleRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getRamRoleName()const; - void setRamRoleName(const std::string& ramRoleName); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceIds()const; - void setInstanceIds(const std::string& instanceIds); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string ramRoleName_; - long ownerId_; - std::string instanceIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCERAMROLEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCERAMROLEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCERAMROLEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeInstanceRamRoleRequest : public RpcServiceRequest { +public: + DescribeInstanceRamRoleRequest(); + ~DescribeInstanceRamRoleRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getRamRoleName() const; + void setRamRoleName(const std::string &ramRoleName); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceIds() const; + void setInstanceIds(const std::string &instanceIds); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string ramRoleName_; + long ownerId_; + std::string instanceIds_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCERAMROLEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceStatusRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceStatusRequest.h index 5bf5d72dd..c64f3509b 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstanceStatusRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceStatusRequest.h @@ -1,75 +1,69 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESTATUSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESTATUSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInstanceStatusRequest : public RpcServiceRequest - { - - public: - DescribeInstanceStatusRequest(); - ~DescribeInstanceStatusRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getClusterId()const; - void setClusterId(const std::string& clusterId); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::vector getInstanceId()const; - void setInstanceId(const std::vector& instanceId); - std::string getZoneId()const; - void setZoneId(const std::string& zoneId); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string clusterId_; - long ownerId_; - std::vector instanceId_; - std::string zoneId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESTATUSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESTATUSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeInstanceStatusRequest : public RpcServiceRequest { +public: + DescribeInstanceStatusRequest(); + ~DescribeInstanceStatusRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getInstanceId() const; + void setInstanceId(const std::vector &instanceId); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string clusterId_; + long ownerId_; + std::vector instanceId_; + std::string zoneId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESTATUSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceTopologyRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceTopologyRequest.h index 7f853ce45..1eb804641 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstanceTopologyRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceTopologyRequest.h @@ -1,60 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETOPOLOGYREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETOPOLOGYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInstanceTopologyRequest : public RpcServiceRequest - { - - public: - DescribeInstanceTopologyRequest(); - ~DescribeInstanceTopologyRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceIds()const; - void setInstanceIds(const std::string& instanceIds); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - long ownerId_; - std::string instanceIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETOPOLOGYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETOPOLOGYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETOPOLOGYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeInstanceTopologyRequest : public RpcServiceRequest { +public: + DescribeInstanceTopologyRequest(); + ~DescribeInstanceTopologyRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceIds() const; + void setInstanceIds(const std::string &instanceIds); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string instanceIds_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETOPOLOGYREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceTypeFamiliesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceTypeFamiliesRequest.h index d93eeb7a2..7d5a10cf2 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstanceTypeFamiliesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceTypeFamiliesRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETYPEFAMILIESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETYPEFAMILIESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInstanceTypeFamiliesRequest : public RpcServiceRequest - { - - public: - DescribeInstanceTypeFamiliesRequest(); - ~DescribeInstanceTypeFamiliesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getGeneration()const; - void setGeneration(const std::string& generation); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string generation_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETYPEFAMILIESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETYPEFAMILIESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETYPEFAMILIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeInstanceTypeFamiliesRequest : public RpcServiceRequest { +public: + DescribeInstanceTypeFamiliesRequest(); + ~DescribeInstanceTypeFamiliesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getGeneration() const; + void setGeneration(const std::string &generation); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string generation_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETYPEFAMILIESREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceTypesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceTypesRequest.h index 04dfd3b36..0739a900d 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstanceTypesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceTypesRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETYPESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETYPESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInstanceTypesRequest : public RpcServiceRequest - { - - public: - DescribeInstanceTypesRequest(); - ~DescribeInstanceTypesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::vector getInstanceTypes()const; - void setInstanceTypes(const std::vector& instanceTypes); - std::string getNextToken()const; - void setNextToken(const std::string& nextToken); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getInstanceTypeFamily()const; - void setInstanceTypeFamily(const std::string& instanceTypeFamily); - long getOwnerId()const; - void setOwnerId(long ownerId); - long getMaxResults()const; - void setMaxResults(long maxResults); - - private: - long resourceOwnerId_; - std::vector instanceTypes_; - std::string nextToken_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string instanceTypeFamily_; - long ownerId_; - long maxResults_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETYPESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETYPESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETYPESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeInstanceTypesRequest : public RpcServiceRequest { +public: + DescribeInstanceTypesRequest(); + ~DescribeInstanceTypesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::vector getInstanceTypes() const; + void setInstanceTypes(const std::vector &instanceTypes); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getInstanceTypeFamily() const; + void setInstanceTypeFamily(const std::string &instanceTypeFamily); + long getOwnerId() const; + void setOwnerId(long ownerId); + long getMaxResults() const; + void setMaxResults(long maxResults); + +private: + long resourceOwnerId_; + std::vector instanceTypes_; + std::string nextToken_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string instanceTypeFamily_; + long ownerId_; + long maxResults_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCETYPESREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceVncPasswdRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceVncPasswdRequest.h index 65484f354..598902878 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstanceVncPasswdRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceVncPasswdRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEVNCPASSWDREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEVNCPASSWDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInstanceVncPasswdRequest : public RpcServiceRequest - { - - public: - DescribeInstanceVncPasswdRequest(); - ~DescribeInstanceVncPasswdRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEVNCPASSWDREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEVNCPASSWDREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEVNCPASSWDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeInstanceVncPasswdRequest : public RpcServiceRequest { +public: + DescribeInstanceVncPasswdRequest(); + ~DescribeInstanceVncPasswdRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEVNCPASSWDREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstanceVncUrlRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInstanceVncUrlRequest.h index 0e1e5ac7e..85ff5c9e6 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstanceVncUrlRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstanceVncUrlRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEVNCURLREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEVNCURLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInstanceVncUrlRequest : public RpcServiceRequest - { - - public: - DescribeInstanceVncUrlRequest(); - ~DescribeInstanceVncUrlRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEVNCURLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEVNCURLREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEVNCURLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeInstanceVncUrlRequest : public RpcServiceRequest { +public: + DescribeInstanceVncUrlRequest(); + ~DescribeInstanceVncUrlRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCEVNCURLREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstancesFullStatusRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInstancesFullStatusRequest.h index 1f66e51bb..b9dea657f 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstancesFullStatusRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstancesFullStatusRequest.h @@ -1,96 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESFULLSTATUSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESFULLSTATUSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInstancesFullStatusRequest : public RpcServiceRequest - { - - public: - DescribeInstancesFullStatusRequest(); - ~DescribeInstancesFullStatusRequest(); - - std::vector getEventId()const; - void setEventId(const std::vector& eventId); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getEventPublishTimeEnd()const; - void setEventPublishTimeEnd(const std::string& eventPublishTimeEnd); - std::vector getInstanceEventType()const; - void setInstanceEventType(const std::vector& instanceEventType); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getNotBeforeStart()const; - void setNotBeforeStart(const std::string& notBeforeStart); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getEventPublishTimeStart()const; - void setEventPublishTimeStart(const std::string& eventPublishTimeStart); - std::vector getInstanceId()const; - void setInstanceId(const std::vector& instanceId); - std::string getNotBeforeEnd()const; - void setNotBeforeEnd(const std::string& notBeforeEnd); - std::string getHealthStatus()const; - void setHealthStatus(const std::string& healthStatus); - std::string getEventType()const; - void setEventType(const std::string& eventType); - std::string getStatus()const; - void setStatus(const std::string& status); - - private: - std::vector eventId_; - long resourceOwnerId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string eventPublishTimeEnd_; - std::vector instanceEventType_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string notBeforeStart_; - long ownerId_; - std::string eventPublishTimeStart_; - std::vector instanceId_; - std::string notBeforeEnd_; - std::string healthStatus_; - std::string eventType_; - std::string status_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESFULLSTATUSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESFULLSTATUSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESFULLSTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeInstancesFullStatusRequest : public RpcServiceRequest { +public: + DescribeInstancesFullStatusRequest(); + ~DescribeInstancesFullStatusRequest(); + std::vector getEventId() const; + void setEventId(const std::vector &eventId); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getEventPublishTimeEnd() const; + void setEventPublishTimeEnd(const std::string &eventPublishTimeEnd); + std::vector getInstanceEventType() const; + void setInstanceEventType(const std::vector &instanceEventType); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getNotBeforeStart() const; + void setNotBeforeStart(const std::string ¬BeforeStart); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getEventPublishTimeStart() const; + void setEventPublishTimeStart(const std::string &eventPublishTimeStart); + std::vector getInstanceId() const; + void setInstanceId(const std::vector &instanceId); + std::string getNotBeforeEnd() const; + void setNotBeforeEnd(const std::string ¬BeforeEnd); + std::string getHealthStatus() const; + void setHealthStatus(const std::string &healthStatus); + std::string getEventType() const; + void setEventType(const std::string &eventType); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + std::vector eventId_; + long resourceOwnerId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string eventPublishTimeEnd_; + std::vector instanceEventType_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string notBeforeStart_; + long ownerId_; + std::string eventPublishTimeStart_; + std::vector instanceId_; + std::string notBeforeEnd_; + std::string healthStatus_; + std::string eventType_; + std::string status_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESFULLSTATUSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInstancesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInstancesRequest.h index e890863bb..de7d68c30 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInstancesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInstancesRequest.h @@ -1,198 +1,190 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInstancesRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - - public: - DescribeInstancesRequest(); - ~DescribeInstancesRequest(); - - std::string getInnerIpAddresses()const; - void setInnerIpAddresses(const std::string& innerIpAddresses); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getPrivateIpAddresses()const; - void setPrivateIpAddresses(const std::string& privateIpAddresses); - std::string getHpcClusterId()const; - void setHpcClusterId(const std::string& hpcClusterId); - int getHttpPutResponseHopLimit()const; - void setHttpPutResponseHopLimit(int httpPutResponseHopLimit); - std::string getFilter2Value()const; - void setFilter2Value(const std::string& filter2Value); - std::string getKeyPairName()const; - void setKeyPairName(const std::string& keyPairName); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getLockReason()const; - void setLockReason(const std::string& lockReason); - std::string getFilter1Key()const; - void setFilter1Key(const std::string& filter1Key); - bool getDeviceAvailable()const; - void setDeviceAvailable(bool deviceAvailable); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getFilter3Value()const; - void setFilter3Value(const std::string& filter3Value); - bool getDryRun()const; - void setDryRun(bool dryRun); - std::string getFilter1Value()const; - void setFilter1Value(const std::string& filter1Value); - bool getNeedSaleCycle()const; - void setNeedSaleCycle(bool needSaleCycle); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getVSwitchId()const; - void setVSwitchId(const std::string& vSwitchId); - std::vector getAdditionalAttributes()const; - void setAdditionalAttributes(const std::vector& additionalAttributes); - std::string getInstanceName()const; - void setInstanceName(const std::string& instanceName); - std::string getInstanceIds()const; - void setInstanceIds(const std::string& instanceIds); - std::string getInternetChargeType()const; - void setInternetChargeType(const std::string& internetChargeType); - std::string getZoneId()const; - void setZoneId(const std::string& zoneId); - int getMaxResults()const; - void setMaxResults(int maxResults); - std::vector getIpv6Address()const; - void setIpv6Address(const std::vector& ipv6Address); - std::string getInstanceNetworkType()const; - void setInstanceNetworkType(const std::string& instanceNetworkType); - std::string getStatus()const; - void setStatus(const std::string& status); - std::string getImageId()const; - void setImageId(const std::string& imageId); - std::string getFilter4Value()const; - void setFilter4Value(const std::string& filter4Value); - bool getIoOptimized()const; - void setIoOptimized(bool ioOptimized); - std::string getSecurityGroupId()const; - void setSecurityGroupId(const std::string& securityGroupId); - std::string getFilter4Key()const; - void setFilter4Key(const std::string& filter4Key); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getNextToken()const; - void setNextToken(const std::string& nextToken); - std::string getRdmaIpAddresses()const; - void setRdmaIpAddresses(const std::string& rdmaIpAddresses); - std::string getHttpEndpoint()const; - void setHttpEndpoint(const std::string& httpEndpoint); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getPublicIpAddresses()const; - void setPublicIpAddresses(const std::string& publicIpAddresses); - std::string getInstanceType()const; - void setInstanceType(const std::string& instanceType); - std::string getInstanceChargeType()const; - void setInstanceChargeType(const std::string& instanceChargeType); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getInstanceTypeFamily()const; - void setInstanceTypeFamily(const std::string& instanceTypeFamily); - std::string getFilter2Key()const; - void setFilter2Key(const std::string& filter2Key); - std::string getEipAddresses()const; - void setEipAddresses(const std::string& eipAddresses); - std::string getVpcId()const; - void setVpcId(const std::string& vpcId); - std::string getHttpTokens()const; - void setHttpTokens(const std::string& httpTokens); - std::string getFilter3Key()const; - void setFilter3Key(const std::string& filter3Key); - - private: - std::string innerIpAddresses_; - long resourceOwnerId_; - std::string privateIpAddresses_; - std::string hpcClusterId_; - int httpPutResponseHopLimit_; - std::string filter2Value_; - std::string keyPairName_; - std::string resourceGroupId_; - std::string lockReason_; - std::string filter1Key_; - bool deviceAvailable_; - std::vector tag_; - std::string filter3Value_; - bool dryRun_; - std::string filter1Value_; - bool needSaleCycle_; - long ownerId_; - std::string vSwitchId_; - std::vector additionalAttributes_; - std::string instanceName_; - std::string instanceIds_; - std::string internetChargeType_; - std::string zoneId_; - int maxResults_; - std::vector ipv6Address_; - std::string instanceNetworkType_; - std::string status_; - std::string imageId_; - std::string filter4Value_; - bool ioOptimized_; - std::string securityGroupId_; - std::string filter4Key_; - int pageNumber_; - std::string regionId_; - std::string nextToken_; - std::string rdmaIpAddresses_; - std::string httpEndpoint_; - int pageSize_; - std::string publicIpAddresses_; - std::string instanceType_; - std::string instanceChargeType_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string instanceTypeFamily_; - std::string filter2Key_; - std::string eipAddresses_; - std::string vpcId_; - std::string httpTokens_; - std::string filter3Key_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeInstancesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + DescribeInstancesRequest(); + ~DescribeInstancesRequest(); + std::string getInnerIpAddresses() const; + void setInnerIpAddresses(const std::string &innerIpAddresses); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPrivateIpAddresses() const; + void setPrivateIpAddresses(const std::string &privateIpAddresses); + std::string getHpcClusterId() const; + void setHpcClusterId(const std::string &hpcClusterId); + int getHttpPutResponseHopLimit() const; + void setHttpPutResponseHopLimit(int httpPutResponseHopLimit); + std::string getFilter2Value() const; + void setFilter2Value(const std::string &filter2Value); + std::string getKeyPairName() const; + void setKeyPairName(const std::string &keyPairName); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getLockReason() const; + void setLockReason(const std::string &lockReason); + std::string getFilter1Key() const; + void setFilter1Key(const std::string &filter1Key); + bool getDeviceAvailable() const; + void setDeviceAvailable(bool deviceAvailable); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getFilter3Value() const; + void setFilter3Value(const std::string &filter3Value); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getFilter1Value() const; + void setFilter1Value(const std::string &filter1Value); + bool getNeedSaleCycle() const; + void setNeedSaleCycle(bool needSaleCycle); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getVSwitchId() const; + void setVSwitchId(const std::string &vSwitchId); + std::vector getAdditionalAttributes() const; + void setAdditionalAttributes(const std::vector &additionalAttributes); + std::string getInstanceName() const; + void setInstanceName(const std::string &instanceName); + std::string getInstanceIds() const; + void setInstanceIds(const std::string &instanceIds); + std::string getInternetChargeType() const; + void setInternetChargeType(const std::string &internetChargeType); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + int getMaxResults() const; + void setMaxResults(int maxResults); + std::vector getIpv6Address() const; + void setIpv6Address(const std::vector &ipv6Address); + std::string getInstanceNetworkType() const; + void setInstanceNetworkType(const std::string &instanceNetworkType); + std::string getStatus() const; + void setStatus(const std::string &status); + std::string getImageId() const; + void setImageId(const std::string &imageId); + std::string getFilter4Value() const; + void setFilter4Value(const std::string &filter4Value); + bool getIoOptimized() const; + void setIoOptimized(bool ioOptimized); + std::string getSecurityGroupId() const; + void setSecurityGroupId(const std::string &securityGroupId); + std::string getFilter4Key() const; + void setFilter4Key(const std::string &filter4Key); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getRdmaIpAddresses() const; + void setRdmaIpAddresses(const std::string &rdmaIpAddresses); + std::string getHttpEndpoint() const; + void setHttpEndpoint(const std::string &httpEndpoint); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getPublicIpAddresses() const; + void setPublicIpAddresses(const std::string &publicIpAddresses); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + std::string getInstanceChargeType() const; + void setInstanceChargeType(const std::string &instanceChargeType); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getInstanceTypeFamily() const; + void setInstanceTypeFamily(const std::string &instanceTypeFamily); + std::string getFilter2Key() const; + void setFilter2Key(const std::string &filter2Key); + std::string getEipAddresses() const; + void setEipAddresses(const std::string &eipAddresses); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + std::string getHttpTokens() const; + void setHttpTokens(const std::string &httpTokens); + std::string getFilter3Key() const; + void setFilter3Key(const std::string &filter3Key); + +private: + std::string innerIpAddresses_; + long resourceOwnerId_; + std::string privateIpAddresses_; + std::string hpcClusterId_; + int httpPutResponseHopLimit_; + std::string filter2Value_; + std::string keyPairName_; + std::string resourceGroupId_; + std::string lockReason_; + std::string filter1Key_; + bool deviceAvailable_; + std::vector tag_; + std::string filter3Value_; + bool dryRun_; + std::string filter1Value_; + bool needSaleCycle_; + long ownerId_; + std::string vSwitchId_; + std::vector additionalAttributes_; + std::string instanceName_; + std::string instanceIds_; + std::string internetChargeType_; + std::string zoneId_; + int maxResults_; + std::vector ipv6Address_; + std::string instanceNetworkType_; + std::string status_; + std::string imageId_; + std::string filter4Value_; + bool ioOptimized_; + std::string securityGroupId_; + std::string filter4Key_; + int pageNumber_; + std::string regionId_; + std::string nextToken_; + std::string rdmaIpAddresses_; + std::string httpEndpoint_; + int pageSize_; + std::string publicIpAddresses_; + std::string instanceType_; + std::string instanceChargeType_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string instanceTypeFamily_; + std::string filter2Key_; + std::string eipAddresses_; + std::string vpcId_; + std::string httpTokens_; + std::string filter3Key_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINSTANCESREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInvocationResultsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInvocationResultsRequest.h index fad7bd5c0..05e78da32 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInvocationResultsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInvocationResultsRequest.h @@ -1,84 +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_ECS_MODEL_DESCRIBEINVOCATIONRESULTSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINVOCATIONRESULTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInvocationResultsRequest : public RpcServiceRequest - { - - public: - DescribeInvocationResultsRequest(); - ~DescribeInvocationResultsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getCommandId()const; - void setCommandId(const std::string& commandId); - long getPageNumber()const; - void setPageNumber(long pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getContentEncoding()const; - void setContentEncoding(const std::string& contentEncoding); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getInvokeId()const; - void setInvokeId(const std::string& invokeId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getInvokeRecordStatus()const; - void setInvokeRecordStatus(const std::string& invokeRecordStatus); - bool getIncludeHistory()const; - void setIncludeHistory(bool includeHistory); - - private: - long resourceOwnerId_; - std::string commandId_; - long pageNumber_; - std::string regionId_; - std::string contentEncoding_; - long pageSize_; - std::string invokeId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string instanceId_; - std::string invokeRecordStatus_; - bool includeHistory_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINVOCATIONRESULTSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINVOCATIONRESULTSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINVOCATIONRESULTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeInvocationResultsRequest : public RpcServiceRequest { +public: + DescribeInvocationResultsRequest(); + ~DescribeInvocationResultsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getCommandId() const; + void setCommandId(const std::string &commandId); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getContentEncoding() const; + void setContentEncoding(const std::string &contentEncoding); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getInvokeId() const; + void setInvokeId(const std::string &invokeId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getInvokeRecordStatus() const; + void setInvokeRecordStatus(const std::string &invokeRecordStatus); + bool getIncludeHistory() const; + void setIncludeHistory(bool includeHistory); + +private: + long resourceOwnerId_; + std::string commandId_; + long pageNumber_; + std::string regionId_; + std::string contentEncoding_; + long pageSize_; + std::string invokeId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; + std::string invokeRecordStatus_; + bool includeHistory_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINVOCATIONRESULTSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeInvocationsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeInvocationsRequest.h index 23d9fc27a..1d2086583 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeInvocationsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeInvocationsRequest.h @@ -1,96 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINVOCATIONSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINVOCATIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeInvocationsRequest : public RpcServiceRequest - { - - public: - DescribeInvocationsRequest(); - ~DescribeInvocationsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getInvokeStatus()const; - void setInvokeStatus(const std::string& invokeStatus); - bool getIncludeOutput()const; - void setIncludeOutput(bool includeOutput); - std::string getCommandId()const; - void setCommandId(const std::string& commandId); - long getPageNumber()const; - void setPageNumber(long pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getContentEncoding()const; - void setContentEncoding(const std::string& contentEncoding); - std::string getRepeatMode()const; - void setRepeatMode(const std::string& repeatMode); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getInvokeId()const; - void setInvokeId(const std::string& invokeId); - bool getTimed()const; - void setTimed(bool timed); - std::string getCommandName()const; - void setCommandName(const std::string& commandName); - std::string getResourceOwnerAccount()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 getCommandType()const; - void setCommandType(const std::string& commandType); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - long resourceOwnerId_; - std::string invokeStatus_; - bool includeOutput_; - std::string commandId_; - long pageNumber_; - std::string regionId_; - std::string contentEncoding_; - std::string repeatMode_; - long pageSize_; - std::string invokeId_; - bool timed_; - std::string commandName_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string commandType_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINVOCATIONSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEINVOCATIONSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEINVOCATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeInvocationsRequest : public RpcServiceRequest { +public: + DescribeInvocationsRequest(); + ~DescribeInvocationsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInvokeStatus() const; + void setInvokeStatus(const std::string &invokeStatus); + bool getIncludeOutput() const; + void setIncludeOutput(bool includeOutput); + std::string getCommandId() const; + void setCommandId(const std::string &commandId); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getContentEncoding() const; + void setContentEncoding(const std::string &contentEncoding); + std::string getRepeatMode() const; + void setRepeatMode(const std::string &repeatMode); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getInvokeId() const; + void setInvokeId(const std::string &invokeId); + bool getTimed() const; + void setTimed(bool timed); + std::string getCommandName() const; + void setCommandName(const std::string &commandName); + std::string getResourceOwnerAccount() 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 getCommandType() const; + void setCommandType(const std::string &commandType); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + long resourceOwnerId_; + std::string invokeStatus_; + bool includeOutput_; + std::string commandId_; + long pageNumber_; + std::string regionId_; + std::string contentEncoding_; + std::string repeatMode_; + long pageSize_; + std::string invokeId_; + bool timed_; + std::string commandName_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string commandType_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEINVOCATIONSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeKeyPairsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeKeyPairsRequest.h index 07bd7e15f..1774b916f 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeKeyPairsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeKeyPairsRequest.h @@ -1,81 +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_ECS_MODEL_DESCRIBEKEYPAIRSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEKEYPAIRSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeKeyPairsRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - - public: - DescribeKeyPairsRequest(); - ~DescribeKeyPairsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getKeyPairFingerPrint()const; - void setKeyPairFingerPrint(const std::string& keyPairFingerPrint); - std::string getKeyPairName()const; - void setKeyPairName(const std::string& keyPairName); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string keyPairFingerPrint_; - std::string keyPairName_; - int pageNumber_; - std::string resourceGroupId_; - std::string regionId_; - int pageSize_; - std::vector tag_; - std::string resourceOwnerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEKEYPAIRSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEKEYPAIRSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEKEYPAIRSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeKeyPairsRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + DescribeKeyPairsRequest(); + ~DescribeKeyPairsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getKeyPairFingerPrint() const; + void setKeyPairFingerPrint(const std::string &keyPairFingerPrint); + std::string getKeyPairName() const; + void setKeyPairName(const std::string &keyPairName); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string keyPairFingerPrint_; + std::string keyPairName_; + int pageNumber_; + std::string resourceGroupId_; + std::string regionId_; + int pageSize_; + std::vector tag_; + std::string resourceOwnerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEKEYPAIRSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeLaunchTemplateVersionsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeLaunchTemplateVersionsRequest.h index 8db70b9d4..b35b9c616 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeLaunchTemplateVersionsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeLaunchTemplateVersionsRequest.h @@ -1,87 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBELAUNCHTEMPLATEVERSIONSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBELAUNCHTEMPLATEVERSIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeLaunchTemplateVersionsRequest : public RpcServiceRequest - { - - public: - DescribeLaunchTemplateVersionsRequest(); - ~DescribeLaunchTemplateVersionsRequest(); - - std::string getLaunchTemplateName()const; - void setLaunchTemplateName(const std::string& launchTemplateName); - long getMaxVersion()const; - void setMaxVersion(long maxVersion); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - bool getDefaultVersion()const; - void setDefaultVersion(bool defaultVersion); - long getMinVersion()const; - void setMinVersion(long minVersion); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getLaunchTemplateId()const; - void setLaunchTemplateId(const std::string& launchTemplateId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::vector getLaunchTemplateVersion()const; - void setLaunchTemplateVersion(const std::vector& launchTemplateVersion); - bool getDetailFlag()const; - void setDetailFlag(bool detailFlag); - - private: - std::string launchTemplateName_; - long maxVersion_; - long resourceOwnerId_; - bool defaultVersion_; - long minVersion_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string launchTemplateId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::vector launchTemplateVersion_; - bool detailFlag_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBELAUNCHTEMPLATEVERSIONSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBELAUNCHTEMPLATEVERSIONSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBELAUNCHTEMPLATEVERSIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeLaunchTemplateVersionsRequest : public RpcServiceRequest { +public: + DescribeLaunchTemplateVersionsRequest(); + ~DescribeLaunchTemplateVersionsRequest(); + std::string getLaunchTemplateName() const; + void setLaunchTemplateName(const std::string &launchTemplateName); + long getMaxVersion() const; + void setMaxVersion(long maxVersion); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + bool getDefaultVersion() const; + void setDefaultVersion(bool defaultVersion); + long getMinVersion() const; + void setMinVersion(long minVersion); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getLaunchTemplateId() const; + void setLaunchTemplateId(const std::string &launchTemplateId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getLaunchTemplateVersion() const; + void setLaunchTemplateVersion(const std::vector &launchTemplateVersion); + bool getDetailFlag() const; + void setDetailFlag(bool detailFlag); + +private: + std::string launchTemplateName_; + long maxVersion_; + long resourceOwnerId_; + bool defaultVersion_; + long minVersion_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string launchTemplateId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::vector launchTemplateVersion_; + bool detailFlag_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBELAUNCHTEMPLATEVERSIONSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeLaunchTemplateVersionsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeLaunchTemplateVersionsResult.h index 1044ddde3..e2b9ac323 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeLaunchTemplateVersionsResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeLaunchTemplateVersionsResult.h @@ -39,12 +39,12 @@ namespace AlibabaCloud struct DataDisk { std::string snapshotId; - std::string category; std::string description; + std::string category; + std::string performanceLevel; + std::string device; int size; std::string encrypted; - std::string device; - std::string performanceLevel; bool deleteWithInstance; std::string diskName; }; @@ -67,9 +67,9 @@ namespace AlibabaCloud std::string privateIpAddress; std::vector dataDisks; std::string resourceGroupId; + std::string userData; int systemDiskSize; std::string systemDiskDescription; - std::string userData; std::string instanceChargeType; int spotDuration; std::string ramRoleName; @@ -81,8 +81,8 @@ namespace AlibabaCloud float spotPriceLimit; std::string instanceType; std::vector tags; - std::string hostName; std::string spotStrategy; + std::string hostName; bool passwordInherit; std::string keyPairName; std::string ioOptimized; @@ -93,11 +93,11 @@ namespace AlibabaCloud std::vector securityGroupIds; std::string systemDiskCategory; std::string internetChargeType; - std::string instanceName; std::string deploymentSetId; + std::string instanceName; bool systemDiskDeleteWithInstance; - int internetMaxBandwidthOut; bool enableVmOsConfig; + int internetMaxBandwidthOut; std::string vpcId; int internetMaxBandwidthIn; int systemDiskIops; @@ -106,11 +106,11 @@ namespace AlibabaCloud }; LaunchTemplateData launchTemplateData; std::string launchTemplateName; - std::string versionDescription; std::string createdBy; + std::string versionDescription; std::string modifiedTime; - std::string createTime; bool defaultVersion; + std::string createTime; std::string launchTemplateId; long versionNumber; }; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeLaunchTemplatesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeLaunchTemplatesRequest.h index 81677e6b6..13ed079c7 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeLaunchTemplatesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeLaunchTemplatesRequest.h @@ -1,84 +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_ECS_MODEL_DESCRIBELAUNCHTEMPLATESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBELAUNCHTEMPLATESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeLaunchTemplatesRequest : public RpcServiceRequest - { - public: - struct TemplateTag - { - std::string key; - std::string value; - }; - - public: - DescribeLaunchTemplatesRequest(); - ~DescribeLaunchTemplatesRequest(); - - std::vector getLaunchTemplateName()const; - void setLaunchTemplateName(const std::vector& launchTemplateName); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::vector getTemplateTag()const; - void setTemplateTag(const std::vector& templateTag); - std::vector getLaunchTemplateId()const; - void setLaunchTemplateId(const std::vector& launchTemplateId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getTemplateResourceGroupId()const; - void setTemplateResourceGroupId(const std::string& templateResourceGroupId); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - std::vector launchTemplateName_; - long resourceOwnerId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::vector templateTag_; - std::vector launchTemplateId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string templateResourceGroupId_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBELAUNCHTEMPLATESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBELAUNCHTEMPLATESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBELAUNCHTEMPLATESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeLaunchTemplatesRequest : public RpcServiceRequest { +public: + struct TemplateTag { + std::string key; + std::string value; + }; + DescribeLaunchTemplatesRequest(); + ~DescribeLaunchTemplatesRequest(); + std::vector getLaunchTemplateName() const; + void setLaunchTemplateName(const std::vector &launchTemplateName); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::vector getTemplateTag() const; + void setTemplateTag(const std::vector &templateTag); + std::vector getLaunchTemplateId() const; + void setLaunchTemplateId(const std::vector &launchTemplateId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getTemplateResourceGroupId() const; + void setTemplateResourceGroupId(const std::string &templateResourceGroupId); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::vector launchTemplateName_; + long resourceOwnerId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::vector templateTag_; + std::vector launchTemplateId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string templateResourceGroupId_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBELAUNCHTEMPLATESREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeLimitationRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeLimitationRequest.h index 43c278df9..d7bc47ba8 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeLimitationRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeLimitationRequest.h @@ -1,60 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBELIMITATIONREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBELIMITATIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeLimitationRequest : public RpcServiceRequest - { - - public: - DescribeLimitationRequest(); - ~DescribeLimitationRequest(); - - std::string getLimitation()const; - void setLimitation(const std::string& limitation); - 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); - - private: - std::string limitation_; - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBELIMITATIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBELIMITATIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBELIMITATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeLimitationRequest : public RpcServiceRequest { +public: + DescribeLimitationRequest(); + ~DescribeLimitationRequest(); + std::string getLimitation() const; + void setLimitation(const std::string &limitation); + 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); + +private: + std::string limitation_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBELIMITATIONREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeManagedInstancesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeManagedInstancesRequest.h index 7e14ed8aa..f8d6b0499 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeManagedInstancesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeManagedInstancesRequest.h @@ -1,81 +1,75 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEMANAGEDINSTANCESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEMANAGEDINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeManagedInstancesRequest : public RpcServiceRequest - { - - public: - DescribeManagedInstancesRequest(); - ~DescribeManagedInstancesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - long getPageNumber()const; - void setPageNumber(long pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getOsType()const; - void setOsType(const std::string& osType); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceName()const; - void setInstanceName(const std::string& instanceName); - std::vector getInstanceId()const; - void setInstanceId(const std::vector& instanceId); - std::string getInstanceIp()const; - void setInstanceIp(const std::string& instanceIp); - std::string getActivationId()const; - void setActivationId(const std::string& activationId); - - private: - long resourceOwnerId_; - long pageNumber_; - std::string regionId_; - long pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string osType_; - long ownerId_; - std::string instanceName_; - std::vector instanceId_; - std::string instanceIp_; - std::string activationId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEMANAGEDINSTANCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEMANAGEDINSTANCESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEMANAGEDINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeManagedInstancesRequest : public RpcServiceRequest { +public: + DescribeManagedInstancesRequest(); + ~DescribeManagedInstancesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getOsType() const; + void setOsType(const std::string &osType); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceName() const; + void setInstanceName(const std::string &instanceName); + std::vector getInstanceId() const; + void setInstanceId(const std::vector &instanceId); + std::string getInstanceIp() const; + void setInstanceIp(const std::string &instanceIp); + std::string getActivationId() const; + void setActivationId(const std::string &activationId); + +private: + long resourceOwnerId_; + long pageNumber_; + std::string regionId_; + long pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string osType_; + long ownerId_; + std::string instanceName_; + std::vector instanceId_; + std::string instanceIp_; + std::string activationId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEMANAGEDINSTANCESREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeManagedInstancesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeManagedInstancesResult.h index d62a535ea..4ed4795dc 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeManagedInstancesResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeManagedInstancesResult.h @@ -35,13 +35,13 @@ namespace AlibabaCloud struct Instance { std::string machineId; + bool connected; std::string instanceId; std::string agentVersion; - bool connected; long invocationCount; std::string osVersion; - std::string activationId; std::string hostname; + std::string activationId; std::string registrationTime; std::string intranetIp; std::string instanceName; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeNatGatewaysRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeNatGatewaysRequest.h index 42b4b145a..ba7f4473b 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeNatGatewaysRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeNatGatewaysRequest.h @@ -1,72 +1,66 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBENATGATEWAYSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBENATGATEWAYSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeNatGatewaysRequest : public RpcServiceRequest - { - - public: - DescribeNatGatewaysRequest(); - ~DescribeNatGatewaysRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getNatGatewayId()const; - void setNatGatewayId(const std::string& natGatewayId); - std::string getResourceOwnerAccount()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 getVpcId()const; - void setVpcId(const std::string& vpcId); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string natGatewayId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string vpcId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBENATGATEWAYSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBENATGATEWAYSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBENATGATEWAYSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeNatGatewaysRequest : public RpcServiceRequest { +public: + DescribeNatGatewaysRequest(); + ~DescribeNatGatewaysRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getNatGatewayId() const; + void setNatGatewayId(const std::string &natGatewayId); + std::string getResourceOwnerAccount() 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 getVpcId() const; + void setVpcId(const std::string &vpcId); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string natGatewayId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vpcId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBENATGATEWAYSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfaceAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfaceAttributeRequest.h index 586a312d6..46a4311ce 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfaceAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfaceAttributeRequest.h @@ -1,75 +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_ECS_MODEL_DESCRIBENETWORKINTERFACEATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBENETWORKINTERFACEATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeNetworkInterfaceAttributeRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string key; - std::string value; - }; - - public: - DescribeNetworkInterfaceAttributeRequest(); - ~DescribeNetworkInterfaceAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getAttribute()const; - void setAttribute(const std::string& attribute); - std::string getResourceOwnerAccount()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 getNetworkInterfaceId()const; - void setNetworkInterfaceId(const std::string& networkInterfaceId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::vector tag_; - std::string attribute_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string networkInterfaceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBENETWORKINTERFACEATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBENETWORKINTERFACEATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBENETWORKINTERFACEATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeNetworkInterfaceAttributeRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + DescribeNetworkInterfaceAttributeRequest(); + ~DescribeNetworkInterfaceAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getAttribute() const; + void setAttribute(const std::string &attribute); + std::string getResourceOwnerAccount() 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 getNetworkInterfaceId() const; + void setNetworkInterfaceId(const std::string &networkInterfaceId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::vector tag_; + std::string attribute_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string networkInterfaceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBENETWORKINTERFACEATTRIBUTEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfaceAttributeResult.h b/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfaceAttributeResult.h index 48a48417f..d33a9d6b9 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfaceAttributeResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfaceAttributeResult.h @@ -69,10 +69,10 @@ namespace AlibabaCloud DescribeNetworkInterfaceAttributeResult(); explicit DescribeNetworkInterfaceAttributeResult(const std::string &payload); ~DescribeNetworkInterfaceAttributeResult(); - std::string getPrivateIpAddress()const; std::string getDescription()const; - std::string getResourceGroupId()const; + std::string getPrivateIpAddress()const; bool getServiceManaged()const; + std::string getResourceGroupId()const; Attachment getAttachment()const; std::string getNetworkInterfaceId()const; std::vector getIpv6Sets()const; @@ -89,8 +89,8 @@ namespace AlibabaCloud std::vector getSecurityGroupIds()const; long getServiceID()const; std::string getType()const; - int getQueueNumber()const; int getQueuePairNumber()const; + int getQueueNumber()const; std::string getVpcId()const; std::string getCreationTime()const; std::vector getPrivateIpSets()const; @@ -98,10 +98,10 @@ namespace AlibabaCloud protected: void parse(const std::string &payload); private: - std::string privateIpAddress_; std::string description_; - std::string resourceGroupId_; + std::string privateIpAddress_; bool serviceManaged_; + std::string resourceGroupId_; Attachment attachment_; std::string networkInterfaceId_; std::vector ipv6Sets_; @@ -118,8 +118,8 @@ namespace AlibabaCloud std::vector securityGroupIds_; long serviceID_; std::string type_; - int queueNumber_; int queuePairNumber_; + int queueNumber_; std::string vpcId_; std::string creationTime_; std::vector privateIpSets_; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfacePermissionsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfacePermissionsRequest.h index 19bb82942..f88d6ee97 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfacePermissionsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfacePermissionsRequest.h @@ -1,72 +1,66 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBENETWORKINTERFACEPERMISSIONSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBENETWORKINTERFACEPERMISSIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeNetworkInterfacePermissionsRequest : public RpcServiceRequest - { - - public: - DescribeNetworkInterfacePermissionsRequest(); - ~DescribeNetworkInterfacePermissionsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::vector getNetworkInterfacePermissionId()const; - void setNetworkInterfacePermissionId(const std::vector& networkInterfacePermissionId); - std::string getResourceOwnerAccount()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 getNetworkInterfaceId()const; - void setNetworkInterfaceId(const std::string& networkInterfaceId); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::vector networkInterfacePermissionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string networkInterfaceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBENETWORKINTERFACEPERMISSIONSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBENETWORKINTERFACEPERMISSIONSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBENETWORKINTERFACEPERMISSIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeNetworkInterfacePermissionsRequest : public RpcServiceRequest { +public: + DescribeNetworkInterfacePermissionsRequest(); + ~DescribeNetworkInterfacePermissionsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::vector getNetworkInterfacePermissionId() const; + void setNetworkInterfacePermissionId(const std::vector &networkInterfacePermissionId); + std::string getResourceOwnerAccount() 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 getNetworkInterfaceId() const; + void setNetworkInterfaceId(const std::string &networkInterfaceId); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::vector networkInterfacePermissionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string networkInterfaceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBENETWORKINTERFACEPERMISSIONSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfacePermissionsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfacePermissionsResult.h index 52d4e7c31..ac3beda3f 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfacePermissionsResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfacePermissionsResult.h @@ -36,8 +36,8 @@ namespace AlibabaCloud { std::string permissionState; long accountId; - std::string serviceName; std::string networkInterfacePermissionId; + std::string serviceName; std::string permission; std::string networkInterfaceId; }; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfacesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfacesRequest.h index d67904e4c..02fe15851 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfacesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeNetworkInterfacesRequest.h @@ -1,120 +1,112 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBENETWORKINTERFACESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBENETWORKINTERFACESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeNetworkInterfacesRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string key; - std::string value; - }; - - public: - DescribeNetworkInterfacesRequest(); - ~DescribeNetworkInterfacesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - bool getServiceManaged()const; - void setServiceManaged(bool serviceManaged); - std::string getSecurityGroupId()const; - void setSecurityGroupId(const std::string& securityGroupId); - std::string getType()const; - void setType(const std::string& type); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getNextToken()const; - void setNextToken(const std::string& nextToken); - int getPageSize()const; - void setPageSize(int pageSize); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getNetworkInterfaceName()const; - void setNetworkInterfaceName(const std::string& networkInterfaceName); - std::string getResourceOwnerAccount()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 getVSwitchId()const; - void setVSwitchId(const std::string& vSwitchId); - std::vector getPrivateIpAddress()const; - void setPrivateIpAddress(const std::vector& privateIpAddress); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getVpcId()const; - void setVpcId(const std::string& vpcId); - std::string getPrimaryIpAddress()const; - void setPrimaryIpAddress(const std::string& primaryIpAddress); - int getMaxResults()const; - void setMaxResults(int maxResults); - std::vector getNetworkInterfaceId()const; - void setNetworkInterfaceId(const std::vector& networkInterfaceId); - std::vector getIpv6Address()const; - void setIpv6Address(const std::vector& ipv6Address); - std::string getStatus()const; - void setStatus(const std::string& status); - - private: - long resourceOwnerId_; - bool serviceManaged_; - std::string securityGroupId_; - std::string type_; - int pageNumber_; - std::string resourceGroupId_; - std::string regionId_; - std::string nextToken_; - int pageSize_; - std::vector tag_; - std::string networkInterfaceName_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string vSwitchId_; - std::vector privateIpAddress_; - std::string instanceId_; - std::string vpcId_; - std::string primaryIpAddress_; - int maxResults_; - std::vector networkInterfaceId_; - std::vector ipv6Address_; - std::string status_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBENETWORKINTERFACESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBENETWORKINTERFACESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBENETWORKINTERFACESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeNetworkInterfacesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + DescribeNetworkInterfacesRequest(); + ~DescribeNetworkInterfacesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + bool getServiceManaged() const; + void setServiceManaged(bool serviceManaged); + std::string getSecurityGroupId() const; + void setSecurityGroupId(const std::string &securityGroupId); + std::string getType() const; + void setType(const std::string &type); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + int getPageSize() const; + void setPageSize(int pageSize); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getNetworkInterfaceName() const; + void setNetworkInterfaceName(const std::string &networkInterfaceName); + std::string getResourceOwnerAccount() 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 getVSwitchId() const; + void setVSwitchId(const std::string &vSwitchId); + std::vector getPrivateIpAddress() const; + void setPrivateIpAddress(const std::vector &privateIpAddress); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + std::string getPrimaryIpAddress() const; + void setPrimaryIpAddress(const std::string &primaryIpAddress); + int getMaxResults() const; + void setMaxResults(int maxResults); + std::vector getNetworkInterfaceId() const; + void setNetworkInterfaceId(const std::vector &networkInterfaceId); + std::vector getIpv6Address() const; + void setIpv6Address(const std::vector &ipv6Address); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + long resourceOwnerId_; + bool serviceManaged_; + std::string securityGroupId_; + std::string type_; + int pageNumber_; + std::string resourceGroupId_; + std::string regionId_; + std::string nextToken_; + int pageSize_; + std::vector tag_; + std::string networkInterfaceName_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vSwitchId_; + std::vector privateIpAddress_; + std::string instanceId_; + std::string vpcId_; + std::string primaryIpAddress_; + int maxResults_; + std::vector networkInterfaceId_; + std::vector ipv6Address_; + std::string status_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBENETWORKINTERFACESREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeNewProjectEipMonitorDataRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeNewProjectEipMonitorDataRequest.h index f31877a0e..a2e528a95 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeNewProjectEipMonitorDataRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeNewProjectEipMonitorDataRequest.h @@ -1,72 +1,66 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBENEWPROJECTEIPMONITORDATAREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBENEWPROJECTEIPMONITORDATAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeNewProjectEipMonitorDataRequest : public RpcServiceRequest - { - - public: - DescribeNewProjectEipMonitorDataRequest(); - ~DescribeNewProjectEipMonitorDataRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAllocationId()const; - void setAllocationId(const std::string& allocationId); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPeriod()const; - void setPeriod(int period); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string allocationId_; - std::string startTime_; - std::string regionId_; - int period_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string endTime_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBENEWPROJECTEIPMONITORDATAREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBENEWPROJECTEIPMONITORDATAREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBENEWPROJECTEIPMONITORDATAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeNewProjectEipMonitorDataRequest : public RpcServiceRequest { +public: + DescribeNewProjectEipMonitorDataRequest(); + ~DescribeNewProjectEipMonitorDataRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAllocationId() const; + void setAllocationId(const std::string &allocationId); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPeriod() const; + void setPeriod(int period); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string allocationId_; + std::string startTime_; + std::string regionId_; + int period_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string endTime_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBENEWPROJECTEIPMONITORDATAREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribePhysicalConnectionsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribePhysicalConnectionsRequest.h index 74ad026f4..45dfed49a 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribePhysicalConnectionsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribePhysicalConnectionsRequest.h @@ -1,81 +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_ECS_MODEL_DESCRIBEPHYSICALCONNECTIONSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEPHYSICALCONNECTIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribePhysicalConnectionsRequest : public RpcServiceRequest - { - public: - struct Filter - { - std::vector value; - std::string key; - }; - - public: - DescribePhysicalConnectionsRequest(); - ~DescribePhysicalConnectionsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getUserCidr()const; - void setUserCidr(const std::string& userCidr); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::vector getFilter()const; - void setFilter(const std::vector& filter); - - private: - long resourceOwnerId_; - std::string clientToken_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string userCidr_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::vector filter_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEPHYSICALCONNECTIONSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEPHYSICALCONNECTIONSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEPHYSICALCONNECTIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribePhysicalConnectionsRequest : public RpcServiceRequest { +public: + struct Filter { + std::string key; + }; + DescribePhysicalConnectionsRequest(); + ~DescribePhysicalConnectionsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getUserCidr() const; + void setUserCidr(const std::string &userCidr); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getFilter() const; + void setFilter(const std::vector &filter); + +private: + long resourceOwnerId_; + std::string clientToken_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string userCidr_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::vector filter_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEPHYSICALCONNECTIONSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribePhysicalConnectionsResult.h b/ecs/include/alibabacloud/ecs/model/DescribePhysicalConnectionsResult.h index 844f704ab..e5acd68cc 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribePhysicalConnectionsResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribePhysicalConnectionsResult.h @@ -39,18 +39,18 @@ namespace AlibabaCloud std::string lineOperator; std::string circuitCode; std::string physicalConnectionId; - std::string peerLocation; std::string redundantPhysicalConnectionId; + std::string peerLocation; std::string businessStatus; std::string name; std::string type; std::string adLocation; long bandwidth; - std::string accessPointId; std::string creationTime; + std::string accessPointId; std::string enabledTime; - std::string spec; std::string portNumber; + std::string spec; std::string portType; }; diff --git a/ecs/include/alibabacloud/ecs/model/DescribePrefixListAssociationsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribePrefixListAssociationsRequest.h index 13871fb27..d00b52094 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribePrefixListAssociationsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribePrefixListAssociationsRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEPREFIXLISTASSOCIATIONSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEPREFIXLISTASSOCIATIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribePrefixListAssociationsRequest : public RpcServiceRequest - { - - public: - DescribePrefixListAssociationsRequest(); - ~DescribePrefixListAssociationsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getPrefixListId()const; - void setPrefixListId(const std::string& prefixListId); - std::string getNextToken()const; - void setNextToken(const std::string& nextToken); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - int getMaxResults()const; - void setMaxResults(int maxResults); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string prefixListId_; - std::string nextToken_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - int maxResults_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEPREFIXLISTASSOCIATIONSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEPREFIXLISTASSOCIATIONSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEPREFIXLISTASSOCIATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribePrefixListAssociationsRequest : public RpcServiceRequest { +public: + DescribePrefixListAssociationsRequest(); + ~DescribePrefixListAssociationsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getPrefixListId() const; + void setPrefixListId(const std::string &prefixListId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string prefixListId_; + std::string nextToken_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + int maxResults_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEPREFIXLISTASSOCIATIONSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribePrefixListAttributesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribePrefixListAttributesRequest.h index 7478cefe6..0d5638f6d 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribePrefixListAttributesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribePrefixListAttributesRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEPREFIXLISTATTRIBUTESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEPREFIXLISTATTRIBUTESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribePrefixListAttributesRequest : public RpcServiceRequest - { - - public: - DescribePrefixListAttributesRequest(); - ~DescribePrefixListAttributesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getPrefixListId()const; - void setPrefixListId(const std::string& prefixListId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string prefixListId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEPREFIXLISTATTRIBUTESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEPREFIXLISTATTRIBUTESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEPREFIXLISTATTRIBUTESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribePrefixListAttributesRequest : public RpcServiceRequest { +public: + DescribePrefixListAttributesRequest(); + ~DescribePrefixListAttributesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getPrefixListId() const; + void setPrefixListId(const std::string &prefixListId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string prefixListId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEPREFIXLISTATTRIBUTESREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribePrefixListsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribePrefixListsRequest.h index 066ff029d..541ef2b7e 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribePrefixListsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribePrefixListsRequest.h @@ -1,75 +1,69 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEPREFIXLISTSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEPREFIXLISTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribePrefixListsRequest : public RpcServiceRequest - { - - public: - DescribePrefixListsRequest(); - ~DescribePrefixListsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::vector getPrefixListId()const; - void setPrefixListId(const std::vector& prefixListId); - std::string getNextToken()const; - void setNextToken(const std::string& nextToken); - std::string getAddressFamily()const; - void setAddressFamily(const std::string& addressFamily); - std::string getResourceOwnerAccount()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 getPrefixListName()const; - void setPrefixListName(const std::string& prefixListName); - int getMaxResults()const; - void setMaxResults(int maxResults); - - private: - long resourceOwnerId_; - std::string regionId_; - std::vector prefixListId_; - std::string nextToken_; - std::string addressFamily_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string prefixListName_; - int maxResults_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEPREFIXLISTSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEPREFIXLISTSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEPREFIXLISTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribePrefixListsRequest : public RpcServiceRequest { +public: + DescribePrefixListsRequest(); + ~DescribePrefixListsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::vector getPrefixListId() const; + void setPrefixListId(const std::vector &prefixListId); + std::string getAddressFamily() const; + void setAddressFamily(const std::string &addressFamily); + std::string getResourceOwnerAccount() 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 getPrefixListName() const; + void setPrefixListName(const std::string &prefixListName); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string nextToken_; + std::vector prefixListId_; + std::string addressFamily_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string prefixListName_; + int maxResults_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEPREFIXLISTSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribePriceRequest.h b/ecs/include/alibabacloud/ecs/model/DescribePriceRequest.h index 03f2907d5..5ae51a4a2 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribePriceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribePriceRequest.h @@ -1,174 +1,168 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEPRICEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEPRICEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribePriceRequest : public RpcServiceRequest - { - - public: - DescribePriceRequest(); - ~DescribePriceRequest(); - - int getDataDisk3Size()const; - void setDataDisk3Size(int dataDisk3Size); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDataDisk3Category()const; - void setDataDisk3Category(const std::string& dataDisk3Category); - std::string getIsp()const; - void setIsp(const std::string& isp); - int getDataDisk4Size()const; - void setDataDisk4Size(int dataDisk4Size); - std::string getPriceUnit()const; - void setPriceUnit(const std::string& priceUnit); - int getPeriod()const; - void setPeriod(int period); - std::string getDataDisk1PerformanceLevel()const; - void setDataDisk1PerformanceLevel(const std::string& dataDisk1PerformanceLevel); - std::string getAssuranceTimes()const; - void setAssuranceTimes(const std::string& assuranceTimes); - long getOwnerId()const; - void setOwnerId(long ownerId); - int getInstanceCpuCoreCount()const; - void setInstanceCpuCoreCount(int instanceCpuCoreCount); - std::string getSpotStrategy()const; - void setSpotStrategy(const std::string& spotStrategy); - std::string getInternetChargeType()const; - void setInternetChargeType(const std::string& internetChargeType); - std::string getZoneId()const; - void setZoneId(const std::string& zoneId); - std::string getInstanceNetworkType()const; - void setInstanceNetworkType(const std::string& instanceNetworkType); - int getInstanceAmount()const; - void setInstanceAmount(int instanceAmount); - std::vector getInstanceTypeList()const; - void setInstanceTypeList(const std::vector& instanceTypeList); - std::string getDataDisk3PerformanceLevel()const; - void setDataDisk3PerformanceLevel(const std::string& dataDisk3PerformanceLevel); - std::string getImageId()const; - void setImageId(const std::string& imageId); - std::string getIoOptimized()const; - void setIoOptimized(const std::string& ioOptimized); - int getInternetMaxBandwidthOut()const; - void setInternetMaxBandwidthOut(int internetMaxBandwidthOut); - std::string getSystemDiskCategory()const; - void setSystemDiskCategory(const std::string& systemDiskCategory); - std::string getPlatform()const; - void setPlatform(const std::string& platform); - int getCapacity()const; - void setCapacity(int capacity); - std::string getSystemDiskPerformanceLevel()const; - void setSystemDiskPerformanceLevel(const std::string& systemDiskPerformanceLevel); - std::string getDataDisk4Category()const; - void setDataDisk4Category(const std::string& dataDisk4Category); - std::string getDataDisk4PerformanceLevel()const; - void setDataDisk4PerformanceLevel(const std::string& dataDisk4PerformanceLevel); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getScope()const; - void setScope(const std::string& scope); - std::string getInstanceType()const; - void setInstanceType(const std::string& instanceType); - std::string getDedicatedHostType()const; - void setDedicatedHostType(const std::string& dedicatedHostType); - std::string getDataDisk2Category()const; - void setDataDisk2Category(const std::string& dataDisk2Category); - int getDataDisk1Size()const; - void setDataDisk1Size(int dataDisk1Size); - int getAmount()const; - void setAmount(int amount); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - int getDataDisk2Size()const; - void setDataDisk2Size(int dataDisk2Size); - int getSpotDuration()const; - void setSpotDuration(int spotDuration); - std::string getResourceType()const; - void setResourceType(const std::string& resourceType); - std::string getDataDisk1Category()const; - void setDataDisk1Category(const std::string& dataDisk1Category); - std::string getDataDisk2PerformanceLevel()const; - void setDataDisk2PerformanceLevel(const std::string& dataDisk2PerformanceLevel); - int getSystemDiskSize()const; - void setSystemDiskSize(int systemDiskSize); - std::string getOfferingType()const; - void setOfferingType(const std::string& offeringType); - - private: - int dataDisk3Size_; - long resourceOwnerId_; - std::string dataDisk3Category_; - std::string isp_; - int dataDisk4Size_; - std::string priceUnit_; - int period_; - std::string dataDisk1PerformanceLevel_; - std::string assuranceTimes_; - long ownerId_; - int instanceCpuCoreCount_; - std::string spotStrategy_; - std::string internetChargeType_; - std::string zoneId_; - std::string instanceNetworkType_; - int instanceAmount_; - std::vector instanceTypeList_; - std::string dataDisk3PerformanceLevel_; - std::string imageId_; - std::string ioOptimized_; - int internetMaxBandwidthOut_; - std::string systemDiskCategory_; - std::string platform_; - int capacity_; - std::string systemDiskPerformanceLevel_; - std::string dataDisk4Category_; - std::string dataDisk4PerformanceLevel_; - std::string regionId_; - std::string scope_; - std::string instanceType_; - std::string dedicatedHostType_; - std::string dataDisk2Category_; - int dataDisk1Size_; - int amount_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - int dataDisk2Size_; - int spotDuration_; - std::string resourceType_; - std::string dataDisk1Category_; - std::string dataDisk2PerformanceLevel_; - int systemDiskSize_; - std::string offeringType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEPRICEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEPRICEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEPRICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribePriceRequest : public RpcServiceRequest { +public: + DescribePriceRequest(); + ~DescribePriceRequest(); + int getDataDisk3Size() const; + void setDataDisk3Size(int dataDisk3Size); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDataDisk3Category() const; + void setDataDisk3Category(const std::string &dataDisk3Category); + std::string getIsp() const; + void setIsp(const std::string &isp); + int getDataDisk4Size() const; + void setDataDisk4Size(int dataDisk4Size); + std::string getPriceUnit() const; + void setPriceUnit(const std::string &priceUnit); + int getPeriod() const; + void setPeriod(int period); + std::string getDataDisk1PerformanceLevel() const; + void setDataDisk1PerformanceLevel(const std::string &dataDisk1PerformanceLevel); + std::string getAssuranceTimes() const; + void setAssuranceTimes(const std::string &assuranceTimes); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getInstanceCpuCoreCount() const; + void setInstanceCpuCoreCount(int instanceCpuCoreCount); + std::string getSpotStrategy() const; + void setSpotStrategy(const std::string &spotStrategy); + std::string getInternetChargeType() const; + void setInternetChargeType(const std::string &internetChargeType); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + std::string getInstanceNetworkType() const; + void setInstanceNetworkType(const std::string &instanceNetworkType); + int getInstanceAmount() const; + void setInstanceAmount(int instanceAmount); + std::vector getInstanceTypeList() const; + void setInstanceTypeList(const std::vector &instanceTypeList); + std::string getDataDisk3PerformanceLevel() const; + void setDataDisk3PerformanceLevel(const std::string &dataDisk3PerformanceLevel); + std::string getImageId() const; + void setImageId(const std::string &imageId); + std::string getIoOptimized() const; + void setIoOptimized(const std::string &ioOptimized); + int getInternetMaxBandwidthOut() const; + void setInternetMaxBandwidthOut(int internetMaxBandwidthOut); + std::string getSystemDiskCategory() const; + void setSystemDiskCategory(const std::string &systemDiskCategory); + std::string getPlatform() const; + void setPlatform(const std::string &platform); + int getCapacity() const; + void setCapacity(int capacity); + std::string getSystemDiskPerformanceLevel() const; + void setSystemDiskPerformanceLevel(const std::string &systemDiskPerformanceLevel); + std::string getDataDisk4Category() const; + void setDataDisk4Category(const std::string &dataDisk4Category); + std::string getDataDisk4PerformanceLevel() const; + void setDataDisk4PerformanceLevel(const std::string &dataDisk4PerformanceLevel); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getScope() const; + void setScope(const std::string &scope); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + std::string getDedicatedHostType() const; + void setDedicatedHostType(const std::string &dedicatedHostType); + std::string getDataDisk2Category() const; + void setDataDisk2Category(const std::string &dataDisk2Category); + int getDataDisk1Size() const; + void setDataDisk1Size(int dataDisk1Size); + int getAmount() const; + void setAmount(int amount); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + int getDataDisk2Size() const; + void setDataDisk2Size(int dataDisk2Size); + int getSpotDuration() const; + void setSpotDuration(int spotDuration); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getDataDisk1Category() const; + void setDataDisk1Category(const std::string &dataDisk1Category); + std::string getDataDisk2PerformanceLevel() const; + void setDataDisk2PerformanceLevel(const std::string &dataDisk2PerformanceLevel); + int getSystemDiskSize() const; + void setSystemDiskSize(int systemDiskSize); + std::string getOfferingType() const; + void setOfferingType(const std::string &offeringType); + +private: + int dataDisk3Size_; + long resourceOwnerId_; + std::string dataDisk3Category_; + std::string isp_; + int dataDisk4Size_; + std::string priceUnit_; + int period_; + std::string dataDisk1PerformanceLevel_; + std::string assuranceTimes_; + long ownerId_; + int instanceCpuCoreCount_; + std::string spotStrategy_; + std::string internetChargeType_; + std::string zoneId_; + std::string instanceNetworkType_; + int instanceAmount_; + std::vector instanceTypeList_; + std::string dataDisk3PerformanceLevel_; + std::string imageId_; + std::string ioOptimized_; + int internetMaxBandwidthOut_; + std::string systemDiskCategory_; + std::string platform_; + int capacity_; + std::string systemDiskPerformanceLevel_; + std::string dataDisk4Category_; + std::string dataDisk4PerformanceLevel_; + std::string regionId_; + std::string scope_; + std::string instanceType_; + std::string dedicatedHostType_; + std::string dataDisk2Category_; + int dataDisk1Size_; + int amount_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int dataDisk2Size_; + int spotDuration_; + std::string resourceType_; + std::string dataDisk1Category_; + std::string dataDisk2PerformanceLevel_; + int systemDiskSize_; + std::string offeringType_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEPRICEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeRecommendInstanceTypeRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeRecommendInstanceTypeRequest.h index cf1f42606..c45671fd0 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeRecommendInstanceTypeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeRecommendInstanceTypeRequest.h @@ -1,105 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBERECOMMENDINSTANCETYPEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBERECOMMENDINSTANCETYPEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeRecommendInstanceTypeRequest : public RpcServiceRequest - { - - public: - DescribeRecommendInstanceTypeRequest(); - ~DescribeRecommendInstanceTypeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - float getMemory()const; - void setMemory(float memory); - std::string getIoOptimized()const; - void setIoOptimized(const std::string& ioOptimized); - std::string getNetworkType()const; - void setNetworkType(const std::string& networkType); - std::string getScene()const; - void setScene(const std::string& scene); - int getCores()const; - void setCores(int cores); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getSystemDiskCategory()const; - void setSystemDiskCategory(const std::string& systemDiskCategory); - std::string getInstanceType()const; - void setInstanceType(const std::string& instanceType); - std::string getInstanceChargeType()const; - void setInstanceChargeType(const std::string& instanceChargeType); - float getMaxPrice()const; - void setMaxPrice(float maxPrice); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getZoneMatchMode()const; - void setZoneMatchMode(const std::string& zoneMatchMode); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::vector getInstanceTypeFamily()const; - void setInstanceTypeFamily(const std::vector& instanceTypeFamily); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSpotStrategy()const; - void setSpotStrategy(const std::string& spotStrategy); - std::string getPriorityStrategy()const; - void setPriorityStrategy(const std::string& priorityStrategy); - std::string getInstanceFamilyLevel()const; - void setInstanceFamilyLevel(const std::string& instanceFamilyLevel); - std::string getZoneId()const; - void setZoneId(const std::string& zoneId); - - private: - long resourceOwnerId_; - float memory_; - std::string ioOptimized_; - std::string networkType_; - std::string scene_; - int cores_; - std::string regionId_; - std::string systemDiskCategory_; - std::string instanceType_; - std::string instanceChargeType_; - float maxPrice_; - std::string resourceOwnerAccount_; - std::string zoneMatchMode_; - std::string ownerAccount_; - std::vector instanceTypeFamily_; - long ownerId_; - std::string spotStrategy_; - std::string priorityStrategy_; - std::string instanceFamilyLevel_; - std::string zoneId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBERECOMMENDINSTANCETYPEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBERECOMMENDINSTANCETYPEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBERECOMMENDINSTANCETYPEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeRecommendInstanceTypeRequest : public RpcServiceRequest { +public: + DescribeRecommendInstanceTypeRequest(); + ~DescribeRecommendInstanceTypeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + float getMemory() const; + void setMemory(float memory); + std::string getIoOptimized() const; + void setIoOptimized(const std::string &ioOptimized); + std::string getNetworkType() const; + void setNetworkType(const std::string &networkType); + std::string getScene() const; + void setScene(const std::string &scene); + int getCores() const; + void setCores(int cores); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getSystemDiskCategory() const; + void setSystemDiskCategory(const std::string &systemDiskCategory); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + std::string getInstanceChargeType() const; + void setInstanceChargeType(const std::string &instanceChargeType); + float getMaxPrice() const; + void setMaxPrice(float maxPrice); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getZoneMatchMode() const; + void setZoneMatchMode(const std::string &zoneMatchMode); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::vector getInstanceTypeFamily() const; + void setInstanceTypeFamily(const std::vector &instanceTypeFamily); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSpotStrategy() const; + void setSpotStrategy(const std::string &spotStrategy); + std::string getPriorityStrategy() const; + void setPriorityStrategy(const std::string &priorityStrategy); + std::string getInstanceFamilyLevel() const; + void setInstanceFamilyLevel(const std::string &instanceFamilyLevel); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + +private: + long resourceOwnerId_; + float memory_; + std::string ioOptimized_; + std::string networkType_; + std::string scene_; + int cores_; + std::string regionId_; + std::string systemDiskCategory_; + std::string instanceType_; + std::string instanceChargeType_; + float maxPrice_; + std::string resourceOwnerAccount_; + std::string zoneMatchMode_; + std::string ownerAccount_; + std::vector instanceTypeFamily_; + long ownerId_; + std::string spotStrategy_; + std::string priorityStrategy_; + std::string instanceFamilyLevel_; + std::string zoneId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBERECOMMENDINSTANCETYPEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeRecommendInstanceTypeResult.h b/ecs/include/alibabacloud/ecs/model/DescribeRecommendInstanceTypeResult.h index 2ff645a93..740c5921a 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeRecommendInstanceTypeResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeRecommendInstanceTypeResult.h @@ -39,8 +39,8 @@ namespace AlibabaCloud std::string supportIoOptimized; int cores; std::string generation; - std::string instanceTypeFamily; int memory; + std::string instanceTypeFamily; std::string instanceType; }; struct Zone @@ -49,9 +49,9 @@ namespace AlibabaCloud std::string zoneNo; }; std::string zoneId; - std::string instanceChargeType; int priority; std::string networkType; + std::string instanceChargeType; std::string commodityCode; std::string regionId; InstanceType instanceType; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeRegionsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeRegionsRequest.h index 7747f5842..d089774fb 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeRegionsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeRegionsRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEREGIONSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEREGIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeRegionsRequest : public RpcServiceRequest - { - - public: - DescribeRegionsRequest(); - ~DescribeRegionsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getInstanceChargeType()const; - void setInstanceChargeType(const std::string& instanceChargeType); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getResourceType()const; - void setResourceType(const std::string& resourceType); - std::string getAcceptLanguage()const; - void setAcceptLanguage(const std::string& acceptLanguage); - - private: - long resourceOwnerId_; - std::string instanceChargeType_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string resourceType_; - std::string acceptLanguage_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEREGIONSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEREGIONSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEREGIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeRegionsRequest : public RpcServiceRequest { +public: + DescribeRegionsRequest(); + ~DescribeRegionsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceChargeType() const; + void setInstanceChargeType(const std::string &instanceChargeType); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + long resourceOwnerId_; + std::string instanceChargeType_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string resourceType_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEREGIONSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeRenewalPriceRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeRenewalPriceRequest.h index 7f7ed5fe4..ffe1d6a50 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeRenewalPriceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeRenewalPriceRequest.h @@ -1,75 +1,69 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBERENEWALPRICEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBERENEWALPRICEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeRenewalPriceRequest : public RpcServiceRequest - { - - public: - DescribeRenewalPriceRequest(); - ~DescribeRenewalPriceRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getPriceUnit()const; - void setPriceUnit(const std::string& priceUnit); - std::string getResourceId()const; - void setResourceId(const std::string& resourceId); - int getPeriod()const; - void setPeriod(int period); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - int getExpectedRenewDay()const; - void setExpectedRenewDay(int expectedRenewDay); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getResourceType()const; - void setResourceType(const std::string& resourceType); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string priceUnit_; - std::string resourceId_; - int period_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - int expectedRenewDay_; - long ownerId_; - std::string resourceType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBERENEWALPRICEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBERENEWALPRICEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBERENEWALPRICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeRenewalPriceRequest : public RpcServiceRequest { +public: + DescribeRenewalPriceRequest(); + ~DescribeRenewalPriceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getPriceUnit() const; + void setPriceUnit(const std::string &priceUnit); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + int getPeriod() const; + void setPeriod(int period); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + int getExpectedRenewDay() const; + void setExpectedRenewDay(int expectedRenewDay); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string priceUnit_; + std::string resourceId_; + int period_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int expectedRenewDay_; + long ownerId_; + std::string resourceType_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBERENEWALPRICEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeReservedInstancesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeReservedInstancesRequest.h index a42f9b81d..e42d4b787 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeReservedInstancesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeReservedInstancesRequest.h @@ -1,105 +1,97 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBERESERVEDINSTANCESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBERESERVEDINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeReservedInstancesRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string key; - std::string value; - }; - - public: - DescribeReservedInstancesRequest(); - ~DescribeReservedInstancesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getLockReason()const; - void setLockReason(const std::string& lockReason); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getScope()const; - void setScope(const std::string& scope); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getInstanceType()const; - void setInstanceType(const std::string& instanceType); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getInstanceTypeFamily()const; - void setInstanceTypeFamily(const std::string& instanceTypeFamily); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::vector getReservedInstanceId()const; - void setReservedInstanceId(const std::vector& reservedInstanceId); - std::string getOfferingType()const; - void setOfferingType(const std::string& offeringType); - std::string getZoneId()const; - void setZoneId(const std::string& zoneId); - std::string getReservedInstanceName()const; - void setReservedInstanceName(const std::string& reservedInstanceName); - std::vector getStatus()const; - void setStatus(const std::vector& status); - std::string getAllocationType()const; - void setAllocationType(const std::string& allocationType); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string lockReason_; - std::string regionId_; - std::string scope_; - int pageSize_; - std::string instanceType_; - std::vector tag_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string instanceTypeFamily_; - long ownerId_; - std::vector reservedInstanceId_; - std::string offeringType_; - std::string zoneId_; - std::string reservedInstanceName_; - std::vector status_; - std::string allocationType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBERESERVEDINSTANCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBERESERVEDINSTANCESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBERESERVEDINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeReservedInstancesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + DescribeReservedInstancesRequest(); + ~DescribeReservedInstancesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getLockReason() const; + void setLockReason(const std::string &lockReason); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getScope() const; + void setScope(const std::string &scope); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getInstanceTypeFamily() const; + void setInstanceTypeFamily(const std::string &instanceTypeFamily); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getReservedInstanceId() const; + void setReservedInstanceId(const std::vector &reservedInstanceId); + std::string getOfferingType() const; + void setOfferingType(const std::string &offeringType); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + std::string getReservedInstanceName() const; + void setReservedInstanceName(const std::string &reservedInstanceName); + std::string getAllocationType() const; + void setAllocationType(const std::string &allocationType); + std::vector getStatus() const; + void setStatus(const std::vector &status); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string lockReason_; + std::string regionId_; + std::string scope_; + int pageSize_; + std::string instanceType_; + std::vector tag_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string instanceTypeFamily_; + long ownerId_; + std::vector reservedInstanceId_; + std::string offeringType_; + std::string zoneId_; + std::string reservedInstanceName_; + std::string allocationType_; + std::vector status_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBERESERVEDINSTANCESREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeReservedInstancesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeReservedInstancesResult.h index 8dcf8df00..16e215b94 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeReservedInstancesResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeReservedInstancesResult.h @@ -46,9 +46,9 @@ namespace AlibabaCloud std::string status; std::string description; std::string allocationStatus; + std::string resourceGroupId; std::string zoneId; std::string platform; - std::string resourceGroupId; std::string startTime; std::vector operationLocks; std::string offeringType; @@ -57,8 +57,8 @@ namespace AlibabaCloud std::string expiredTime; std::string creationTime; std::string reservedInstanceId; - std::string regionId; std::string reservedInstanceName; + std::string regionId; std::string instanceType; std::vector tags; }; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeResourceByTagsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeResourceByTagsRequest.h index 7fdb96c2c..9ae090a9a 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeResourceByTagsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeResourceByTagsRequest.h @@ -1,75 +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_ECS_MODEL_DESCRIBERESOURCEBYTAGSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBERESOURCEBYTAGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeResourceByTagsRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - - public: - DescribeResourceByTagsRequest(); - ~DescribeResourceByTagsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getResourceType()const; - void setResourceType(const std::string& resourceType); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::vector tag_; - std::string resourceOwnerAccount_; - long ownerId_; - std::string resourceType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBERESOURCEBYTAGSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBERESOURCEBYTAGSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBERESOURCEBYTAGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeResourceByTagsRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + DescribeResourceByTagsRequest(); + ~DescribeResourceByTagsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::vector tag_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string resourceType_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBERESOURCEBYTAGSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeResourcesModificationRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeResourcesModificationRequest.h index f62eec1cf..70a919a2a 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeResourcesModificationRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeResourcesModificationRequest.h @@ -1,81 +1,75 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBERESOURCESMODIFICATIONREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBERESOURCESMODIFICATIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeResourcesModificationRequest : public RpcServiceRequest - { - - public: - DescribeResourcesModificationRequest(); - ~DescribeResourcesModificationRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - float getMemory()const; - void setMemory(float memory); - int getCores()const; - void setCores(int cores); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - bool getMigrateAcrossZone()const; - void setMigrateAcrossZone(bool migrateAcrossZone); - std::string getInstanceType()const; - void setInstanceType(const std::string& instanceType); - std::string getResourceId()const; - void setResourceId(const std::string& resourceId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getOperationType()const; - void setOperationType(const std::string& operationType); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getDestinationResource()const; - void setDestinationResource(const std::string& destinationResource); - - private: - long resourceOwnerId_; - float memory_; - int cores_; - std::string regionId_; - bool migrateAcrossZone_; - std::string instanceType_; - std::string resourceId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string operationType_; - long ownerId_; - std::string destinationResource_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBERESOURCESMODIFICATIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBERESOURCESMODIFICATIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBERESOURCESMODIFICATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeResourcesModificationRequest : public RpcServiceRequest { +public: + DescribeResourcesModificationRequest(); + ~DescribeResourcesModificationRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + float getMemory() const; + void setMemory(float memory); + int getCores() const; + void setCores(int cores); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getMigrateAcrossZone() const; + void setMigrateAcrossZone(bool migrateAcrossZone); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getOperationType() const; + void setOperationType(const std::string &operationType); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getDestinationResource() const; + void setDestinationResource(const std::string &destinationResource); + +private: + long resourceOwnerId_; + float memory_; + int cores_; + std::string regionId_; + bool migrateAcrossZone_; + std::string instanceType_; + std::string resourceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string operationType_; + long ownerId_; + std::string destinationResource_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBERESOURCESMODIFICATIONREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeRouteTablesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeRouteTablesRequest.h index 4e2fb360e..72a6d8f80 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeRouteTablesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeRouteTablesRequest.h @@ -1,81 +1,75 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEROUTETABLESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEROUTETABLESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeRouteTablesRequest : public RpcServiceRequest - { - - public: - DescribeRouteTablesRequest(); - ~DescribeRouteTablesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getVRouterId()const; - void setVRouterId(const std::string& vRouterId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRouteTableName()const; - void setRouteTableName(const std::string& routeTableName); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getRouteTableId()const; - void setRouteTableId(const std::string& routeTableId); - std::string getResourceOwnerAccount()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 getRouterType()const; - void setRouterType(const std::string& routerType); - std::string getRouterId()const; - void setRouterId(const std::string& routerId); - - private: - long resourceOwnerId_; - std::string vRouterId_; - int pageNumber_; - std::string routeTableName_; - std::string regionId_; - int pageSize_; - std::string routeTableId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string routerType_; - std::string routerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEROUTETABLESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEROUTETABLESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEROUTETABLESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeRouteTablesRequest : public RpcServiceRequest { +public: + DescribeRouteTablesRequest(); + ~DescribeRouteTablesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getVRouterId() const; + void setVRouterId(const std::string &vRouterId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRouteTableName() const; + void setRouteTableName(const std::string &routeTableName); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getRouteTableId() const; + void setRouteTableId(const std::string &routeTableId); + std::string getResourceOwnerAccount() 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 getRouterType() const; + void setRouterType(const std::string &routerType); + std::string getRouterId() const; + void setRouterId(const std::string &routerId); + +private: + long resourceOwnerId_; + std::string vRouterId_; + int pageNumber_; + std::string routeTableName_; + std::string regionId_; + int pageSize_; + std::string routeTableId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string routerType_; + std::string routerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEROUTETABLESREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeRouterInterfacesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeRouterInterfacesRequest.h index 8c9b9449a..95e18e820 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeRouterInterfacesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeRouterInterfacesRequest.h @@ -1,72 +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_ECS_MODEL_DESCRIBEROUTERINTERFACESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEROUTERINTERFACESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeRouterInterfacesRequest : public RpcServiceRequest - { - public: - struct Filter - { - std::vector value; - std::string key; - }; - - public: - DescribeRouterInterfacesRequest(); - ~DescribeRouterInterfacesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::vector getFilter()const; - void setFilter(const std::vector& filter); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - long ownerId_; - std::vector filter_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEROUTERINTERFACESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEROUTERINTERFACESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEROUTERINTERFACESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeRouterInterfacesRequest : public RpcServiceRequest { +public: + struct Filter { + std::string key; + }; + DescribeRouterInterfacesRequest(); + ~DescribeRouterInterfacesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getFilter() const; + void setFilter(const std::vector &filter); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + long ownerId_; + std::vector filter_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEROUTERINTERFACESREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeRouterInterfacesResult.h b/ecs/include/alibabacloud/ecs/model/DescribeRouterInterfacesResult.h index 2513e9ecd..5b72bdd64 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeRouterInterfacesResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeRouterInterfacesResult.h @@ -48,8 +48,8 @@ namespace AlibabaCloud std::string oppositeInterfaceOwnerId; std::string oppositeRegionId; std::string healthCheckSourceIp; - std::string role; std::string oppositeInterfaceSpec; + std::string role; std::string routerType; std::string chargeType; std::string creationTime; @@ -57,8 +57,8 @@ namespace AlibabaCloud std::string oppositeInterfaceBusinessStatus; std::string oppositeAccessPointId; std::string spec; - std::string routerInterfaceId; std::string healthCheckTargetIp; + std::string routerInterfaceId; }; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupAttributeRequest.h index 07bcf56bb..5c39407f3 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupAttributeRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeSecurityGroupAttributeRequest : public RpcServiceRequest - { - - public: - DescribeSecurityGroupAttributeRequest(); - ~DescribeSecurityGroupAttributeRequest(); - - std::string getNicType()const; - void setNicType(const std::string& nicType); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getSecurityGroupId()const; - void setSecurityGroupId(const std::string& securityGroupId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getDirection()const; - void setDirection(const std::string& direction); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - std::string nicType_; - long resourceOwnerId_; - std::string securityGroupId_; - std::string regionId_; - std::string direction_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeSecurityGroupAttributeRequest : public RpcServiceRequest { +public: + DescribeSecurityGroupAttributeRequest(); + ~DescribeSecurityGroupAttributeRequest(); + std::string getNicType() const; + void setNicType(const std::string &nicType); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSecurityGroupId() const; + void setSecurityGroupId(const std::string &securityGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDirection() const; + void setDirection(const std::string &direction); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::string nicType_; + long resourceOwnerId_; + std::string securityGroupId_; + std::string regionId_; + std::string direction_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPATTRIBUTEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupAttributeResult.h b/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupAttributeResult.h index 3f173d6bf..b2b738e4b 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupAttributeResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupAttributeResult.h @@ -43,19 +43,19 @@ namespace AlibabaCloud std::string destPrefixListName; std::string ipv6SourceCidrIp; std::string nicType; - std::string destGroupId; std::string direction; + std::string destGroupId; std::string sourceGroupName; - std::string portRange; std::string destGroupOwnerAccount; + std::string portRange; std::string destPrefixListId; std::string sourceCidrIp; std::string sourcePrefixListName; std::string ipProtocol; - std::string destGroupName; std::string destCidrIp; - std::string sourceGroupOwnerAccount; + std::string destGroupName; std::string ipv6DestCidrIp; + std::string sourceGroupOwnerAccount; std::string sourcePrefixListId; }; @@ -64,23 +64,23 @@ namespace AlibabaCloud explicit DescribeSecurityGroupAttributeResult(const std::string &payload); ~DescribeSecurityGroupAttributeResult(); std::string getDescription()const; - std::string getSecurityGroupName()const; std::string getVpcId()const; + std::string getSecurityGroupName()const; std::string getSecurityGroupId()const; std::vector getPermissions()const; - std::string getRegionId()const; std::string getInnerAccessPolicy()const; + std::string getRegionId()const; protected: void parse(const std::string &payload); private: std::string description_; - std::string securityGroupName_; std::string vpcId_; + std::string securityGroupName_; std::string securityGroupId_; std::vector permissions_; - std::string regionId_; std::string innerAccessPolicy_; + std::string regionId_; }; } diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupReferencesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupReferencesRequest.h index 3e3872dd0..8d0c7b3bf 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupReferencesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupReferencesRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPREFERENCESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPREFERENCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeSecurityGroupReferencesRequest : public RpcServiceRequest - { - - public: - DescribeSecurityGroupReferencesRequest(); - ~DescribeSecurityGroupReferencesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::vector getSecurityGroupId()const; - void setSecurityGroupId(const std::vector& securityGroupId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::vector securityGroupId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPREFERENCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPREFERENCESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPREFERENCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeSecurityGroupReferencesRequest : public RpcServiceRequest { +public: + DescribeSecurityGroupReferencesRequest(); + ~DescribeSecurityGroupReferencesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::vector getSecurityGroupId() const; + void setSecurityGroupId(const std::vector &securityGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::vector securityGroupId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPREFERENCESREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupsRequest.h index 5b8876427..7c5ce6614 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeSecurityGroupsRequest.h @@ -1,111 +1,103 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeSecurityGroupsRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - - public: - DescribeSecurityGroupsRequest(); - ~DescribeSecurityGroupsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - bool getFuzzyQuery()const; - void setFuzzyQuery(bool fuzzyQuery); - std::string getSecurityGroupId()const; - void setSecurityGroupId(const std::string& securityGroupId); - bool getIsQueryEcsCount()const; - void setIsQueryEcsCount(bool isQueryEcsCount); - std::string getNetworkType()const; - void setNetworkType(const std::string& networkType); - std::string getSecurityGroupName()const; - void setSecurityGroupName(const std::string& securityGroupName); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getNextToken()const; - void setNextToken(const std::string& nextToken); - int getPageSize()const; - void setPageSize(int pageSize); - std::vector getTag()const; - void setTag(const std::vector& tag); - bool getDryRun()const; - void setDryRun(bool dryRun); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSecurityGroupIds()const; - void setSecurityGroupIds(const std::string& securityGroupIds); - std::string getSecurityGroupType()const; - void setSecurityGroupType(const std::string& securityGroupType); - std::string getVpcId()const; - void setVpcId(const std::string& vpcId); - int getMaxResults()const; - void setMaxResults(int maxResults); - - private: - long resourceOwnerId_; - bool fuzzyQuery_; - std::string securityGroupId_; - bool isQueryEcsCount_; - std::string networkType_; - std::string securityGroupName_; - int pageNumber_; - std::string resourceGroupId_; - std::string regionId_; - std::string nextToken_; - int pageSize_; - std::vector tag_; - bool dryRun_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string securityGroupIds_; - std::string securityGroupType_; - std::string vpcId_; - int maxResults_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeSecurityGroupsRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + DescribeSecurityGroupsRequest(); + ~DescribeSecurityGroupsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + bool getFuzzyQuery() const; + void setFuzzyQuery(bool fuzzyQuery); + std::string getSecurityGroupId() const; + void setSecurityGroupId(const std::string &securityGroupId); + bool getIsQueryEcsCount() const; + void setIsQueryEcsCount(bool isQueryEcsCount); + std::string getNetworkType() const; + void setNetworkType(const std::string &networkType); + std::string getSecurityGroupName() const; + void setSecurityGroupName(const std::string &securityGroupName); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + int getPageSize() const; + void setPageSize(int pageSize); + std::vector getTag() const; + void setTag(const std::vector &tag); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSecurityGroupIds() const; + void setSecurityGroupIds(const std::string &securityGroupIds); + std::string getSecurityGroupType() const; + void setSecurityGroupType(const std::string &securityGroupType); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + long resourceOwnerId_; + bool fuzzyQuery_; + std::string securityGroupId_; + bool isQueryEcsCount_; + std::string networkType_; + std::string securityGroupName_; + int pageNumber_; + std::string resourceGroupId_; + std::string regionId_; + std::string nextToken_; + int pageSize_; + std::vector tag_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string securityGroupIds_; + std::string securityGroupType_; + std::string vpcId_; + int maxResults_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESECURITYGROUPSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSendFileResultsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeSendFileResultsRequest.h index 5bf42e1f9..660b5a450 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeSendFileResultsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeSendFileResultsRequest.h @@ -1,75 +1,69 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESENDFILERESULTSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBESENDFILERESULTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeSendFileResultsRequest : public RpcServiceRequest - { - - public: - DescribeSendFileResultsRequest(); - ~DescribeSendFileResultsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - long getPageNumber()const; - void setPageNumber(long pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getInvokeId()const; - void setInvokeId(const std::string& invokeId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - long pageNumber_; - std::string regionId_; - long pageSize_; - std::string invokeId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string instanceId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESENDFILERESULTSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESENDFILERESULTSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESENDFILERESULTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeSendFileResultsRequest : public RpcServiceRequest { +public: + DescribeSendFileResultsRequest(); + ~DescribeSendFileResultsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getInvokeId() const; + void setInvokeId(const std::string &invokeId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + long pageNumber_; + std::string regionId_; + long pageSize_; + std::string invokeId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; + std::string name_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESENDFILERESULTSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSendFileResultsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeSendFileResultsResult.h index 7962a02cb..2e346ace0 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeSendFileResultsResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeSendFileResultsResult.h @@ -46,8 +46,8 @@ namespace AlibabaCloud std::string errorCode; }; std::string fileMode; - std::string overwrite; std::string invocationStatus; + std::string overwrite; std::string description; std::string contentType; int vmCount; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSnapshotGroupsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotGroupsRequest.h index 10abb3038..8d9abffca 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeSnapshotGroupsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotGroupsRequest.h @@ -1,93 +1,85 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTGROUPSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTGROUPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeSnapshotGroupsRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string key; - std::string value; - }; - - public: - DescribeSnapshotGroupsRequest(); - ~DescribeSnapshotGroupsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getNextToken()const; - void setNextToken(const std::string& nextToken); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::vector getSnapshotGroupId()const; - void setSnapshotGroupId(const std::vector& snapshotGroupId); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::vector getAdditionalAttributes()const; - void setAdditionalAttributes(const std::vector& additionalAttributes); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getName()const; - void setName(const std::string& name); - int getMaxResults()const; - void setMaxResults(int maxResults); - std::vector getStatus()const; - void setStatus(const std::vector& status); - - private: - long resourceOwnerId_; - std::string resourceGroupId_; - std::string regionId_; - std::string nextToken_; - std::vector tag_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::vector snapshotGroupId_; - long ownerId_; - std::vector additionalAttributes_; - std::string instanceId_; - std::string name_; - int maxResults_; - std::vector status_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTGROUPSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTGROUPSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTGROUPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeSnapshotGroupsRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + DescribeSnapshotGroupsRequest(); + ~DescribeSnapshotGroupsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::vector getSnapshotGroupId() const; + void setSnapshotGroupId(const std::vector &snapshotGroupId); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getAdditionalAttributes() const; + void setAdditionalAttributes(const std::vector &additionalAttributes); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getName() const; + void setName(const std::string &name); + int getMaxResults() const; + void setMaxResults(int maxResults); + std::vector getStatus() const; + void setStatus(const std::vector &status); + +private: + long resourceOwnerId_; + std::string resourceGroupId_; + std::string regionId_; + std::string nextToken_; + std::vector tag_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::vector snapshotGroupId_; + long ownerId_; + std::vector additionalAttributes_; + std::string instanceId_; + std::string name_; + int maxResults_; + std::vector status_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTGROUPSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSnapshotLinksRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotLinksRequest.h index d02a7802e..11413c4de 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeSnapshotLinksRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotLinksRequest.h @@ -1,75 +1,69 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTLINKSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTLINKSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeSnapshotLinksRequest : public RpcServiceRequest - { - - public: - DescribeSnapshotLinksRequest(); - ~DescribeSnapshotLinksRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getDiskIds()const; - void setDiskIds(const std::string& diskIds); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getSnapshotLinkIds()const; - void setSnapshotLinkIds(const std::string& snapshotLinkIds); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string diskIds_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string snapshotLinkIds_; - long ownerId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTLINKSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTLINKSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTLINKSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeSnapshotLinksRequest : public RpcServiceRequest { +public: + DescribeSnapshotLinksRequest(); + ~DescribeSnapshotLinksRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getDiskIds() const; + void setDiskIds(const std::string &diskIds); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getSnapshotLinkIds() const; + void setSnapshotLinkIds(const std::string &snapshotLinkIds); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string diskIds_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string snapshotLinkIds_; + long ownerId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTLINKSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSnapshotMonitorDataRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotMonitorDataRequest.h index fc38ce753..cdeade2b4 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeSnapshotMonitorDataRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotMonitorDataRequest.h @@ -1,72 +1,66 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTMONITORDATAREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTMONITORDATAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeSnapshotMonitorDataRequest : public RpcServiceRequest - { - - public: - DescribeSnapshotMonitorDataRequest(); - ~DescribeSnapshotMonitorDataRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPeriod()const; - void setPeriod(int period); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getCategory()const; - void setCategory(const std::string& category); - - private: - long resourceOwnerId_; - std::string startTime_; - std::string regionId_; - int period_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string endTime_; - long ownerId_; - std::string category_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTMONITORDATAREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTMONITORDATAREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTMONITORDATAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeSnapshotMonitorDataRequest : public RpcServiceRequest { +public: + DescribeSnapshotMonitorDataRequest(); + ~DescribeSnapshotMonitorDataRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPeriod() const; + void setPeriod(int period); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getCategory() const; + void setCategory(const std::string &category); + +private: + long resourceOwnerId_; + std::string startTime_; + std::string regionId_; + int period_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string endTime_; + long ownerId_; + std::string category_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTMONITORDATAREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSnapshotPackageRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotPackageRequest.h index 052d16f7a..50bb10e27 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeSnapshotPackageRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotPackageRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTPACKAGEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTPACKAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeSnapshotPackageRequest : public RpcServiceRequest - { - - public: - DescribeSnapshotPackageRequest(); - ~DescribeSnapshotPackageRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTPACKAGEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTPACKAGEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTPACKAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeSnapshotPackageRequest : public RpcServiceRequest { +public: + DescribeSnapshotPackageRequest(); + ~DescribeSnapshotPackageRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTPACKAGEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSnapshotPackageResult.h b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotPackageResult.h index d835db8e2..1e259f21e 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeSnapshotPackageResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotPackageResult.h @@ -36,8 +36,8 @@ namespace AlibabaCloud { std::string endTime; long initCapacity; - std::string startTime; std::string displayName; + std::string startTime; }; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSnapshotsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotsRequest.h index 8cd199a51..ab0db92fd 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeSnapshotsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotsRequest.h @@ -1,135 +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. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeSnapshotsRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - - public: - DescribeSnapshotsRequest(); - ~DescribeSnapshotsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getFilter2Value()const; - void setFilter2Value(const std::string& filter2Value); - std::string getSnapshotIds()const; - void setSnapshotIds(const std::string& snapshotIds); - std::string getUsage()const; - void setUsage(const std::string& usage); - std::string getSnapshotLinkId()const; - void setSnapshotLinkId(const std::string& snapshotLinkId); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getFilter1Key()const; - void setFilter1Key(const std::string& filter1Key); - std::vector getTag()const; - void setTag(const std::vector& tag); - bool getDryRun()const; - void setDryRun(bool dryRun); - std::string getFilter1Value()const; - void setFilter1Value(const std::string& filter1Value); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - int getMaxResults()const; - void setMaxResults(int maxResults); - std::string getStatus()const; - void setStatus(const std::string& status); - std::string getSnapshotName()const; - void setSnapshotName(const std::string& snapshotName); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getNextToken()const; - void setNextToken(const std::string& nextToken); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getDiskId()const; - void setDiskId(const std::string& diskId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getSourceDiskType()const; - void setSourceDiskType(const std::string& sourceDiskType); - std::string getFilter2Key()const; - void setFilter2Key(const std::string& filter2Key); - bool getEncrypted()const; - void setEncrypted(bool encrypted); - std::string getSnapshotType()const; - void setSnapshotType(const std::string& snapshotType); - std::string getKMSKeyId()const; - void setKMSKeyId(const std::string& kMSKeyId); - std::string getCategory()const; - void setCategory(const std::string& category); - - private: - long resourceOwnerId_; - std::string filter2Value_; - std::string snapshotIds_; - std::string usage_; - std::string snapshotLinkId_; - std::string resourceGroupId_; - std::string filter1Key_; - std::vector tag_; - bool dryRun_; - std::string filter1Value_; - long ownerId_; - std::string instanceId_; - int maxResults_; - std::string status_; - std::string snapshotName_; - int pageNumber_; - std::string regionId_; - std::string nextToken_; - int pageSize_; - std::string diskId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string sourceDiskType_; - std::string filter2Key_; - bool encrypted_; - std::string snapshotType_; - std::string kMSKeyId_; - std::string category_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeSnapshotsRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + DescribeSnapshotsRequest(); + ~DescribeSnapshotsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getFilter2Value() const; + void setFilter2Value(const std::string &filter2Value); + std::string getSnapshotIds() const; + void setSnapshotIds(const std::string &snapshotIds); + std::string getUsage() const; + void setUsage(const std::string &usage); + std::string getSnapshotLinkId() const; + void setSnapshotLinkId(const std::string &snapshotLinkId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getFilter1Key() const; + void setFilter1Key(const std::string &filter1Key); + std::vector getTag() const; + void setTag(const std::vector &tag); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getFilter1Value() const; + void setFilter1Value(const std::string &filter1Value); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + int getMaxResults() const; + void setMaxResults(int maxResults); + std::string getStatus() const; + void setStatus(const std::string &status); + std::string getSnapshotName() const; + void setSnapshotName(const std::string &snapshotName); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getDiskId() const; + void setDiskId(const std::string &diskId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getSourceDiskType() const; + void setSourceDiskType(const std::string &sourceDiskType); + std::string getFilter2Key() const; + void setFilter2Key(const std::string &filter2Key); + bool getEncrypted() const; + void setEncrypted(bool encrypted); + std::string getSnapshotType() const; + void setSnapshotType(const std::string &snapshotType); + std::string getKMSKeyId() const; + void setKMSKeyId(const std::string &kMSKeyId); + std::string getCategory() const; + void setCategory(const std::string &category); + +private: + long resourceOwnerId_; + std::string filter2Value_; + std::string snapshotIds_; + std::string usage_; + std::string snapshotLinkId_; + std::string resourceGroupId_; + std::string filter1Key_; + std::vector tag_; + bool dryRun_; + std::string filter1Value_; + long ownerId_; + std::string instanceId_; + int maxResults_; + std::string status_; + std::string snapshotName_; + int pageNumber_; + std::string regionId_; + std::string nextToken_; + int pageSize_; + std::string diskId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string sourceDiskType_; + std::string filter2Key_; + bool encrypted_; + std::string snapshotType_; + std::string kMSKeyId_; + std::string category_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSnapshotsUsageRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotsUsageRequest.h index 98936dda5..d9d307662 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeSnapshotsUsageRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeSnapshotsUsageRequest.h @@ -1,60 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTSUSAGEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTSUSAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeSnapshotsUsageRequest : public RpcServiceRequest - { - - public: - DescribeSnapshotsUsageRequest(); - ~DescribeSnapshotsUsageRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTSUSAGEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTSUSAGEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTSUSAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeSnapshotsUsageRequest : public RpcServiceRequest { +public: + DescribeSnapshotsUsageRequest(); + ~DescribeSnapshotsUsageRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESNAPSHOTSUSAGEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSpotAdviceRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeSpotAdviceRequest.h index 9e515e237..0505ec55b 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeSpotAdviceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeSpotAdviceRequest.h @@ -1,96 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESPOTADVICEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBESPOTADVICEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeSpotAdviceRequest : public RpcServiceRequest - { - - public: - DescribeSpotAdviceRequest(); - ~DescribeSpotAdviceRequest(); - - std::string getGpuSpec()const; - void setGpuSpec(const std::string& gpuSpec); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - float getMemory()const; - void setMemory(float memory); - std::vector getInstanceTypes()const; - void setInstanceTypes(const std::vector& instanceTypes); - std::string getIoOptimized()const; - void setIoOptimized(const std::string& ioOptimized); - int getMinCores()const; - void setMinCores(int minCores); - std::string getNetworkType()const; - void setNetworkType(const std::string& networkType); - int getCores()const; - void setCores(int cores); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getInstanceTypeFamily()const; - void setInstanceTypeFamily(const std::string& instanceTypeFamily); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceFamilyLevel()const; - void setInstanceFamilyLevel(const std::string& instanceFamilyLevel); - std::string getZoneId()const; - void setZoneId(const std::string& zoneId); - int getGpuAmount()const; - void setGpuAmount(int gpuAmount); - float getMinMemory()const; - void setMinMemory(float minMemory); - - private: - std::string gpuSpec_; - long resourceOwnerId_; - float memory_; - std::vector instanceTypes_; - std::string ioOptimized_; - int minCores_; - std::string networkType_; - int cores_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string instanceTypeFamily_; - long ownerId_; - std::string instanceFamilyLevel_; - std::string zoneId_; - int gpuAmount_; - float minMemory_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESPOTADVICEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESPOTADVICEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESPOTADVICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeSpotAdviceRequest : public RpcServiceRequest { +public: + DescribeSpotAdviceRequest(); + ~DescribeSpotAdviceRequest(); + std::string getGpuSpec() const; + void setGpuSpec(const std::string &gpuSpec); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + float getMemory() const; + void setMemory(float memory); + std::string getIoOptimized() const; + void setIoOptimized(const std::string &ioOptimized); + std::vector getInstanceTypes() const; + void setInstanceTypes(const std::vector &instanceTypes); + int getMinCores() const; + void setMinCores(int minCores); + std::string getNetworkType() const; + void setNetworkType(const std::string &networkType); + int getCores() const; + void setCores(int cores); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getInstanceTypeFamily() const; + void setInstanceTypeFamily(const std::string &instanceTypeFamily); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceFamilyLevel() const; + void setInstanceFamilyLevel(const std::string &instanceFamilyLevel); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + int getGpuAmount() const; + void setGpuAmount(int gpuAmount); + float getMinMemory() const; + void setMinMemory(float minMemory); + +private: + std::string gpuSpec_; + long resourceOwnerId_; + float memory_; + std::string ioOptimized_; + std::vector instanceTypes_; + int minCores_; + std::string networkType_; + int cores_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string instanceTypeFamily_; + long ownerId_; + std::string instanceFamilyLevel_; + std::string zoneId_; + int gpuAmount_; + float minMemory_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESPOTADVICEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSpotAdviceResult.h b/ecs/include/alibabacloud/ecs/model/DescribeSpotAdviceResult.h index 43f9ac5ae..f6b610838 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeSpotAdviceResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeSpotAdviceResult.h @@ -38,8 +38,8 @@ namespace AlibabaCloud { std::string interruptRateDesc; std::string instanceType; - float interruptionRate; int averageSpotDiscount; + float interruptionRate; }; std::string zoneId; std::vector availableSpotResources; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeSpotPriceHistoryRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeSpotPriceHistoryRequest.h index bfd9e4d57..257c72b6e 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeSpotPriceHistoryRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeSpotPriceHistoryRequest.h @@ -1,87 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESPOTPRICEHISTORYREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBESPOTPRICEHISTORYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeSpotPriceHistoryRequest : public RpcServiceRequest - { - - public: - DescribeSpotPriceHistoryRequest(); - ~DescribeSpotPriceHistoryRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getIoOptimized()const; - void setIoOptimized(const std::string& ioOptimized); - std::string getNetworkType()const; - void setNetworkType(const std::string& networkType); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getInstanceType()const; - void setInstanceType(const std::string& instanceType); - int getOffset()const; - void setOffset(int offset); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - std::string getOSType()const; - void setOSType(const std::string& oSType); - long getOwnerId()const; - void setOwnerId(long ownerId); - int getSpotDuration()const; - void setSpotDuration(int spotDuration); - std::string getZoneId()const; - void setZoneId(const std::string& zoneId); - - private: - long resourceOwnerId_; - std::string ioOptimized_; - std::string networkType_; - std::string startTime_; - std::string regionId_; - std::string instanceType_; - int offset_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string endTime_; - std::string oSType_; - long ownerId_; - int spotDuration_; - std::string zoneId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESPOTPRICEHISTORYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESPOTPRICEHISTORYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESPOTPRICEHISTORYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeSpotPriceHistoryRequest : public RpcServiceRequest { +public: + DescribeSpotPriceHistoryRequest(); + ~DescribeSpotPriceHistoryRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getIoOptimized() const; + void setIoOptimized(const std::string &ioOptimized); + std::string getNetworkType() const; + void setNetworkType(const std::string &networkType); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + int getOffset() const; + void setOffset(int offset); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + std::string getOSType() const; + void setOSType(const std::string &oSType); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getSpotDuration() const; + void setSpotDuration(int spotDuration); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + +private: + long resourceOwnerId_; + std::string ioOptimized_; + std::string networkType_; + std::string startTime_; + std::string regionId_; + std::string instanceType_; + int offset_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string endTime_; + std::string oSType_; + long ownerId_; + int spotDuration_; + std::string zoneId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESPOTPRICEHISTORYREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeStorageCapacityUnitsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeStorageCapacityUnitsRequest.h index cd3da8675..91feeaf40 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeStorageCapacityUnitsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeStorageCapacityUnitsRequest.h @@ -1,90 +1,82 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESTORAGECAPACITYUNITSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBESTORAGECAPACITYUNITSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeStorageCapacityUnitsRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string key; - std::string value; - }; - - public: - DescribeStorageCapacityUnitsRequest(); - ~DescribeStorageCapacityUnitsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - int getCapacity()const; - void setCapacity(int capacity); - std::vector getStorageCapacityUnitId()const; - void setStorageCapacityUnitId(const std::vector& storageCapacityUnitId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getName()const; - void setName(const std::string& name); - std::string getAllocationType()const; - void setAllocationType(const std::string& allocationType); - std::vector getStatus()const; - void setStatus(const std::vector& status); - - private: - long resourceOwnerId_; - int pageNumber_; - int capacity_; - std::vector storageCapacityUnitId_; - std::string regionId_; - int pageSize_; - std::vector tag_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string name_; - std::string allocationType_; - std::vector status_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESTORAGECAPACITYUNITSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESTORAGECAPACITYUNITSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESTORAGECAPACITYUNITSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeStorageCapacityUnitsRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + DescribeStorageCapacityUnitsRequest(); + ~DescribeStorageCapacityUnitsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + int getCapacity() const; + void setCapacity(int capacity); + std::vector getStorageCapacityUnitId() const; + void setStorageCapacityUnitId(const std::vector &storageCapacityUnitId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getName() const; + void setName(const std::string &name); + std::string getAllocationType() const; + void setAllocationType(const std::string &allocationType); + std::vector getStatus() const; + void setStatus(const std::vector &status); + +private: + long resourceOwnerId_; + int pageNumber_; + int capacity_; + std::vector storageCapacityUnitId_; + std::string regionId_; + int pageSize_; + std::vector tag_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string name_; + std::string allocationType_; + std::vector status_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESTORAGECAPACITYUNITSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeStorageSetDetailsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeStorageSetDetailsRequest.h index cfbec3d28..9b492c2f3 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeStorageSetDetailsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeStorageSetDetailsRequest.h @@ -1,78 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESTORAGESETDETAILSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBESTORAGESETDETAILSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeStorageSetDetailsRequest : public RpcServiceRequest - { - - public: - DescribeStorageSetDetailsRequest(); - ~DescribeStorageSetDetailsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - int getStorageSetPartitionNumber()const; - void setStorageSetPartitionNumber(int storageSetPartitionNumber); - std::string getDiskIds()const; - void setDiskIds(const std::string& diskIds); - std::string getResourceOwnerAccount()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 getStorageSetId()const; - void setStorageSetId(const std::string& storageSetId); - - private: - long resourceOwnerId_; - std::string clientToken_; - int pageNumber_; - std::string regionId_; - int pageSize_; - int storageSetPartitionNumber_; - std::string diskIds_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string storageSetId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESTORAGESETDETAILSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESTORAGESETDETAILSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESTORAGESETDETAILSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeStorageSetDetailsRequest : public RpcServiceRequest { +public: + DescribeStorageSetDetailsRequest(); + ~DescribeStorageSetDetailsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + int getStorageSetPartitionNumber() const; + void setStorageSetPartitionNumber(int storageSetPartitionNumber); + std::string getDiskIds() const; + void setDiskIds(const std::string &diskIds); + std::string getResourceOwnerAccount() 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 getStorageSetId() const; + void setStorageSetId(const std::string &storageSetId); + +private: + long resourceOwnerId_; + std::string clientToken_; + int pageNumber_; + std::string regionId_; + int pageSize_; + int storageSetPartitionNumber_; + std::string diskIds_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string storageSetId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESTORAGESETDETAILSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeStorageSetsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeStorageSetsRequest.h index 31d095744..441aa95d6 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeStorageSetsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeStorageSetsRequest.h @@ -1,78 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESTORAGESETSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBESTORAGESETSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeStorageSetsRequest : public RpcServiceRequest - { - - public: - DescribeStorageSetsRequest(); - ~DescribeStorageSetsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getStorageSetIds()const; - void setStorageSetIds(const std::string& storageSetIds); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getZoneId()const; - void setZoneId(const std::string& zoneId); - std::string getStorageSetName()const; - void setStorageSetName(const std::string& storageSetName); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string storageSetIds_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string zoneId_; - std::string storageSetName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESTORAGESETSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBESTORAGESETSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBESTORAGESETSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeStorageSetsRequest : public RpcServiceRequest { +public: + DescribeStorageSetsRequest(); + ~DescribeStorageSetsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getStorageSetIds() const; + void setStorageSetIds(const std::string &storageSetIds); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + std::string getStorageSetName() const; + void setStorageSetName(const std::string &storageSetName); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string storageSetIds_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string zoneId_; + std::string storageSetName_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBESTORAGESETSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeTagsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeTagsRequest.h index b1f46bfbf..e283c716e 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeTagsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeTagsRequest.h @@ -1,81 +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_ECS_MODEL_DESCRIBETAGSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBETAGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeTagsRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - - public: - DescribeTagsRequest(); - ~DescribeTagsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getResourceId()const; - void setResourceId(const std::string& resourceId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getResourceType()const; - void setResourceType(const std::string& resourceType); - std::string getCategory()const; - void setCategory(const std::string& category); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::vector tag_; - std::string resourceId_; - std::string resourceOwnerAccount_; - long ownerId_; - std::string resourceType_; - std::string category_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBETAGSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBETAGSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBETAGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeTagsRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + DescribeTagsRequest(); + ~DescribeTagsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getCategory() const; + void setCategory(const std::string &category); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::vector tag_; + std::string resourceId_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string resourceType_; + std::string category_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBETAGSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeTagsResult.h b/ecs/include/alibabacloud/ecs/model/DescribeTagsResult.h index 040f95269..1e0662252 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeTagsResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeTagsResult.h @@ -44,8 +44,8 @@ namespace AlibabaCloud int instance; int volume; int launchTemplate; - int securitygroup; int ddh; + int securitygroup; int image; int disk; }; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeTaskAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeTaskAttributeRequest.h index 3cd1d6820..f63c7d9d8 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeTaskAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeTaskAttributeRequest.h @@ -1,60 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBETASKATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBETASKATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeTaskAttributeRequest : public RpcServiceRequest - { - - public: - DescribeTaskAttributeRequest(); - ~DescribeTaskAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getTaskId()const; - void setTaskId(const std::string& taskId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string taskId_; - std::string resourceOwnerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBETASKATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBETASKATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBETASKATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeTaskAttributeRequest : public RpcServiceRequest { +public: + DescribeTaskAttributeRequest(); + ~DescribeTaskAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getTaskId() const; + void setTaskId(const std::string &taskId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string taskId_; + std::string resourceOwnerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBETASKATTRIBUTEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeTaskAttributeResult.h b/ecs/include/alibabacloud/ecs/model/DescribeTaskAttributeResult.h index 75b765e73..77c1ee7ca 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeTaskAttributeResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeTaskAttributeResult.h @@ -53,13 +53,13 @@ namespace AlibabaCloud std::string getTaskId()const; std::string getTaskProcess()const; std::vector getOperationProgressSet()const; - std::string getTaskAction()const; std::string getSupportCancel()const; + std::string getTaskAction()const; std::string getCreationTime()const; int getFailedCount()const; std::string getRegionId()const; - std::string getTaskStatus()const; int getSuccessCount()const; + std::string getTaskStatus()const; std::string getFinishedTime()const; protected: @@ -69,13 +69,13 @@ namespace AlibabaCloud std::string taskId_; std::string taskProcess_; std::vector operationProgressSet_; - std::string taskAction_; std::string supportCancel_; + std::string taskAction_; std::string creationTime_; int failedCount_; std::string regionId_; - std::string taskStatus_; int successCount_; + std::string taskStatus_; std::string finishedTime_; }; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeTasksRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeTasksRequest.h index e5a7d3295..42ec8903d 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeTasksRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeTasksRequest.h @@ -1,81 +1,75 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBETASKSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBETASKSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeTasksRequest : public RpcServiceRequest - { - - public: - DescribeTasksRequest(); - ~DescribeTasksRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getTaskIds()const; - void setTaskIds(const std::string& taskIds); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getTaskStatus()const; - void setTaskStatus(const std::string& taskStatus); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getTaskAction()const; - void setTaskAction(const std::string& taskAction); - - private: - long resourceOwnerId_; - std::string startTime_; - std::string taskIds_; - int pageNumber_; - std::string taskStatus_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string endTime_; - long ownerId_; - std::string taskAction_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBETASKSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBETASKSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBETASKSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeTasksRequest : public RpcServiceRequest { +public: + DescribeTasksRequest(); + ~DescribeTasksRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getTaskIds() const; + void setTaskIds(const std::string &taskIds); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getTaskStatus() const; + void setTaskStatus(const std::string &taskStatus); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTaskAction() const; + void setTaskAction(const std::string &taskAction); + +private: + long resourceOwnerId_; + std::string startTime_; + std::string taskIds_; + int pageNumber_; + std::string taskStatus_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string endTime_; + long ownerId_; + std::string taskAction_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBETASKSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeTasksResult.h b/ecs/include/alibabacloud/ecs/model/DescribeTasksResult.h index e0819f96c..bf157036d 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeTasksResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeTasksResult.h @@ -35,8 +35,8 @@ namespace AlibabaCloud struct Task { std::string taskId; - std::string taskAction; std::string supportCancel; + std::string taskAction; std::string creationTime; std::string taskStatus; std::string finishedTime; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeUserBusinessBehaviorRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeUserBusinessBehaviorRequest.h index 50b4b1f57..ae0e4d964 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeUserBusinessBehaviorRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeUserBusinessBehaviorRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEUSERBUSINESSBEHAVIORREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEUSERBUSINESSBEHAVIORREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeUserBusinessBehaviorRequest : public RpcServiceRequest - { - - public: - DescribeUserBusinessBehaviorRequest(); - ~DescribeUserBusinessBehaviorRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getStatusKey()const; - void setStatusKey(const std::string& statusKey); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string statusKey_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEUSERBUSINESSBEHAVIORREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEUSERBUSINESSBEHAVIORREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEUSERBUSINESSBEHAVIORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeUserBusinessBehaviorRequest : public RpcServiceRequest { +public: + DescribeUserBusinessBehaviorRequest(); + ~DescribeUserBusinessBehaviorRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getStatusKey() const; + void setStatusKey(const std::string &statusKey); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string statusKey_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEUSERBUSINESSBEHAVIORREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeUserDataRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeUserDataRequest.h index b3d8952c0..c9ba9351c 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeUserDataRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeUserDataRequest.h @@ -1,60 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEUSERDATAREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEUSERDATAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeUserDataRequest : public RpcServiceRequest - { - - public: - DescribeUserDataRequest(); - ~DescribeUserDataRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - long ownerId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEUSERDATAREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEUSERDATAREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEUSERDATAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeUserDataRequest : public RpcServiceRequest { +public: + DescribeUserDataRequest(); + ~DescribeUserDataRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEUSERDATAREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeVRoutersRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeVRoutersRequest.h index a4d2b46b0..8d0c895cf 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeVRoutersRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeVRoutersRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEVROUTERSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEVROUTERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeVRoutersRequest : public RpcServiceRequest - { - - public: - DescribeVRoutersRequest(); - ~DescribeVRoutersRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getVRouterId()const; - void setVRouterId(const std::string& vRouterId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string vRouterId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEVROUTERSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEVROUTERSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEVROUTERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeVRoutersRequest : public RpcServiceRequest { +public: + DescribeVRoutersRequest(); + ~DescribeVRoutersRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getVRouterId() const; + void setVRouterId(const std::string &vRouterId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string vRouterId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEVROUTERSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeVSwitchesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeVSwitchesRequest.h index 5f18bedbf..00c0303e1 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeVSwitchesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeVSwitchesRequest.h @@ -1,78 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEVSWITCHESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEVSWITCHESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeVSwitchesRequest : public RpcServiceRequest - { - - public: - DescribeVSwitchesRequest(); - ~DescribeVSwitchesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - bool getIsDefault()const; - void setIsDefault(bool isDefault); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getVSwitchId()const; - void setVSwitchId(const std::string& vSwitchId); - std::string getVpcId()const; - void setVpcId(const std::string& vpcId); - std::string getZoneId()const; - void setZoneId(const std::string& zoneId); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - bool isDefault_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string vSwitchId_; - std::string vpcId_; - std::string zoneId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEVSWITCHESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEVSWITCHESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEVSWITCHESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeVSwitchesRequest : public RpcServiceRequest { +public: + DescribeVSwitchesRequest(); + ~DescribeVSwitchesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + bool getIsDefault() const; + void setIsDefault(bool isDefault); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getVSwitchId() const; + void setVSwitchId(const std::string &vSwitchId); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + bool isDefault_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vSwitchId_; + std::string vpcId_; + std::string zoneId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEVSWITCHESREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.h index 775f3967a..e034f490a 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.h @@ -1,75 +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_ECS_MODEL_DESCRIBEVIRTUALBORDERROUTERSFORPHYSICALCONNECTIONREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEVIRTUALBORDERROUTERSFORPHYSICALCONNECTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeVirtualBorderRoutersForPhysicalConnectionRequest : public RpcServiceRequest - { - public: - struct Filter - { - std::vector value; - std::string key; - }; - - public: - DescribeVirtualBorderRoutersForPhysicalConnectionRequest(); - ~DescribeVirtualBorderRoutersForPhysicalConnectionRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::vector getFilter()const; - void setFilter(const std::vector& filter); - std::string getPhysicalConnectionId()const; - void setPhysicalConnectionId(const std::string& physicalConnectionId); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - long ownerId_; - std::vector filter_; - std::string physicalConnectionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEVIRTUALBORDERROUTERSFORPHYSICALCONNECTIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEVIRTUALBORDERROUTERSFORPHYSICALCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEVIRTUALBORDERROUTERSFORPHYSICALCONNECTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeVirtualBorderRoutersForPhysicalConnectionRequest : public RpcServiceRequest { +public: + struct Filter { + std::string key; + }; + DescribeVirtualBorderRoutersForPhysicalConnectionRequest(); + ~DescribeVirtualBorderRoutersForPhysicalConnectionRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getFilter() const; + void setFilter(const std::vector &filter); + std::string getPhysicalConnectionId() const; + void setPhysicalConnectionId(const std::string &physicalConnectionId); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + long ownerId_; + std::vector filter_; + std::string physicalConnectionId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEVIRTUALBORDERROUTERSFORPHYSICALCONNECTIONREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.h b/ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.h index 1abc98b0a..85eab8c7e 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.h @@ -34,8 +34,8 @@ namespace AlibabaCloud public: struct VirtualBorderRouterForPhysicalConnectionType { - long vbrOwnerUid; std::string activationTime; + long vbrOwnerUid; std::string circuitCode; std::string creationTime; std::string vbrId; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersRequest.h index 19a3ba28a..20ae890fd 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersRequest.h @@ -1,72 +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_ECS_MODEL_DESCRIBEVIRTUALBORDERROUTERSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEVIRTUALBORDERROUTERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeVirtualBorderRoutersRequest : public RpcServiceRequest - { - public: - struct Filter - { - std::vector value; - std::string key; - }; - - public: - DescribeVirtualBorderRoutersRequest(); - ~DescribeVirtualBorderRoutersRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::vector getFilter()const; - void setFilter(const std::vector& filter); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string resourceOwnerAccount_; - long ownerId_; - std::vector filter_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEVIRTUALBORDERROUTERSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEVIRTUALBORDERROUTERSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEVIRTUALBORDERROUTERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeVirtualBorderRoutersRequest : public RpcServiceRequest { +public: + struct Filter { + std::string key; + }; + DescribeVirtualBorderRoutersRequest(); + ~DescribeVirtualBorderRoutersRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getFilter() const; + void setFilter(const std::vector &filter); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + long ownerId_; + std::vector filter_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEVIRTUALBORDERROUTERSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersResult.h b/ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersResult.h index 867c9af40..22de6e118 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersResult.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeVirtualBorderRoutersResult.h @@ -44,9 +44,9 @@ namespace AlibabaCloud std::string vlanInterfaceId; std::string physicalConnectionStatus; std::string vbrId; - std::string terminationTime; - std::string peeringSubnetMask; std::string physicalConnectionOwnerUid; + std::string peeringSubnetMask; + std::string terminationTime; std::string recoveryTime; std::string name; std::string localGatewayIp; diff --git a/ecs/include/alibabacloud/ecs/model/DescribeVpcsRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeVpcsRequest.h index 279118449..b525d4fd1 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeVpcsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeVpcsRequest.h @@ -1,72 +1,66 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEVPCSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEVPCSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeVpcsRequest : public RpcServiceRequest - { - - public: - DescribeVpcsRequest(); - ~DescribeVpcsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPageSize()const; - void setPageSize(int pageSize); - bool getIsDefault()const; - void setIsDefault(bool isDefault); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getVpcId()const; - void setVpcId(const std::string& vpcId); - - private: - long resourceOwnerId_; - int pageNumber_; - std::string regionId_; - int pageSize_; - bool isDefault_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string vpcId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEVPCSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEVPCSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEVPCSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeVpcsRequest : public RpcServiceRequest { +public: + DescribeVpcsRequest(); + ~DescribeVpcsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + bool getIsDefault() const; + void setIsDefault(bool isDefault); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + bool isDefault_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vpcId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEVPCSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DescribeZonesRequest.h b/ecs/include/alibabacloud/ecs/model/DescribeZonesRequest.h index ce310055b..9651238ce 100644 --- a/ecs/include/alibabacloud/ecs/model/DescribeZonesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DescribeZonesRequest.h @@ -1,72 +1,66 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEZONESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DESCRIBEZONESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DescribeZonesRequest : public RpcServiceRequest - { - - public: - DescribeZonesRequest(); - ~DescribeZonesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getInstanceChargeType()const; - void setInstanceChargeType(const std::string& instanceChargeType); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - bool getVerbose()const; - void setVerbose(bool verbose); - std::string getSpotStrategy()const; - void setSpotStrategy(const std::string& spotStrategy); - std::string getAcceptLanguage()const; - void setAcceptLanguage(const std::string& acceptLanguage); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string instanceChargeType_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - bool verbose_; - std::string spotStrategy_; - std::string acceptLanguage_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEZONESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEZONESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DESCRIBEZONESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DescribeZonesRequest : public RpcServiceRequest { +public: + DescribeZonesRequest(); + ~DescribeZonesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getInstanceChargeType() const; + void setInstanceChargeType(const std::string &instanceChargeType); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + bool getVerbose() const; + void setVerbose(bool verbose); + std::string getSpotStrategy() const; + void setSpotStrategy(const std::string &spotStrategy); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string instanceChargeType_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + bool verbose_; + std::string spotStrategy_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEZONESREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DetachClassicLinkVpcRequest.h b/ecs/include/alibabacloud/ecs/model/DetachClassicLinkVpcRequest.h index 61c5be0de..ab42d2408 100644 --- a/ecs/include/alibabacloud/ecs/model/DetachClassicLinkVpcRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DetachClassicLinkVpcRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DETACHCLASSICLINKVPCREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DETACHCLASSICLINKVPCREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DetachClassicLinkVpcRequest : public RpcServiceRequest - { - - public: - DetachClassicLinkVpcRequest(); - ~DetachClassicLinkVpcRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getVpcId()const; - void setVpcId(const std::string& vpcId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - long ownerId_; - std::string instanceId_; - std::string vpcId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DETACHCLASSICLINKVPCREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DETACHCLASSICLINKVPCREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DETACHCLASSICLINKVPCREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DetachClassicLinkVpcRequest : public RpcServiceRequest { +public: + DetachClassicLinkVpcRequest(); + ~DetachClassicLinkVpcRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string instanceId_; + std::string vpcId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DETACHCLASSICLINKVPCREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DetachDiskRequest.h b/ecs/include/alibabacloud/ecs/model/DetachDiskRequest.h index cff1de3d5..0bf17cca0 100644 --- a/ecs/include/alibabacloud/ecs/model/DetachDiskRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DetachDiskRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DETACHDISKREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DETACHDISKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DetachDiskRequest : public RpcServiceRequest - { - - public: - DetachDiskRequest(); - ~DetachDiskRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDiskId()const; - void setDiskId(const std::string& diskId); - bool getDeleteWithInstance()const; - void setDeleteWithInstance(bool deleteWithInstance); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - long resourceOwnerId_; - std::string diskId_; - bool deleteWithInstance_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DETACHDISKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DETACHDISKREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DETACHDISKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DetachDiskRequest : public RpcServiceRequest { +public: + DetachDiskRequest(); + ~DetachDiskRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDiskId() const; + void setDiskId(const std::string &diskId); + bool getDeleteWithInstance() const; + void setDeleteWithInstance(bool deleteWithInstance); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + long resourceOwnerId_; + std::string diskId_; + bool deleteWithInstance_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DETACHDISKREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DetachInstanceRamRoleRequest.h b/ecs/include/alibabacloud/ecs/model/DetachInstanceRamRoleRequest.h index 3f97c076b..d7319c927 100644 --- a/ecs/include/alibabacloud/ecs/model/DetachInstanceRamRoleRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DetachInstanceRamRoleRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DETACHINSTANCERAMROLEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DETACHINSTANCERAMROLEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DetachInstanceRamRoleRequest : public RpcServiceRequest - { - - public: - DetachInstanceRamRoleRequest(); - ~DetachInstanceRamRoleRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getRamRoleName()const; - void setRamRoleName(const std::string& ramRoleName); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceIds()const; - void setInstanceIds(const std::string& instanceIds); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ramRoleName_; - long ownerId_; - std::string instanceIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DETACHINSTANCERAMROLEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DETACHINSTANCERAMROLEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DETACHINSTANCERAMROLEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DetachInstanceRamRoleRequest : public RpcServiceRequest { +public: + DetachInstanceRamRoleRequest(); + ~DetachInstanceRamRoleRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getRamRoleName() const; + void setRamRoleName(const std::string &ramRoleName); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceIds() const; + void setInstanceIds(const std::string &instanceIds); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ramRoleName_; + long ownerId_; + std::string instanceIds_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DETACHINSTANCERAMROLEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DetachKeyPairRequest.h b/ecs/include/alibabacloud/ecs/model/DetachKeyPairRequest.h index 8a8f8896f..5e6b84335 100644 --- a/ecs/include/alibabacloud/ecs/model/DetachKeyPairRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DetachKeyPairRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DETACHKEYPAIRREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DETACHKEYPAIRREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DetachKeyPairRequest : public RpcServiceRequest - { - - public: - DetachKeyPairRequest(); - ~DetachKeyPairRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getKeyPairName()const; - void setKeyPairName(const std::string& keyPairName); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceIds()const; - void setInstanceIds(const std::string& instanceIds); - - private: - long resourceOwnerId_; - std::string keyPairName_; - std::string regionId_; - std::string resourceOwnerAccount_; - long ownerId_; - std::string instanceIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DETACHKEYPAIRREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DETACHKEYPAIRREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DETACHKEYPAIRREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DetachKeyPairRequest : public RpcServiceRequest { +public: + DetachKeyPairRequest(); + ~DetachKeyPairRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getKeyPairName() const; + void setKeyPairName(const std::string &keyPairName); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceIds() const; + void setInstanceIds(const std::string &instanceIds); + +private: + long resourceOwnerId_; + std::string keyPairName_; + std::string regionId_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string instanceIds_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DETACHKEYPAIRREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DetachNetworkInterfaceRequest.h b/ecs/include/alibabacloud/ecs/model/DetachNetworkInterfaceRequest.h index 3e4c60c47..1d648f3f7 100644 --- a/ecs/include/alibabacloud/ecs/model/DetachNetworkInterfaceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DetachNetworkInterfaceRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DETACHNETWORKINTERFACEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DETACHNETWORKINTERFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DetachNetworkInterfaceRequest : public RpcServiceRequest - { - - public: - DetachNetworkInterfaceRequest(); - ~DetachNetworkInterfaceRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getTrunkNetworkInstanceId()const; - void setTrunkNetworkInstanceId(const std::string& trunkNetworkInstanceId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getNetworkInterfaceId()const; - void setNetworkInterfaceId(const std::string& networkInterfaceId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string trunkNetworkInstanceId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string instanceId_; - std::string networkInterfaceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DETACHNETWORKINTERFACEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DETACHNETWORKINTERFACEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DETACHNETWORKINTERFACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DetachNetworkInterfaceRequest : public RpcServiceRequest { +public: + DetachNetworkInterfaceRequest(); + ~DetachNetworkInterfaceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getTrunkNetworkInstanceId() const; + void setTrunkNetworkInstanceId(const std::string &trunkNetworkInstanceId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getNetworkInterfaceId() const; + void setNetworkInterfaceId(const std::string &networkInterfaceId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string trunkNetworkInstanceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; + std::string networkInterfaceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DETACHNETWORKINTERFACEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DisableActivationRequest.h b/ecs/include/alibabacloud/ecs/model/DisableActivationRequest.h index bf2a73ba7..2b20875bc 100644 --- a/ecs/include/alibabacloud/ecs/model/DisableActivationRequest.h +++ b/ecs/include/alibabacloud/ecs/model/DisableActivationRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_DISABLEACTIVATIONREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_DISABLEACTIVATIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT DisableActivationRequest : public RpcServiceRequest - { - - public: - DisableActivationRequest(); - ~DisableActivationRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getActivationId()const; - void setActivationId(const std::string& activationId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string activationId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_DISABLEACTIVATIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_DISABLEACTIVATIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_DISABLEACTIVATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT DisableActivationRequest : public RpcServiceRequest { +public: + DisableActivationRequest(); + ~DisableActivationRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getActivationId() const; + void setActivationId(const std::string &activationId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string activationId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_DISABLEACTIVATIONREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/DisableActivationResult.h b/ecs/include/alibabacloud/ecs/model/DisableActivationResult.h index 523742706..85bdc32b3 100644 --- a/ecs/include/alibabacloud/ecs/model/DisableActivationResult.h +++ b/ecs/include/alibabacloud/ecs/model/DisableActivationResult.h @@ -35,13 +35,13 @@ namespace AlibabaCloud struct Activation { std::string instanceName; - int instanceCount; int deregisteredCount; + int instanceCount; std::string description; - std::string activationId; std::string creationTime; - long timeToLiveInHours; + std::string activationId; int registeredCount; + long timeToLiveInHours; bool disabled; std::string ipAddressRange; }; diff --git a/ecs/include/alibabacloud/ecs/model/EipFillParamsRequest.h b/ecs/include/alibabacloud/ecs/model/EipFillParamsRequest.h index 6bbc9c16e..979612856 100644 --- a/ecs/include/alibabacloud/ecs/model/EipFillParamsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/EipFillParamsRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_EIPFILLPARAMSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_EIPFILLPARAMSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT EipFillParamsRequest : public RpcServiceRequest - { - - public: - EipFillParamsRequest(); - ~EipFillParamsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getData()const; - void setData(const std::string& data); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getUserCidr()const; - void setUserCidr(const std::string& userCidr); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string data_; - std::string clientToken_; - std::string userCidr_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_EIPFILLPARAMSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_EIPFILLPARAMSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_EIPFILLPARAMSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT EipFillParamsRequest : public RpcServiceRequest { +public: + EipFillParamsRequest(); + ~EipFillParamsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getData() const; + void setData(const std::string &data); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getUserCidr() const; + void setUserCidr(const std::string &userCidr); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string data_; + std::string clientToken_; + std::string userCidr_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_EIPFILLPARAMSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/EipFillParamsResult.h b/ecs/include/alibabacloud/ecs/model/EipFillParamsResult.h index a1c66db9b..e134c0ac2 100644 --- a/ecs/include/alibabacloud/ecs/model/EipFillParamsResult.h +++ b/ecs/include/alibabacloud/ecs/model/EipFillParamsResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud EipFillParamsResult(); explicit EipFillParamsResult(const std::string &payload); ~EipFillParamsResult(); - std::string getRequestId()const; std::string getMessage()const; + std::string getRequestId()const; std::string getData()const; std::string getCode()const; bool getSuccess()const; @@ -46,8 +46,8 @@ namespace AlibabaCloud protected: void parse(const std::string &payload); private: - std::string requestId_; std::string message_; + std::string requestId_; std::string data_; std::string code_; bool success_; diff --git a/ecs/include/alibabacloud/ecs/model/EipFillProductRequest.h b/ecs/include/alibabacloud/ecs/model/EipFillProductRequest.h index 5b3c550f0..7b1fd58b5 100644 --- a/ecs/include/alibabacloud/ecs/model/EipFillProductRequest.h +++ b/ecs/include/alibabacloud/ecs/model/EipFillProductRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_EIPFILLPRODUCTREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_EIPFILLPRODUCTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT EipFillProductRequest : public RpcServiceRequest - { - - public: - EipFillProductRequest(); - ~EipFillProductRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getData()const; - void setData(const std::string& data); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getUserCidr()const; - void setUserCidr(const std::string& userCidr); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string data_; - std::string clientToken_; - std::string userCidr_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_EIPFILLPRODUCTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_EIPFILLPRODUCTREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_EIPFILLPRODUCTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT EipFillProductRequest : public RpcServiceRequest { +public: + EipFillProductRequest(); + ~EipFillProductRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getData() const; + void setData(const std::string &data); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getUserCidr() const; + void setUserCidr(const std::string &userCidr); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string data_; + std::string clientToken_; + std::string userCidr_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_EIPFILLPRODUCTREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/EipFillProductResult.h b/ecs/include/alibabacloud/ecs/model/EipFillProductResult.h index 6133f8c90..0b4af9c92 100644 --- a/ecs/include/alibabacloud/ecs/model/EipFillProductResult.h +++ b/ecs/include/alibabacloud/ecs/model/EipFillProductResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud EipFillProductResult(); explicit EipFillProductResult(const std::string &payload); ~EipFillProductResult(); - std::string getRequestId()const; std::string getMessage()const; + std::string getRequestId()const; std::string getData()const; std::string getCode()const; bool getSuccess()const; @@ -46,8 +46,8 @@ namespace AlibabaCloud protected: void parse(const std::string &payload); private: - std::string requestId_; std::string message_; + std::string requestId_; std::string data_; std::string code_; bool success_; diff --git a/ecs/include/alibabacloud/ecs/model/EipNotifyPaidRequest.h b/ecs/include/alibabacloud/ecs/model/EipNotifyPaidRequest.h index 3eddb22f3..bd27b7a7f 100644 --- a/ecs/include/alibabacloud/ecs/model/EipNotifyPaidRequest.h +++ b/ecs/include/alibabacloud/ecs/model/EipNotifyPaidRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_EIPNOTIFYPAIDREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_EIPNOTIFYPAIDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT EipNotifyPaidRequest : public RpcServiceRequest - { - - public: - EipNotifyPaidRequest(); - ~EipNotifyPaidRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getData()const; - void setData(const std::string& data); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getUserCidr()const; - void setUserCidr(const std::string& userCidr); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string data_; - std::string clientToken_; - std::string userCidr_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_EIPNOTIFYPAIDREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_EIPNOTIFYPAIDREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_EIPNOTIFYPAIDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT EipNotifyPaidRequest : public RpcServiceRequest { +public: + EipNotifyPaidRequest(); + ~EipNotifyPaidRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getData() const; + void setData(const std::string &data); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getUserCidr() const; + void setUserCidr(const std::string &userCidr); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string data_; + std::string clientToken_; + std::string userCidr_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_EIPNOTIFYPAIDREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/EipNotifyPaidResult.h b/ecs/include/alibabacloud/ecs/model/EipNotifyPaidResult.h index dba665dae..7bf025a02 100644 --- a/ecs/include/alibabacloud/ecs/model/EipNotifyPaidResult.h +++ b/ecs/include/alibabacloud/ecs/model/EipNotifyPaidResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud EipNotifyPaidResult(); explicit EipNotifyPaidResult(const std::string &payload); ~EipNotifyPaidResult(); - std::string getRequestId()const; std::string getMessage()const; + std::string getRequestId()const; std::string getData()const; std::string getCode()const; bool getSuccess()const; @@ -46,8 +46,8 @@ namespace AlibabaCloud protected: void parse(const std::string &payload); private: - std::string requestId_; std::string message_; + std::string requestId_; std::string data_; std::string code_; bool success_; diff --git a/ecs/include/alibabacloud/ecs/model/EnablePhysicalConnectionRequest.h b/ecs/include/alibabacloud/ecs/model/EnablePhysicalConnectionRequest.h index ffc2bbb16..b119899d8 100644 --- a/ecs/include/alibabacloud/ecs/model/EnablePhysicalConnectionRequest.h +++ b/ecs/include/alibabacloud/ecs/model/EnablePhysicalConnectionRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_ENABLEPHYSICALCONNECTIONREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_ENABLEPHYSICALCONNECTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT EnablePhysicalConnectionRequest : public RpcServiceRequest - { - - public: - EnablePhysicalConnectionRequest(); - ~EnablePhysicalConnectionRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getUserCidr()const; - void setUserCidr(const std::string& userCidr); - std::string getResourceOwnerAccount()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 getPhysicalConnectionId()const; - void setPhysicalConnectionId(const std::string& physicalConnectionId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - std::string userCidr_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string physicalConnectionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_ENABLEPHYSICALCONNECTIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_ENABLEPHYSICALCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_ENABLEPHYSICALCONNECTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT EnablePhysicalConnectionRequest : public RpcServiceRequest { +public: + EnablePhysicalConnectionRequest(); + ~EnablePhysicalConnectionRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getUserCidr() const; + void setUserCidr(const std::string &userCidr); + std::string getResourceOwnerAccount() 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 getPhysicalConnectionId() const; + void setPhysicalConnectionId(const std::string &physicalConnectionId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string userCidr_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string physicalConnectionId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_ENABLEPHYSICALCONNECTIONREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ExportImageRequest.h b/ecs/include/alibabacloud/ecs/model/ExportImageRequest.h index 9f23826f9..fd7fb70a0 100644 --- a/ecs/include/alibabacloud/ecs/model/ExportImageRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ExportImageRequest.h @@ -1,72 +1,66 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_EXPORTIMAGEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_EXPORTIMAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ExportImageRequest : public RpcServiceRequest - { - - public: - ExportImageRequest(); - ~ExportImageRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getImageId()const; - void setImageId(const std::string& imageId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getImageFormat()const; - void setImageFormat(const std::string& imageFormat); - std::string getOSSBucket()const; - void setOSSBucket(const std::string& oSSBucket); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getRoleName()const; - void setRoleName(const std::string& roleName); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getOSSPrefix()const; - void setOSSPrefix(const std::string& oSSPrefix); - - private: - long resourceOwnerId_; - std::string imageId_; - std::string regionId_; - std::string imageFormat_; - std::string oSSBucket_; - std::string resourceOwnerAccount_; - std::string roleName_; - long ownerId_; - std::string oSSPrefix_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_EXPORTIMAGEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_EXPORTIMAGEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_EXPORTIMAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ExportImageRequest : public RpcServiceRequest { +public: + ExportImageRequest(); + ~ExportImageRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getImageId() const; + void setImageId(const std::string &imageId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getImageFormat() const; + void setImageFormat(const std::string &imageFormat); + std::string getOSSBucket() const; + void setOSSBucket(const std::string &oSSBucket); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getRoleName() const; + void setRoleName(const std::string &roleName); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getOSSPrefix() const; + void setOSSPrefix(const std::string &oSSPrefix); + +private: + long resourceOwnerId_; + std::string imageId_; + std::string regionId_; + std::string imageFormat_; + std::string oSSBucket_; + std::string resourceOwnerAccount_; + std::string roleName_; + long ownerId_; + std::string oSSPrefix_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_EXPORTIMAGEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ExportSnapshotRequest.h b/ecs/include/alibabacloud/ecs/model/ExportSnapshotRequest.h index 0b35d41b2..c89a150d6 100644 --- a/ecs/include/alibabacloud/ecs/model/ExportSnapshotRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ExportSnapshotRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_EXPORTSNAPSHOTREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_EXPORTSNAPSHOTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ExportSnapshotRequest : public RpcServiceRequest - { - - public: - ExportSnapshotRequest(); - ~ExportSnapshotRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getSnapshotId()const; - void setSnapshotId(const std::string& snapshotId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getOssBucket()const; - void setOssBucket(const std::string& ossBucket); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getRoleName()const; - void setRoleName(const std::string& roleName); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string snapshotId_; - std::string regionId_; - std::string ossBucket_; - std::string resourceOwnerAccount_; - std::string roleName_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_EXPORTSNAPSHOTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_EXPORTSNAPSHOTREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_EXPORTSNAPSHOTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ExportSnapshotRequest : public RpcServiceRequest { +public: + ExportSnapshotRequest(); + ~ExportSnapshotRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSnapshotId() const; + void setSnapshotId(const std::string &snapshotId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getOssBucket() const; + void setOssBucket(const std::string &ossBucket); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getRoleName() const; + void setRoleName(const std::string &roleName); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string snapshotId_; + std::string regionId_; + std::string ossBucket_; + std::string resourceOwnerAccount_; + std::string roleName_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_EXPORTSNAPSHOTREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/GetInstanceConsoleOutputRequest.h b/ecs/include/alibabacloud/ecs/model/GetInstanceConsoleOutputRequest.h index e6b544e14..7959cde45 100644 --- a/ecs/include/alibabacloud/ecs/model/GetInstanceConsoleOutputRequest.h +++ b/ecs/include/alibabacloud/ecs/model/GetInstanceConsoleOutputRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_GETINSTANCECONSOLEOUTPUTREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_GETINSTANCECONSOLEOUTPUTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT GetInstanceConsoleOutputRequest : public RpcServiceRequest - { - - public: - GetInstanceConsoleOutputRequest(); - ~GetInstanceConsoleOutputRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - bool getRemoveSymbols()const; - void setRemoveSymbols(bool removeSymbols); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - long resourceOwnerId_; - bool removeSymbols_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_GETINSTANCECONSOLEOUTPUTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_GETINSTANCECONSOLEOUTPUTREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_GETINSTANCECONSOLEOUTPUTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT GetInstanceConsoleOutputRequest : public RpcServiceRequest { +public: + GetInstanceConsoleOutputRequest(); + ~GetInstanceConsoleOutputRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + bool getRemoveSymbols() const; + void setRemoveSymbols(bool removeSymbols); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + long resourceOwnerId_; + bool removeSymbols_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_GETINSTANCECONSOLEOUTPUTREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/GetInstanceConsoleOutputResult.h b/ecs/include/alibabacloud/ecs/model/GetInstanceConsoleOutputResult.h index 45f8c02af..dbf249c00 100644 --- a/ecs/include/alibabacloud/ecs/model/GetInstanceConsoleOutputResult.h +++ b/ecs/include/alibabacloud/ecs/model/GetInstanceConsoleOutputResult.h @@ -38,15 +38,15 @@ namespace AlibabaCloud explicit GetInstanceConsoleOutputResult(const std::string &payload); ~GetInstanceConsoleOutputResult(); std::string getConsoleOutput()const; - std::string getInstanceId()const; std::string getLastUpdateTime()const; + std::string getInstanceId()const; protected: void parse(const std::string &payload); private: std::string consoleOutput_; - std::string instanceId_; std::string lastUpdateTime_; + std::string instanceId_; }; } diff --git a/ecs/include/alibabacloud/ecs/model/GetInstanceScreenshotRequest.h b/ecs/include/alibabacloud/ecs/model/GetInstanceScreenshotRequest.h index 11eab5b65..55ef59637 100644 --- a/ecs/include/alibabacloud/ecs/model/GetInstanceScreenshotRequest.h +++ b/ecs/include/alibabacloud/ecs/model/GetInstanceScreenshotRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_GETINSTANCESCREENSHOTREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_GETINSTANCESCREENSHOTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT GetInstanceScreenshotRequest : public RpcServiceRequest - { - - public: - GetInstanceScreenshotRequest(); - ~GetInstanceScreenshotRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - bool getWakeUp()const; - void setWakeUp(bool wakeUp); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - bool wakeUp_; - std::string ownerAccount_; - long ownerId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_GETINSTANCESCREENSHOTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_GETINSTANCESCREENSHOTREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_GETINSTANCESCREENSHOTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT GetInstanceScreenshotRequest : public RpcServiceRequest { +public: + GetInstanceScreenshotRequest(); + ~GetInstanceScreenshotRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + bool getWakeUp() const; + void setWakeUp(bool wakeUp); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + bool wakeUp_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_GETINSTANCESCREENSHOTREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ImportImageRequest.h b/ecs/include/alibabacloud/ecs/model/ImportImageRequest.h index fa1bf2e70..fe26f5734 100644 --- a/ecs/include/alibabacloud/ecs/model/ImportImageRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ImportImageRequest.h @@ -1,105 +1,96 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_IMPORTIMAGEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_IMPORTIMAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ImportImageRequest : public RpcServiceRequest - { - public: - struct DiskDeviceMapping - { - std::string oSSBucket; - int diskImSize; - std::string format; - std::string device; - std::string oSSObject; - int diskImageSize; - }; - struct Tag - { - std::string value; - std::string key; - }; - - public: - ImportImageRequest(); - ~ImportImageRequest(); - - std::vector getDiskDeviceMapping()const; - void setDiskDeviceMapping(const std::vector& diskDeviceMapping); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getPlatform()const; - void setPlatform(const std::string& platform); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getBootMode()const; - void setBootMode(const std::string& bootMode); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getImageName()const; - void setImageName(const std::string& imageName); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getArchitecture()const; - void setArchitecture(const std::string& architecture); - std::string getLicenseType()const; - void setLicenseType(const std::string& licenseType); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getRoleName()const; - void setRoleName(const std::string& roleName); - std::string getOSType()const; - void setOSType(const std::string& oSType); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - std::vector diskDeviceMapping_; - long resourceOwnerId_; - std::string description_; - std::string platform_; - std::string resourceGroupId_; - std::string bootMode_; - std::string regionId_; - std::string imageName_; - std::vector tag_; - std::string architecture_; - std::string licenseType_; - std::string resourceOwnerAccount_; - std::string roleName_; - std::string oSType_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_IMPORTIMAGEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_IMPORTIMAGEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_IMPORTIMAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ImportImageRequest : public RpcServiceRequest { +public: + struct DiskDeviceMapping { + std::string oSSBucket; + int diskImSize; + std::string format; + std::string device; + std::string oSSObject; + int diskImageSize; + }; + struct Tag { + std::string value; + std::string key; + }; + ImportImageRequest(); + ~ImportImageRequest(); + std::vector getDiskDeviceMapping() const; + void setDiskDeviceMapping(const std::vector &diskDeviceMapping); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getPlatform() const; + void setPlatform(const std::string &platform); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getBootMode() const; + void setBootMode(const std::string &bootMode); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getImageName() const; + void setImageName(const std::string &imageName); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getArchitecture() const; + void setArchitecture(const std::string &architecture); + std::string getLicenseType() const; + void setLicenseType(const std::string &licenseType); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getRoleName() const; + void setRoleName(const std::string &roleName); + std::string getOSType() const; + void setOSType(const std::string &oSType); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::vector diskDeviceMapping_; + long resourceOwnerId_; + std::string description_; + std::string platform_; + std::string resourceGroupId_; + std::string bootMode_; + std::string regionId_; + std::string imageName_; + std::vector tag_; + std::string architecture_; + std::string licenseType_; + std::string resourceOwnerAccount_; + std::string roleName_; + std::string oSType_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_IMPORTIMAGEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ImportKeyPairRequest.h b/ecs/include/alibabacloud/ecs/model/ImportKeyPairRequest.h index 722da12f0..1bc1be76a 100644 --- a/ecs/include/alibabacloud/ecs/model/ImportKeyPairRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ImportKeyPairRequest.h @@ -1,75 +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_ECS_MODEL_IMPORTKEYPAIRREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_IMPORTKEYPAIRREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ImportKeyPairRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - - public: - ImportKeyPairRequest(); - ~ImportKeyPairRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getKeyPairName()const; - void setKeyPairName(const std::string& keyPairName); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getPublicKeyBody()const; - void setPublicKeyBody(const std::string& publicKeyBody); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string keyPairName_; - std::string resourceGroupId_; - std::string regionId_; - std::vector tag_; - std::string resourceOwnerAccount_; - std::string publicKeyBody_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_IMPORTKEYPAIRREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_IMPORTKEYPAIRREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_IMPORTKEYPAIRREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ImportKeyPairRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + ImportKeyPairRequest(); + ~ImportKeyPairRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getKeyPairName() const; + void setKeyPairName(const std::string &keyPairName); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getPublicKeyBody() const; + void setPublicKeyBody(const std::string &publicKeyBody); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string keyPairName_; + std::string resourceGroupId_; + std::string regionId_; + std::vector tag_; + std::string resourceOwnerAccount_; + std::string publicKeyBody_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_IMPORTKEYPAIRREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ImportSnapshotRequest.h b/ecs/include/alibabacloud/ecs/model/ImportSnapshotRequest.h index 28756983e..e4f5b40ba 100644 --- a/ecs/include/alibabacloud/ecs/model/ImportSnapshotRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ImportSnapshotRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_IMPORTSNAPSHOTREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_IMPORTSNAPSHOTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ImportSnapshotRequest : public RpcServiceRequest - { - - public: - ImportSnapshotRequest(); - ~ImportSnapshotRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getSnapshotName()const; - void setSnapshotName(const std::string& snapshotName); - std::string getOssObject()const; - void setOssObject(const std::string& ossObject); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getOssBucket()const; - void setOssBucket(const std::string& ossBucket); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getRoleName()const; - void setRoleName(const std::string& roleName); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string snapshotName_; - std::string ossObject_; - std::string regionId_; - std::string ossBucket_; - std::string resourceOwnerAccount_; - std::string roleName_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_IMPORTSNAPSHOTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_IMPORTSNAPSHOTREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_IMPORTSNAPSHOTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ImportSnapshotRequest : public RpcServiceRequest { +public: + ImportSnapshotRequest(); + ~ImportSnapshotRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSnapshotName() const; + void setSnapshotName(const std::string &snapshotName); + std::string getOssObject() const; + void setOssObject(const std::string &ossObject); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getOssBucket() const; + void setOssBucket(const std::string &ossBucket); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getRoleName() const; + void setRoleName(const std::string &roleName); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string snapshotName_; + std::string ossObject_; + std::string regionId_; + std::string ossBucket_; + std::string resourceOwnerAccount_; + std::string roleName_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_IMPORTSNAPSHOTREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/InstallCloudAssistantRequest.h b/ecs/include/alibabacloud/ecs/model/InstallCloudAssistantRequest.h index 3cb1acac6..799368bd3 100644 --- a/ecs/include/alibabacloud/ecs/model/InstallCloudAssistantRequest.h +++ b/ecs/include/alibabacloud/ecs/model/InstallCloudAssistantRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_INSTALLCLOUDASSISTANTREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_INSTALLCLOUDASSISTANTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT InstallCloudAssistantRequest : public RpcServiceRequest - { - - public: - InstallCloudAssistantRequest(); - ~InstallCloudAssistantRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::vector getInstanceId()const; - void setInstanceId(const std::vector& instanceId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::vector instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_INSTALLCLOUDASSISTANTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_INSTALLCLOUDASSISTANTREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_INSTALLCLOUDASSISTANTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT InstallCloudAssistantRequest : public RpcServiceRequest { +public: + InstallCloudAssistantRequest(); + ~InstallCloudAssistantRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getInstanceId() const; + void setInstanceId(const std::vector &instanceId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::vector instanceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_INSTALLCLOUDASSISTANTREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/InvokeCommandRequest.h b/ecs/include/alibabacloud/ecs/model/InvokeCommandRequest.h index 3cc16bbcc..5b4aedaad 100644 --- a/ecs/include/alibabacloud/ecs/model/InvokeCommandRequest.h +++ b/ecs/include/alibabacloud/ecs/model/InvokeCommandRequest.h @@ -1,84 +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_ECS_MODEL_INVOKECOMMANDREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_INVOKECOMMANDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT InvokeCommandRequest : public RpcServiceRequest - { - - public: - InvokeCommandRequest(); - ~InvokeCommandRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getCommandId()const; - void setCommandId(const std::string& commandId); - std::string getFrequency()const; - void setFrequency(const std::string& frequency); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getRepeatMode()const; - void setRepeatMode(const std::string& repeatMode); - std::string getWindowsPasswordName()const; - void setWindowsPasswordName(const std::string& windowsPasswordName); - bool getTimed()const; - void setTimed(bool timed); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::vector getInstanceId()const; - void setInstanceId(const std::vector& instanceId); - std::map getParameters()const; - void setParameters(const std::map& parameters); - std::string getUsername()const; - void setUsername(const std::string& username); - - private: - long resourceOwnerId_; - std::string commandId_; - std::string frequency_; - std::string regionId_; - std::string repeatMode_; - std::string windowsPasswordName_; - bool timed_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::vector instanceId_; - std::map parameters_; - std::string username_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_INVOKECOMMANDREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_INVOKECOMMANDREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_INVOKECOMMANDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT InvokeCommandRequest : public RpcServiceRequest { +public: + InvokeCommandRequest(); + ~InvokeCommandRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getCommandId() const; + void setCommandId(const std::string &commandId); + std::string getFrequency() const; + void setFrequency(const std::string &frequency); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getRepeatMode() const; + void setRepeatMode(const std::string &repeatMode); + std::string getWindowsPasswordName() const; + void setWindowsPasswordName(const std::string &windowsPasswordName); + bool getTimed() const; + void setTimed(bool timed); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getInstanceId() const; + void setInstanceId(const std::vector &instanceId); + std::map getParameters() const; + void setParameters(std::map parameters); + std::string getUsername() const; + void setUsername(const std::string &username); + +private: + long resourceOwnerId_; + std::string commandId_; + std::string frequency_; + std::string regionId_; + std::string repeatMode_; + std::string windowsPasswordName_; + bool timed_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::vector instanceId_; + std::map parameters_; + std::string username_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_INVOKECOMMANDREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/JoinResourceGroupRequest.h b/ecs/include/alibabacloud/ecs/model/JoinResourceGroupRequest.h index 21d7cda3b..cd31e1b7f 100644 --- a/ecs/include/alibabacloud/ecs/model/JoinResourceGroupRequest.h +++ b/ecs/include/alibabacloud/ecs/model/JoinResourceGroupRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_JOINRESOURCEGROUPREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_JOINRESOURCEGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT JoinResourceGroupRequest : public RpcServiceRequest - { - - public: - JoinResourceGroupRequest(); - ~JoinResourceGroupRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceId()const; - void setResourceId(const std::string& resourceId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getResourceType()const; - void setResourceType(const std::string& resourceType); - - private: - long resourceOwnerId_; - std::string resourceGroupId_; - std::string regionId_; - std::string resourceId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string resourceType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_JOINRESOURCEGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_JOINRESOURCEGROUPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_JOINRESOURCEGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT JoinResourceGroupRequest : public RpcServiceRequest { +public: + JoinResourceGroupRequest(); + ~JoinResourceGroupRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + +private: + long resourceOwnerId_; + std::string resourceGroupId_; + std::string regionId_; + std::string resourceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string resourceType_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_JOINRESOURCEGROUPREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/JoinSecurityGroupRequest.h b/ecs/include/alibabacloud/ecs/model/JoinSecurityGroupRequest.h index c24f53de4..61784b1d8 100644 --- a/ecs/include/alibabacloud/ecs/model/JoinSecurityGroupRequest.h +++ b/ecs/include/alibabacloud/ecs/model/JoinSecurityGroupRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_JOINSECURITYGROUPREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_JOINSECURITYGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT JoinSecurityGroupRequest : public RpcServiceRequest - { - - public: - JoinSecurityGroupRequest(); - ~JoinSecurityGroupRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getSecurityGroupId()const; - void setSecurityGroupId(const std::string& securityGroupId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getNetworkInterfaceId()const; - void setNetworkInterfaceId(const std::string& networkInterfaceId); - - private: - long resourceOwnerId_; - std::string securityGroupId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string instanceId_; - std::string networkInterfaceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_JOINSECURITYGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_JOINSECURITYGROUPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_JOINSECURITYGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT JoinSecurityGroupRequest : public RpcServiceRequest { +public: + JoinSecurityGroupRequest(); + ~JoinSecurityGroupRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSecurityGroupId() const; + void setSecurityGroupId(const std::string &securityGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getNetworkInterfaceId() const; + void setNetworkInterfaceId(const std::string &networkInterfaceId); + +private: + long resourceOwnerId_; + std::string securityGroupId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; + std::string networkInterfaceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_JOINSECURITYGROUPREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/LeaveSecurityGroupRequest.h b/ecs/include/alibabacloud/ecs/model/LeaveSecurityGroupRequest.h index e403b9d35..9c956b344 100644 --- a/ecs/include/alibabacloud/ecs/model/LeaveSecurityGroupRequest.h +++ b/ecs/include/alibabacloud/ecs/model/LeaveSecurityGroupRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_LEAVESECURITYGROUPREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_LEAVESECURITYGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT LeaveSecurityGroupRequest : public RpcServiceRequest - { - - public: - LeaveSecurityGroupRequest(); - ~LeaveSecurityGroupRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getSecurityGroupId()const; - void setSecurityGroupId(const std::string& securityGroupId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getNetworkInterfaceId()const; - void setNetworkInterfaceId(const std::string& networkInterfaceId); - - private: - long resourceOwnerId_; - std::string securityGroupId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string instanceId_; - std::string networkInterfaceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_LEAVESECURITYGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_LEAVESECURITYGROUPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_LEAVESECURITYGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT LeaveSecurityGroupRequest : public RpcServiceRequest { +public: + LeaveSecurityGroupRequest(); + ~LeaveSecurityGroupRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSecurityGroupId() const; + void setSecurityGroupId(const std::string &securityGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getNetworkInterfaceId() const; + void setNetworkInterfaceId(const std::string &networkInterfaceId); + +private: + long resourceOwnerId_; + std::string securityGroupId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; + std::string networkInterfaceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_LEAVESECURITYGROUPREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ListTagResourcesRequest.h b/ecs/include/alibabacloud/ecs/model/ListTagResourcesRequest.h index ad8532a35..7b3d5b3f5 100644 --- a/ecs/include/alibabacloud/ecs/model/ListTagResourcesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ListTagResourcesRequest.h @@ -1,86 +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_ECS_MODEL_LISTTAGRESOURCESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_LISTTAGRESOURCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ListTagResourcesRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string key; - std::string value; - }; - struct TagFilter - { - std::vector tagValues; - std::string tagKey; - }; - - public: - ListTagResourcesRequest(); - ~ListTagResourcesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getNextToken()const; - void setNextToken(const std::string& nextToken); - std::vector getTag()const; - void setTag(const std::vector& tag); - 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 getOwnerId()const; - void setOwnerId(long ownerId); - std::vector getTagFilter()const; - void setTagFilter(const std::vector& tagFilter); - std::string getResourceType()const; - void setResourceType(const std::string& resourceType); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string nextToken_; - std::vector tag_; - std::vector resourceId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::vector tagFilter_; - std::string resourceType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_LISTTAGRESOURCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_LISTTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_LISTTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ListTagResourcesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + struct TagFilter { + std::string tagKey; + }; + ListTagResourcesRequest(); + ~ListTagResourcesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::vector getTag() const; + void setTag(const std::vector &tag); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getTagFilter() const; + void setTagFilter(const std::vector &tagFilter); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string nextToken_; + std::vector tag_; + std::vector resourceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::vector tagFilter_; + std::string resourceType_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_LISTTAGRESOURCESREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyAutoProvisioningGroupRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyAutoProvisioningGroupRequest.h index 6a71de7d4..85a2cad9f 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyAutoProvisioningGroupRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyAutoProvisioningGroupRequest.h @@ -1,99 +1,91 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYAUTOPROVISIONINGGROUPREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYAUTOPROVISIONINGGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyAutoProvisioningGroupRequest : public RpcServiceRequest - { - public: - struct LaunchTemplateConfig - { - std::string instanceType; - double maxPrice; - std::string vSwitchId; - double weightedCapacity; - int priority; - }; - - public: - ModifyAutoProvisioningGroupRequest(); - ~ModifyAutoProvisioningGroupRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - bool getTerminateInstancesWithExpiration()const; - void setTerminateInstancesWithExpiration(bool terminateInstancesWithExpiration); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getDefaultTargetCapacityType()const; - void setDefaultTargetCapacityType(const std::string& defaultTargetCapacityType); - std::string getExcessCapacityTerminationPolicy()const; - void setExcessCapacityTerminationPolicy(const std::string& excessCapacityTerminationPolicy); - std::vector getLaunchTemplateConfig()const; - void setLaunchTemplateConfig(const std::vector& launchTemplateConfig); - std::string getResourceOwnerAccount()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 getAutoProvisioningGroupId()const; - void setAutoProvisioningGroupId(const std::string& autoProvisioningGroupId); - std::string getPayAsYouGoTargetCapacity()const; - void setPayAsYouGoTargetCapacity(const std::string& payAsYouGoTargetCapacity); - std::string getTotalTargetCapacity()const; - void setTotalTargetCapacity(const std::string& totalTargetCapacity); - std::string getSpotTargetCapacity()const; - void setSpotTargetCapacity(const std::string& spotTargetCapacity); - float getMaxSpotPrice()const; - void setMaxSpotPrice(float maxSpotPrice); - std::string getAutoProvisioningGroupName()const; - void setAutoProvisioningGroupName(const std::string& autoProvisioningGroupName); - - private: - long resourceOwnerId_; - bool terminateInstancesWithExpiration_; - std::string regionId_; - std::string defaultTargetCapacityType_; - std::string excessCapacityTerminationPolicy_; - std::vector launchTemplateConfig_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string autoProvisioningGroupId_; - std::string payAsYouGoTargetCapacity_; - std::string totalTargetCapacity_; - std::string spotTargetCapacity_; - float maxSpotPrice_; - std::string autoProvisioningGroupName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYAUTOPROVISIONINGGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYAUTOPROVISIONINGGROUPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYAUTOPROVISIONINGGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyAutoProvisioningGroupRequest : public RpcServiceRequest { +public: + struct LaunchTemplateConfig { + std::string vSwitchId; + double maxPrice; + int priority; + std::string instanceType; + double weightedCapacity; + }; + ModifyAutoProvisioningGroupRequest(); + ~ModifyAutoProvisioningGroupRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + bool getTerminateInstancesWithExpiration() const; + void setTerminateInstancesWithExpiration(bool terminateInstancesWithExpiration); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDefaultTargetCapacityType() const; + void setDefaultTargetCapacityType(const std::string &defaultTargetCapacityType); + std::string getExcessCapacityTerminationPolicy() const; + void setExcessCapacityTerminationPolicy(const std::string &excessCapacityTerminationPolicy); + std::vector getLaunchTemplateConfig() const; + void setLaunchTemplateConfig(const std::vector &launchTemplateConfig); + std::string getResourceOwnerAccount() 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 getAutoProvisioningGroupId() const; + void setAutoProvisioningGroupId(const std::string &autoProvisioningGroupId); + std::string getPayAsYouGoTargetCapacity() const; + void setPayAsYouGoTargetCapacity(const std::string &payAsYouGoTargetCapacity); + std::string getTotalTargetCapacity() const; + void setTotalTargetCapacity(const std::string &totalTargetCapacity); + std::string getSpotTargetCapacity() const; + void setSpotTargetCapacity(const std::string &spotTargetCapacity); + float getMaxSpotPrice() const; + void setMaxSpotPrice(float maxSpotPrice); + std::string getAutoProvisioningGroupName() const; + void setAutoProvisioningGroupName(const std::string &autoProvisioningGroupName); + +private: + long resourceOwnerId_; + bool terminateInstancesWithExpiration_; + std::string regionId_; + std::string defaultTargetCapacityType_; + std::string excessCapacityTerminationPolicy_; + std::vector launchTemplateConfig_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string autoProvisioningGroupId_; + std::string payAsYouGoTargetCapacity_; + std::string totalTargetCapacity_; + std::string spotTargetCapacity_; + float maxSpotPrice_; + std::string autoProvisioningGroupName_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYAUTOPROVISIONINGGROUPREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyExRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyExRequest.h index 0f38f25fa..a5ebf4eb6 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyExRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyExRequest.h @@ -1,81 +1,75 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYAUTOSNAPSHOTPOLICYEXREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYAUTOSNAPSHOTPOLICYEXREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyAutoSnapshotPolicyExRequest : public RpcServiceRequest - { - - public: - ModifyAutoSnapshotPolicyExRequest(); - ~ModifyAutoSnapshotPolicyExRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAutoSnapshotPolicyId()const; - void setAutoSnapshotPolicyId(const std::string& autoSnapshotPolicyId); - int getCopiedSnapshotsRetentionDays()const; - void setCopiedSnapshotsRetentionDays(int copiedSnapshotsRetentionDays); - std::string getTimePoints()const; - void setTimePoints(const std::string& timePoints); - std::string getRepeatWeekdays()const; - void setRepeatWeekdays(const std::string& repeatWeekdays); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - bool getEnableCrossRegionCopy()const; - void setEnableCrossRegionCopy(bool enableCrossRegionCopy); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAutoSnapshotPolicyName()const; - void setAutoSnapshotPolicyName(const std::string& autoSnapshotPolicyName); - int getRetentionDays()const; - void setRetentionDays(int retentionDays); - std::string getTargetCopyRegions()const; - void setTargetCopyRegions(const std::string& targetCopyRegions); - - private: - long resourceOwnerId_; - std::string autoSnapshotPolicyId_; - int copiedSnapshotsRetentionDays_; - std::string timePoints_; - std::string repeatWeekdays_; - std::string regionId_; - bool enableCrossRegionCopy_; - std::string resourceOwnerAccount_; - long ownerId_; - std::string autoSnapshotPolicyName_; - int retentionDays_; - std::string targetCopyRegions_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYAUTOSNAPSHOTPOLICYEXREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYAUTOSNAPSHOTPOLICYEXREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYAUTOSNAPSHOTPOLICYEXREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyAutoSnapshotPolicyExRequest : public RpcServiceRequest { +public: + ModifyAutoSnapshotPolicyExRequest(); + ~ModifyAutoSnapshotPolicyExRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAutoSnapshotPolicyId() const; + void setAutoSnapshotPolicyId(const std::string &autoSnapshotPolicyId); + int getCopiedSnapshotsRetentionDays() const; + void setCopiedSnapshotsRetentionDays(int copiedSnapshotsRetentionDays); + std::string getTimePoints() const; + void setTimePoints(const std::string &timePoints); + std::string getRepeatWeekdays() const; + void setRepeatWeekdays(const std::string &repeatWeekdays); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getEnableCrossRegionCopy() const; + void setEnableCrossRegionCopy(bool enableCrossRegionCopy); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAutoSnapshotPolicyName() const; + void setAutoSnapshotPolicyName(const std::string &autoSnapshotPolicyName); + int getRetentionDays() const; + void setRetentionDays(int retentionDays); + std::string getTargetCopyRegions() const; + void setTargetCopyRegions(const std::string &targetCopyRegions); + +private: + long resourceOwnerId_; + std::string autoSnapshotPolicyId_; + int copiedSnapshotsRetentionDays_; + std::string timePoints_; + std::string repeatWeekdays_; + std::string regionId_; + bool enableCrossRegionCopy_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string autoSnapshotPolicyName_; + int retentionDays_; + std::string targetCopyRegions_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYAUTOSNAPSHOTPOLICYEXREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyRequest.h index 24bdee580..ef1a2c93b 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyAutoSnapshotPolicyRequest.h @@ -1,81 +1,75 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYAUTOSNAPSHOTPOLICYREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYAUTOSNAPSHOTPOLICYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyAutoSnapshotPolicyRequest : public RpcServiceRequest - { - - public: - ModifyAutoSnapshotPolicyRequest(); - ~ModifyAutoSnapshotPolicyRequest(); - - bool getDataDiskPolicyEnabled()const; - void setDataDiskPolicyEnabled(bool dataDiskPolicyEnabled); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getDataDiskPolicyRetentionDays()const; - void setDataDiskPolicyRetentionDays(int dataDiskPolicyRetentionDays); - bool getSystemDiskPolicyRetentionLastWeek()const; - void setSystemDiskPolicyRetentionLastWeek(bool systemDiskPolicyRetentionLastWeek); - int getSystemDiskPolicyRetentionDays()const; - void setSystemDiskPolicyRetentionDays(int systemDiskPolicyRetentionDays); - int getDataDiskPolicyTimePeriod()const; - void setDataDiskPolicyTimePeriod(int dataDiskPolicyTimePeriod); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - int getSystemDiskPolicyTimePeriod()const; - void setSystemDiskPolicyTimePeriod(int systemDiskPolicyTimePeriod); - long getOwnerId()const; - void setOwnerId(long ownerId); - bool getDataDiskPolicyRetentionLastWeek()const; - void setDataDiskPolicyRetentionLastWeek(bool dataDiskPolicyRetentionLastWeek); - bool getSystemDiskPolicyEnabled()const; - void setSystemDiskPolicyEnabled(bool systemDiskPolicyEnabled); - - private: - bool dataDiskPolicyEnabled_; - long resourceOwnerId_; - int dataDiskPolicyRetentionDays_; - bool systemDiskPolicyRetentionLastWeek_; - int systemDiskPolicyRetentionDays_; - int dataDiskPolicyTimePeriod_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - int systemDiskPolicyTimePeriod_; - long ownerId_; - bool dataDiskPolicyRetentionLastWeek_; - bool systemDiskPolicyEnabled_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYAUTOSNAPSHOTPOLICYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYAUTOSNAPSHOTPOLICYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYAUTOSNAPSHOTPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyAutoSnapshotPolicyRequest : public RpcServiceRequest { +public: + ModifyAutoSnapshotPolicyRequest(); + ~ModifyAutoSnapshotPolicyRequest(); + bool getDataDiskPolicyEnabled() const; + void setDataDiskPolicyEnabled(bool dataDiskPolicyEnabled); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getDataDiskPolicyRetentionDays() const; + void setDataDiskPolicyRetentionDays(int dataDiskPolicyRetentionDays); + bool getSystemDiskPolicyRetentionLastWeek() const; + void setSystemDiskPolicyRetentionLastWeek(bool systemDiskPolicyRetentionLastWeek); + int getSystemDiskPolicyRetentionDays() const; + void setSystemDiskPolicyRetentionDays(int systemDiskPolicyRetentionDays); + int getDataDiskPolicyTimePeriod() const; + void setDataDiskPolicyTimePeriod(int dataDiskPolicyTimePeriod); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + int getSystemDiskPolicyTimePeriod() const; + void setSystemDiskPolicyTimePeriod(int systemDiskPolicyTimePeriod); + long getOwnerId() const; + void setOwnerId(long ownerId); + bool getDataDiskPolicyRetentionLastWeek() const; + void setDataDiskPolicyRetentionLastWeek(bool dataDiskPolicyRetentionLastWeek); + bool getSystemDiskPolicyEnabled() const; + void setSystemDiskPolicyEnabled(bool systemDiskPolicyEnabled); + +private: + bool dataDiskPolicyEnabled_; + long resourceOwnerId_; + int dataDiskPolicyRetentionDays_; + bool systemDiskPolicyRetentionLastWeek_; + int systemDiskPolicyRetentionDays_; + int dataDiskPolicyTimePeriod_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int systemDiskPolicyTimePeriod_; + long ownerId_; + bool dataDiskPolicyRetentionLastWeek_; + bool systemDiskPolicyEnabled_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYAUTOSNAPSHOTPOLICYREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyBandwidthPackageSpecRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyBandwidthPackageSpecRequest.h index 20dc4a56e..0756bcae6 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyBandwidthPackageSpecRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyBandwidthPackageSpecRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYBANDWIDTHPACKAGESPECREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYBANDWIDTHPACKAGESPECREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyBandwidthPackageSpecRequest : public RpcServiceRequest - { - - public: - ModifyBandwidthPackageSpecRequest(); - ~ModifyBandwidthPackageSpecRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getBandwidthPackageId()const; - void setBandwidthPackageId(const std::string& bandwidthPackageId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getBandwidth()const; - void setBandwidth(const std::string& bandwidth); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string bandwidthPackageId_; - std::string resourceOwnerAccount_; - std::string bandwidth_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYBANDWIDTHPACKAGESPECREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYBANDWIDTHPACKAGESPECREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYBANDWIDTHPACKAGESPECREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyBandwidthPackageSpecRequest : public RpcServiceRequest { +public: + ModifyBandwidthPackageSpecRequest(); + ~ModifyBandwidthPackageSpecRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getBandwidthPackageId() const; + void setBandwidthPackageId(const std::string &bandwidthPackageId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getBandwidth() const; + void setBandwidth(const std::string &bandwidth); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string bandwidthPackageId_; + std::string resourceOwnerAccount_; + std::string bandwidth_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYBANDWIDTHPACKAGESPECREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyCapacityReservationRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyCapacityReservationRequest.h index fc623d57b..fe4d1af28 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyCapacityReservationRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyCapacityReservationRequest.h @@ -1,87 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYCAPACITYRESERVATIONREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYCAPACITYRESERVATIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyCapacityReservationRequest : public RpcServiceRequest - { - - public: - ModifyCapacityReservationRequest(); - ~ModifyCapacityReservationRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getPlatform()const; - void setPlatform(const std::string& platform); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getPrivatePoolOptionsId()const; - void setPrivatePoolOptionsId(const std::string& privatePoolOptionsId); - std::string getEndTimeType()const; - void setEndTimeType(const std::string& endTimeType); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getPrivatePoolOptionsName()const; - void setPrivatePoolOptionsName(const std::string& privatePoolOptionsName); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPackageType()const; - void setPackageType(const std::string& packageType); - int getInstanceAmount()const; - void setInstanceAmount(int instanceAmount); - - private: - long resourceOwnerId_; - std::string description_; - std::string startTime_; - std::string platform_; - std::string regionId_; - std::string privatePoolOptionsId_; - std::string endTimeType_; - std::string resourceOwnerAccount_; - std::string privatePoolOptionsName_; - std::string ownerAccount_; - std::string endTime_; - long ownerId_; - std::string packageType_; - int instanceAmount_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYCAPACITYRESERVATIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYCAPACITYRESERVATIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYCAPACITYRESERVATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyCapacityReservationRequest : public RpcServiceRequest { +public: + ModifyCapacityReservationRequest(); + ~ModifyCapacityReservationRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getPlatform() const; + void setPlatform(const std::string &platform); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getPrivatePoolOptionsId() const; + void setPrivatePoolOptionsId(const std::string &privatePoolOptionsId); + std::string getEndTimeType() const; + void setEndTimeType(const std::string &endTimeType); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getPrivatePoolOptionsName() const; + void setPrivatePoolOptionsName(const std::string &privatePoolOptionsName); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPackageType() const; + void setPackageType(const std::string &packageType); + int getInstanceAmount() const; + void setInstanceAmount(int instanceAmount); + +private: + long resourceOwnerId_; + std::string description_; + std::string startTime_; + std::string platform_; + std::string regionId_; + std::string privatePoolOptionsId_; + std::string endTimeType_; + std::string resourceOwnerAccount_; + std::string privatePoolOptionsName_; + std::string ownerAccount_; + std::string endTime_; + long ownerId_; + std::string packageType_; + int instanceAmount_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYCAPACITYRESERVATIONREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyCommandRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyCommandRequest.h index b6ffb3ee4..9f72f895a 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyCommandRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyCommandRequest.h @@ -1,78 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYCOMMANDREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYCOMMANDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyCommandRequest : public RpcServiceRequest - { - - public: - ModifyCommandRequest(); - ~ModifyCommandRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getWorkingDir()const; - void setWorkingDir(const std::string& workingDir); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getCommandId()const; - void setCommandId(const std::string& commandId); - std::string getCommandContent()const; - void setCommandContent(const std::string& commandContent); - long getTimeout()const; - void setTimeout(long timeout); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string workingDir_; - std::string description_; - std::string commandId_; - std::string commandContent_; - long timeout_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYCOMMANDREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYCOMMANDREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYCOMMANDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyCommandRequest : public RpcServiceRequest { +public: + ModifyCommandRequest(); + ~ModifyCommandRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getWorkingDir() const; + void setWorkingDir(const std::string &workingDir); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getCommandId() const; + void setCommandId(const std::string &commandId); + std::string getCommandContent() const; + void setCommandContent(const std::string &commandContent); + long getTimeout() const; + void setTimeout(long timeout); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string workingDir_; + std::string description_; + std::string commandId_; + std::string commandContent_; + long timeout_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string name_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYCOMMANDREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostAttributeRequest.h index b191bf9a3..d8378d40d 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostAttributeRequest.h @@ -1,87 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyDedicatedHostAttributeRequest : public RpcServiceRequest - { - - public: - ModifyDedicatedHostAttributeRequest(); - ~ModifyDedicatedHostAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDescription()const; - void setDescription(const std::string& description); - float getCpuOverCommitRatio()const; - void setCpuOverCommitRatio(float cpuOverCommitRatio); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getActionOnMaintenance()const; - void setActionOnMaintenance(const std::string& actionOnMaintenance); - std::string getDedicatedHostClusterId()const; - void setDedicatedHostClusterId(const std::string& dedicatedHostClusterId); - std::string getDedicatedHostName()const; - void setDedicatedHostName(const std::string& dedicatedHostName); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getDedicatedHostId()const; - void setDedicatedHostId(const std::string& dedicatedHostId); - long getOwnerId()const; - void setOwnerId(long ownerId); - int getNetworkAttributesSlbUdpTimeout()const; - void setNetworkAttributesSlbUdpTimeout(int networkAttributesSlbUdpTimeout); - std::string getAutoPlacement()const; - void setAutoPlacement(const std::string& autoPlacement); - int getNetworkAttributesUdpTimeout()const; - void setNetworkAttributesUdpTimeout(int networkAttributesUdpTimeout); - - private: - long resourceOwnerId_; - std::string description_; - float cpuOverCommitRatio_; - std::string regionId_; - std::string actionOnMaintenance_; - std::string dedicatedHostClusterId_; - std::string dedicatedHostName_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string dedicatedHostId_; - long ownerId_; - int networkAttributesSlbUdpTimeout_; - std::string autoPlacement_; - int networkAttributesUdpTimeout_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyDedicatedHostAttributeRequest : public RpcServiceRequest { +public: + ModifyDedicatedHostAttributeRequest(); + ~ModifyDedicatedHostAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDescription() const; + void setDescription(const std::string &description); + float getCpuOverCommitRatio() const; + void setCpuOverCommitRatio(float cpuOverCommitRatio); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getActionOnMaintenance() const; + void setActionOnMaintenance(const std::string &actionOnMaintenance); + std::string getDedicatedHostClusterId() const; + void setDedicatedHostClusterId(const std::string &dedicatedHostClusterId); + std::string getDedicatedHostName() const; + void setDedicatedHostName(const std::string &dedicatedHostName); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getDedicatedHostId() const; + void setDedicatedHostId(const std::string &dedicatedHostId); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getNetworkAttributesSlbUdpTimeout() const; + void setNetworkAttributesSlbUdpTimeout(int networkAttributesSlbUdpTimeout); + std::string getAutoPlacement() const; + void setAutoPlacement(const std::string &autoPlacement); + int getNetworkAttributesUdpTimeout() const; + void setNetworkAttributesUdpTimeout(int networkAttributesUdpTimeout); + +private: + long resourceOwnerId_; + std::string description_; + float cpuOverCommitRatio_; + std::string regionId_; + std::string actionOnMaintenance_; + std::string dedicatedHostClusterId_; + std::string dedicatedHostName_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string dedicatedHostId_; + long ownerId_; + int networkAttributesSlbUdpTimeout_; + std::string autoPlacement_; + int networkAttributesUdpTimeout_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTATTRIBUTEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostAutoReleaseTimeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostAutoReleaseTimeRequest.h index 5fe4e4f04..9d4b84826 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostAutoReleaseTimeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostAutoReleaseTimeRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTAUTORELEASETIMEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTAUTORELEASETIMEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyDedicatedHostAutoReleaseTimeRequest : public RpcServiceRequest - { - - public: - ModifyDedicatedHostAutoReleaseTimeRequest(); - ~ModifyDedicatedHostAutoReleaseTimeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getAutoReleaseTime()const; - void setAutoReleaseTime(const std::string& autoReleaseTime); - std::string getDedicatedHostId()const; - void setDedicatedHostId(const std::string& dedicatedHostId); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string autoReleaseTime_; - std::string dedicatedHostId_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTAUTORELEASETIMEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTAUTORELEASETIMEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTAUTORELEASETIMEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyDedicatedHostAutoReleaseTimeRequest : public RpcServiceRequest { +public: + ModifyDedicatedHostAutoReleaseTimeRequest(); + ~ModifyDedicatedHostAutoReleaseTimeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getAutoReleaseTime() const; + void setAutoReleaseTime(const std::string &autoReleaseTime); + std::string getDedicatedHostId() const; + void setDedicatedHostId(const std::string &dedicatedHostId); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string autoReleaseTime_; + std::string dedicatedHostId_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTAUTORELEASETIMEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostAutoRenewAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostAutoRenewAttributeRequest.h index c935371af..71fc1ebe5 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostAutoRenewAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostAutoRenewAttributeRequest.h @@ -1,78 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTAUTORENEWATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTAUTORENEWATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyDedicatedHostAutoRenewAttributeRequest : public RpcServiceRequest - { - - public: - ModifyDedicatedHostAutoRenewAttributeRequest(); - ~ModifyDedicatedHostAutoRenewAttributeRequest(); - - std::string getDedicatedHostIds()const; - void setDedicatedHostIds(const std::string& dedicatedHostIds); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getDuration()const; - void setDuration(int duration); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getRenewalStatus()const; - void setRenewalStatus(const std::string& renewalStatus); - std::string getAutoRenewWithEcs()const; - void setAutoRenewWithEcs(const std::string& autoRenewWithEcs); - std::string getResourceOwnerAccount()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 getPeriodUnit()const; - void setPeriodUnit(const std::string& periodUnit); - bool getAutoRenew()const; - void setAutoRenew(bool autoRenew); - - private: - std::string dedicatedHostIds_; - long resourceOwnerId_; - int duration_; - std::string regionId_; - std::string renewalStatus_; - std::string autoRenewWithEcs_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string periodUnit_; - bool autoRenew_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTAUTORENEWATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTAUTORENEWATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTAUTORENEWATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyDedicatedHostAutoRenewAttributeRequest : public RpcServiceRequest { +public: + ModifyDedicatedHostAutoRenewAttributeRequest(); + ~ModifyDedicatedHostAutoRenewAttributeRequest(); + std::string getDedicatedHostIds() const; + void setDedicatedHostIds(const std::string &dedicatedHostIds); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getDuration() const; + void setDuration(int duration); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getRenewalStatus() const; + void setRenewalStatus(const std::string &renewalStatus); + std::string getAutoRenewWithEcs() const; + void setAutoRenewWithEcs(const std::string &autoRenewWithEcs); + std::string getResourceOwnerAccount() 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 getPeriodUnit() const; + void setPeriodUnit(const std::string &periodUnit); + bool getAutoRenew() const; + void setAutoRenew(bool autoRenew); + +private: + std::string dedicatedHostIds_; + long resourceOwnerId_; + int duration_; + std::string regionId_; + std::string renewalStatus_; + std::string autoRenewWithEcs_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string periodUnit_; + bool autoRenew_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTAUTORENEWATTRIBUTEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostClusterAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostClusterAttributeRequest.h index 6e0e819b1..225c6744c 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostClusterAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostClusterAttributeRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTCLUSTERATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTCLUSTERATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyDedicatedHostClusterAttributeRequest : public RpcServiceRequest - { - - public: - ModifyDedicatedHostClusterAttributeRequest(); - ~ModifyDedicatedHostClusterAttributeRequest(); - - std::string getDedicatedHostClusterName()const; - void setDedicatedHostClusterName(const std::string& dedicatedHostClusterName); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getDedicatedHostClusterId()const; - void setDedicatedHostClusterId(const std::string& dedicatedHostClusterId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - std::string dedicatedHostClusterName_; - long resourceOwnerId_; - std::string description_; - std::string regionId_; - std::string dedicatedHostClusterId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTCLUSTERATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTCLUSTERATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTCLUSTERATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyDedicatedHostClusterAttributeRequest : public RpcServiceRequest { +public: + ModifyDedicatedHostClusterAttributeRequest(); + ~ModifyDedicatedHostClusterAttributeRequest(); + std::string getDedicatedHostClusterName() const; + void setDedicatedHostClusterName(const std::string &dedicatedHostClusterName); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDedicatedHostClusterId() const; + void setDedicatedHostClusterId(const std::string &dedicatedHostClusterId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::string dedicatedHostClusterName_; + long resourceOwnerId_; + std::string description_; + std::string regionId_; + std::string dedicatedHostClusterId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTCLUSTERATTRIBUTEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostsChargeTypeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostsChargeTypeRequest.h index b72da4fd0..0530b8385 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostsChargeTypeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostsChargeTypeRequest.h @@ -1,84 +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_ECS_MODEL_MODIFYDEDICATEDHOSTSCHARGETYPEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTSCHARGETYPEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyDedicatedHostsChargeTypeRequest : public RpcServiceRequest - { - - public: - ModifyDedicatedHostsChargeTypeRequest(); - ~ModifyDedicatedHostsChargeTypeRequest(); - - std::string getDedicatedHostIds()const; - void setDedicatedHostIds(const std::string& dedicatedHostIds); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getDedicatedHostChargeType()const; - void setDedicatedHostChargeType(const std::string& dedicatedHostChargeType); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPeriod()const; - void setPeriod(int period); - bool getDryRun()const; - void setDryRun(bool dryRun); - bool getAutoPay()const; - void setAutoPay(bool autoPay); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - bool getDetailFee()const; - void setDetailFee(bool detailFee); - std::string getPeriodUnit()const; - void setPeriodUnit(const std::string& periodUnit); - - private: - std::string dedicatedHostIds_; - long resourceOwnerId_; - std::string clientToken_; - std::string dedicatedHostChargeType_; - std::string regionId_; - int period_; - bool dryRun_; - bool autoPay_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - bool detailFee_; - std::string periodUnit_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTSCHARGETYPEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTSCHARGETYPEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTSCHARGETYPEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyDedicatedHostsChargeTypeRequest : public RpcServiceRequest { +public: + ModifyDedicatedHostsChargeTypeRequest(); + ~ModifyDedicatedHostsChargeTypeRequest(); + std::string getDedicatedHostIds() const; + void setDedicatedHostIds(const std::string &dedicatedHostIds); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDedicatedHostChargeType() const; + void setDedicatedHostChargeType(const std::string &dedicatedHostChargeType); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPeriod() const; + void setPeriod(int period); + bool getDryRun() const; + void setDryRun(bool dryRun); + bool getAutoPay() const; + void setAutoPay(bool autoPay); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + bool getDetailFee() const; + void setDetailFee(bool detailFee); + std::string getPeriodUnit() const; + void setPeriodUnit(const std::string &periodUnit); + +private: + std::string dedicatedHostIds_; + long resourceOwnerId_; + std::string clientToken_; + std::string dedicatedHostChargeType_; + std::string regionId_; + int period_; + bool dryRun_; + bool autoPay_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + bool detailFee_; + std::string periodUnit_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDEDICATEDHOSTSCHARGETYPEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostsChargeTypeResult.h b/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostsChargeTypeResult.h index 66540fbe3..e787e1159 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostsChargeTypeResult.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyDedicatedHostsChargeTypeResult.h @@ -35,8 +35,8 @@ namespace AlibabaCloud struct FeeOfInstance { std::string instanceId; - std::string fee; std::string currency; + std::string fee; }; diff --git a/ecs/include/alibabacloud/ecs/model/ModifyDemandRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyDemandRequest.h index e23b991ec..a93847362 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyDemandRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyDemandRequest.h @@ -1,96 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDEMANDREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYDEMANDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyDemandRequest : public RpcServiceRequest - { - - public: - ModifyDemandRequest(); - ~ModifyDemandRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getDemandDescription()const; - void setDemandDescription(const std::string& demandDescription); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getInstanceType()const; - void setInstanceType(const std::string& instanceType); - std::string getInstanceChargeType()const; - void setInstanceChargeType(const std::string& instanceChargeType); - std::string getDemandName()const; - void setDemandName(const std::string& demandName); - int getAmount()const; - void setAmount(int amount); - int getPeriod()const; - void setPeriod(int period); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPeriodUnit()const; - void setPeriodUnit(const std::string& periodUnit); - std::string getDemandId()const; - void setDemandId(const std::string& demandId); - std::string getZoneId()const; - void setZoneId(const std::string& zoneId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string startTime_; - std::string demandDescription_; - std::string regionId_; - std::string instanceType_; - std::string instanceChargeType_; - std::string demandName_; - int amount_; - int period_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string endTime_; - long ownerId_; - std::string periodUnit_; - std::string demandId_; - std::string zoneId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDEMANDREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDEMANDREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYDEMANDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyDemandRequest : public RpcServiceRequest { +public: + ModifyDemandRequest(); + ~ModifyDemandRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getDemandDescription() const; + void setDemandDescription(const std::string &demandDescription); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + std::string getInstanceChargeType() const; + void setInstanceChargeType(const std::string &instanceChargeType); + std::string getDemandName() const; + void setDemandName(const std::string &demandName); + int getAmount() const; + void setAmount(int amount); + int getPeriod() const; + void setPeriod(int period); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPeriodUnit() const; + void setPeriodUnit(const std::string &periodUnit); + std::string getDemandId() const; + void setDemandId(const std::string &demandId); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string startTime_; + std::string demandDescription_; + std::string regionId_; + std::string instanceType_; + std::string instanceChargeType_; + std::string demandName_; + int amount_; + int period_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string endTime_; + long ownerId_; + std::string periodUnit_; + std::string demandId_; + std::string zoneId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDEMANDREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyDeploymentSetAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyDeploymentSetAttributeRequest.h index b918249fd..5f845f08b 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyDeploymentSetAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyDeploymentSetAttributeRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDEPLOYMENTSETATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYDEPLOYMENTSETATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyDeploymentSetAttributeRequest : public RpcServiceRequest - { - - public: - ModifyDeploymentSetAttributeRequest(); - ~ModifyDeploymentSetAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getDeploymentSetId()const; - void setDeploymentSetId(const std::string& deploymentSetId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getDeploymentSetName()const; - void setDeploymentSetName(const std::string& deploymentSetName); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string description_; - std::string regionId_; - std::string deploymentSetId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string deploymentSetName_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDEPLOYMENTSETATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDEPLOYMENTSETATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYDEPLOYMENTSETATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyDeploymentSetAttributeRequest : public RpcServiceRequest { +public: + ModifyDeploymentSetAttributeRequest(); + ~ModifyDeploymentSetAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDeploymentSetId() const; + void setDeploymentSetId(const std::string &deploymentSetId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getDeploymentSetName() const; + void setDeploymentSetName(const std::string &deploymentSetName); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string description_; + std::string regionId_; + std::string deploymentSetId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string deploymentSetName_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDEPLOYMENTSETATTRIBUTEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyDiskAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyDiskAttributeRequest.h index 11f44f4c8..ee649046d 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyDiskAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyDiskAttributeRequest.h @@ -1,81 +1,75 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDISKATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYDISKATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyDiskAttributeRequest : public RpcServiceRequest - { - - public: - ModifyDiskAttributeRequest(); - ~ModifyDiskAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getDiskName()const; - void setDiskName(const std::string& diskName); - bool getDeleteAutoSnapshot()const; - void setDeleteAutoSnapshot(bool deleteAutoSnapshot); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::vector getDiskIds()const; - void setDiskIds(const std::vector& diskIds); - std::string getDiskId()const; - void setDiskId(const std::string& diskId); - bool getDeleteWithInstance()const; - void setDeleteWithInstance(bool deleteWithInstance); - bool getEnableAutoSnapshot()const; - void setEnableAutoSnapshot(bool enableAutoSnapshot); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string description_; - std::string diskName_; - bool deleteAutoSnapshot_; - std::string regionId_; - std::vector diskIds_; - std::string diskId_; - bool deleteWithInstance_; - bool enableAutoSnapshot_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDISKATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDISKATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYDISKATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyDiskAttributeRequest : public RpcServiceRequest { +public: + ModifyDiskAttributeRequest(); + ~ModifyDiskAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getDiskName() const; + void setDiskName(const std::string &diskName); + bool getDeleteAutoSnapshot() const; + void setDeleteAutoSnapshot(bool deleteAutoSnapshot); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getDiskIds() const; + void setDiskIds(const std::vector &diskIds); + std::string getDiskId() const; + void setDiskId(const std::string &diskId); + bool getDeleteWithInstance() const; + void setDeleteWithInstance(bool deleteWithInstance); + bool getEnableAutoSnapshot() const; + void setEnableAutoSnapshot(bool enableAutoSnapshot); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string description_; + std::string diskName_; + bool deleteAutoSnapshot_; + std::string regionId_; + std::vector diskIds_; + std::string diskId_; + bool deleteWithInstance_; + bool enableAutoSnapshot_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDISKATTRIBUTEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyDiskChargeTypeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyDiskChargeTypeRequest.h index 32b47ded9..106bed942 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyDiskChargeTypeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyDiskChargeTypeRequest.h @@ -1,75 +1,69 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDISKCHARGETYPEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYDISKCHARGETYPEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyDiskChargeTypeRequest : public RpcServiceRequest - { - - public: - ModifyDiskChargeTypeRequest(); - ~ModifyDiskChargeTypeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getDiskChargeType()const; - void setDiskChargeType(const std::string& diskChargeType); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getDiskIds()const; - void setDiskIds(const std::string& diskIds); - bool getAutoPay()const; - void setAutoPay(bool autoPay); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string diskChargeType_; - std::string regionId_; - std::string diskIds_; - bool autoPay_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDISKCHARGETYPEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDISKCHARGETYPEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYDISKCHARGETYPEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyDiskChargeTypeRequest : public RpcServiceRequest { +public: + ModifyDiskChargeTypeRequest(); + ~ModifyDiskChargeTypeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDiskChargeType() const; + void setDiskChargeType(const std::string &diskChargeType); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDiskIds() const; + void setDiskIds(const std::string &diskIds); + bool getAutoPay() const; + void setAutoPay(bool autoPay); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string diskChargeType_; + std::string regionId_; + std::string diskIds_; + bool autoPay_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDISKCHARGETYPEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyDiskSpecRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyDiskSpecRequest.h index e34b5fee0..e55c017fc 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyDiskSpecRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyDiskSpecRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDISKSPECREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYDISKSPECREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyDiskSpecRequest : public RpcServiceRequest - { - - public: - ModifyDiskSpecRequest(); - ~ModifyDiskSpecRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDiskCategory()const; - void setDiskCategory(const std::string& diskCategory); - std::string getDiskId()const; - void setDiskId(const std::string& diskId); - bool getDryRun()const; - void setDryRun(bool dryRun); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getPerformanceLevel()const; - void setPerformanceLevel(const std::string& performanceLevel); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string diskCategory_; - std::string diskId_; - bool dryRun_; - std::string resourceOwnerAccount_; - std::string performanceLevel_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDISKSPECREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYDISKSPECREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYDISKSPECREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyDiskSpecRequest : public RpcServiceRequest { +public: + ModifyDiskSpecRequest(); + ~ModifyDiskSpecRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDiskCategory() const; + void setDiskCategory(const std::string &diskCategory); + std::string getDiskId() const; + void setDiskId(const std::string &diskId); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getPerformanceLevel() const; + void setPerformanceLevel(const std::string &performanceLevel); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string diskCategory_; + std::string diskId_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string performanceLevel_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYDISKSPECREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyEipAddressAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyEipAddressAttributeRequest.h index cababf8ae..f41b9a837 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyEipAddressAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyEipAddressAttributeRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYEIPADDRESSATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYEIPADDRESSATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyEipAddressAttributeRequest : public RpcServiceRequest - { - - public: - ModifyEipAddressAttributeRequest(); - ~ModifyEipAddressAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAllocationId()const; - void setAllocationId(const std::string& allocationId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getBandwidth()const; - void setBandwidth(const std::string& bandwidth); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string allocationId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string bandwidth_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYEIPADDRESSATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYEIPADDRESSATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYEIPADDRESSATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyEipAddressAttributeRequest : public RpcServiceRequest { +public: + ModifyEipAddressAttributeRequest(); + ~ModifyEipAddressAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAllocationId() const; + void setAllocationId(const std::string &allocationId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getBandwidth() const; + void setBandwidth(const std::string &bandwidth); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string allocationId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string bandwidth_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYEIPADDRESSATTRIBUTEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyElasticityAssuranceRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyElasticityAssuranceRequest.h index 9d035f70e..224275c81 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyElasticityAssuranceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyElasticityAssuranceRequest.h @@ -1,72 +1,66 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYELASTICITYASSURANCEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYELASTICITYASSURANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyElasticityAssuranceRequest : public RpcServiceRequest - { - - public: - ModifyElasticityAssuranceRequest(); - ~ModifyElasticityAssuranceRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getPrivatePoolOptionsId()const; - void setPrivatePoolOptionsId(const std::string& privatePoolOptionsId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getPrivatePoolOptionsName()const; - void setPrivatePoolOptionsName(const std::string& privatePoolOptionsName); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPackageType()const; - void setPackageType(const std::string& packageType); - - private: - long resourceOwnerId_; - std::string description_; - std::string regionId_; - std::string privatePoolOptionsId_; - std::string resourceOwnerAccount_; - std::string privatePoolOptionsName_; - std::string ownerAccount_; - long ownerId_; - std::string packageType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYELASTICITYASSURANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYELASTICITYASSURANCEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYELASTICITYASSURANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyElasticityAssuranceRequest : public RpcServiceRequest { +public: + ModifyElasticityAssuranceRequest(); + ~ModifyElasticityAssuranceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getPrivatePoolOptionsId() const; + void setPrivatePoolOptionsId(const std::string &privatePoolOptionsId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getPrivatePoolOptionsName() const; + void setPrivatePoolOptionsName(const std::string &privatePoolOptionsName); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPackageType() const; + void setPackageType(const std::string &packageType); + +private: + long resourceOwnerId_; + std::string description_; + std::string regionId_; + std::string privatePoolOptionsId_; + std::string resourceOwnerAccount_; + std::string privatePoolOptionsName_; + std::string ownerAccount_; + long ownerId_; + std::string packageType_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYELASTICITYASSURANCEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyForwardEntryRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyForwardEntryRequest.h index 94f33201a..aebf69517 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyForwardEntryRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyForwardEntryRequest.h @@ -1,81 +1,75 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYFORWARDENTRYREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYFORWARDENTRYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyForwardEntryRequest : public RpcServiceRequest - { - - public: - ModifyForwardEntryRequest(); - ~ModifyForwardEntryRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getForwardTableId()const; - void setForwardTableId(const std::string& forwardTableId); - std::string getInternalIp()const; - void setInternalIp(const std::string& internalIp); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getForwardEntryId()const; - void setForwardEntryId(const std::string& forwardEntryId); - std::string getExternalIp()const; - void setExternalIp(const std::string& externalIp); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getIpProtocol()const; - void setIpProtocol(const std::string& ipProtocol); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInternalPort()const; - void setInternalPort(const std::string& internalPort); - std::string getExternalPort()const; - void setExternalPort(const std::string& externalPort); - - private: - long resourceOwnerId_; - std::string forwardTableId_; - std::string internalIp_; - std::string regionId_; - std::string forwardEntryId_; - std::string externalIp_; - std::string resourceOwnerAccount_; - std::string ipProtocol_; - std::string ownerAccount_; - long ownerId_; - std::string internalPort_; - std::string externalPort_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYFORWARDENTRYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYFORWARDENTRYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYFORWARDENTRYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyForwardEntryRequest : public RpcServiceRequest { +public: + ModifyForwardEntryRequest(); + ~ModifyForwardEntryRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getForwardTableId() const; + void setForwardTableId(const std::string &forwardTableId); + std::string getInternalIp() const; + void setInternalIp(const std::string &internalIp); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getForwardEntryId() const; + void setForwardEntryId(const std::string &forwardEntryId); + std::string getExternalIp() const; + void setExternalIp(const std::string &externalIp); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getIpProtocol() const; + void setIpProtocol(const std::string &ipProtocol); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInternalPort() const; + void setInternalPort(const std::string &internalPort); + std::string getExternalPort() const; + void setExternalPort(const std::string &externalPort); + +private: + long resourceOwnerId_; + std::string forwardTableId_; + std::string internalIp_; + std::string regionId_; + std::string forwardEntryId_; + std::string externalIp_; + std::string resourceOwnerAccount_; + std::string ipProtocol_; + std::string ownerAccount_; + long ownerId_; + std::string internalPort_; + std::string externalPort_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYFORWARDENTRYREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyHaVipAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyHaVipAttributeRequest.h index 166d1cb7e..5f8dfa31a 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyHaVipAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyHaVipAttributeRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYHAVIPATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYHAVIPATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyHaVipAttributeRequest : public RpcServiceRequest - { - - public: - ModifyHaVipAttributeRequest(); - ~ModifyHaVipAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getHaVipId()const; - void setHaVipId(const std::string& haVipId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string description_; - std::string regionId_; - std::string haVipId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYHAVIPATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYHAVIPATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYHAVIPATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyHaVipAttributeRequest : public RpcServiceRequest { +public: + ModifyHaVipAttributeRequest(); + ~ModifyHaVipAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getHaVipId() const; + void setHaVipId(const std::string &haVipId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string description_; + std::string regionId_; + std::string haVipId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYHAVIPATTRIBUTEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyHpcClusterAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyHpcClusterAttributeRequest.h index 05035de7b..03b3a8075 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyHpcClusterAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyHpcClusterAttributeRequest.h @@ -1,72 +1,66 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYHPCCLUSTERATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYHPCCLUSTERATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyHpcClusterAttributeRequest : public RpcServiceRequest - { - - public: - ModifyHpcClusterAttributeRequest(); - ~ModifyHpcClusterAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getHpcClusterId()const; - void setHpcClusterId(const std::string& hpcClusterId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string hpcClusterId_; - std::string clientToken_; - std::string description_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYHPCCLUSTERATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYHPCCLUSTERATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYHPCCLUSTERATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyHpcClusterAttributeRequest : public RpcServiceRequest { +public: + ModifyHpcClusterAttributeRequest(); + ~ModifyHpcClusterAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getHpcClusterId() const; + void setHpcClusterId(const std::string &hpcClusterId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string hpcClusterId_; + std::string clientToken_; + std::string description_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string name_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYHPCCLUSTERATTRIBUTEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyImageAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyImageAttributeRequest.h index cca8a9490..01cb346b8 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyImageAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyImageAttributeRequest.h @@ -1,81 +1,75 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYIMAGEATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYIMAGEATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyImageAttributeRequest : public RpcServiceRequest - { - - public: - ModifyImageAttributeRequest(); - ~ModifyImageAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getImageId()const; - void setImageId(const std::string& imageId); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getBootMode()const; - void setBootMode(const std::string& bootMode); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getImageName()const; - void setImageName(const std::string& imageName); - std::string getLicenseType()const; - void setLicenseType(const std::string& licenseType); - std::string getResourceOwnerAccount()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 getImageFamily()const; - void setImageFamily(const std::string& imageFamily); - std::string getStatus()const; - void setStatus(const std::string& status); - - private: - long resourceOwnerId_; - std::string imageId_; - std::string description_; - std::string bootMode_; - std::string regionId_; - std::string imageName_; - std::string licenseType_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string imageFamily_; - std::string status_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYIMAGEATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYIMAGEATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYIMAGEATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyImageAttributeRequest : public RpcServiceRequest { +public: + ModifyImageAttributeRequest(); + ~ModifyImageAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getImageId() const; + void setImageId(const std::string &imageId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getBootMode() const; + void setBootMode(const std::string &bootMode); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getImageName() const; + void setImageName(const std::string &imageName); + std::string getLicenseType() const; + void setLicenseType(const std::string &licenseType); + std::string getResourceOwnerAccount() 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 getImageFamily() const; + void setImageFamily(const std::string &imageFamily); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + long resourceOwnerId_; + std::string imageId_; + std::string description_; + std::string bootMode_; + std::string regionId_; + std::string imageName_; + std::string licenseType_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string imageFamily_; + std::string status_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYIMAGEATTRIBUTEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyImageShareGroupPermissionRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyImageShareGroupPermissionRequest.h index 1bae15b57..ae2124908 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyImageShareGroupPermissionRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyImageShareGroupPermissionRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYIMAGESHAREGROUPPERMISSIONREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYIMAGESHAREGROUPPERMISSIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyImageShareGroupPermissionRequest : public RpcServiceRequest - { - - public: - ModifyImageShareGroupPermissionRequest(); - ~ModifyImageShareGroupPermissionRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getImageId()const; - void setImageId(const std::string& imageId); - std::string getAddGroup1()const; - void setAddGroup1(const std::string& addGroup1); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getRemoveGroup1()const; - void setRemoveGroup1(const std::string& removeGroup1); - - private: - long resourceOwnerId_; - std::string imageId_; - std::string addGroup1_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string removeGroup1_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYIMAGESHAREGROUPPERMISSIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYIMAGESHAREGROUPPERMISSIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYIMAGESHAREGROUPPERMISSIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyImageShareGroupPermissionRequest : public RpcServiceRequest { +public: + ModifyImageShareGroupPermissionRequest(); + ~ModifyImageShareGroupPermissionRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getImageId() const; + void setImageId(const std::string &imageId); + std::string getAddGroup1() const; + void setAddGroup1(const std::string &addGroup1); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getRemoveGroup1() const; + void setRemoveGroup1(const std::string &removeGroup1); + +private: + long resourceOwnerId_; + std::string imageId_; + std::string addGroup1_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string removeGroup1_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYIMAGESHAREGROUPPERMISSIONREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyImageSharePermissionRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyImageSharePermissionRequest.h index 4001c5d02..b71420b17 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyImageSharePermissionRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyImageSharePermissionRequest.h @@ -1,75 +1,69 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYIMAGESHAREPERMISSIONREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYIMAGESHAREPERMISSIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyImageSharePermissionRequest : public RpcServiceRequest - { - - public: - ModifyImageSharePermissionRequest(); - ~ModifyImageSharePermissionRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getImageId()const; - void setImageId(const std::string& imageId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - bool getIsPublic()const; - void setIsPublic(bool isPublic); - std::string getLaunchPermission()const; - void setLaunchPermission(const std::string& launchPermission); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::vector getAddAccount()const; - void setAddAccount(const std::vector& addAccount); - std::vector getRemoveAccount()const; - void setRemoveAccount(const std::vector& removeAccount); - - private: - long resourceOwnerId_; - std::string imageId_; - std::string regionId_; - bool isPublic_; - std::string launchPermission_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::vector addAccount_; - std::vector removeAccount_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYIMAGESHAREPERMISSIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYIMAGESHAREPERMISSIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYIMAGESHAREPERMISSIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyImageSharePermissionRequest : public RpcServiceRequest { +public: + ModifyImageSharePermissionRequest(); + ~ModifyImageSharePermissionRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getImageId() const; + void setImageId(const std::string &imageId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getIsPublic() const; + void setIsPublic(bool isPublic); + std::string getLaunchPermission() const; + void setLaunchPermission(const std::string &launchPermission); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getAddAccount() const; + void setAddAccount(const std::vector &addAccount); + std::vector getRemoveAccount() const; + void setRemoveAccount(const std::vector &removeAccount); + +private: + long resourceOwnerId_; + std::string imageId_; + std::string regionId_; + bool isPublic_; + std::string launchPermission_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::vector addAccount_; + std::vector removeAccount_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYIMAGESHAREPERMISSIONREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceAttachmentAttributesRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceAttachmentAttributesRequest.h index a714e8aa9..50667fc7f 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyInstanceAttachmentAttributesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceAttachmentAttributesRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEATTACHMENTATTRIBUTESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEATTACHMENTATTRIBUTESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyInstanceAttachmentAttributesRequest : public RpcServiceRequest - { - - public: - ModifyInstanceAttachmentAttributesRequest(); - ~ModifyInstanceAttachmentAttributesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getPrivatePoolOptionsMatchCriteria()const; - void setPrivatePoolOptionsMatchCriteria(const std::string& privatePoolOptionsMatchCriteria); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getPrivatePoolOptionsId()const; - void setPrivatePoolOptionsId(const std::string& privatePoolOptionsId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - long resourceOwnerId_; - std::string privatePoolOptionsMatchCriteria_; - std::string regionId_; - std::string privatePoolOptionsId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEATTACHMENTATTRIBUTESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEATTACHMENTATTRIBUTESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEATTACHMENTATTRIBUTESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyInstanceAttachmentAttributesRequest : public RpcServiceRequest { +public: + ModifyInstanceAttachmentAttributesRequest(); + ~ModifyInstanceAttachmentAttributesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPrivatePoolOptionsMatchCriteria() const; + void setPrivatePoolOptionsMatchCriteria(const std::string &privatePoolOptionsMatchCriteria); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getPrivatePoolOptionsId() const; + void setPrivatePoolOptionsId(const std::string &privatePoolOptionsId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + long resourceOwnerId_; + std::string privatePoolOptionsMatchCriteria_; + std::string regionId_; + std::string privatePoolOptionsId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEATTACHMENTATTRIBUTESREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceAttributeRequest.h index 9f3afa29d..67fd50fa3 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyInstanceAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceAttributeRequest.h @@ -1,90 +1,84 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyInstanceAttributeRequest : public RpcServiceRequest - { - - public: - ModifyInstanceAttributeRequest(); - ~ModifyInstanceAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - bool getRecyclable()const; - void setRecyclable(bool recyclable); - int getNetworkInterfaceQueueNumber()const; - void setNetworkInterfaceQueueNumber(int networkInterfaceQueueNumber); - std::string getDescription()const; - void setDescription(const std::string& description); - bool getDeletionProtection()const; - void setDeletionProtection(bool deletionProtection); - std::string getUserData()const; - void setUserData(const std::string& userData); - std::string getPassword()const; - void setPassword(const std::string& password); - std::string getHostName()const; - void setHostName(const std::string& hostName); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getCreditSpecification()const; - void setCreditSpecification(const std::string& creditSpecification); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::vector getSecurityGroupIds()const; - void setSecurityGroupIds(const std::vector& securityGroupIds); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getInstanceName()const; - void setInstanceName(const std::string& instanceName); - - private: - long resourceOwnerId_; - bool recyclable_; - int networkInterfaceQueueNumber_; - std::string description_; - bool deletionProtection_; - std::string userData_; - std::string password_; - std::string hostName_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string creditSpecification_; - long ownerId_; - std::vector securityGroupIds_; - std::string instanceId_; - std::string instanceName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyInstanceAttributeRequest : public RpcServiceRequest { +public: + ModifyInstanceAttributeRequest(); + ~ModifyInstanceAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + bool getRecyclable() const; + void setRecyclable(bool recyclable); + int getNetworkInterfaceQueueNumber() const; + void setNetworkInterfaceQueueNumber(int networkInterfaceQueueNumber); + std::string getDescription() const; + void setDescription(const std::string &description); + bool getDeletionProtection() const; + void setDeletionProtection(bool deletionProtection); + std::string getUserData() const; + void setUserData(const std::string &userData); + std::string getPassword() const; + void setPassword(const std::string &password); + std::string getHostName() const; + void setHostName(const std::string &hostName); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getCreditSpecification() const; + void setCreditSpecification(const std::string &creditSpecification); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getSecurityGroupIds() const; + void setSecurityGroupIds(const std::vector &securityGroupIds); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getInstanceName() const; + void setInstanceName(const std::string &instanceName); + +private: + long resourceOwnerId_; + bool recyclable_; + int networkInterfaceQueueNumber_; + std::string description_; + bool deletionProtection_; + std::string userData_; + std::string password_; + std::string hostName_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string creditSpecification_; + long ownerId_; + std::vector securityGroupIds_; + std::string instanceId_; + std::string instanceName_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEATTRIBUTEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceAutoReleaseTimeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceAutoReleaseTimeRequest.h index 5770a6b77..94e09da1d 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyInstanceAutoReleaseTimeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceAutoReleaseTimeRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEAUTORELEASETIMEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEAUTORELEASETIMEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyInstanceAutoReleaseTimeRequest : public RpcServiceRequest - { - - public: - ModifyInstanceAutoReleaseTimeRequest(); - ~ModifyInstanceAutoReleaseTimeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getAutoReleaseTime()const; - void setAutoReleaseTime(const std::string& autoReleaseTime); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string autoReleaseTime_; - long ownerId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEAUTORELEASETIMEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEAUTORELEASETIMEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEAUTORELEASETIMEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyInstanceAutoReleaseTimeRequest : public RpcServiceRequest { +public: + ModifyInstanceAutoReleaseTimeRequest(); + ~ModifyInstanceAutoReleaseTimeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getAutoReleaseTime() const; + void setAutoReleaseTime(const std::string &autoReleaseTime); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string autoReleaseTime_; + long ownerId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEAUTORELEASETIMEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceAutoRenewAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceAutoRenewAttributeRequest.h index 692315c2e..08f927da6 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyInstanceAutoRenewAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceAutoRenewAttributeRequest.h @@ -1,75 +1,69 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEAUTORENEWATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEAUTORENEWATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyInstanceAutoRenewAttributeRequest : public RpcServiceRequest - { - - public: - ModifyInstanceAutoRenewAttributeRequest(); - ~ModifyInstanceAutoRenewAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getDuration()const; - void setDuration(int duration); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getRenewalStatus()const; - void setRenewalStatus(const std::string& renewalStatus); - std::string getResourceOwnerAccount()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 getPeriodUnit()const; - void setPeriodUnit(const std::string& periodUnit); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - bool getAutoRenew()const; - void setAutoRenew(bool autoRenew); - - private: - long resourceOwnerId_; - int duration_; - std::string regionId_; - std::string renewalStatus_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string periodUnit_; - std::string instanceId_; - bool autoRenew_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEAUTORENEWATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEAUTORENEWATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEAUTORENEWATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyInstanceAutoRenewAttributeRequest : public RpcServiceRequest { +public: + ModifyInstanceAutoRenewAttributeRequest(); + ~ModifyInstanceAutoRenewAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getDuration() const; + void setDuration(int duration); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getRenewalStatus() const; + void setRenewalStatus(const std::string &renewalStatus); + std::string getResourceOwnerAccount() 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 getPeriodUnit() const; + void setPeriodUnit(const std::string &periodUnit); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + bool getAutoRenew() const; + void setAutoRenew(bool autoRenew); + +private: + long resourceOwnerId_; + int duration_; + std::string regionId_; + std::string renewalStatus_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string periodUnit_; + std::string instanceId_; + bool autoRenew_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEAUTORENEWATTRIBUTEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceChargeTypeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceChargeTypeRequest.h index 574aec215..711e20431 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyInstanceChargeTypeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceChargeTypeRequest.h @@ -1,87 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCECHARGETYPEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCECHARGETYPEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyInstanceChargeTypeRequest : public RpcServiceRequest - { - - public: - ModifyInstanceChargeTypeRequest(); - ~ModifyInstanceChargeTypeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - bool getIsDetailFee()const; - void setIsDetailFee(bool isDetailFee); - std::string getInstanceChargeType()const; - void setInstanceChargeType(const std::string& instanceChargeType); - int getPeriod()const; - void setPeriod(int period); - bool getDryRun()const; - void setDryRun(bool dryRun); - bool getAutoPay()const; - void setAutoPay(bool autoPay); - bool getIncludeDataDisks()const; - void setIncludeDataDisks(bool includeDataDisks); - std::string getResourceOwnerAccount()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 getPeriodUnit()const; - void setPeriodUnit(const std::string& periodUnit); - std::string getInstanceIds()const; - void setInstanceIds(const std::string& instanceIds); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - bool isDetailFee_; - std::string instanceChargeType_; - int period_; - bool dryRun_; - bool autoPay_; - bool includeDataDisks_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string periodUnit_; - std::string instanceIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCECHARGETYPEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCECHARGETYPEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCECHARGETYPEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyInstanceChargeTypeRequest : public RpcServiceRequest { +public: + ModifyInstanceChargeTypeRequest(); + ~ModifyInstanceChargeTypeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getIsDetailFee() const; + void setIsDetailFee(bool isDetailFee); + std::string getInstanceChargeType() const; + void setInstanceChargeType(const std::string &instanceChargeType); + int getPeriod() const; + void setPeriod(int period); + bool getDryRun() const; + void setDryRun(bool dryRun); + bool getAutoPay() const; + void setAutoPay(bool autoPay); + bool getIncludeDataDisks() const; + void setIncludeDataDisks(bool includeDataDisks); + std::string getResourceOwnerAccount() 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 getPeriodUnit() const; + void setPeriodUnit(const std::string &periodUnit); + std::string getInstanceIds() const; + void setInstanceIds(const std::string &instanceIds); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + bool isDetailFee_; + std::string instanceChargeType_; + int period_; + bool dryRun_; + bool autoPay_; + bool includeDataDisks_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string periodUnit_; + std::string instanceIds_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCECHARGETYPEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceDeploymentRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceDeploymentRequest.h index 23dbbfb61..e66574ed2 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyInstanceDeploymentRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceDeploymentRequest.h @@ -1,90 +1,84 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEDEPLOYMENTREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEDEPLOYMENTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyInstanceDeploymentRequest : public RpcServiceRequest - { - - public: - ModifyInstanceDeploymentRequest(); - ~ModifyInstanceDeploymentRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getDeploymentSetGroupNo()const; - void setDeploymentSetGroupNo(int deploymentSetGroupNo); - std::string getDedicatedHostClusterId()const; - void setDedicatedHostClusterId(const std::string& dedicatedHostClusterId); - std::string getInstanceType()const; - void setInstanceType(const std::string& instanceType); - std::string getDeploymentSetId()const; - void setDeploymentSetId(const std::string& deploymentSetId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getTenancy()const; - void setTenancy(const std::string& tenancy); - std::string getDedicatedHostId()const; - void setDedicatedHostId(const std::string& dedicatedHostId); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - bool getForce()const; - void setForce(bool force); - std::string getMigrationType()const; - void setMigrationType(const std::string& migrationType); - std::string getAffinity()const; - void setAffinity(const std::string& affinity); - - private: - long resourceOwnerId_; - std::string regionId_; - int deploymentSetGroupNo_; - std::string dedicatedHostClusterId_; - std::string instanceType_; - std::string deploymentSetId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string tenancy_; - std::string dedicatedHostId_; - long ownerId_; - std::string instanceId_; - bool force_; - std::string migrationType_; - std::string affinity_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEDEPLOYMENTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEDEPLOYMENTREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEDEPLOYMENTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyInstanceDeploymentRequest : public RpcServiceRequest { +public: + ModifyInstanceDeploymentRequest(); + ~ModifyInstanceDeploymentRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getDeploymentSetGroupNo() const; + void setDeploymentSetGroupNo(int deploymentSetGroupNo); + std::string getDedicatedHostClusterId() const; + void setDedicatedHostClusterId(const std::string &dedicatedHostClusterId); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + std::string getDeploymentSetId() const; + void setDeploymentSetId(const std::string &deploymentSetId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getTenancy() const; + void setTenancy(const std::string &tenancy); + std::string getDedicatedHostId() const; + void setDedicatedHostId(const std::string &dedicatedHostId); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + bool getForce() const; + void setForce(bool force); + std::string getMigrationType() const; + void setMigrationType(const std::string &migrationType); + std::string getAffinity() const; + void setAffinity(const std::string &affinity); + +private: + long resourceOwnerId_; + std::string regionId_; + int deploymentSetGroupNo_; + std::string dedicatedHostClusterId_; + std::string instanceType_; + std::string deploymentSetId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string tenancy_; + std::string dedicatedHostId_; + long ownerId_; + std::string instanceId_; + bool force_; + std::string migrationType_; + std::string affinity_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEDEPLOYMENTREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceMaintenanceAttributesRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceMaintenanceAttributesRequest.h index 1a291d1ac..1769d0d35 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyInstanceMaintenanceAttributesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceMaintenanceAttributesRequest.h @@ -1,78 +1,70 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEMAINTENANCEATTRIBUTESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEMAINTENANCEATTRIBUTESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyInstanceMaintenanceAttributesRequest : public RpcServiceRequest - { - public: - struct MaintenanceWindow - { - std::string startTime; - std::string endTime; - }; - - public: - ModifyInstanceMaintenanceAttributesRequest(); - ~ModifyInstanceMaintenanceAttributesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::vector getMaintenanceWindow()const; - void setMaintenanceWindow(const std::vector& maintenanceWindow); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getActionOnMaintenance()const; - void setActionOnMaintenance(const std::string& actionOnMaintenance); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::vector getInstanceId()const; - void setInstanceId(const std::vector& instanceId); - bool getNotifyOnMaintenance()const; - void setNotifyOnMaintenance(bool notifyOnMaintenance); - - private: - long resourceOwnerId_; - std::vector maintenanceWindow_; - std::string regionId_; - std::string actionOnMaintenance_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::vector instanceId_; - bool notifyOnMaintenance_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEMAINTENANCEATTRIBUTESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEMAINTENANCEATTRIBUTESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEMAINTENANCEATTRIBUTESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyInstanceMaintenanceAttributesRequest : public RpcServiceRequest { +public: + struct MaintenanceWindow { + std::string endTime; + std::string startTime; + }; + ModifyInstanceMaintenanceAttributesRequest(); + ~ModifyInstanceMaintenanceAttributesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::vector getMaintenanceWindow() const; + void setMaintenanceWindow(const std::vector &maintenanceWindow); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getActionOnMaintenance() const; + void setActionOnMaintenance(const std::string &actionOnMaintenance); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + bool getNotifyOnMaintenance() const; + void setNotifyOnMaintenance(bool notifyOnMaintenance); + std::vector getInstanceId() const; + void setInstanceId(const std::vector &instanceId); + +private: + long resourceOwnerId_; + std::vector maintenanceWindow_; + std::string regionId_; + std::string actionOnMaintenance_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + bool notifyOnMaintenance_; + std::vector instanceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEMAINTENANCEATTRIBUTESREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceMetadataOptionsRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceMetadataOptionsRequest.h index 94c69e366..f80adbb82 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyInstanceMetadataOptionsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceMetadataOptionsRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEMETADATAOPTIONSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEMETADATAOPTIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyInstanceMetadataOptionsRequest : public RpcServiceRequest - { - - public: - ModifyInstanceMetadataOptionsRequest(); - ~ModifyInstanceMetadataOptionsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - int getHttpPutResponseHopLimit()const; - void setHttpPutResponseHopLimit(int httpPutResponseHopLimit); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getHttpEndpoint()const; - void setHttpEndpoint(const std::string& httpEndpoint); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getHttpTokens()const; - void setHttpTokens(const std::string& httpTokens); - - private: - long resourceOwnerId_; - int httpPutResponseHopLimit_; - std::string regionId_; - std::string httpEndpoint_; - std::string resourceOwnerAccount_; - long ownerId_; - std::string instanceId_; - std::string httpTokens_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEMETADATAOPTIONSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEMETADATAOPTIONSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEMETADATAOPTIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyInstanceMetadataOptionsRequest : public RpcServiceRequest { +public: + ModifyInstanceMetadataOptionsRequest(); + ~ModifyInstanceMetadataOptionsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getHttpPutResponseHopLimit() const; + void setHttpPutResponseHopLimit(int httpPutResponseHopLimit); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getHttpEndpoint() const; + void setHttpEndpoint(const std::string &httpEndpoint); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getHttpTokens() const; + void setHttpTokens(const std::string &httpTokens); + +private: + long resourceOwnerId_; + int httpPutResponseHopLimit_; + std::string regionId_; + std::string httpEndpoint_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string instanceId_; + std::string httpTokens_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEMETADATAOPTIONSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceNetworkSpecRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceNetworkSpecRequest.h index 03c988dc6..bb9206d86 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyInstanceNetworkSpecRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceNetworkSpecRequest.h @@ -1,87 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCENETWORKSPECREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCENETWORKSPECREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyInstanceNetworkSpecRequest : public RpcServiceRequest - { - - public: - ModifyInstanceNetworkSpecRequest(); - ~ModifyInstanceNetworkSpecRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getISP()const; - void setISP(const std::string& iSP); - int getInternetMaxBandwidthOut()const; - void setInternetMaxBandwidthOut(int internetMaxBandwidthOut); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - bool getAutoPay()const; - void setAutoPay(bool autoPay); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getNetworkChargeType()const; - void setNetworkChargeType(const std::string& networkChargeType); - int getInternetMaxBandwidthIn()const; - void setInternetMaxBandwidthIn(int internetMaxBandwidthIn); - bool getAllocatePublicIp()const; - void setAllocatePublicIp(bool allocatePublicIp); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string iSP_; - int internetMaxBandwidthOut_; - std::string startTime_; - bool autoPay_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string endTime_; - long ownerId_; - std::string instanceId_; - std::string networkChargeType_; - int internetMaxBandwidthIn_; - bool allocatePublicIp_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCENETWORKSPECREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCENETWORKSPECREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCENETWORKSPECREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyInstanceNetworkSpecRequest : public RpcServiceRequest { +public: + ModifyInstanceNetworkSpecRequest(); + ~ModifyInstanceNetworkSpecRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getISP() const; + void setISP(const std::string &iSP); + int getInternetMaxBandwidthOut() const; + void setInternetMaxBandwidthOut(int internetMaxBandwidthOut); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + bool getAutoPay() const; + void setAutoPay(bool autoPay); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getNetworkChargeType() const; + void setNetworkChargeType(const std::string &networkChargeType); + int getInternetMaxBandwidthIn() const; + void setInternetMaxBandwidthIn(int internetMaxBandwidthIn); + bool getAllocatePublicIp() const; + void setAllocatePublicIp(bool allocatePublicIp); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string iSP_; + int internetMaxBandwidthOut_; + std::string startTime_; + bool autoPay_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string endTime_; + long ownerId_; + std::string instanceId_; + std::string networkChargeType_; + int internetMaxBandwidthIn_; + bool allocatePublicIp_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCENETWORKSPECREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceSpecRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceSpecRequest.h index 8b7404e76..eb63cec56 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyInstanceSpecRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceSpecRequest.h @@ -1,90 +1,84 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCESPECREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCESPECREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyInstanceSpecRequest : public RpcServiceRequest - { - - public: - ModifyInstanceSpecRequest(); - ~ModifyInstanceSpecRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - bool getAllowMigrateAcrossZone()const; - void setAllowMigrateAcrossZone(bool allowMigrateAcrossZone); - int getInternetMaxBandwidthOut()const; - void setInternetMaxBandwidthOut(int internetMaxBandwidthOut); - std::string getSystemDiskCategory()const; - void setSystemDiskCategory(const std::string& systemDiskCategory); - std::string getInstanceType()const; - void setInstanceType(const std::string& instanceType); - std::string getTemporaryEndTime()const; - void setTemporaryEndTime(const std::string& temporaryEndTime); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - int getTemporaryInternetMaxBandwidthOut()const; - void setTemporaryInternetMaxBandwidthOut(int temporaryInternetMaxBandwidthOut); - std::string getTemporaryStartTime()const; - void setTemporaryStartTime(const std::string& temporaryStartTime); - bool getAsync()const; - void setAsync(bool async); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - int getInternetMaxBandwidthIn()const; - void setInternetMaxBandwidthIn(int internetMaxBandwidthIn); - - private: - long resourceOwnerId_; - std::string clientToken_; - bool allowMigrateAcrossZone_; - int internetMaxBandwidthOut_; - std::string systemDiskCategory_; - std::string instanceType_; - std::string temporaryEndTime_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - int temporaryInternetMaxBandwidthOut_; - std::string temporaryStartTime_; - bool async_; - std::string instanceId_; - int internetMaxBandwidthIn_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCESPECREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCESPECREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCESPECREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyInstanceSpecRequest : public RpcServiceRequest { +public: + ModifyInstanceSpecRequest(); + ~ModifyInstanceSpecRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + bool getAllowMigrateAcrossZone() const; + void setAllowMigrateAcrossZone(bool allowMigrateAcrossZone); + int getInternetMaxBandwidthOut() const; + void setInternetMaxBandwidthOut(int internetMaxBandwidthOut); + std::string getSystemDiskCategory() const; + void setSystemDiskCategory(const std::string &systemDiskCategory); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + std::string getTemporaryEndTime() const; + void setTemporaryEndTime(const std::string &temporaryEndTime); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getTemporaryInternetMaxBandwidthOut() const; + void setTemporaryInternetMaxBandwidthOut(int temporaryInternetMaxBandwidthOut); + std::string getTemporaryStartTime() const; + void setTemporaryStartTime(const std::string &temporaryStartTime); + bool getAsync() const; + void setAsync(bool async); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + int getInternetMaxBandwidthIn() const; + void setInternetMaxBandwidthIn(int internetMaxBandwidthIn); + +private: + long resourceOwnerId_; + std::string clientToken_; + bool allowMigrateAcrossZone_; + int internetMaxBandwidthOut_; + std::string systemDiskCategory_; + std::string instanceType_; + std::string temporaryEndTime_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + int temporaryInternetMaxBandwidthOut_; + std::string temporaryStartTime_; + bool async_; + std::string instanceId_; + int internetMaxBandwidthIn_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCESPECREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceVncPasswdRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceVncPasswdRequest.h index a7a40ba1b..bbbd24e16 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyInstanceVncPasswdRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceVncPasswdRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEVNCPASSWDREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEVNCPASSWDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyInstanceVncPasswdRequest : public RpcServiceRequest - { - - public: - ModifyInstanceVncPasswdRequest(); - ~ModifyInstanceVncPasswdRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getVncPassword()const; - void setVncPassword(const std::string& vncPassword); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string instanceId_; - std::string vncPassword_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEVNCPASSWDREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEVNCPASSWDREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEVNCPASSWDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyInstanceVncPasswdRequest : public RpcServiceRequest { +public: + ModifyInstanceVncPasswdRequest(); + ~ModifyInstanceVncPasswdRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getVncPassword() const; + void setVncPassword(const std::string &vncPassword); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; + std::string vncPassword_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEVNCPASSWDREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyInstanceVpcAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyInstanceVpcAttributeRequest.h index d18c68ffc..959f9dd12 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyInstanceVpcAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyInstanceVpcAttributeRequest.h @@ -1,72 +1,66 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEVPCATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEVPCATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyInstanceVpcAttributeRequest : public RpcServiceRequest - { - - public: - ModifyInstanceVpcAttributeRequest(); - ~ModifyInstanceVpcAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::vector getSecurityGroupId()const; - void setSecurityGroupId(const std::vector& securityGroupId); - std::string getResourceOwnerAccount()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 getVSwitchId()const; - void setVSwitchId(const std::string& vSwitchId); - std::string getPrivateIpAddress()const; - void setPrivateIpAddress(const std::string& privateIpAddress); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getVpcId()const; - void setVpcId(const std::string& vpcId); - - private: - long resourceOwnerId_; - std::vector securityGroupId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string vSwitchId_; - std::string privateIpAddress_; - std::string instanceId_; - std::string vpcId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEVPCATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEVPCATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEVPCATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyInstanceVpcAttributeRequest : public RpcServiceRequest { +public: + ModifyInstanceVpcAttributeRequest(); + ~ModifyInstanceVpcAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::vector getSecurityGroupId() const; + void setSecurityGroupId(const std::vector &securityGroupId); + std::string getResourceOwnerAccount() 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 getVSwitchId() const; + void setVSwitchId(const std::string &vSwitchId); + std::string getPrivateIpAddress() const; + void setPrivateIpAddress(const std::string &privateIpAddress); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + +private: + long resourceOwnerId_; + std::vector securityGroupId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vSwitchId_; + std::string privateIpAddress_; + std::string instanceId_; + std::string vpcId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYINSTANCEVPCATTRIBUTEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyLaunchTemplateDefaultVersionRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyLaunchTemplateDefaultVersionRequest.h index d801e8b98..df8d79874 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyLaunchTemplateDefaultVersionRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyLaunchTemplateDefaultVersionRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYLAUNCHTEMPLATEDEFAULTVERSIONREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYLAUNCHTEMPLATEDEFAULTVERSIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyLaunchTemplateDefaultVersionRequest : public RpcServiceRequest - { - - public: - ModifyLaunchTemplateDefaultVersionRequest(); - ~ModifyLaunchTemplateDefaultVersionRequest(); - - std::string getLaunchTemplateName()const; - void setLaunchTemplateName(const std::string& launchTemplateName); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getLaunchTemplateId()const; - void setLaunchTemplateId(const std::string& launchTemplateId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - long getDefaultVersionNumber()const; - void setDefaultVersionNumber(long defaultVersionNumber); - - private: - std::string launchTemplateName_; - long resourceOwnerId_; - std::string regionId_; - std::string launchTemplateId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - long defaultVersionNumber_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYLAUNCHTEMPLATEDEFAULTVERSIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYLAUNCHTEMPLATEDEFAULTVERSIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYLAUNCHTEMPLATEDEFAULTVERSIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyLaunchTemplateDefaultVersionRequest : public RpcServiceRequest { +public: + ModifyLaunchTemplateDefaultVersionRequest(); + ~ModifyLaunchTemplateDefaultVersionRequest(); + std::string getLaunchTemplateName() const; + void setLaunchTemplateName(const std::string &launchTemplateName); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getLaunchTemplateId() const; + void setLaunchTemplateId(const std::string &launchTemplateId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + long getDefaultVersionNumber() const; + void setDefaultVersionNumber(long defaultVersionNumber); + +private: + std::string launchTemplateName_; + long resourceOwnerId_; + std::string regionId_; + std::string launchTemplateId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + long defaultVersionNumber_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYLAUNCHTEMPLATEDEFAULTVERSIONREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyManagedInstanceRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyManagedInstanceRequest.h index d57ecb303..334d17857 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyManagedInstanceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyManagedInstanceRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYMANAGEDINSTANCEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYMANAGEDINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyManagedInstanceRequest : public RpcServiceRequest - { - - public: - ModifyManagedInstanceRequest(); - ~ModifyManagedInstanceRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getInstanceName()const; - void setInstanceName(const std::string& instanceName); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string instanceId_; - std::string instanceName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYMANAGEDINSTANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYMANAGEDINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYMANAGEDINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyManagedInstanceRequest : public RpcServiceRequest { +public: + ModifyManagedInstanceRequest(); + ~ModifyManagedInstanceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getInstanceName() const; + void setInstanceName(const std::string &instanceName); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; + std::string instanceName_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYMANAGEDINSTANCEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyNetworkInterfaceAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyNetworkInterfaceAttributeRequest.h index 11a85834a..dc8261825 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyNetworkInterfaceAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyNetworkInterfaceAttributeRequest.h @@ -1,75 +1,69 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYNETWORKINTERFACEATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYNETWORKINTERFACEATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyNetworkInterfaceAttributeRequest : public RpcServiceRequest - { - - public: - ModifyNetworkInterfaceAttributeRequest(); - ~ModifyNetworkInterfaceAttributeRequest(); - - int getQueueNumber()const; - void setQueueNumber(int queueNumber); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::vector getSecurityGroupId()const; - void setSecurityGroupId(const std::vector& securityGroupId); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getNetworkInterfaceName()const; - void setNetworkInterfaceName(const std::string& networkInterfaceName); - std::string getResourceOwnerAccount()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 getNetworkInterfaceId()const; - void setNetworkInterfaceId(const std::string& networkInterfaceId); - - private: - int queueNumber_; - long resourceOwnerId_; - std::vector securityGroupId_; - std::string description_; - std::string regionId_; - std::string networkInterfaceName_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string networkInterfaceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYNETWORKINTERFACEATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYNETWORKINTERFACEATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYNETWORKINTERFACEATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyNetworkInterfaceAttributeRequest : public RpcServiceRequest { +public: + ModifyNetworkInterfaceAttributeRequest(); + ~ModifyNetworkInterfaceAttributeRequest(); + int getQueueNumber() const; + void setQueueNumber(int queueNumber); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::vector getSecurityGroupId() const; + void setSecurityGroupId(const std::vector &securityGroupId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNetworkInterfaceName() const; + void setNetworkInterfaceName(const std::string &networkInterfaceName); + std::string getResourceOwnerAccount() 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 getNetworkInterfaceId() const; + void setNetworkInterfaceId(const std::string &networkInterfaceId); + +private: + int queueNumber_; + long resourceOwnerId_; + std::vector securityGroupId_; + std::string description_; + std::string regionId_; + std::string networkInterfaceName_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string networkInterfaceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYNETWORKINTERFACEATTRIBUTEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyPhysicalConnectionAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyPhysicalConnectionAttributeRequest.h index 18dbbd1af..d8fd9d659 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyPhysicalConnectionAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyPhysicalConnectionAttributeRequest.h @@ -1,93 +1,87 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYPHYSICALCONNECTIONATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYPHYSICALCONNECTIONATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyPhysicalConnectionAttributeRequest : public RpcServiceRequest - { - - public: - ModifyPhysicalConnectionAttributeRequest(); - ~ModifyPhysicalConnectionAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getPortType()const; - void setPortType(const std::string& portType); - std::string getCircuitCode()const; - void setCircuitCode(const std::string& circuitCode); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getUserCidr()const; - void setUserCidr(const std::string& userCidr); - std::string getRedundantPhysicalConnectionId()const; - void setRedundantPhysicalConnectionId(const std::string& redundantPhysicalConnectionId); - std::string getPeerLocation()const; - void setPeerLocation(const std::string& peerLocation); - int getBandwidth()const; - void setBandwidth(int bandwidth); - std::string getResourceOwnerAccount()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 getLineOperator()const; - void setLineOperator(const std::string& lineOperator); - std::string getPhysicalConnectionId()const; - void setPhysicalConnectionId(const std::string& physicalConnectionId); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string portType_; - std::string circuitCode_; - std::string clientToken_; - std::string description_; - std::string regionId_; - std::string userCidr_; - std::string redundantPhysicalConnectionId_; - std::string peerLocation_; - int bandwidth_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string lineOperator_; - std::string physicalConnectionId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYPHYSICALCONNECTIONATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYPHYSICALCONNECTIONATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYPHYSICALCONNECTIONATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyPhysicalConnectionAttributeRequest : public RpcServiceRequest { +public: + ModifyPhysicalConnectionAttributeRequest(); + ~ModifyPhysicalConnectionAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPortType() const; + void setPortType(const std::string &portType); + std::string getCircuitCode() const; + void setCircuitCode(const std::string &circuitCode); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getUserCidr() const; + void setUserCidr(const std::string &userCidr); + std::string getRedundantPhysicalConnectionId() const; + void setRedundantPhysicalConnectionId(const std::string &redundantPhysicalConnectionId); + std::string getPeerLocation() const; + void setPeerLocation(const std::string &peerLocation); + int getBandwidth() const; + void setBandwidth(int bandwidth); + std::string getResourceOwnerAccount() 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 getLineOperator() const; + void setLineOperator(const std::string &lineOperator); + std::string getPhysicalConnectionId() const; + void setPhysicalConnectionId(const std::string &physicalConnectionId); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string portType_; + std::string circuitCode_; + std::string clientToken_; + std::string description_; + std::string regionId_; + std::string userCidr_; + std::string redundantPhysicalConnectionId_; + std::string peerLocation_; + int bandwidth_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string lineOperator_; + std::string physicalConnectionId_; + std::string name_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYPHYSICALCONNECTIONATTRIBUTEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyPrefixListRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyPrefixListRequest.h index 27442c907..c5ac9edda 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyPrefixListRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyPrefixListRequest.h @@ -1,85 +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_ECS_MODEL_MODIFYPREFIXLISTREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYPREFIXLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyPrefixListRequest : public RpcServiceRequest - { - public: - struct AddEntry - { - std::string cidr; - std::string description; - }; - struct RemoveEntry - { - std::string cidr; - }; - - public: - ModifyPrefixListRequest(); - ~ModifyPrefixListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getPrefixListId()const; - void setPrefixListId(const std::string& prefixListId); - std::vector getAddEntry()const; - void setAddEntry(const std::vector& addEntry); - std::string getResourceOwnerAccount()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 getPrefixListName()const; - void setPrefixListName(const std::string& prefixListName); - std::vector getRemoveEntry()const; - void setRemoveEntry(const std::vector& removeEntry); - - private: - long resourceOwnerId_; - std::string description_; - std::string regionId_; - std::string prefixListId_; - std::vector addEntry_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string prefixListName_; - std::vector removeEntry_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYPREFIXLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYPREFIXLISTREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYPREFIXLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyPrefixListRequest : public RpcServiceRequest { +public: + struct AddEntry { + std::string description; + std::string cidr; + }; + struct RemoveEntry { + std::string cidr; + }; + ModifyPrefixListRequest(); + ~ModifyPrefixListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getPrefixListId() const; + void setPrefixListId(const std::string &prefixListId); + std::vector getAddEntry() const; + void setAddEntry(const std::vector &addEntry); + std::string getResourceOwnerAccount() 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 getPrefixListName() const; + void setPrefixListName(const std::string &prefixListName); + std::vector getRemoveEntry() const; + void setRemoveEntry(const std::vector &removeEntry); + +private: + long resourceOwnerId_; + std::string description_; + std::string regionId_; + std::string prefixListId_; + std::vector addEntry_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string prefixListName_; + std::vector removeEntry_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYPREFIXLISTREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyPrepayInstanceSpecRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyPrepayInstanceSpecRequest.h index 3218f40b3..ab8e88d99 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyPrepayInstanceSpecRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyPrepayInstanceSpecRequest.h @@ -1,90 +1,84 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYPREPAYINSTANCESPECREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYPREPAYINSTANCESPECREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyPrepayInstanceSpecRequest : public RpcServiceRequest - { - - public: - ModifyPrepayInstanceSpecRequest(); - ~ModifyPrepayInstanceSpecRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getOperatorType()const; - void setOperatorType(const std::string& operatorType); - std::string getSystemDiskCategory()const; - void setSystemDiskCategory(const std::string& systemDiskCategory); - std::string getRebootTime()const; - void setRebootTime(const std::string& rebootTime); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - bool getMigrateAcrossZone()const; - void setMigrateAcrossZone(bool migrateAcrossZone); - std::string getInstanceType()const; - void setInstanceType(const std::string& instanceType); - bool getAutoPay()const; - void setAutoPay(bool autoPay); - bool getRebootWhenFinished()const; - void setRebootWhenFinished(bool rebootWhenFinished); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string operatorType_; - std::string systemDiskCategory_; - std::string rebootTime_; - std::string regionId_; - bool migrateAcrossZone_; - std::string instanceType_; - bool autoPay_; - bool rebootWhenFinished_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string endTime_; - long ownerId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYPREPAYINSTANCESPECREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYPREPAYINSTANCESPECREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYPREPAYINSTANCESPECREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyPrepayInstanceSpecRequest : public RpcServiceRequest { +public: + ModifyPrepayInstanceSpecRequest(); + ~ModifyPrepayInstanceSpecRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getOperatorType() const; + void setOperatorType(const std::string &operatorType); + std::string getSystemDiskCategory() const; + void setSystemDiskCategory(const std::string &systemDiskCategory); + std::string getRebootTime() const; + void setRebootTime(const std::string &rebootTime); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getMigrateAcrossZone() const; + void setMigrateAcrossZone(bool migrateAcrossZone); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + bool getAutoPay() const; + void setAutoPay(bool autoPay); + bool getRebootWhenFinished() const; + void setRebootWhenFinished(bool rebootWhenFinished); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string operatorType_; + std::string systemDiskCategory_; + std::string rebootTime_; + std::string regionId_; + bool migrateAcrossZone_; + std::string instanceType_; + bool autoPay_; + bool rebootWhenFinished_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string endTime_; + long ownerId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYPREPAYINSTANCESPECREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyReservedInstanceAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyReservedInstanceAttributeRequest.h index 72aceaa04..05bcd0bad 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyReservedInstanceAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyReservedInstanceAttributeRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYRESERVEDINSTANCEATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYRESERVEDINSTANCEATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyReservedInstanceAttributeRequest : public RpcServiceRequest - { - - public: - ModifyReservedInstanceAttributeRequest(); - ~ModifyReservedInstanceAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getReservedInstanceId()const; - void setReservedInstanceId(const std::string& reservedInstanceId); - std::string getReservedInstanceName()const; - void setReservedInstanceName(const std::string& reservedInstanceName); - - private: - long resourceOwnerId_; - std::string description_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string reservedInstanceId_; - std::string reservedInstanceName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYRESERVEDINSTANCEATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYRESERVEDINSTANCEATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYRESERVEDINSTANCEATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyReservedInstanceAttributeRequest : public RpcServiceRequest { +public: + ModifyReservedInstanceAttributeRequest(); + ~ModifyReservedInstanceAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getReservedInstanceId() const; + void setReservedInstanceId(const std::string &reservedInstanceId); + std::string getReservedInstanceName() const; + void setReservedInstanceName(const std::string &reservedInstanceName); + +private: + long resourceOwnerId_; + std::string description_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string reservedInstanceId_; + std::string reservedInstanceName_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYRESERVEDINSTANCEATTRIBUTEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyReservedInstancesRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyReservedInstancesRequest.h index abee4b082..5bf49e159 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyReservedInstancesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyReservedInstancesRequest.h @@ -1,75 +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_ECS_MODEL_MODIFYRESERVEDINSTANCESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYRESERVEDINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyReservedInstancesRequest : public RpcServiceRequest - { - public: - struct Configuration - { - std::string zoneId; - std::string reservedInstanceName; - std::string instanceType; - std::string scope; - int instanceAmount; - }; - - public: - ModifyReservedInstancesRequest(); - ~ModifyReservedInstancesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::vector getConfiguration()const; - void setConfiguration(const std::vector& configuration); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::vector getReservedInstanceId()const; - void setReservedInstanceId(const std::vector& reservedInstanceId); - - private: - long resourceOwnerId_; - std::vector configuration_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::vector reservedInstanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYRESERVEDINSTANCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYRESERVEDINSTANCESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYRESERVEDINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyReservedInstancesRequest : public RpcServiceRequest { +public: + struct Configuration { + std::string reservedInstanceName; + std::string zoneId; + std::string scope; + std::string instanceType; + int instanceAmount; + }; + ModifyReservedInstancesRequest(); + ~ModifyReservedInstancesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::vector getConfiguration() const; + void setConfiguration(const std::vector &configuration); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getReservedInstanceId() const; + void setReservedInstanceId(const std::vector &reservedInstanceId); + +private: + long resourceOwnerId_; + std::vector configuration_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::vector reservedInstanceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYRESERVEDINSTANCESREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyRouterInterfaceAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyRouterInterfaceAttributeRequest.h index be0fe4758..401fba7a3 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyRouterInterfaceAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyRouterInterfaceAttributeRequest.h @@ -1,84 +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_ECS_MODEL_MODIFYROUTERINTERFACEATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYROUTERINTERFACEATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyRouterInterfaceAttributeRequest : public RpcServiceRequest - { - - public: - ModifyRouterInterfaceAttributeRequest(); - ~ModifyRouterInterfaceAttributeRequest(); - - std::string getOppositeRouterId()const; - void setOppositeRouterId(const std::string& oppositeRouterId); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getHealthCheckTargetIp()const; - void setHealthCheckTargetIp(const std::string& healthCheckTargetIp); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getOppositeInterfaceId()const; - void setOppositeInterfaceId(const std::string& oppositeInterfaceId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getRouterInterfaceId()const; - void setRouterInterfaceId(const std::string& routerInterfaceId); - long getOppositeInterfaceOwnerId()const; - void setOppositeInterfaceOwnerId(long oppositeInterfaceOwnerId); - std::string getHealthCheckSourceIp()const; - void setHealthCheckSourceIp(const std::string& healthCheckSourceIp); - std::string getName()const; - void setName(const std::string& name); - std::string getOppositeRouterType()const; - void setOppositeRouterType(const std::string& oppositeRouterType); - - private: - std::string oppositeRouterId_; - long resourceOwnerId_; - std::string description_; - std::string healthCheckTargetIp_; - std::string regionId_; - std::string oppositeInterfaceId_; - std::string resourceOwnerAccount_; - long ownerId_; - std::string routerInterfaceId_; - long oppositeInterfaceOwnerId_; - std::string healthCheckSourceIp_; - std::string name_; - std::string oppositeRouterType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYROUTERINTERFACEATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYROUTERINTERFACEATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYROUTERINTERFACEATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyRouterInterfaceAttributeRequest : public RpcServiceRequest { +public: + ModifyRouterInterfaceAttributeRequest(); + ~ModifyRouterInterfaceAttributeRequest(); + std::string getOppositeRouterId() const; + void setOppositeRouterId(const std::string &oppositeRouterId); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getHealthCheckTargetIp() const; + void setHealthCheckTargetIp(const std::string &healthCheckTargetIp); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getOppositeInterfaceId() const; + void setOppositeInterfaceId(const std::string &oppositeInterfaceId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getRouterInterfaceId() const; + void setRouterInterfaceId(const std::string &routerInterfaceId); + long getOppositeInterfaceOwnerId() const; + void setOppositeInterfaceOwnerId(long oppositeInterfaceOwnerId); + std::string getHealthCheckSourceIp() const; + void setHealthCheckSourceIp(const std::string &healthCheckSourceIp); + std::string getName() const; + void setName(const std::string &name); + std::string getOppositeRouterType() const; + void setOppositeRouterType(const std::string &oppositeRouterType); + +private: + std::string oppositeRouterId_; + long resourceOwnerId_; + std::string description_; + std::string healthCheckTargetIp_; + std::string regionId_; + std::string oppositeInterfaceId_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string routerInterfaceId_; + long oppositeInterfaceOwnerId_; + std::string healthCheckSourceIp_; + std::string name_; + std::string oppositeRouterType_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYROUTERINTERFACEATTRIBUTEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyRouterInterfaceSpecRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyRouterInterfaceSpecRequest.h index 397d9bd4c..a137166f0 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyRouterInterfaceSpecRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyRouterInterfaceSpecRequest.h @@ -1,72 +1,66 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYROUTERINTERFACESPECREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYROUTERINTERFACESPECREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyRouterInterfaceSpecRequest : public RpcServiceRequest - { - - public: - ModifyRouterInterfaceSpecRequest(); - ~ModifyRouterInterfaceSpecRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getSpec()const; - void setSpec(const std::string& spec); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getUserCidr()const; - void setUserCidr(const std::string& userCidr); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getRouterInterfaceId()const; - void setRouterInterfaceId(const std::string& routerInterfaceId); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string spec_; - std::string regionId_; - std::string userCidr_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string routerInterfaceId_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYROUTERINTERFACESPECREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYROUTERINTERFACESPECREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYROUTERINTERFACESPECREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyRouterInterfaceSpecRequest : public RpcServiceRequest { +public: + ModifyRouterInterfaceSpecRequest(); + ~ModifyRouterInterfaceSpecRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getSpec() const; + void setSpec(const std::string &spec); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getUserCidr() const; + void setUserCidr(const std::string &userCidr); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getRouterInterfaceId() const; + void setRouterInterfaceId(const std::string &routerInterfaceId); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string spec_; + std::string regionId_; + std::string userCidr_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string routerInterfaceId_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYROUTERINTERFACESPECREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupAttributeRequest.h index 003412f75..ca9c0f717 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupAttributeRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifySecurityGroupAttributeRequest : public RpcServiceRequest - { - - public: - ModifySecurityGroupAttributeRequest(); - ~ModifySecurityGroupAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getSecurityGroupId()const; - void setSecurityGroupId(const std::string& securityGroupId); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getSecurityGroupName()const; - void setSecurityGroupName(const std::string& securityGroupName); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string securityGroupId_; - std::string description_; - std::string securityGroupName_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifySecurityGroupAttributeRequest : public RpcServiceRequest { +public: + ModifySecurityGroupAttributeRequest(); + ~ModifySecurityGroupAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSecurityGroupId() const; + void setSecurityGroupId(const std::string &securityGroupId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getSecurityGroupName() const; + void setSecurityGroupName(const std::string &securityGroupName); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string securityGroupId_; + std::string description_; + std::string securityGroupName_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPATTRIBUTEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupEgressRuleRequest.h b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupEgressRuleRequest.h index 41441f871..ea46be0af 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupEgressRuleRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupEgressRuleRequest.h @@ -1,111 +1,105 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPEGRESSRULEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPEGRESSRULEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifySecurityGroupEgressRuleRequest : public RpcServiceRequest - { - - public: - ModifySecurityGroupEgressRuleRequest(); - ~ModifySecurityGroupEgressRuleRequest(); - - std::string getNicType()const; - void setNicType(const std::string& nicType); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getSourcePortRange()const; - void setSourcePortRange(const std::string& sourcePortRange); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getDestPrefixListId()const; - void setDestPrefixListId(const std::string& destPrefixListId); - std::string getSecurityGroupId()const; - void setSecurityGroupId(const std::string& securityGroupId); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getIpv6DestCidrIp()const; - void setIpv6DestCidrIp(const std::string& ipv6DestCidrIp); - std::string getIpv6SourceCidrIp()const; - void setIpv6SourceCidrIp(const std::string& ipv6SourceCidrIp); - std::string getPolicy()const; - void setPolicy(const std::string& policy); - std::string getPortRange()const; - void setPortRange(const std::string& portRange); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getIpProtocol()const; - void setIpProtocol(const std::string& ipProtocol); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getSourceCidrIp()const; - void setSourceCidrIp(const std::string& sourceCidrIp); - std::string getDestGroupId()const; - void setDestGroupId(const std::string& destGroupId); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getDestGroupOwnerAccount()const; - void setDestGroupOwnerAccount(const std::string& destGroupOwnerAccount); - std::string getPriority()const; - void setPriority(const std::string& priority); - std::string getDestCidrIp()const; - void setDestCidrIp(const std::string& destCidrIp); - long getDestGroupOwnerId()const; - void setDestGroupOwnerId(long destGroupOwnerId); - - private: - std::string nicType_; - long resourceOwnerId_; - std::string sourcePortRange_; - std::string clientToken_; - std::string destPrefixListId_; - std::string securityGroupId_; - std::string description_; - std::string regionId_; - std::string ipv6DestCidrIp_; - std::string ipv6SourceCidrIp_; - std::string policy_; - std::string portRange_; - std::string resourceOwnerAccount_; - std::string ipProtocol_; - std::string ownerAccount_; - std::string sourceCidrIp_; - std::string destGroupId_; - long ownerId_; - std::string destGroupOwnerAccount_; - std::string priority_; - std::string destCidrIp_; - long destGroupOwnerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPEGRESSRULEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPEGRESSRULEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPEGRESSRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifySecurityGroupEgressRuleRequest : public RpcServiceRequest { +public: + ModifySecurityGroupEgressRuleRequest(); + ~ModifySecurityGroupEgressRuleRequest(); + std::string getNicType() const; + void setNicType(const std::string &nicType); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourcePortRange() const; + void setSourcePortRange(const std::string &sourcePortRange); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDestPrefixListId() const; + void setDestPrefixListId(const std::string &destPrefixListId); + std::string getSecurityGroupId() const; + void setSecurityGroupId(const std::string &securityGroupId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getIpv6DestCidrIp() const; + void setIpv6DestCidrIp(const std::string &ipv6DestCidrIp); + std::string getIpv6SourceCidrIp() const; + void setIpv6SourceCidrIp(const std::string &ipv6SourceCidrIp); + std::string getPolicy() const; + void setPolicy(const std::string &policy); + std::string getPortRange() const; + void setPortRange(const std::string &portRange); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getIpProtocol() const; + void setIpProtocol(const std::string &ipProtocol); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getSourceCidrIp() const; + void setSourceCidrIp(const std::string &sourceCidrIp); + std::string getDestGroupId() const; + void setDestGroupId(const std::string &destGroupId); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getDestGroupOwnerAccount() const; + void setDestGroupOwnerAccount(const std::string &destGroupOwnerAccount); + std::string getPriority() const; + void setPriority(const std::string &priority); + std::string getDestCidrIp() const; + void setDestCidrIp(const std::string &destCidrIp); + long getDestGroupOwnerId() const; + void setDestGroupOwnerId(long destGroupOwnerId); + +private: + std::string nicType_; + long resourceOwnerId_; + std::string sourcePortRange_; + std::string clientToken_; + std::string destPrefixListId_; + std::string securityGroupId_; + std::string description_; + std::string regionId_; + std::string ipv6DestCidrIp_; + std::string ipv6SourceCidrIp_; + std::string policy_; + std::string portRange_; + std::string resourceOwnerAccount_; + std::string ipProtocol_; + std::string ownerAccount_; + std::string sourceCidrIp_; + std::string destGroupId_; + long ownerId_; + std::string destGroupOwnerAccount_; + std::string priority_; + std::string destCidrIp_; + long destGroupOwnerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPEGRESSRULEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupPolicyRequest.h b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupPolicyRequest.h index 00ea31439..015dfa933 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupPolicyRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupPolicyRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPPOLICYREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPPOLICYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifySecurityGroupPolicyRequest : public RpcServiceRequest - { - - public: - ModifySecurityGroupPolicyRequest(); - ~ModifySecurityGroupPolicyRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getSecurityGroupId()const; - void setSecurityGroupId(const std::string& securityGroupId); - std::string getInnerAccessPolicy()const; - void setInnerAccessPolicy(const std::string& innerAccessPolicy); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string securityGroupId_; - std::string innerAccessPolicy_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPPOLICYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPPOLICYREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifySecurityGroupPolicyRequest : public RpcServiceRequest { +public: + ModifySecurityGroupPolicyRequest(); + ~ModifySecurityGroupPolicyRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getSecurityGroupId() const; + void setSecurityGroupId(const std::string &securityGroupId); + std::string getInnerAccessPolicy() const; + void setInnerAccessPolicy(const std::string &innerAccessPolicy); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string securityGroupId_; + std::string innerAccessPolicy_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPPOLICYREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupRuleRequest.h b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupRuleRequest.h index 7b879f9eb..7edccd33d 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupRuleRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifySecurityGroupRuleRequest.h @@ -1,111 +1,105 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPRULEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPRULEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifySecurityGroupRuleRequest : public RpcServiceRequest - { - - public: - ModifySecurityGroupRuleRequest(); - ~ModifySecurityGroupRuleRequest(); - - std::string getNicType()const; - void setNicType(const std::string& nicType); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getSourcePrefixListId()const; - void setSourcePrefixListId(const std::string& sourcePrefixListId); - std::string getSourcePortRange()const; - void setSourcePortRange(const std::string& sourcePortRange); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getSecurityGroupId()const; - void setSecurityGroupId(const std::string& securityGroupId); - std::string getDescription()const; - void setDescription(const std::string& description); - long getSourceGroupOwnerId()const; - void setSourceGroupOwnerId(long sourceGroupOwnerId); - std::string getSourceGroupOwnerAccount()const; - void setSourceGroupOwnerAccount(const std::string& sourceGroupOwnerAccount); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getIpv6SourceCidrIp()const; - void setIpv6SourceCidrIp(const std::string& ipv6SourceCidrIp); - std::string getIpv6DestCidrIp()const; - void setIpv6DestCidrIp(const std::string& ipv6DestCidrIp); - std::string getPolicy()const; - void setPolicy(const std::string& policy); - std::string getPortRange()const; - void setPortRange(const std::string& portRange); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getIpProtocol()const; - void setIpProtocol(const std::string& ipProtocol); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getSourceCidrIp()const; - void setSourceCidrIp(const std::string& sourceCidrIp); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPriority()const; - void setPriority(const std::string& priority); - std::string getDestCidrIp()const; - void setDestCidrIp(const std::string& destCidrIp); - std::string getSourceGroupId()const; - void setSourceGroupId(const std::string& sourceGroupId); - - private: - std::string nicType_; - long resourceOwnerId_; - std::string sourcePrefixListId_; - std::string sourcePortRange_; - std::string clientToken_; - std::string securityGroupId_; - std::string description_; - long sourceGroupOwnerId_; - std::string sourceGroupOwnerAccount_; - std::string regionId_; - std::string ipv6SourceCidrIp_; - std::string ipv6DestCidrIp_; - std::string policy_; - std::string portRange_; - std::string resourceOwnerAccount_; - std::string ipProtocol_; - std::string ownerAccount_; - std::string sourceCidrIp_; - long ownerId_; - std::string priority_; - std::string destCidrIp_; - std::string sourceGroupId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPRULEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPRULEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifySecurityGroupRuleRequest : public RpcServiceRequest { +public: + ModifySecurityGroupRuleRequest(); + ~ModifySecurityGroupRuleRequest(); + std::string getNicType() const; + void setNicType(const std::string &nicType); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourcePrefixListId() const; + void setSourcePrefixListId(const std::string &sourcePrefixListId); + std::string getSourcePortRange() const; + void setSourcePortRange(const std::string &sourcePortRange); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getSecurityGroupId() const; + void setSecurityGroupId(const std::string &securityGroupId); + std::string getDescription() const; + void setDescription(const std::string &description); + long getSourceGroupOwnerId() const; + void setSourceGroupOwnerId(long sourceGroupOwnerId); + std::string getSourceGroupOwnerAccount() const; + void setSourceGroupOwnerAccount(const std::string &sourceGroupOwnerAccount); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getIpv6SourceCidrIp() const; + void setIpv6SourceCidrIp(const std::string &ipv6SourceCidrIp); + std::string getIpv6DestCidrIp() const; + void setIpv6DestCidrIp(const std::string &ipv6DestCidrIp); + std::string getPolicy() const; + void setPolicy(const std::string &policy); + std::string getPortRange() const; + void setPortRange(const std::string &portRange); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getIpProtocol() const; + void setIpProtocol(const std::string &ipProtocol); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getSourceCidrIp() const; + void setSourceCidrIp(const std::string &sourceCidrIp); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPriority() const; + void setPriority(const std::string &priority); + std::string getDestCidrIp() const; + void setDestCidrIp(const std::string &destCidrIp); + std::string getSourceGroupId() const; + void setSourceGroupId(const std::string &sourceGroupId); + +private: + std::string nicType_; + long resourceOwnerId_; + std::string sourcePrefixListId_; + std::string sourcePortRange_; + std::string clientToken_; + std::string securityGroupId_; + std::string description_; + long sourceGroupOwnerId_; + std::string sourceGroupOwnerAccount_; + std::string regionId_; + std::string ipv6SourceCidrIp_; + std::string ipv6DestCidrIp_; + std::string policy_; + std::string portRange_; + std::string resourceOwnerAccount_; + std::string ipProtocol_; + std::string ownerAccount_; + std::string sourceCidrIp_; + long ownerId_; + std::string priority_; + std::string destCidrIp_; + std::string sourceGroupId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYSECURITYGROUPRULEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifySnapshotAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifySnapshotAttributeRequest.h index 2ac5066aa..853b3e401 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifySnapshotAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifySnapshotAttributeRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYSNAPSHOTATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYSNAPSHOTATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifySnapshotAttributeRequest : public RpcServiceRequest - { - - public: - ModifySnapshotAttributeRequest(); - ~ModifySnapshotAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getSnapshotId()const; - void setSnapshotId(const std::string& snapshotId); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getSnapshotName()const; - void setSnapshotName(const std::string& snapshotName); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - bool getDisableInstantAccess()const; - void setDisableInstantAccess(bool disableInstantAccess); - - private: - long resourceOwnerId_; - std::string snapshotId_; - std::string description_; - std::string snapshotName_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - bool disableInstantAccess_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYSNAPSHOTATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYSNAPSHOTATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYSNAPSHOTATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifySnapshotAttributeRequest : public RpcServiceRequest { +public: + ModifySnapshotAttributeRequest(); + ~ModifySnapshotAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSnapshotId() const; + void setSnapshotId(const std::string &snapshotId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getSnapshotName() const; + void setSnapshotName(const std::string &snapshotName); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + bool getDisableInstantAccess() const; + void setDisableInstantAccess(bool disableInstantAccess); + +private: + long resourceOwnerId_; + std::string snapshotId_; + std::string description_; + std::string snapshotName_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + bool disableInstantAccess_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYSNAPSHOTATTRIBUTEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifySnapshotGroupRequest.h b/ecs/include/alibabacloud/ecs/model/ModifySnapshotGroupRequest.h index 84c397155..4af69b88d 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifySnapshotGroupRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifySnapshotGroupRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYSNAPSHOTGROUPREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYSNAPSHOTGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifySnapshotGroupRequest : public RpcServiceRequest - { - - public: - ModifySnapshotGroupRequest(); - ~ModifySnapshotGroupRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getSnapshotGroupId()const; - void setSnapshotGroupId(const std::string& snapshotGroupId); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string description_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string snapshotGroupId_; - long ownerId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYSNAPSHOTGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYSNAPSHOTGROUPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYSNAPSHOTGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifySnapshotGroupRequest : public RpcServiceRequest { +public: + ModifySnapshotGroupRequest(); + ~ModifySnapshotGroupRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getSnapshotGroupId() const; + void setSnapshotGroupId(const std::string &snapshotGroupId); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string description_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string snapshotGroupId_; + long ownerId_; + std::string name_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYSNAPSHOTGROUPREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyStorageCapacityUnitAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyStorageCapacityUnitAttributeRequest.h index da1fee7be..45d9869c1 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyStorageCapacityUnitAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyStorageCapacityUnitAttributeRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYSTORAGECAPACITYUNITATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYSTORAGECAPACITYUNITATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyStorageCapacityUnitAttributeRequest : public RpcServiceRequest - { - - public: - ModifyStorageCapacityUnitAttributeRequest(); - ~ModifyStorageCapacityUnitAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getStorageCapacityUnitId()const; - void setStorageCapacityUnitId(const std::string& storageCapacityUnitId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string description_; - std::string storageCapacityUnitId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYSTORAGECAPACITYUNITATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYSTORAGECAPACITYUNITATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYSTORAGECAPACITYUNITATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyStorageCapacityUnitAttributeRequest : public RpcServiceRequest { +public: + ModifyStorageCapacityUnitAttributeRequest(); + ~ModifyStorageCapacityUnitAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getStorageCapacityUnitId() const; + void setStorageCapacityUnitId(const std::string &storageCapacityUnitId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string description_; + std::string storageCapacityUnitId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string name_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYSTORAGECAPACITYUNITATTRIBUTEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyStorageSetAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyStorageSetAttributeRequest.h index e46030d18..81682b013 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyStorageSetAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyStorageSetAttributeRequest.h @@ -1,72 +1,66 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYSTORAGESETATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYSTORAGESETATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyStorageSetAttributeRequest : public RpcServiceRequest - { - - public: - ModifyStorageSetAttributeRequest(); - ~ModifyStorageSetAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getStorageSetId()const; - void setStorageSetId(const std::string& storageSetId); - std::string getStorageSetName()const; - void setStorageSetName(const std::string& storageSetName); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string description_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string storageSetId_; - std::string storageSetName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYSTORAGESETATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYSTORAGESETATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYSTORAGESETATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyStorageSetAttributeRequest : public RpcServiceRequest { +public: + ModifyStorageSetAttributeRequest(); + ~ModifyStorageSetAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getStorageSetId() const; + void setStorageSetId(const std::string &storageSetId); + std::string getStorageSetName() const; + void setStorageSetName(const std::string &storageSetName); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string description_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string storageSetId_; + std::string storageSetName_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYSTORAGESETATTRIBUTEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyUserBusinessBehaviorRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyUserBusinessBehaviorRequest.h index 5eddc879b..49bf72658 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyUserBusinessBehaviorRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyUserBusinessBehaviorRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYUSERBUSINESSBEHAVIORREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYUSERBUSINESSBEHAVIORREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyUserBusinessBehaviorRequest : public RpcServiceRequest - { - - public: - ModifyUserBusinessBehaviorRequest(); - ~ModifyUserBusinessBehaviorRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getStatusValue()const; - void setStatusValue(const std::string& statusValue); - std::string getResourceOwnerAccount()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 getStatusKey()const; - void setStatusKey(const std::string& statusKey); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string statusValue_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string statusKey_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYUSERBUSINESSBEHAVIORREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYUSERBUSINESSBEHAVIORREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYUSERBUSINESSBEHAVIORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyUserBusinessBehaviorRequest : public RpcServiceRequest { +public: + ModifyUserBusinessBehaviorRequest(); + ~ModifyUserBusinessBehaviorRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getStatusValue() const; + void setStatusValue(const std::string &statusValue); + std::string getResourceOwnerAccount() 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 getStatusKey() const; + void setStatusKey(const std::string &statusKey); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string statusValue_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string statusKey_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYUSERBUSINESSBEHAVIORREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyVRouterAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyVRouterAttributeRequest.h index b074ded99..2a723c1fc 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyVRouterAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyVRouterAttributeRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYVROUTERATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYVROUTERATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyVRouterAttributeRequest : public RpcServiceRequest - { - - public: - ModifyVRouterAttributeRequest(); - ~ModifyVRouterAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getVRouterId()const; - void setVRouterId(const std::string& vRouterId); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getVRouterName()const; - void setVRouterName(const std::string& vRouterName); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string vRouterId_; - std::string description_; - std::string vRouterName_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYVROUTERATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYVROUTERATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYVROUTERATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyVRouterAttributeRequest : public RpcServiceRequest { +public: + ModifyVRouterAttributeRequest(); + ~ModifyVRouterAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getVRouterId() const; + void setVRouterId(const std::string &vRouterId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getVRouterName() const; + void setVRouterName(const std::string &vRouterName); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string vRouterId_; + std::string description_; + std::string vRouterName_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYVROUTERATTRIBUTEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyVSwitchAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyVSwitchAttributeRequest.h index 6d5865f2e..2c9639daf 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyVSwitchAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyVSwitchAttributeRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYVSWITCHATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYVSWITCHATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyVSwitchAttributeRequest : public RpcServiceRequest - { - - public: - ModifyVSwitchAttributeRequest(); - ~ModifyVSwitchAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getVSwitchId()const; - void setVSwitchId(const std::string& vSwitchId); - std::string getVSwitchName()const; - void setVSwitchName(const std::string& vSwitchName); - - private: - long resourceOwnerId_; - std::string description_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string vSwitchId_; - std::string vSwitchName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYVSWITCHATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYVSWITCHATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYVSWITCHATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyVSwitchAttributeRequest : public RpcServiceRequest { +public: + ModifyVSwitchAttributeRequest(); + ~ModifyVSwitchAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getVSwitchId() const; + void setVSwitchId(const std::string &vSwitchId); + std::string getVSwitchName() const; + void setVSwitchName(const std::string &vSwitchName); + +private: + long resourceOwnerId_; + std::string description_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vSwitchId_; + std::string vSwitchName_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYVSWITCHATTRIBUTEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyVirtualBorderRouterAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyVirtualBorderRouterAttributeRequest.h index 41a4eca07..1871b3812 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyVirtualBorderRouterAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyVirtualBorderRouterAttributeRequest.h @@ -1,90 +1,84 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYVIRTUALBORDERROUTERATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYVIRTUALBORDERROUTERATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyVirtualBorderRouterAttributeRequest : public RpcServiceRequest - { - - public: - ModifyVirtualBorderRouterAttributeRequest(); - ~ModifyVirtualBorderRouterAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getCircuitCode()const; - void setCircuitCode(const std::string& circuitCode); - int getVlanId()const; - void setVlanId(int vlanId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getVbrId()const; - void setVbrId(const std::string& vbrId); - std::string getPeerGatewayIp()const; - void setPeerGatewayIp(const std::string& peerGatewayIp); - std::string getPeeringSubnetMask()const; - void setPeeringSubnetMask(const std::string& peeringSubnetMask); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getLocalGatewayIp()const; - void setLocalGatewayIp(const std::string& localGatewayIp); - std::string getUserCidr()const; - void setUserCidr(const std::string& userCidr); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string circuitCode_; - int vlanId_; - std::string clientToken_; - std::string description_; - std::string vbrId_; - std::string peerGatewayIp_; - std::string peeringSubnetMask_; - std::string regionId_; - std::string localGatewayIp_; - std::string userCidr_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYVIRTUALBORDERROUTERATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYVIRTUALBORDERROUTERATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYVIRTUALBORDERROUTERATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyVirtualBorderRouterAttributeRequest : public RpcServiceRequest { +public: + ModifyVirtualBorderRouterAttributeRequest(); + ~ModifyVirtualBorderRouterAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getCircuitCode() const; + void setCircuitCode(const std::string &circuitCode); + int getVlanId() const; + void setVlanId(int vlanId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getVbrId() const; + void setVbrId(const std::string &vbrId); + std::string getPeerGatewayIp() const; + void setPeerGatewayIp(const std::string &peerGatewayIp); + std::string getPeeringSubnetMask() const; + void setPeeringSubnetMask(const std::string &peeringSubnetMask); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getLocalGatewayIp() const; + void setLocalGatewayIp(const std::string &localGatewayIp); + std::string getUserCidr() const; + void setUserCidr(const std::string &userCidr); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string circuitCode_; + int vlanId_; + std::string clientToken_; + std::string description_; + std::string vbrId_; + std::string peerGatewayIp_; + std::string peeringSubnetMask_; + std::string regionId_; + std::string localGatewayIp_; + std::string userCidr_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string name_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYVIRTUALBORDERROUTERATTRIBUTEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ModifyVpcAttributeRequest.h b/ecs/include/alibabacloud/ecs/model/ModifyVpcAttributeRequest.h index 147ff2022..eba53a22f 100644 --- a/ecs/include/alibabacloud/ecs/model/ModifyVpcAttributeRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ModifyVpcAttributeRequest.h @@ -1,75 +1,69 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYVPCATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_MODIFYVPCATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ModifyVpcAttributeRequest : public RpcServiceRequest - { - - public: - ModifyVpcAttributeRequest(); - ~ModifyVpcAttributeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getVpcName()const; - void setVpcName(const std::string& vpcName); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getUserCidr()const; - void setUserCidr(const std::string& userCidr); - std::string getResourceOwnerAccount()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 getVpcId()const; - void setVpcId(const std::string& vpcId); - std::string getCidrBlock()const; - void setCidrBlock(const std::string& cidrBlock); - - private: - long resourceOwnerId_; - std::string description_; - std::string vpcName_; - std::string regionId_; - std::string userCidr_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string vpcId_; - std::string cidrBlock_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYVPCATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYVPCATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_MODIFYVPCATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ModifyVpcAttributeRequest : public RpcServiceRequest { +public: + ModifyVpcAttributeRequest(); + ~ModifyVpcAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getVpcName() const; + void setVpcName(const std::string &vpcName); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getUserCidr() const; + void setUserCidr(const std::string &userCidr); + std::string getResourceOwnerAccount() 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 getVpcId() const; + void setVpcId(const std::string &vpcId); + std::string getCidrBlock() const; + void setCidrBlock(const std::string &cidrBlock); + +private: + long resourceOwnerId_; + std::string description_; + std::string vpcName_; + std::string regionId_; + std::string userCidr_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vpcId_; + std::string cidrBlock_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYVPCATTRIBUTEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/PurchaseReservedInstancesOfferingRequest.h b/ecs/include/alibabacloud/ecs/model/PurchaseReservedInstancesOfferingRequest.h index 854a33e8e..a22dc8ea1 100644 --- a/ecs/include/alibabacloud/ecs/model/PurchaseReservedInstancesOfferingRequest.h +++ b/ecs/include/alibabacloud/ecs/model/PurchaseReservedInstancesOfferingRequest.h @@ -1,105 +1,97 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_PURCHASERESERVEDINSTANCESOFFERINGREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_PURCHASERESERVEDINSTANCESOFFERINGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT PurchaseReservedInstancesOfferingRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string key; - std::string value; - }; - - public: - PurchaseReservedInstancesOfferingRequest(); - ~PurchaseReservedInstancesOfferingRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getPlatform()const; - void setPlatform(const std::string& platform); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getScope()const; - void setScope(const std::string& scope); - std::string getInstanceType()const; - void setInstanceType(const std::string& instanceType); - std::vector getTag()const; - void setTag(const std::vector& tag); - int getPeriod()const; - void setPeriod(int period); - std::string getResourceOwnerAccount()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 getPeriodUnit()const; - void setPeriodUnit(const std::string& periodUnit); - std::string getOfferingType()const; - void setOfferingType(const std::string& offeringType); - std::string getZoneId()const; - void setZoneId(const std::string& zoneId); - std::string getReservedInstanceName()const; - void setReservedInstanceName(const std::string& reservedInstanceName); - int getInstanceAmount()const; - void setInstanceAmount(int instanceAmount); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string description_; - std::string platform_; - std::string resourceGroupId_; - std::string regionId_; - std::string scope_; - std::string instanceType_; - std::vector tag_; - int period_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string periodUnit_; - std::string offeringType_; - std::string zoneId_; - std::string reservedInstanceName_; - int instanceAmount_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_PURCHASERESERVEDINSTANCESOFFERINGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_PURCHASERESERVEDINSTANCESOFFERINGREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_PURCHASERESERVEDINSTANCESOFFERINGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT PurchaseReservedInstancesOfferingRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + PurchaseReservedInstancesOfferingRequest(); + ~PurchaseReservedInstancesOfferingRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getPlatform() const; + void setPlatform(const std::string &platform); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getScope() const; + void setScope(const std::string &scope); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + std::vector getTag() const; + void setTag(const std::vector &tag); + int getPeriod() const; + void setPeriod(int period); + std::string getResourceOwnerAccount() 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 getPeriodUnit() const; + void setPeriodUnit(const std::string &periodUnit); + std::string getOfferingType() const; + void setOfferingType(const std::string &offeringType); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + std::string getReservedInstanceName() const; + void setReservedInstanceName(const std::string &reservedInstanceName); + int getInstanceAmount() const; + void setInstanceAmount(int instanceAmount); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string description_; + std::string platform_; + std::string resourceGroupId_; + std::string regionId_; + std::string scope_; + std::string instanceType_; + std::vector tag_; + int period_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string periodUnit_; + std::string offeringType_; + std::string zoneId_; + std::string reservedInstanceName_; + int instanceAmount_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_PURCHASERESERVEDINSTANCESOFFERINGREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/PurchaseStorageCapacityUnitRequest.h b/ecs/include/alibabacloud/ecs/model/PurchaseStorageCapacityUnitRequest.h index a5780166d..e5fb467f0 100644 --- a/ecs/include/alibabacloud/ecs/model/PurchaseStorageCapacityUnitRequest.h +++ b/ecs/include/alibabacloud/ecs/model/PurchaseStorageCapacityUnitRequest.h @@ -1,96 +1,88 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_PURCHASESTORAGECAPACITYUNITREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_PURCHASESTORAGECAPACITYUNITREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT PurchaseStorageCapacityUnitRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string key; - std::string value; - }; - - public: - PurchaseStorageCapacityUnitRequest(); - ~PurchaseStorageCapacityUnitRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - int getCapacity()const; - void setCapacity(int capacity); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::vector getTag()const; - void setTag(const std::vector& tag); - int getPeriod()const; - void setPeriod(int period); - int getAmount()const; - void setAmount(int amount); - std::string getFromApp()const; - void setFromApp(const std::string& fromApp); - std::string getResourceOwnerAccount()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 getPeriodUnit()const; - void setPeriodUnit(const std::string& periodUnit); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string description_; - std::string startTime_; - int capacity_; - std::string regionId_; - std::vector tag_; - int period_; - int amount_; - std::string fromApp_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string periodUnit_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_PURCHASESTORAGECAPACITYUNITREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_PURCHASESTORAGECAPACITYUNITREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_PURCHASESTORAGECAPACITYUNITREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT PurchaseStorageCapacityUnitRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + PurchaseStorageCapacityUnitRequest(); + ~PurchaseStorageCapacityUnitRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + int getCapacity() const; + void setCapacity(int capacity); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); + int getPeriod() const; + void setPeriod(int period); + int getAmount() const; + void setAmount(int amount); + std::string getFromApp() const; + void setFromApp(const std::string &fromApp); + std::string getResourceOwnerAccount() 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 getPeriodUnit() const; + void setPeriodUnit(const std::string &periodUnit); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string description_; + std::string startTime_; + int capacity_; + std::string regionId_; + std::vector tag_; + int period_; + int amount_; + std::string fromApp_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string periodUnit_; + std::string name_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_PURCHASESTORAGECAPACITYUNITREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ReActivateInstancesRequest.h b/ecs/include/alibabacloud/ecs/model/ReActivateInstancesRequest.h index 273a4411c..58000ca76 100644 --- a/ecs/include/alibabacloud/ecs/model/ReActivateInstancesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ReActivateInstancesRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_REACTIVATEINSTANCESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_REACTIVATEINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ReActivateInstancesRequest : public RpcServiceRequest - { - - public: - ReActivateInstancesRequest(); - ~ReActivateInstancesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_REACTIVATEINSTANCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_REACTIVATEINSTANCESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_REACTIVATEINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ReActivateInstancesRequest : public RpcServiceRequest { +public: + ReActivateInstancesRequest(); + ~ReActivateInstancesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_REACTIVATEINSTANCESREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ReInitDiskRequest.h b/ecs/include/alibabacloud/ecs/model/ReInitDiskRequest.h index b7606c3d5..ec63b112c 100644 --- a/ecs/include/alibabacloud/ecs/model/ReInitDiskRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ReInitDiskRequest.h @@ -1,72 +1,66 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_REINITDISKREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_REINITDISKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ReInitDiskRequest : public RpcServiceRequest - { - - public: - ReInitDiskRequest(); - ~ReInitDiskRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - bool getAutoStartInstance()const; - void setAutoStartInstance(bool autoStartInstance); - std::string getSecurityEnhancementStrategy()const; - void setSecurityEnhancementStrategy(const std::string& securityEnhancementStrategy); - std::string getKeyPairName()const; - void setKeyPairName(const std::string& keyPairName); - std::string getPassword()const; - void setPassword(const std::string& password); - std::string getDiskId()const; - void setDiskId(const std::string& diskId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - bool autoStartInstance_; - std::string securityEnhancementStrategy_; - std::string keyPairName_; - std::string password_; - std::string diskId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_REINITDISKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_REINITDISKREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_REINITDISKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ReInitDiskRequest : public RpcServiceRequest { +public: + ReInitDiskRequest(); + ~ReInitDiskRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + bool getAutoStartInstance() const; + void setAutoStartInstance(bool autoStartInstance); + std::string getSecurityEnhancementStrategy() const; + void setSecurityEnhancementStrategy(const std::string &securityEnhancementStrategy); + std::string getKeyPairName() const; + void setKeyPairName(const std::string &keyPairName); + std::string getPassword() const; + void setPassword(const std::string &password); + std::string getDiskId() const; + void setDiskId(const std::string &diskId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + bool autoStartInstance_; + std::string securityEnhancementStrategy_; + std::string keyPairName_; + std::string password_; + std::string diskId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_REINITDISKREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/RebootInstanceRequest.h b/ecs/include/alibabacloud/ecs/model/RebootInstanceRequest.h index 7876767d2..52a520830 100644 --- a/ecs/include/alibabacloud/ecs/model/RebootInstanceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/RebootInstanceRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_REBOOTINSTANCEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_REBOOTINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT RebootInstanceRequest : public RpcServiceRequest - { - - public: - RebootInstanceRequest(); - ~RebootInstanceRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - bool getForceStop()const; - void setForceStop(bool forceStop); - bool getDryRun()const; - void setDryRun(bool dryRun); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - long resourceOwnerId_; - bool forceStop_; - bool dryRun_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_REBOOTINSTANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_REBOOTINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_REBOOTINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT RebootInstanceRequest : public RpcServiceRequest { +public: + RebootInstanceRequest(); + ~RebootInstanceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + bool getForceStop() const; + void setForceStop(bool forceStop); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + long resourceOwnerId_; + bool forceStop_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_REBOOTINSTANCEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/RebootInstancesRequest.h b/ecs/include/alibabacloud/ecs/model/RebootInstancesRequest.h index 644156297..56727a2cb 100644 --- a/ecs/include/alibabacloud/ecs/model/RebootInstancesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/RebootInstancesRequest.h @@ -1,72 +1,66 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_REBOOTINSTANCESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_REBOOTINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT RebootInstancesRequest : public RpcServiceRequest - { - - public: - RebootInstancesRequest(); - ~RebootInstancesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getBatchOptimization()const; - void setBatchOptimization(const std::string& batchOptimization); - bool getDryRun()const; - void setDryRun(bool dryRun); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - bool getForceReboot()const; - void setForceReboot(bool forceReboot); - std::vector getInstanceId()const; - void setInstanceId(const std::vector& instanceId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string batchOptimization_; - bool dryRun_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - bool forceReboot_; - std::vector instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_REBOOTINSTANCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_REBOOTINSTANCESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_REBOOTINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT RebootInstancesRequest : public RpcServiceRequest { +public: + RebootInstancesRequest(); + ~RebootInstancesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getBatchOptimization() const; + void setBatchOptimization(const std::string &batchOptimization); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + bool getForceReboot() const; + void setForceReboot(bool forceReboot); + std::vector getInstanceId() const; + void setInstanceId(const std::vector &instanceId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string batchOptimization_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + bool forceReboot_; + std::vector instanceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_REBOOTINSTANCESREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/RecoverVirtualBorderRouterRequest.h b/ecs/include/alibabacloud/ecs/model/RecoverVirtualBorderRouterRequest.h index 4b004cd68..497f3a35a 100644 --- a/ecs/include/alibabacloud/ecs/model/RecoverVirtualBorderRouterRequest.h +++ b/ecs/include/alibabacloud/ecs/model/RecoverVirtualBorderRouterRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_RECOVERVIRTUALBORDERROUTERREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_RECOVERVIRTUALBORDERROUTERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT RecoverVirtualBorderRouterRequest : public RpcServiceRequest - { - - public: - RecoverVirtualBorderRouterRequest(); - ~RecoverVirtualBorderRouterRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getVbrId()const; - void setVbrId(const std::string& vbrId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getUserCidr()const; - void setUserCidr(const std::string& userCidr); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string vbrId_; - std::string regionId_; - std::string userCidr_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_RECOVERVIRTUALBORDERROUTERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_RECOVERVIRTUALBORDERROUTERREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_RECOVERVIRTUALBORDERROUTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT RecoverVirtualBorderRouterRequest : public RpcServiceRequest { +public: + RecoverVirtualBorderRouterRequest(); + ~RecoverVirtualBorderRouterRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getVbrId() const; + void setVbrId(const std::string &vbrId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getUserCidr() const; + void setUserCidr(const std::string &userCidr); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string vbrId_; + std::string regionId_; + std::string userCidr_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_RECOVERVIRTUALBORDERROUTERREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/RedeployDedicatedHostRequest.h b/ecs/include/alibabacloud/ecs/model/RedeployDedicatedHostRequest.h index 6a6c2495a..8856eda3e 100644 --- a/ecs/include/alibabacloud/ecs/model/RedeployDedicatedHostRequest.h +++ b/ecs/include/alibabacloud/ecs/model/RedeployDedicatedHostRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_REDEPLOYDEDICATEDHOSTREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_REDEPLOYDEDICATEDHOSTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT RedeployDedicatedHostRequest : public RpcServiceRequest - { - - public: - RedeployDedicatedHostRequest(); - ~RedeployDedicatedHostRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getDedicatedHostId()const; - void setDedicatedHostId(const std::string& dedicatedHostId); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string dedicatedHostId_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_REDEPLOYDEDICATEDHOSTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_REDEPLOYDEDICATEDHOSTREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_REDEPLOYDEDICATEDHOSTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT RedeployDedicatedHostRequest : public RpcServiceRequest { +public: + RedeployDedicatedHostRequest(); + ~RedeployDedicatedHostRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getDedicatedHostId() const; + void setDedicatedHostId(const std::string &dedicatedHostId); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string dedicatedHostId_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_REDEPLOYDEDICATEDHOSTREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/RedeployInstanceRequest.h b/ecs/include/alibabacloud/ecs/model/RedeployInstanceRequest.h index c684e01c3..3e621ba07 100644 --- a/ecs/include/alibabacloud/ecs/model/RedeployInstanceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/RedeployInstanceRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_REDEPLOYINSTANCEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_REDEPLOYINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT RedeployInstanceRequest : public RpcServiceRequest - { - - public: - RedeployInstanceRequest(); - ~RedeployInstanceRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - bool getForceStop()const; - void setForceStop(bool forceStop); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - long resourceOwnerId_; - bool forceStop_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_REDEPLOYINSTANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_REDEPLOYINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_REDEPLOYINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT RedeployInstanceRequest : public RpcServiceRequest { +public: + RedeployInstanceRequest(); + ~RedeployInstanceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + bool getForceStop() const; + void setForceStop(bool forceStop); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + long resourceOwnerId_; + bool forceStop_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_REDEPLOYINSTANCEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ReleaseCapacityReservationRequest.h b/ecs/include/alibabacloud/ecs/model/ReleaseCapacityReservationRequest.h index c5d16a82c..431d627a0 100644 --- a/ecs/include/alibabacloud/ecs/model/ReleaseCapacityReservationRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ReleaseCapacityReservationRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_RELEASECAPACITYRESERVATIONREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_RELEASECAPACITYRESERVATIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ReleaseCapacityReservationRequest : public RpcServiceRequest - { - - public: - ReleaseCapacityReservationRequest(); - ~ReleaseCapacityReservationRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getPrivatePoolOptionsId()const; - void setPrivatePoolOptionsId(const std::string& privatePoolOptionsId); - bool getDryRun()const; - void setDryRun(bool dryRun); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string privatePoolOptionsId_; - bool dryRun_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_RELEASECAPACITYRESERVATIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_RELEASECAPACITYRESERVATIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_RELEASECAPACITYRESERVATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ReleaseCapacityReservationRequest : public RpcServiceRequest { +public: + ReleaseCapacityReservationRequest(); + ~ReleaseCapacityReservationRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getPrivatePoolOptionsId() const; + void setPrivatePoolOptionsId(const std::string &privatePoolOptionsId); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string privatePoolOptionsId_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_RELEASECAPACITYRESERVATIONREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ReleaseDedicatedHostRequest.h b/ecs/include/alibabacloud/ecs/model/ReleaseDedicatedHostRequest.h index b5de4ba68..611172ca8 100644 --- a/ecs/include/alibabacloud/ecs/model/ReleaseDedicatedHostRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ReleaseDedicatedHostRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_RELEASEDEDICATEDHOSTREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_RELEASEDEDICATEDHOSTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ReleaseDedicatedHostRequest : public RpcServiceRequest - { - - public: - ReleaseDedicatedHostRequest(); - ~ReleaseDedicatedHostRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getDedicatedHostId()const; - void setDedicatedHostId(const std::string& dedicatedHostId); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string dedicatedHostId_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_RELEASEDEDICATEDHOSTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_RELEASEDEDICATEDHOSTREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_RELEASEDEDICATEDHOSTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ReleaseDedicatedHostRequest : public RpcServiceRequest { +public: + ReleaseDedicatedHostRequest(); + ~ReleaseDedicatedHostRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getDedicatedHostId() const; + void setDedicatedHostId(const std::string &dedicatedHostId); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string dedicatedHostId_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_RELEASEDEDICATEDHOSTREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ReleaseEipAddressRequest.h b/ecs/include/alibabacloud/ecs/model/ReleaseEipAddressRequest.h index a3e779463..4bc25b5fe 100644 --- a/ecs/include/alibabacloud/ecs/model/ReleaseEipAddressRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ReleaseEipAddressRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_RELEASEEIPADDRESSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_RELEASEEIPADDRESSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ReleaseEipAddressRequest : public RpcServiceRequest - { - - public: - ReleaseEipAddressRequest(); - ~ReleaseEipAddressRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAllocationId()const; - void setAllocationId(const std::string& allocationId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string allocationId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_RELEASEEIPADDRESSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_RELEASEEIPADDRESSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_RELEASEEIPADDRESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ReleaseEipAddressRequest : public RpcServiceRequest { +public: + ReleaseEipAddressRequest(); + ~ReleaseEipAddressRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAllocationId() const; + void setAllocationId(const std::string &allocationId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string allocationId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_RELEASEEIPADDRESSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ReleasePublicIpAddressRequest.h b/ecs/include/alibabacloud/ecs/model/ReleasePublicIpAddressRequest.h index 7c91bf45e..cc3487733 100644 --- a/ecs/include/alibabacloud/ecs/model/ReleasePublicIpAddressRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ReleasePublicIpAddressRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_RELEASEPUBLICIPADDRESSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_RELEASEPUBLICIPADDRESSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ReleasePublicIpAddressRequest : public RpcServiceRequest - { - - public: - ReleasePublicIpAddressRequest(); - ~ReleasePublicIpAddressRequest(); - - 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 getPublicIpAddress()const; - void setPublicIpAddress(const std::string& publicIpAddress); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string publicIpAddress_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_RELEASEPUBLICIPADDRESSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_RELEASEPUBLICIPADDRESSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_RELEASEPUBLICIPADDRESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ReleasePublicIpAddressRequest : public RpcServiceRequest { +public: + ReleasePublicIpAddressRequest(); + ~ReleasePublicIpAddressRequest(); + 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 getPublicIpAddress() const; + void setPublicIpAddress(const std::string &publicIpAddress); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string publicIpAddress_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_RELEASEPUBLICIPADDRESSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/RemoveBandwidthPackageIpsRequest.h b/ecs/include/alibabacloud/ecs/model/RemoveBandwidthPackageIpsRequest.h index d7020da65..5f6e8bc4e 100644 --- a/ecs/include/alibabacloud/ecs/model/RemoveBandwidthPackageIpsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/RemoveBandwidthPackageIpsRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_REMOVEBANDWIDTHPACKAGEIPSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_REMOVEBANDWIDTHPACKAGEIPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT RemoveBandwidthPackageIpsRequest : public RpcServiceRequest - { - - public: - RemoveBandwidthPackageIpsRequest(); - ~RemoveBandwidthPackageIpsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::vector getRemovedIpAddresses()const; - void setRemovedIpAddresses(const std::vector& removedIpAddresses); - std::string getBandwidthPackageId()const; - void setBandwidthPackageId(const std::string& bandwidthPackageId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - std::vector removedIpAddresses_; - std::string bandwidthPackageId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_REMOVEBANDWIDTHPACKAGEIPSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_REMOVEBANDWIDTHPACKAGEIPSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_REMOVEBANDWIDTHPACKAGEIPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT RemoveBandwidthPackageIpsRequest : public RpcServiceRequest { +public: + RemoveBandwidthPackageIpsRequest(); + ~RemoveBandwidthPackageIpsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getRemovedIpAddresses() const; + void setRemovedIpAddresses(const std::vector &removedIpAddresses); + std::string getBandwidthPackageId() const; + void setBandwidthPackageId(const std::string &bandwidthPackageId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::vector removedIpAddresses_; + std::string bandwidthPackageId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_REMOVEBANDWIDTHPACKAGEIPSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/RemoveTagsRequest.h b/ecs/include/alibabacloud/ecs/model/RemoveTagsRequest.h index 09e80d2e9..7c9ef388b 100644 --- a/ecs/include/alibabacloud/ecs/model/RemoveTagsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/RemoveTagsRequest.h @@ -1,72 +1,64 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_REMOVETAGSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_REMOVETAGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT RemoveTagsRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string value; - std::string key; - }; - - public: - RemoveTagsRequest(); - ~RemoveTagsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getResourceId()const; - void setResourceId(const std::string& resourceId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getResourceType()const; - void setResourceType(const std::string& resourceType); - - private: - long resourceOwnerId_; - std::string regionId_; - std::vector tag_; - std::string resourceId_; - std::string resourceOwnerAccount_; - long ownerId_; - std::string resourceType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_REMOVETAGSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_REMOVETAGSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_REMOVETAGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT RemoveTagsRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + RemoveTagsRequest(); + ~RemoveTagsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + +private: + long resourceOwnerId_; + std::string regionId_; + std::vector tag_; + std::string resourceId_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string resourceType_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_REMOVETAGSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/RenewDedicatedHostsRequest.h b/ecs/include/alibabacloud/ecs/model/RenewDedicatedHostsRequest.h index 7bb07d8b5..4b0f8b032 100644 --- a/ecs/include/alibabacloud/ecs/model/RenewDedicatedHostsRequest.h +++ b/ecs/include/alibabacloud/ecs/model/RenewDedicatedHostsRequest.h @@ -1,72 +1,66 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_RENEWDEDICATEDHOSTSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_RENEWDEDICATEDHOSTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT RenewDedicatedHostsRequest : public RpcServiceRequest - { - - public: - RenewDedicatedHostsRequest(); - ~RenewDedicatedHostsRequest(); - - std::string getDedicatedHostIds()const; - void setDedicatedHostIds(const std::string& dedicatedHostIds); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - int getPeriod()const; - void setPeriod(int period); - std::string getResourceOwnerAccount()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 getPeriodUnit()const; - void setPeriodUnit(const std::string& periodUnit); - - private: - std::string dedicatedHostIds_; - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - int period_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string periodUnit_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_RENEWDEDICATEDHOSTSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_RENEWDEDICATEDHOSTSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_RENEWDEDICATEDHOSTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT RenewDedicatedHostsRequest : public RpcServiceRequest { +public: + RenewDedicatedHostsRequest(); + ~RenewDedicatedHostsRequest(); + std::string getDedicatedHostIds() const; + void setDedicatedHostIds(const std::string &dedicatedHostIds); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPeriod() const; + void setPeriod(int period); + std::string getResourceOwnerAccount() 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 getPeriodUnit() const; + void setPeriodUnit(const std::string &periodUnit); + +private: + std::string dedicatedHostIds_; + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + int period_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string periodUnit_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_RENEWDEDICATEDHOSTSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/RenewInstanceRequest.h b/ecs/include/alibabacloud/ecs/model/RenewInstanceRequest.h index f765c693c..974f6b8f2 100644 --- a/ecs/include/alibabacloud/ecs/model/RenewInstanceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/RenewInstanceRequest.h @@ -1,72 +1,66 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_RENEWINSTANCEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_RENEWINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT RenewInstanceRequest : public RpcServiceRequest - { - - public: - RenewInstanceRequest(); - ~RenewInstanceRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - int getPeriod()const; - void setPeriod(int period); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - int getExpectedRenewDay()const; - void setExpectedRenewDay(int expectedRenewDay); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPeriodUnit()const; - void setPeriodUnit(const std::string& periodUnit); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - long resourceOwnerId_; - std::string clientToken_; - int period_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - int expectedRenewDay_; - long ownerId_; - std::string periodUnit_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_RENEWINSTANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_RENEWINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_RENEWINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT RenewInstanceRequest : public RpcServiceRequest { +public: + RenewInstanceRequest(); + ~RenewInstanceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + int getPeriod() const; + void setPeriod(int period); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + int getExpectedRenewDay() const; + void setExpectedRenewDay(int expectedRenewDay); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPeriodUnit() const; + void setPeriodUnit(const std::string &periodUnit); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + long resourceOwnerId_; + std::string clientToken_; + int period_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int expectedRenewDay_; + long ownerId_; + std::string periodUnit_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_RENEWINSTANCEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ReplaceSystemDiskRequest.h b/ecs/include/alibabacloud/ecs/model/ReplaceSystemDiskRequest.h index 8f33eadbd..b0be0afe3 100644 --- a/ecs/include/alibabacloud/ecs/model/ReplaceSystemDiskRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ReplaceSystemDiskRequest.h @@ -1,93 +1,87 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_REPLACESYSTEMDISKREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_REPLACESYSTEMDISKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ReplaceSystemDiskRequest : public RpcServiceRequest - { - - public: - ReplaceSystemDiskRequest(); - ~ReplaceSystemDiskRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getImageId()const; - void setImageId(const std::string& imageId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getSecurityEnhancementStrategy()const; - void setSecurityEnhancementStrategy(const std::string& securityEnhancementStrategy); - std::string getKeyPairName()const; - void setKeyPairName(const std::string& keyPairName); - std::string getPlatform()const; - void setPlatform(const std::string& platform); - std::string getPassword()const; - void setPassword(const std::string& password); - bool getPasswordInherit()const; - void setPasswordInherit(bool passwordInherit); - std::string getDiskId()const; - void setDiskId(const std::string& diskId); - std::string getArchitecture()const; - void setArchitecture(const std::string& architecture); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - int getSystemDiskSize()const; - void setSystemDiskSize(int systemDiskSize); - bool getUseAdditionalService()const; - void setUseAdditionalService(bool useAdditionalService); - - private: - long resourceOwnerId_; - std::string imageId_; - std::string clientToken_; - std::string securityEnhancementStrategy_; - std::string keyPairName_; - std::string platform_; - std::string password_; - bool passwordInherit_; - std::string diskId_; - std::string architecture_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string instanceId_; - int systemDiskSize_; - bool useAdditionalService_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_REPLACESYSTEMDISKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_REPLACESYSTEMDISKREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_REPLACESYSTEMDISKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ReplaceSystemDiskRequest : public RpcServiceRequest { +public: + ReplaceSystemDiskRequest(); + ~ReplaceSystemDiskRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getImageId() const; + void setImageId(const std::string &imageId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getSecurityEnhancementStrategy() const; + void setSecurityEnhancementStrategy(const std::string &securityEnhancementStrategy); + std::string getKeyPairName() const; + void setKeyPairName(const std::string &keyPairName); + std::string getPlatform() const; + void setPlatform(const std::string &platform); + std::string getPassword() const; + void setPassword(const std::string &password); + bool getPasswordInherit() const; + void setPasswordInherit(bool passwordInherit); + std::string getDiskId() const; + void setDiskId(const std::string &diskId); + std::string getArchitecture() const; + void setArchitecture(const std::string &architecture); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + int getSystemDiskSize() const; + void setSystemDiskSize(int systemDiskSize); + bool getUseAdditionalService() const; + void setUseAdditionalService(bool useAdditionalService); + +private: + long resourceOwnerId_; + std::string imageId_; + std::string clientToken_; + std::string securityEnhancementStrategy_; + std::string keyPairName_; + std::string platform_; + std::string password_; + bool passwordInherit_; + std::string diskId_; + std::string architecture_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; + int systemDiskSize_; + bool useAdditionalService_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_REPLACESYSTEMDISKREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ReportInstancesStatusRequest.h b/ecs/include/alibabacloud/ecs/model/ReportInstancesStatusRequest.h index 2fa1e4e01..19aca9b37 100644 --- a/ecs/include/alibabacloud/ecs/model/ReportInstancesStatusRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ReportInstancesStatusRequest.h @@ -1,84 +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_ECS_MODEL_REPORTINSTANCESSTATUSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_REPORTINSTANCESSTATUSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ReportInstancesStatusRequest : public RpcServiceRequest - { - - public: - ReportInstancesStatusRequest(); - ~ReportInstancesStatusRequest(); - - std::string getReason()const; - void setReason(const std::string& reason); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getIssueCategory()const; - void setIssueCategory(const std::string& issueCategory); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::vector getDiskId()const; - void setDiskId(const std::vector& diskId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::vector getInstanceId()const; - void setInstanceId(const std::vector& instanceId); - std::vector getDevice()const; - void setDevice(const std::vector& device); - - private: - std::string reason_; - long resourceOwnerId_; - std::string description_; - std::string startTime_; - std::string issueCategory_; - std::string regionId_; - std::vector diskId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string endTime_; - long ownerId_; - std::vector instanceId_; - std::vector device_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_REPORTINSTANCESSTATUSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_REPORTINSTANCESSTATUSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_REPORTINSTANCESSTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ReportInstancesStatusRequest : public RpcServiceRequest { +public: + ReportInstancesStatusRequest(); + ~ReportInstancesStatusRequest(); + std::string getReason() const; + void setReason(const std::string &reason); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getIssueCategory() const; + void setIssueCategory(const std::string &issueCategory); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getDiskId() const; + void setDiskId(const std::vector &diskId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getInstanceId() const; + void setInstanceId(const std::vector &instanceId); + std::vector getDevice() const; + void setDevice(const std::vector &device); + +private: + std::string reason_; + long resourceOwnerId_; + std::string description_; + std::string startTime_; + std::string issueCategory_; + std::string regionId_; + std::vector diskId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string endTime_; + long ownerId_; + std::vector instanceId_; + std::vector device_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_REPORTINSTANCESSTATUSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ResetDiskRequest.h b/ecs/include/alibabacloud/ecs/model/ResetDiskRequest.h index 2b4a96e75..a65455928 100644 --- a/ecs/include/alibabacloud/ecs/model/ResetDiskRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ResetDiskRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_RESETDISKREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_RESETDISKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ResetDiskRequest : public RpcServiceRequest - { - - public: - ResetDiskRequest(); - ~ResetDiskRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getSnapshotId()const; - void setSnapshotId(const std::string& snapshotId); - std::string getDiskId()const; - void setDiskId(const std::string& diskId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string snapshotId_; - std::string diskId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_RESETDISKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_RESETDISKREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_RESETDISKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ResetDiskRequest : public RpcServiceRequest { +public: + ResetDiskRequest(); + ~ResetDiskRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSnapshotId() const; + void setSnapshotId(const std::string &snapshotId); + std::string getDiskId() const; + void setDiskId(const std::string &diskId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string snapshotId_; + std::string diskId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_RESETDISKREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ResetDisksRequest.h b/ecs/include/alibabacloud/ecs/model/ResetDisksRequest.h index 63c9f4566..3c06a211b 100644 --- a/ecs/include/alibabacloud/ecs/model/ResetDisksRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ResetDisksRequest.h @@ -1,69 +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_ECS_MODEL_RESETDISKSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_RESETDISKSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ResetDisksRequest : public RpcServiceRequest - { - public: - struct Disk - { - std::string snapshotId; - std::string diskId; - }; - - public: - ResetDisksRequest(); - ~ResetDisksRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::vector getDisk()const; - void setDisk(const std::vector& disk); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::vector disk_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_RESETDISKSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_RESETDISKSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_RESETDISKSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ResetDisksRequest : public RpcServiceRequest { +public: + struct Disk { + std::string snapshotId; + std::string diskId; + }; + ResetDisksRequest(); + ~ResetDisksRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getDisk() const; + void setDisk(const std::vector &disk); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::vector disk_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_RESETDISKSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/ResizeDiskRequest.h b/ecs/include/alibabacloud/ecs/model/ResizeDiskRequest.h index d9b930674..c509aaac0 100644 --- a/ecs/include/alibabacloud/ecs/model/ResizeDiskRequest.h +++ b/ecs/include/alibabacloud/ecs/model/ResizeDiskRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_RESIZEDISKREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_RESIZEDISKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT ResizeDiskRequest : public RpcServiceRequest - { - - public: - ResizeDiskRequest(); - ~ResizeDiskRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getType()const; - void setType(const std::string& type); - std::string getDiskId()const; - void setDiskId(const std::string& diskId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - int getNewSize()const; - void setNewSize(int newSize); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string type_; - std::string diskId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - int newSize_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_RESIZEDISKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_RESIZEDISKREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_RESIZEDISKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT ResizeDiskRequest : public RpcServiceRequest { +public: + ResizeDiskRequest(); + ~ResizeDiskRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getType() const; + void setType(const std::string &type); + std::string getDiskId() const; + void setDiskId(const std::string &diskId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + int getNewSize() const; + void setNewSize(int newSize); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string type_; + std::string diskId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int newSize_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_RESIZEDISKREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupEgressRequest.h b/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupEgressRequest.h index 000b6077c..7dfe2df1c 100644 --- a/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupEgressRequest.h +++ b/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupEgressRequest.h @@ -1,111 +1,105 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_REVOKESECURITYGROUPEGRESSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_REVOKESECURITYGROUPEGRESSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT RevokeSecurityGroupEgressRequest : public RpcServiceRequest - { - - public: - RevokeSecurityGroupEgressRequest(); - ~RevokeSecurityGroupEgressRequest(); - - std::string getNicType()const; - void setNicType(const std::string& nicType); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getSourcePortRange()const; - void setSourcePortRange(const std::string& sourcePortRange); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getDestPrefixListId()const; - void setDestPrefixListId(const std::string& destPrefixListId); - std::string getSecurityGroupId()const; - void setSecurityGroupId(const std::string& securityGroupId); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getIpv6DestCidrIp()const; - void setIpv6DestCidrIp(const std::string& ipv6DestCidrIp); - std::string getIpv6SourceCidrIp()const; - void setIpv6SourceCidrIp(const std::string& ipv6SourceCidrIp); - std::string getPolicy()const; - void setPolicy(const std::string& policy); - std::string getPortRange()const; - void setPortRange(const std::string& portRange); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getIpProtocol()const; - void setIpProtocol(const std::string& ipProtocol); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getSourceCidrIp()const; - void setSourceCidrIp(const std::string& sourceCidrIp); - std::string getDestGroupId()const; - void setDestGroupId(const std::string& destGroupId); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getDestGroupOwnerAccount()const; - void setDestGroupOwnerAccount(const std::string& destGroupOwnerAccount); - std::string getPriority()const; - void setPriority(const std::string& priority); - std::string getDestCidrIp()const; - void setDestCidrIp(const std::string& destCidrIp); - long getDestGroupOwnerId()const; - void setDestGroupOwnerId(long destGroupOwnerId); - - private: - std::string nicType_; - long resourceOwnerId_; - std::string sourcePortRange_; - std::string clientToken_; - std::string destPrefixListId_; - std::string securityGroupId_; - std::string description_; - std::string regionId_; - std::string ipv6DestCidrIp_; - std::string ipv6SourceCidrIp_; - std::string policy_; - std::string portRange_; - std::string resourceOwnerAccount_; - std::string ipProtocol_; - std::string ownerAccount_; - std::string sourceCidrIp_; - std::string destGroupId_; - long ownerId_; - std::string destGroupOwnerAccount_; - std::string priority_; - std::string destCidrIp_; - long destGroupOwnerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_REVOKESECURITYGROUPEGRESSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_REVOKESECURITYGROUPEGRESSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_REVOKESECURITYGROUPEGRESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT RevokeSecurityGroupEgressRequest : public RpcServiceRequest { +public: + RevokeSecurityGroupEgressRequest(); + ~RevokeSecurityGroupEgressRequest(); + std::string getNicType() const; + void setNicType(const std::string &nicType); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourcePortRange() const; + void setSourcePortRange(const std::string &sourcePortRange); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDestPrefixListId() const; + void setDestPrefixListId(const std::string &destPrefixListId); + std::string getSecurityGroupId() const; + void setSecurityGroupId(const std::string &securityGroupId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getIpv6DestCidrIp() const; + void setIpv6DestCidrIp(const std::string &ipv6DestCidrIp); + std::string getIpv6SourceCidrIp() const; + void setIpv6SourceCidrIp(const std::string &ipv6SourceCidrIp); + std::string getPolicy() const; + void setPolicy(const std::string &policy); + std::string getPortRange() const; + void setPortRange(const std::string &portRange); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getIpProtocol() const; + void setIpProtocol(const std::string &ipProtocol); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getSourceCidrIp() const; + void setSourceCidrIp(const std::string &sourceCidrIp); + std::string getDestGroupId() const; + void setDestGroupId(const std::string &destGroupId); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getDestGroupOwnerAccount() const; + void setDestGroupOwnerAccount(const std::string &destGroupOwnerAccount); + std::string getPriority() const; + void setPriority(const std::string &priority); + std::string getDestCidrIp() const; + void setDestCidrIp(const std::string &destCidrIp); + long getDestGroupOwnerId() const; + void setDestGroupOwnerId(long destGroupOwnerId); + +private: + std::string nicType_; + long resourceOwnerId_; + std::string sourcePortRange_; + std::string clientToken_; + std::string destPrefixListId_; + std::string securityGroupId_; + std::string description_; + std::string regionId_; + std::string ipv6DestCidrIp_; + std::string ipv6SourceCidrIp_; + std::string policy_; + std::string portRange_; + std::string resourceOwnerAccount_; + std::string ipProtocol_; + std::string ownerAccount_; + std::string sourceCidrIp_; + std::string destGroupId_; + long ownerId_; + std::string destGroupOwnerAccount_; + std::string priority_; + std::string destCidrIp_; + long destGroupOwnerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_REVOKESECURITYGROUPEGRESSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupRequest.h b/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupRequest.h index d9fa7989b..8badbd24a 100644 --- a/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupRequest.h +++ b/ecs/include/alibabacloud/ecs/model/RevokeSecurityGroupRequest.h @@ -1,111 +1,105 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_REVOKESECURITYGROUPREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_REVOKESECURITYGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT RevokeSecurityGroupRequest : public RpcServiceRequest - { - - public: - RevokeSecurityGroupRequest(); - ~RevokeSecurityGroupRequest(); - - std::string getNicType()const; - void setNicType(const std::string& nicType); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getSourcePrefixListId()const; - void setSourcePrefixListId(const std::string& sourcePrefixListId); - std::string getSourcePortRange()const; - void setSourcePortRange(const std::string& sourcePortRange); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getSecurityGroupId()const; - void setSecurityGroupId(const std::string& securityGroupId); - std::string getDescription()const; - void setDescription(const std::string& description); - long getSourceGroupOwnerId()const; - void setSourceGroupOwnerId(long sourceGroupOwnerId); - std::string getSourceGroupOwnerAccount()const; - void setSourceGroupOwnerAccount(const std::string& sourceGroupOwnerAccount); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getIpv6DestCidrIp()const; - void setIpv6DestCidrIp(const std::string& ipv6DestCidrIp); - std::string getIpv6SourceCidrIp()const; - void setIpv6SourceCidrIp(const std::string& ipv6SourceCidrIp); - std::string getPolicy()const; - void setPolicy(const std::string& policy); - std::string getPortRange()const; - void setPortRange(const std::string& portRange); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getIpProtocol()const; - void setIpProtocol(const std::string& ipProtocol); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getSourceCidrIp()const; - void setSourceCidrIp(const std::string& sourceCidrIp); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPriority()const; - void setPriority(const std::string& priority); - std::string getDestCidrIp()const; - void setDestCidrIp(const std::string& destCidrIp); - std::string getSourceGroupId()const; - void setSourceGroupId(const std::string& sourceGroupId); - - private: - std::string nicType_; - long resourceOwnerId_; - std::string sourcePrefixListId_; - std::string sourcePortRange_; - std::string clientToken_; - std::string securityGroupId_; - std::string description_; - long sourceGroupOwnerId_; - std::string sourceGroupOwnerAccount_; - std::string regionId_; - std::string ipv6DestCidrIp_; - std::string ipv6SourceCidrIp_; - std::string policy_; - std::string portRange_; - std::string resourceOwnerAccount_; - std::string ipProtocol_; - std::string ownerAccount_; - std::string sourceCidrIp_; - long ownerId_; - std::string priority_; - std::string destCidrIp_; - std::string sourceGroupId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_REVOKESECURITYGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_REVOKESECURITYGROUPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_REVOKESECURITYGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT RevokeSecurityGroupRequest : public RpcServiceRequest { +public: + RevokeSecurityGroupRequest(); + ~RevokeSecurityGroupRequest(); + std::string getNicType() const; + void setNicType(const std::string &nicType); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourcePrefixListId() const; + void setSourcePrefixListId(const std::string &sourcePrefixListId); + std::string getSourcePortRange() const; + void setSourcePortRange(const std::string &sourcePortRange); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getSecurityGroupId() const; + void setSecurityGroupId(const std::string &securityGroupId); + std::string getDescription() const; + void setDescription(const std::string &description); + long getSourceGroupOwnerId() const; + void setSourceGroupOwnerId(long sourceGroupOwnerId); + std::string getSourceGroupOwnerAccount() const; + void setSourceGroupOwnerAccount(const std::string &sourceGroupOwnerAccount); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getIpv6DestCidrIp() const; + void setIpv6DestCidrIp(const std::string &ipv6DestCidrIp); + std::string getIpv6SourceCidrIp() const; + void setIpv6SourceCidrIp(const std::string &ipv6SourceCidrIp); + std::string getPolicy() const; + void setPolicy(const std::string &policy); + std::string getPortRange() const; + void setPortRange(const std::string &portRange); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getIpProtocol() const; + void setIpProtocol(const std::string &ipProtocol); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getSourceCidrIp() const; + void setSourceCidrIp(const std::string &sourceCidrIp); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPriority() const; + void setPriority(const std::string &priority); + std::string getDestCidrIp() const; + void setDestCidrIp(const std::string &destCidrIp); + std::string getSourceGroupId() const; + void setSourceGroupId(const std::string &sourceGroupId); + +private: + std::string nicType_; + long resourceOwnerId_; + std::string sourcePrefixListId_; + std::string sourcePortRange_; + std::string clientToken_; + std::string securityGroupId_; + std::string description_; + long sourceGroupOwnerId_; + std::string sourceGroupOwnerAccount_; + std::string regionId_; + std::string ipv6DestCidrIp_; + std::string ipv6SourceCidrIp_; + std::string policy_; + std::string portRange_; + std::string resourceOwnerAccount_; + std::string ipProtocol_; + std::string ownerAccount_; + std::string sourceCidrIp_; + long ownerId_; + std::string priority_; + std::string destCidrIp_; + std::string sourceGroupId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_REVOKESECURITYGROUPREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/RunCommandRequest.h b/ecs/include/alibabacloud/ecs/model/RunCommandRequest.h index cccf8aa94..5703e97c3 100644 --- a/ecs/include/alibabacloud/ecs/model/RunCommandRequest.h +++ b/ecs/include/alibabacloud/ecs/model/RunCommandRequest.h @@ -1,108 +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. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_RUNCOMMANDREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_RUNCOMMANDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT RunCommandRequest : public RpcServiceRequest - { - - public: - RunCommandRequest(); - ~RunCommandRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getWorkingDir()const; - void setWorkingDir(const std::string& workingDir); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getType()const; - void setType(const std::string& type); - std::string getCommandContent()const; - void setCommandContent(const std::string& commandContent); - long getTimeout()const; - void setTimeout(long timeout); - std::string getFrequency()const; - void setFrequency(const std::string& frequency); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getContentEncoding()const; - void setContentEncoding(const std::string& contentEncoding); - std::string getRepeatMode()const; - void setRepeatMode(const std::string& repeatMode); - std::string getWindowsPasswordName()const; - void setWindowsPasswordName(const std::string& windowsPasswordName); - bool getKeepCommand()const; - void setKeepCommand(bool keepCommand); - bool getTimed()const; - void setTimed(bool timed); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::vector getInstanceId()const; - void setInstanceId(const std::vector& instanceId); - std::string getName()const; - void setName(const std::string& name); - std::map getParameters()const; - void setParameters(const std::map& parameters); - bool getEnableParameter()const; - void setEnableParameter(bool enableParameter); - std::string getUsername()const; - void setUsername(const std::string& username); - - private: - long resourceOwnerId_; - std::string workingDir_; - std::string description_; - std::string type_; - std::string commandContent_; - long timeout_; - std::string frequency_; - std::string regionId_; - std::string contentEncoding_; - std::string repeatMode_; - std::string windowsPasswordName_; - bool keepCommand_; - bool timed_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::vector instanceId_; - std::string name_; - std::map parameters_; - bool enableParameter_; - std::string username_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_RUNCOMMANDREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_RUNCOMMANDREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_RUNCOMMANDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT RunCommandRequest : public RpcServiceRequest { +public: + RunCommandRequest(); + ~RunCommandRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getWorkingDir() const; + void setWorkingDir(const std::string &workingDir); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getType() const; + void setType(const std::string &type); + std::string getCommandContent() const; + void setCommandContent(const std::string &commandContent); + long getTimeout() const; + void setTimeout(long timeout); + std::string getFrequency() const; + void setFrequency(const std::string &frequency); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getContentEncoding() const; + void setContentEncoding(const std::string &contentEncoding); + std::string getRepeatMode() const; + void setRepeatMode(const std::string &repeatMode); + std::string getWindowsPasswordName() const; + void setWindowsPasswordName(const std::string &windowsPasswordName); + bool getKeepCommand() const; + void setKeepCommand(bool keepCommand); + bool getTimed() const; + void setTimed(bool timed); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getInstanceId() const; + void setInstanceId(const std::vector &instanceId); + std::string getName() const; + void setName(const std::string &name); + std::map getParameters() const; + void setParameters(std::map parameters); + bool getEnableParameter() const; + void setEnableParameter(bool enableParameter); + std::string getUsername() const; + void setUsername(const std::string &username); + +private: + long resourceOwnerId_; + std::string workingDir_; + std::string description_; + std::string type_; + std::string commandContent_; + long timeout_; + std::string frequency_; + std::string regionId_; + std::string contentEncoding_; + std::string repeatMode_; + std::string windowsPasswordName_; + bool keepCommand_; + bool timed_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::vector instanceId_; + std::string name_; + std::map parameters_; + bool enableParameter_; + std::string username_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_RUNCOMMANDREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/RunInstancesRequest.h b/ecs/include/alibabacloud/ecs/model/RunInstancesRequest.h index 9adf53092..e366fdd5d 100644 --- a/ecs/include/alibabacloud/ecs/model/RunInstancesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/RunInstancesRequest.h @@ -1,341 +1,332 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_RUNINSTANCESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_RUNINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT RunInstancesRequest : public RpcServiceRequest - { - public: - struct Arn - { - std::string roleType; - std::string rolearn; - long assumeRoleFor; - }; - struct Tag - { - std::string key; - std::string value; - }; - struct NetworkInterface - { - std::string vSwitchId; - std::string networkInterfaceName; - std::string description; - std::string securityGroupId; - std::string primaryIpAddress; - int queueNumber; - std::vector securityGroupIds; - }; - struct DataDisk - { - std::string performanceLevel; - std::string autoSnapshotPolicyId; - std::string encrypted; - std::string description; - std::string snapshotId; - std::string device; - int size; - std::string diskName; - std::string category; - std::string encryptAlgorithm; - bool deleteWithInstance; - std::string kMSKeyId; - std::string storageClusterId; - }; - - public: - RunInstancesRequest(); - ~RunInstancesRequest(); - - bool getUniqueSuffix()const; - void setUniqueSuffix(bool uniqueSuffix); - std::string getSecurityEnhancementStrategy()const; - void setSecurityEnhancementStrategy(const std::string& securityEnhancementStrategy); - int getMinAmount()const; - void setMinAmount(int minAmount); - bool getDeletionProtection()const; - void setDeletionProtection(bool deletionProtection); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getPrivatePoolOptionsMatchCriteria()const; - void setPrivatePoolOptionsMatchCriteria(const std::string& privatePoolOptionsMatchCriteria); - std::string getHostName()const; - void setHostName(const std::string& hostName); - std::string getPassword()const; - void setPassword(const std::string& password); - Struct getSystemDisk()const; - void setSystemDisk(const Struct& systemDisk); - int getDeploymentSetGroupNo()const; - void setDeploymentSetGroupNo(int deploymentSetGroupNo); - std::string getSystemDiskAutoSnapshotPolicyId()const; - void setSystemDiskAutoSnapshotPolicyId(const std::string& systemDiskAutoSnapshotPolicyId); - int getCpuOptionsCore()const; - void setCpuOptionsCore(int cpuOptionsCore); - int getPeriod()const; - void setPeriod(int period); - bool getDryRun()const; - void setDryRun(bool dryRun); - std::string getCpuOptionsNuma()const; - void setCpuOptionsNuma(const std::string& cpuOptionsNuma); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSpotStrategy()const; - void setSpotStrategy(const std::string& spotStrategy); - std::string getPrivateIpAddress()const; - void setPrivateIpAddress(const std::string& privateIpAddress); - std::string getPeriodUnit()const; - void setPeriodUnit(const std::string& periodUnit); - bool getAutoRenew()const; - void setAutoRenew(bool autoRenew); - std::string getInternetChargeType()const; - void setInternetChargeType(const std::string& internetChargeType); - int getInternetMaxBandwidthIn()const; - void setInternetMaxBandwidthIn(int internetMaxBandwidthIn); - std::string getAffinity()const; - void setAffinity(const std::string& affinity); - std::string getImageId()const; - void setImageId(const std::string& imageId); - std::string getSpotInterruptionBehavior()const; - void setSpotInterruptionBehavior(const std::string& spotInterruptionBehavior); - int getNetworkInterfaceQueueNumber()const; - void setNetworkInterfaceQueueNumber(int networkInterfaceQueueNumber); - std::string getIoOptimized()const; - void setIoOptimized(const std::string& ioOptimized); - std::string getSecurityGroupId()const; - void setSecurityGroupId(const std::string& securityGroupId); - bool getHibernationOptionsConfigured()const; - void setHibernationOptionsConfigured(bool hibernationOptionsConfigured); - std::string getSystemDiskPerformanceLevel()const; - void setSystemDiskPerformanceLevel(const std::string& systemDiskPerformanceLevel); - bool getPasswordInherit()const; - void setPasswordInherit(bool passwordInherit); - std::string getInstanceType()const; - void setInstanceType(const std::string& instanceType); - std::vector getArn()const; - void setArn(const std::vector& arn); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getSchedulerOptionsDedicatedHostClusterId()const; - void setSchedulerOptionsDedicatedHostClusterId(const std::string& schedulerOptionsDedicatedHostClusterId); - std::string getSystemDiskDiskName()const; - void setSystemDiskDiskName(const std::string& systemDiskDiskName); - std::string getDedicatedHostId()const; - void setDedicatedHostId(const std::string& dedicatedHostId); - int getSpotDuration()const; - void setSpotDuration(int spotDuration); - std::vector getSecurityGroupIds()const; - void setSecurityGroupIds(const std::vector& securityGroupIds); - std::string getSystemDiskSize()const; - void setSystemDiskSize(const std::string& systemDiskSize); - std::string getImageFamily()const; - void setImageFamily(const std::string& imageFamily); - std::string getLaunchTemplateName()const; - void setLaunchTemplateName(const std::string& launchTemplateName); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getHpcClusterId()const; - void setHpcClusterId(const std::string& hpcClusterId); - int getHttpPutResponseHopLimit()const; - void setHttpPutResponseHopLimit(int httpPutResponseHopLimit); - std::string getIsp()const; - void setIsp(const std::string& isp); - std::string getKeyPairName()const; - void setKeyPairName(const std::string& keyPairName); - float getSpotPriceLimit()const; - void setSpotPriceLimit(float spotPriceLimit); - int getStorageSetPartitionNumber()const; - void setStorageSetPartitionNumber(int storageSetPartitionNumber); - std::vector getTag()const; - void setTag(const std::vector& tag); - std::string getPrivatePoolOptionsId()const; - void setPrivatePoolOptionsId(const std::string& privatePoolOptionsId); - int getAutoRenewPeriod()const; - void setAutoRenewPeriod(int autoRenewPeriod); - std::string getLaunchTemplateId()const; - void setLaunchTemplateId(const std::string& launchTemplateId); - int getIpv6AddressCount()const; - void setIpv6AddressCount(int ipv6AddressCount); - std::vector getHostNames()const; - void setHostNames(const std::vector& hostNames); - std::string getCapacityReservationPreference()const; - void setCapacityReservationPreference(const std::string& capacityReservationPreference); - std::string getVSwitchId()const; - void setVSwitchId(const std::string& vSwitchId); - std::string getInstanceName()const; - void setInstanceName(const std::string& instanceName); - std::string getZoneId()const; - void setZoneId(const std::string& zoneId); - std::vector getIpv6Address()const; - void setIpv6Address(const std::vector& ipv6Address); - std::string getSecurityOptionsConfidentialComputingMode()const; - void setSecurityOptionsConfidentialComputingMode(const std::string& securityOptionsConfidentialComputingMode); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - int getInternetMaxBandwidthOut()const; - void setInternetMaxBandwidthOut(int internetMaxBandwidthOut); - std::string getDescription()const; - void setDescription(const std::string& description); - int getCpuOptionsThreadsPerCore()const; - void setCpuOptionsThreadsPerCore(int cpuOptionsThreadsPerCore); - std::string getSystemDiskCategory()const; - void setSystemDiskCategory(const std::string& systemDiskCategory); - std::string getSecurityOptionsTrustedSystemMode()const; - void setSecurityOptionsTrustedSystemMode(const std::string& securityOptionsTrustedSystemMode); - std::string getCapacityReservationId()const; - void setCapacityReservationId(const std::string& capacityReservationId); - std::string getUserData()const; - void setUserData(const std::string& userData); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getHttpEndpoint()const; - void setHttpEndpoint(const std::string& httpEndpoint); - std::string getInstanceChargeType()const; - void setInstanceChargeType(const std::string& instanceChargeType); - std::string getDeploymentSetId()const; - void setDeploymentSetId(const std::string& deploymentSetId); - std::vector getNetworkInterface()const; - void setNetworkInterface(const std::vector& networkInterface); - int getAmount()const; - void setAmount(int amount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getTenancy()const; - void setTenancy(const std::string& tenancy); - std::string getRamRoleName()const; - void setRamRoleName(const std::string& ramRoleName); - std::string getAutoReleaseTime()const; - void setAutoReleaseTime(const std::string& autoReleaseTime); - std::string getCreditSpecification()const; - void setCreditSpecification(const std::string& creditSpecification); - long getLaunchTemplateVersion()const; - void setLaunchTemplateVersion(long launchTemplateVersion); - std::string getSchedulerOptionsManagedPrivateSpaceId()const; - void setSchedulerOptionsManagedPrivateSpaceId(const std::string& schedulerOptionsManagedPrivateSpaceId); - std::vector getDataDisk()const; - void setDataDisk(const std::vector& dataDisk); - std::string getStorageSetId()const; - void setStorageSetId(const std::string& storageSetId); - std::string getHttpTokens()const; - void setHttpTokens(const std::string& httpTokens); - std::string getSystemDiskDescription()const; - void setSystemDiskDescription(const std::string& systemDiskDescription); - - private: - bool uniqueSuffix_; - std::string securityEnhancementStrategy_; - int minAmount_; - bool deletionProtection_; - std::string resourceGroupId_; - std::string privatePoolOptionsMatchCriteria_; - std::string hostName_; - std::string password_; - Struct systemDisk_; - int deploymentSetGroupNo_; - std::string systemDiskAutoSnapshotPolicyId_; - int cpuOptionsCore_; - int period_; - bool dryRun_; - std::string cpuOptionsNuma_; - long ownerId_; - std::string spotStrategy_; - std::string privateIpAddress_; - std::string periodUnit_; - bool autoRenew_; - std::string internetChargeType_; - int internetMaxBandwidthIn_; - std::string affinity_; - std::string imageId_; - std::string spotInterruptionBehavior_; - int networkInterfaceQueueNumber_; - std::string ioOptimized_; - std::string securityGroupId_; - bool hibernationOptionsConfigured_; - std::string systemDiskPerformanceLevel_; - bool passwordInherit_; - std::string instanceType_; - std::vector arn_; - std::string resourceOwnerAccount_; - std::string schedulerOptionsDedicatedHostClusterId_; - std::string systemDiskDiskName_; - std::string dedicatedHostId_; - int spotDuration_; - std::vector securityGroupIds_; - std::string systemDiskSize_; - std::string imageFamily_; - std::string launchTemplateName_; - long resourceOwnerId_; - std::string hpcClusterId_; - int httpPutResponseHopLimit_; - std::string isp_; - std::string keyPairName_; - float spotPriceLimit_; - int storageSetPartitionNumber_; - std::vector tag_; - std::string privatePoolOptionsId_; - int autoRenewPeriod_; - std::string launchTemplateId_; - int ipv6AddressCount_; - std::vector hostNames_; - std::string capacityReservationPreference_; - std::string vSwitchId_; - std::string instanceName_; - std::string zoneId_; - std::vector ipv6Address_; - std::string securityOptionsConfidentialComputingMode_; - std::string clientToken_; - int internetMaxBandwidthOut_; - std::string description_; - int cpuOptionsThreadsPerCore_; - std::string systemDiskCategory_; - std::string securityOptionsTrustedSystemMode_; - std::string capacityReservationId_; - std::string userData_; - std::string regionId_; - std::string httpEndpoint_; - std::string instanceChargeType_; - std::string deploymentSetId_; - std::vector networkInterface_; - int amount_; - std::string ownerAccount_; - std::string tenancy_; - std::string ramRoleName_; - std::string autoReleaseTime_; - std::string creditSpecification_; - long launchTemplateVersion_; - std::string schedulerOptionsManagedPrivateSpaceId_; - std::vector dataDisk_; - std::string storageSetId_; - std::string httpTokens_; - std::string systemDiskDescription_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_RUNINSTANCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_RUNINSTANCESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_RUNINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT RunInstancesRequest : public RpcServiceRequest { +public: + struct SystemDisk { + std::string storageClusterId; + }; + struct Arn { + std::string roleType; + std::string rolearn; + long assumeRoleFor; + }; + struct Tag { + std::string key; + std::string value; + }; + struct NetworkInterface { + std::string vSwitchId; + std::string networkInterfaceName; + std::string description; + std::string securityGroupId; + std::string primaryIpAddress; + int queueNumber; + }; + struct DataDisk { + std::string performanceLevel; + std::string autoSnapshotPolicyId; + std::string encrypted; + std::string description; + std::string snapshotId; + std::string device; + int size; + std::string diskName; + std::string category; + std::string encryptAlgorithm; + bool deleteWithInstance; + std::string kMSKeyId; + std::string storageClusterId; + }; + RunInstancesRequest(); + ~RunInstancesRequest(); + bool getUniqueSuffix() const; + void setUniqueSuffix(bool uniqueSuffix); + std::string getSecurityEnhancementStrategy() const; + void setSecurityEnhancementStrategy(const std::string &securityEnhancementStrategy); + int getMinAmount() const; + void setMinAmount(int minAmount); + bool getDeletionProtection() const; + void setDeletionProtection(bool deletionProtection); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getPrivatePoolOptionsMatchCriteria() const; + void setPrivatePoolOptionsMatchCriteria(const std::string &privatePoolOptionsMatchCriteria); + std::string getHostName() const; + void setHostName(const std::string &hostName); + std::string getPassword() const; + void setPassword(const std::string &password); + SystemDisk getSystemDisk() const; + void setSystemDisk(const SystemDisk &systemDisk); + int getDeploymentSetGroupNo() const; + void setDeploymentSetGroupNo(int deploymentSetGroupNo); + std::string getSystemDiskAutoSnapshotPolicyId() const; + void setSystemDiskAutoSnapshotPolicyId(const std::string &systemDiskAutoSnapshotPolicyId); + int getCpuOptionsCore() const; + void setCpuOptionsCore(int cpuOptionsCore); + int getPeriod() const; + void setPeriod(int period); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getCpuOptionsNuma() const; + void setCpuOptionsNuma(const std::string &cpuOptionsNuma); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSpotStrategy() const; + void setSpotStrategy(const std::string &spotStrategy); + std::string getPrivateIpAddress() const; + void setPrivateIpAddress(const std::string &privateIpAddress); + std::string getPeriodUnit() const; + void setPeriodUnit(const std::string &periodUnit); + bool getAutoRenew() const; + void setAutoRenew(bool autoRenew); + std::string getInternetChargeType() const; + void setInternetChargeType(const std::string &internetChargeType); + int getInternetMaxBandwidthIn() const; + void setInternetMaxBandwidthIn(int internetMaxBandwidthIn); + std::string getAffinity() const; + void setAffinity(const std::string &affinity); + std::string getImageId() const; + void setImageId(const std::string &imageId); + std::string getSpotInterruptionBehavior() const; + void setSpotInterruptionBehavior(const std::string &spotInterruptionBehavior); + int getNetworkInterfaceQueueNumber() const; + void setNetworkInterfaceQueueNumber(int networkInterfaceQueueNumber); + std::string getIoOptimized() const; + void setIoOptimized(const std::string &ioOptimized); + std::string getSecurityGroupId() const; + void setSecurityGroupId(const std::string &securityGroupId); + bool getHibernationOptionsConfigured() const; + void setHibernationOptionsConfigured(bool hibernationOptionsConfigured); + std::string getSystemDiskPerformanceLevel() const; + void setSystemDiskPerformanceLevel(const std::string &systemDiskPerformanceLevel); + bool getPasswordInherit() const; + void setPasswordInherit(bool passwordInherit); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + std::vector getArn() const; + void setArn(const std::vector &arn); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getSchedulerOptionsDedicatedHostClusterId() const; + void setSchedulerOptionsDedicatedHostClusterId(const std::string &schedulerOptionsDedicatedHostClusterId); + std::string getSystemDiskDiskName() const; + void setSystemDiskDiskName(const std::string &systemDiskDiskName); + std::string getDedicatedHostId() const; + void setDedicatedHostId(const std::string &dedicatedHostId); + int getSpotDuration() const; + void setSpotDuration(int spotDuration); + std::vector getSecurityGroupIds() const; + void setSecurityGroupIds(const std::vector &securityGroupIds); + std::string getSystemDiskSize() const; + void setSystemDiskSize(const std::string &systemDiskSize); + std::string getImageFamily() const; + void setImageFamily(const std::string &imageFamily); + std::string getLaunchTemplateName() const; + void setLaunchTemplateName(const std::string &launchTemplateName); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getHpcClusterId() const; + void setHpcClusterId(const std::string &hpcClusterId); + int getHttpPutResponseHopLimit() const; + void setHttpPutResponseHopLimit(int httpPutResponseHopLimit); + std::string getIsp() const; + void setIsp(const std::string &isp); + std::string getKeyPairName() const; + void setKeyPairName(const std::string &keyPairName); + float getSpotPriceLimit() const; + void setSpotPriceLimit(float spotPriceLimit); + int getStorageSetPartitionNumber() const; + void setStorageSetPartitionNumber(int storageSetPartitionNumber); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getPrivatePoolOptionsId() const; + void setPrivatePoolOptionsId(const std::string &privatePoolOptionsId); + int getAutoRenewPeriod() const; + void setAutoRenewPeriod(int autoRenewPeriod); + std::string getLaunchTemplateId() const; + void setLaunchTemplateId(const std::string &launchTemplateId); + int getIpv6AddressCount() const; + void setIpv6AddressCount(int ipv6AddressCount); + std::vector getHostNames() const; + void setHostNames(const std::vector &hostNames); + std::string getCapacityReservationPreference() const; + void setCapacityReservationPreference(const std::string &capacityReservationPreference); + std::string getVSwitchId() const; + void setVSwitchId(const std::string &vSwitchId); + std::string getInstanceName() const; + void setInstanceName(const std::string &instanceName); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + std::vector getIpv6Address() const; + void setIpv6Address(const std::vector &ipv6Address); + std::string getSecurityOptionsConfidentialComputingMode() const; + void setSecurityOptionsConfidentialComputingMode(const std::string &securityOptionsConfidentialComputingMode); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + int getInternetMaxBandwidthOut() const; + void setInternetMaxBandwidthOut(int internetMaxBandwidthOut); + std::string getDescription() const; + void setDescription(const std::string &description); + int getCpuOptionsThreadsPerCore() const; + void setCpuOptionsThreadsPerCore(int cpuOptionsThreadsPerCore); + std::string getSystemDiskCategory() const; + void setSystemDiskCategory(const std::string &systemDiskCategory); + std::string getSecurityOptionsTrustedSystemMode() const; + void setSecurityOptionsTrustedSystemMode(const std::string &securityOptionsTrustedSystemMode); + std::string getCapacityReservationId() const; + void setCapacityReservationId(const std::string &capacityReservationId); + std::string getUserData() const; + void setUserData(const std::string &userData); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getHttpEndpoint() const; + void setHttpEndpoint(const std::string &httpEndpoint); + std::string getInstanceChargeType() const; + void setInstanceChargeType(const std::string &instanceChargeType); + std::string getDeploymentSetId() const; + void setDeploymentSetId(const std::string &deploymentSetId); + std::vector getNetworkInterface() const; + void setNetworkInterface(const std::vector &networkInterface); + int getAmount() const; + void setAmount(int amount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getTenancy() const; + void setTenancy(const std::string &tenancy); + std::string getRamRoleName() const; + void setRamRoleName(const std::string &ramRoleName); + std::string getAutoReleaseTime() const; + void setAutoReleaseTime(const std::string &autoReleaseTime); + std::string getCreditSpecification() const; + void setCreditSpecification(const std::string &creditSpecification); + long getLaunchTemplateVersion() const; + void setLaunchTemplateVersion(long launchTemplateVersion); + std::string getSchedulerOptionsManagedPrivateSpaceId() const; + void setSchedulerOptionsManagedPrivateSpaceId(const std::string &schedulerOptionsManagedPrivateSpaceId); + std::vector getDataDisk() const; + void setDataDisk(const std::vector &dataDisk); + std::string getStorageSetId() const; + void setStorageSetId(const std::string &storageSetId); + std::string getHttpTokens() const; + void setHttpTokens(const std::string &httpTokens); + std::string getSystemDiskDescription() const; + void setSystemDiskDescription(const std::string &systemDiskDescription); + +private: + bool uniqueSuffix_; + std::string securityEnhancementStrategy_; + int minAmount_; + bool deletionProtection_; + std::string resourceGroupId_; + std::string privatePoolOptionsMatchCriteria_; + std::string hostName_; + std::string password_; + SystemDisk systemDisk_; + int deploymentSetGroupNo_; + std::string systemDiskAutoSnapshotPolicyId_; + int cpuOptionsCore_; + int period_; + bool dryRun_; + std::string cpuOptionsNuma_; + long ownerId_; + std::string spotStrategy_; + std::string privateIpAddress_; + std::string periodUnit_; + bool autoRenew_; + std::string internetChargeType_; + int internetMaxBandwidthIn_; + std::string affinity_; + std::string imageId_; + std::string spotInterruptionBehavior_; + int networkInterfaceQueueNumber_; + std::string ioOptimized_; + std::string securityGroupId_; + bool hibernationOptionsConfigured_; + std::string systemDiskPerformanceLevel_; + bool passwordInherit_; + std::string instanceType_; + std::vector arn_; + std::string resourceOwnerAccount_; + std::string schedulerOptionsDedicatedHostClusterId_; + std::string systemDiskDiskName_; + std::string dedicatedHostId_; + int spotDuration_; + std::vector securityGroupIds_; + std::string systemDiskSize_; + std::string imageFamily_; + std::string launchTemplateName_; + long resourceOwnerId_; + std::string hpcClusterId_; + int httpPutResponseHopLimit_; + std::string isp_; + std::string keyPairName_; + float spotPriceLimit_; + int storageSetPartitionNumber_; + std::vector tag_; + std::string privatePoolOptionsId_; + int autoRenewPeriod_; + std::string launchTemplateId_; + int ipv6AddressCount_; + std::vector hostNames_; + std::string capacityReservationPreference_; + std::string vSwitchId_; + std::string instanceName_; + std::string zoneId_; + std::vector ipv6Address_; + std::string securityOptionsConfidentialComputingMode_; + std::string clientToken_; + int internetMaxBandwidthOut_; + std::string description_; + int cpuOptionsThreadsPerCore_; + std::string systemDiskCategory_; + std::string securityOptionsTrustedSystemMode_; + std::string capacityReservationId_; + std::string userData_; + std::string regionId_; + std::string httpEndpoint_; + std::string instanceChargeType_; + std::string deploymentSetId_; + std::vector networkInterface_; + int amount_; + std::string ownerAccount_; + std::string tenancy_; + std::string ramRoleName_; + std::string autoReleaseTime_; + std::string creditSpecification_; + long launchTemplateVersion_; + std::string schedulerOptionsManagedPrivateSpaceId_; + std::vector dataDisk_; + std::string storageSetId_; + std::string httpTokens_; + std::string systemDiskDescription_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_RUNINSTANCESREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/SendFileRequest.h b/ecs/include/alibabacloud/ecs/model/SendFileRequest.h index 9e771c887..080abdd54 100644 --- a/ecs/include/alibabacloud/ecs/model/SendFileRequest.h +++ b/ecs/include/alibabacloud/ecs/model/SendFileRequest.h @@ -1,93 +1,87 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_SENDFILEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_SENDFILEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT SendFileRequest : public RpcServiceRequest - { - - public: - SendFileRequest(); - ~SendFileRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDescription()const; - void setDescription(const std::string& description); - long getTimeout()const; - void setTimeout(long timeout); - std::string getContent()const; - void setContent(const std::string& content); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getFileOwner()const; - void setFileOwner(const std::string& fileOwner); - bool getOverwrite()const; - void setOverwrite(bool overwrite); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getFileMode()const; - void setFileMode(const std::string& fileMode); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getContentType()const; - void setContentType(const std::string& contentType); - std::vector getInstanceId()const; - void setInstanceId(const std::vector& instanceId); - std::string getName()const; - void setName(const std::string& name); - std::string getFileGroup()const; - void setFileGroup(const std::string& fileGroup); - std::string getTargetDir()const; - void setTargetDir(const std::string& targetDir); - - private: - long resourceOwnerId_; - std::string description_; - long timeout_; - std::string content_; - std::string regionId_; - std::string fileOwner_; - bool overwrite_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string fileMode_; - long ownerId_; - std::string contentType_; - std::vector instanceId_; - std::string name_; - std::string fileGroup_; - std::string targetDir_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_SENDFILEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_SENDFILEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_SENDFILEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT SendFileRequest : public RpcServiceRequest { +public: + SendFileRequest(); + ~SendFileRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDescription() const; + void setDescription(const std::string &description); + long getTimeout() const; + void setTimeout(long timeout); + std::string getContent() const; + void setContent(const std::string &content); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getFileOwner() const; + void setFileOwner(const std::string &fileOwner); + bool getOverwrite() const; + void setOverwrite(bool overwrite); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getFileMode() const; + void setFileMode(const std::string &fileMode); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getContentType() const; + void setContentType(const std::string &contentType); + std::vector getInstanceId() const; + void setInstanceId(const std::vector &instanceId); + std::string getName() const; + void setName(const std::string &name); + std::string getFileGroup() const; + void setFileGroup(const std::string &fileGroup); + std::string getTargetDir() const; + void setTargetDir(const std::string &targetDir); + +private: + long resourceOwnerId_; + std::string description_; + long timeout_; + std::string content_; + std::string regionId_; + std::string fileOwner_; + bool overwrite_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string fileMode_; + long ownerId_; + std::string contentType_; + std::vector instanceId_; + std::string name_; + std::string fileGroup_; + std::string targetDir_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_SENDFILEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/StartDiskReplicaPairRequest.h b/ecs/include/alibabacloud/ecs/model/StartDiskReplicaPairRequest.h index 0806062f5..17a7abde5 100644 --- a/ecs/include/alibabacloud/ecs/model/StartDiskReplicaPairRequest.h +++ b/ecs/include/alibabacloud/ecs/model/StartDiskReplicaPairRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_STARTDISKREPLICAPAIRREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_STARTDISKREPLICAPAIRREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT StartDiskReplicaPairRequest : public RpcServiceRequest - { - - public: - StartDiskReplicaPairRequest(); - ~StartDiskReplicaPairRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getReplicaPairId()const; - void setReplicaPairId(const std::string& replicaPairId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string replicaPairId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_STARTDISKREPLICAPAIRREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_STARTDISKREPLICAPAIRREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_STARTDISKREPLICAPAIRREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT StartDiskReplicaPairRequest : public RpcServiceRequest { +public: + StartDiskReplicaPairRequest(); + ~StartDiskReplicaPairRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getReplicaPairId() const; + void setReplicaPairId(const std::string &replicaPairId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string replicaPairId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_STARTDISKREPLICAPAIRREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/StartElasticityAssuranceRequest.h b/ecs/include/alibabacloud/ecs/model/StartElasticityAssuranceRequest.h index 1e974473c..5cadf7312 100644 --- a/ecs/include/alibabacloud/ecs/model/StartElasticityAssuranceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/StartElasticityAssuranceRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_STARTELASTICITYASSURANCEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_STARTELASTICITYASSURANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT StartElasticityAssuranceRequest : public RpcServiceRequest - { - - public: - StartElasticityAssuranceRequest(); - ~StartElasticityAssuranceRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getPrivatePoolOptionsId()const; - void setPrivatePoolOptionsId(const std::string& privatePoolOptionsId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string privatePoolOptionsId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_STARTELASTICITYASSURANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_STARTELASTICITYASSURANCEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_STARTELASTICITYASSURANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT StartElasticityAssuranceRequest : public RpcServiceRequest { +public: + StartElasticityAssuranceRequest(); + ~StartElasticityAssuranceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getPrivatePoolOptionsId() const; + void setPrivatePoolOptionsId(const std::string &privatePoolOptionsId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string privatePoolOptionsId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_STARTELASTICITYASSURANCEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/StartImagePipelineExecutionRequest.h b/ecs/include/alibabacloud/ecs/model/StartImagePipelineExecutionRequest.h index 73300024d..21d84d1e6 100644 --- a/ecs/include/alibabacloud/ecs/model/StartImagePipelineExecutionRequest.h +++ b/ecs/include/alibabacloud/ecs/model/StartImagePipelineExecutionRequest.h @@ -1,75 +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_ECS_MODEL_STARTIMAGEPIPELINEEXECUTIONREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_STARTIMAGEPIPELINEEXECUTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT StartImagePipelineExecutionRequest : public RpcServiceRequest - { - public: - struct TemplateTag - { - std::string key; - std::string value; - }; - - public: - StartImagePipelineExecutionRequest(); - ~StartImagePipelineExecutionRequest(); - - std::string getImagePipelineId()const; - void setImagePipelineId(const std::string& imagePipelineId); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::vector getTemplateTag()const; - void setTemplateTag(const std::vector& templateTag); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - std::string imagePipelineId_; - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - std::vector templateTag_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_STARTIMAGEPIPELINEEXECUTIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_STARTIMAGEPIPELINEEXECUTIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_STARTIMAGEPIPELINEEXECUTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT StartImagePipelineExecutionRequest : public RpcServiceRequest { +public: + struct TemplateTag { + std::string key; + std::string value; + }; + StartImagePipelineExecutionRequest(); + ~StartImagePipelineExecutionRequest(); + std::string getImagePipelineId() const; + void setImagePipelineId(const std::string &imagePipelineId); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getTemplateTag() const; + void setTemplateTag(const std::vector &templateTag); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::string imagePipelineId_; + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::vector templateTag_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_STARTIMAGEPIPELINEEXECUTIONREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/StartInstanceRequest.h b/ecs/include/alibabacloud/ecs/model/StartInstanceRequest.h index 9616a3d2e..151009b5e 100644 --- a/ecs/include/alibabacloud/ecs/model/StartInstanceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/StartInstanceRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_STARTINSTANCEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_STARTINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT StartInstanceRequest : public RpcServiceRequest - { - - public: - StartInstanceRequest(); - ~StartInstanceRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getSourceRegionId()const; - void setSourceRegionId(const std::string& sourceRegionId); - bool getInitLocalDisk()const; - void setInitLocalDisk(bool initLocalDisk); - bool getDryRun()const; - void setDryRun(bool dryRun); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - long resourceOwnerId_; - std::string sourceRegionId_; - bool initLocalDisk_; - bool dryRun_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_STARTINSTANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_STARTINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_STARTINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT StartInstanceRequest : public RpcServiceRequest { +public: + StartInstanceRequest(); + ~StartInstanceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourceRegionId() const; + void setSourceRegionId(const std::string &sourceRegionId); + bool getInitLocalDisk() const; + void setInitLocalDisk(bool initLocalDisk); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + long resourceOwnerId_; + std::string sourceRegionId_; + bool initLocalDisk_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_STARTINSTANCEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/StartInstancesRequest.h b/ecs/include/alibabacloud/ecs/model/StartInstancesRequest.h index 32286d4e5..ba86c473c 100644 --- a/ecs/include/alibabacloud/ecs/model/StartInstancesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/StartInstancesRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_STARTINSTANCESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_STARTINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT StartInstancesRequest : public RpcServiceRequest - { - - public: - StartInstancesRequest(); - ~StartInstancesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getBatchOptimization()const; - void setBatchOptimization(const std::string& batchOptimization); - bool getDryRun()const; - void setDryRun(bool dryRun); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::vector getInstanceId()const; - void setInstanceId(const std::vector& instanceId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string batchOptimization_; - bool dryRun_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::vector instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_STARTINSTANCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_STARTINSTANCESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_STARTINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT StartInstancesRequest : public RpcServiceRequest { +public: + StartInstancesRequest(); + ~StartInstancesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getBatchOptimization() const; + void setBatchOptimization(const std::string &batchOptimization); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getInstanceId() const; + void setInstanceId(const std::vector &instanceId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string batchOptimization_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::vector instanceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_STARTINSTANCESREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/StartTerminalSessionRequest.h b/ecs/include/alibabacloud/ecs/model/StartTerminalSessionRequest.h index 109981a9d..fcf1642da 100644 --- a/ecs/include/alibabacloud/ecs/model/StartTerminalSessionRequest.h +++ b/ecs/include/alibabacloud/ecs/model/StartTerminalSessionRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_STARTTERMINALSESSIONREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_STARTTERMINALSESSIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT StartTerminalSessionRequest : public RpcServiceRequest - { - - public: - StartTerminalSessionRequest(); - ~StartTerminalSessionRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::vector getInstanceId()const; - void setInstanceId(const std::vector& instanceId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::vector instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_STARTTERMINALSESSIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_STARTTERMINALSESSIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_STARTTERMINALSESSIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT StartTerminalSessionRequest : public RpcServiceRequest { +public: + StartTerminalSessionRequest(); + ~StartTerminalSessionRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getInstanceId() const; + void setInstanceId(const std::vector &instanceId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::vector instanceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_STARTTERMINALSESSIONREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/StopDiskReplicaPairRequest.h b/ecs/include/alibabacloud/ecs/model/StopDiskReplicaPairRequest.h index 0b3a061f4..748a27adc 100644 --- a/ecs/include/alibabacloud/ecs/model/StopDiskReplicaPairRequest.h +++ b/ecs/include/alibabacloud/ecs/model/StopDiskReplicaPairRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_STOPDISKREPLICAPAIRREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_STOPDISKREPLICAPAIRREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT StopDiskReplicaPairRequest : public RpcServiceRequest - { - - public: - StopDiskReplicaPairRequest(); - ~StopDiskReplicaPairRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getReplicaPairId()const; - void setReplicaPairId(const std::string& replicaPairId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string replicaPairId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_STOPDISKREPLICAPAIRREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_STOPDISKREPLICAPAIRREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_STOPDISKREPLICAPAIRREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT StopDiskReplicaPairRequest : public RpcServiceRequest { +public: + StopDiskReplicaPairRequest(); + ~StopDiskReplicaPairRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getReplicaPairId() const; + void setReplicaPairId(const std::string &replicaPairId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string replicaPairId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_STOPDISKREPLICAPAIRREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/StopInstanceRequest.h b/ecs/include/alibabacloud/ecs/model/StopInstanceRequest.h index 419b06650..d3bed3c84 100644 --- a/ecs/include/alibabacloud/ecs/model/StopInstanceRequest.h +++ b/ecs/include/alibabacloud/ecs/model/StopInstanceRequest.h @@ -1,75 +1,69 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_STOPINSTANCEREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_STOPINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT StopInstanceRequest : public RpcServiceRequest - { - - public: - StopInstanceRequest(); - ~StopInstanceRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getStoppedMode()const; - void setStoppedMode(const std::string& stoppedMode); - bool getHibernate()const; - void setHibernate(bool hibernate); - bool getForceStop()const; - void setForceStop(bool forceStop); - bool getConfirmStop()const; - void setConfirmStop(bool confirmStop); - bool getDryRun()const; - void setDryRun(bool dryRun); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - long resourceOwnerId_; - std::string stoppedMode_; - bool hibernate_; - bool forceStop_; - bool confirmStop_; - bool dryRun_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_STOPINSTANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_STOPINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_STOPINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT StopInstanceRequest : public RpcServiceRequest { +public: + StopInstanceRequest(); + ~StopInstanceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getStoppedMode() const; + void setStoppedMode(const std::string &stoppedMode); + bool getHibernate() const; + void setHibernate(bool hibernate); + bool getForceStop() const; + void setForceStop(bool forceStop); + bool getConfirmStop() const; + void setConfirmStop(bool confirmStop); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + long resourceOwnerId_; + std::string stoppedMode_; + bool hibernate_; + bool forceStop_; + bool confirmStop_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_STOPINSTANCEREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/StopInstancesRequest.h b/ecs/include/alibabacloud/ecs/model/StopInstancesRequest.h index 27d7c2d20..f2c2d2a87 100644 --- a/ecs/include/alibabacloud/ecs/model/StopInstancesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/StopInstancesRequest.h @@ -1,75 +1,69 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_STOPINSTANCESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_STOPINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT StopInstancesRequest : public RpcServiceRequest - { - - public: - StopInstancesRequest(); - ~StopInstancesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getStoppedMode()const; - void setStoppedMode(const std::string& stoppedMode); - bool getForceStop()const; - void setForceStop(bool forceStop); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getBatchOptimization()const; - void setBatchOptimization(const std::string& batchOptimization); - bool getDryRun()const; - void setDryRun(bool dryRun); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::vector getInstanceId()const; - void setInstanceId(const std::vector& instanceId); - - private: - long resourceOwnerId_; - std::string stoppedMode_; - bool forceStop_; - std::string regionId_; - std::string batchOptimization_; - bool dryRun_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::vector instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_STOPINSTANCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_STOPINSTANCESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_STOPINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT StopInstancesRequest : public RpcServiceRequest { +public: + StopInstancesRequest(); + ~StopInstancesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getStoppedMode() const; + void setStoppedMode(const std::string &stoppedMode); + bool getForceStop() const; + void setForceStop(bool forceStop); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getBatchOptimization() const; + void setBatchOptimization(const std::string &batchOptimization); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getInstanceId() const; + void setInstanceId(const std::vector &instanceId); + +private: + long resourceOwnerId_; + std::string stoppedMode_; + bool forceStop_; + std::string regionId_; + std::string batchOptimization_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::vector instanceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_STOPINSTANCESREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/StopInvocationRequest.h b/ecs/include/alibabacloud/ecs/model/StopInvocationRequest.h index eb54adbc5..40bea2a3c 100644 --- a/ecs/include/alibabacloud/ecs/model/StopInvocationRequest.h +++ b/ecs/include/alibabacloud/ecs/model/StopInvocationRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_STOPINVOCATIONREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_STOPINVOCATIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT StopInvocationRequest : public RpcServiceRequest - { - - public: - StopInvocationRequest(); - ~StopInvocationRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getInvokeId()const; - void setInvokeId(const std::string& invokeId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::vector getInstanceId()const; - void setInstanceId(const std::vector& instanceId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string invokeId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::vector instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_STOPINVOCATIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_STOPINVOCATIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_STOPINVOCATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT StopInvocationRequest : public RpcServiceRequest { +public: + StopInvocationRequest(); + ~StopInvocationRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getInvokeId() const; + void setInvokeId(const std::string &invokeId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getInstanceId() const; + void setInstanceId(const std::vector &instanceId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string invokeId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::vector instanceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_STOPINVOCATIONREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/TagResourcesRequest.h b/ecs/include/alibabacloud/ecs/model/TagResourcesRequest.h index d5a66066b..ea38a5ff4 100644 --- a/ecs/include/alibabacloud/ecs/model/TagResourcesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/TagResourcesRequest.h @@ -1,72 +1,64 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_TAGRESOURCESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_TAGRESOURCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT TagResourcesRequest : public RpcServiceRequest - { - public: - struct Tag - { - std::string key; - std::string value; - }; - - public: - TagResourcesRequest(); - ~TagResourcesRequest(); - - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::vector getTag()const; - void setTag(const std::vector& tag); - 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 getOwnerId()const; - void setOwnerId(long ownerId); - std::string getResourceType()const; - void setResourceType(const std::string& resourceType); - - private: - std::string regionId_; - std::vector tag_; - std::vector resourceId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string resourceType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_TAGRESOURCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_TAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_TAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT TagResourcesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string key; + std::string value; + }; + TagResourcesRequest(); + ~TagResourcesRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + +private: + std::string regionId_; + std::vector tag_; + std::vector resourceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string resourceType_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_TAGRESOURCESREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/TerminatePhysicalConnectionRequest.h b/ecs/include/alibabacloud/ecs/model/TerminatePhysicalConnectionRequest.h index 82dafc171..d750b5014 100644 --- a/ecs/include/alibabacloud/ecs/model/TerminatePhysicalConnectionRequest.h +++ b/ecs/include/alibabacloud/ecs/model/TerminatePhysicalConnectionRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_TERMINATEPHYSICALCONNECTIONREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_TERMINATEPHYSICALCONNECTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT TerminatePhysicalConnectionRequest : public RpcServiceRequest - { - - public: - TerminatePhysicalConnectionRequest(); - ~TerminatePhysicalConnectionRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getUserCidr()const; - void setUserCidr(const std::string& userCidr); - std::string getResourceOwnerAccount()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 getPhysicalConnectionId()const; - void setPhysicalConnectionId(const std::string& physicalConnectionId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - std::string userCidr_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string physicalConnectionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_TERMINATEPHYSICALCONNECTIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_TERMINATEPHYSICALCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_TERMINATEPHYSICALCONNECTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT TerminatePhysicalConnectionRequest : public RpcServiceRequest { +public: + TerminatePhysicalConnectionRequest(); + ~TerminatePhysicalConnectionRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getUserCidr() const; + void setUserCidr(const std::string &userCidr); + std::string getResourceOwnerAccount() 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 getPhysicalConnectionId() const; + void setPhysicalConnectionId(const std::string &physicalConnectionId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string userCidr_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string physicalConnectionId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_TERMINATEPHYSICALCONNECTIONREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/TerminateVirtualBorderRouterRequest.h b/ecs/include/alibabacloud/ecs/model/TerminateVirtualBorderRouterRequest.h index 29214b9b9..b880d02be 100644 --- a/ecs/include/alibabacloud/ecs/model/TerminateVirtualBorderRouterRequest.h +++ b/ecs/include/alibabacloud/ecs/model/TerminateVirtualBorderRouterRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_TERMINATEVIRTUALBORDERROUTERREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_TERMINATEVIRTUALBORDERROUTERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT TerminateVirtualBorderRouterRequest : public RpcServiceRequest - { - - public: - TerminateVirtualBorderRouterRequest(); - ~TerminateVirtualBorderRouterRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getVbrId()const; - void setVbrId(const std::string& vbrId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getUserCidr()const; - void setUserCidr(const std::string& userCidr); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string vbrId_; - std::string regionId_; - std::string userCidr_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_TERMINATEVIRTUALBORDERROUTERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_TERMINATEVIRTUALBORDERROUTERREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_TERMINATEVIRTUALBORDERROUTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT TerminateVirtualBorderRouterRequest : public RpcServiceRequest { +public: + TerminateVirtualBorderRouterRequest(); + ~TerminateVirtualBorderRouterRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getVbrId() const; + void setVbrId(const std::string &vbrId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getUserCidr() const; + void setUserCidr(const std::string &userCidr); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string vbrId_; + std::string regionId_; + std::string userCidr_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_TERMINATEVIRTUALBORDERROUTERREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/UnassignIpv6AddressesRequest.h b/ecs/include/alibabacloud/ecs/model/UnassignIpv6AddressesRequest.h index f0bb23f95..622ead7de 100644 --- a/ecs/include/alibabacloud/ecs/model/UnassignIpv6AddressesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/UnassignIpv6AddressesRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_UNASSIGNIPV6ADDRESSESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_UNASSIGNIPV6ADDRESSESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT UnassignIpv6AddressesRequest : public RpcServiceRequest - { - - public: - UnassignIpv6AddressesRequest(); - ~UnassignIpv6AddressesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getNetworkInterfaceId()const; - void setNetworkInterfaceId(const std::string& networkInterfaceId); - std::vector getIpv6Address()const; - void setIpv6Address(const std::vector& ipv6Address); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string networkInterfaceId_; - std::vector ipv6Address_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_UNASSIGNIPV6ADDRESSESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_UNASSIGNIPV6ADDRESSESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_UNASSIGNIPV6ADDRESSESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT UnassignIpv6AddressesRequest : public RpcServiceRequest { +public: + UnassignIpv6AddressesRequest(); + ~UnassignIpv6AddressesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getNetworkInterfaceId() const; + void setNetworkInterfaceId(const std::string &networkInterfaceId); + std::vector getIpv6Address() const; + void setIpv6Address(const std::vector &ipv6Address); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string networkInterfaceId_; + std::vector ipv6Address_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_UNASSIGNIPV6ADDRESSESREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/UnassignPrivateIpAddressesRequest.h b/ecs/include/alibabacloud/ecs/model/UnassignPrivateIpAddressesRequest.h index 9e863cfa6..414e17eac 100644 --- a/ecs/include/alibabacloud/ecs/model/UnassignPrivateIpAddressesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/UnassignPrivateIpAddressesRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_UNASSIGNPRIVATEIPADDRESSESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_UNASSIGNPRIVATEIPADDRESSESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT UnassignPrivateIpAddressesRequest : public RpcServiceRequest - { - - public: - UnassignPrivateIpAddressesRequest(); - ~UnassignPrivateIpAddressesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::vector getPrivateIpAddress()const; - void setPrivateIpAddress(const std::vector& privateIpAddress); - std::string getNetworkInterfaceId()const; - void setNetworkInterfaceId(const std::string& networkInterfaceId); - - private: - long resourceOwnerId_; - std::string regionId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::vector privateIpAddress_; - std::string networkInterfaceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_UNASSIGNPRIVATEIPADDRESSESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_UNASSIGNPRIVATEIPADDRESSESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_UNASSIGNPRIVATEIPADDRESSESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT UnassignPrivateIpAddressesRequest : public RpcServiceRequest { +public: + UnassignPrivateIpAddressesRequest(); + ~UnassignPrivateIpAddressesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::vector getPrivateIpAddress() const; + void setPrivateIpAddress(const std::vector &privateIpAddress); + std::string getNetworkInterfaceId() const; + void setNetworkInterfaceId(const std::string &networkInterfaceId); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::vector privateIpAddress_; + std::string networkInterfaceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_UNASSIGNPRIVATEIPADDRESSESREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/UnassociateEipAddressRequest.h b/ecs/include/alibabacloud/ecs/model/UnassociateEipAddressRequest.h index 3e958fa49..087961ae6 100644 --- a/ecs/include/alibabacloud/ecs/model/UnassociateEipAddressRequest.h +++ b/ecs/include/alibabacloud/ecs/model/UnassociateEipAddressRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_UNASSOCIATEEIPADDRESSREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_UNASSOCIATEEIPADDRESSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT UnassociateEipAddressRequest : public RpcServiceRequest - { - - public: - UnassociateEipAddressRequest(); - ~UnassociateEipAddressRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAllocationId()const; - void setAllocationId(const std::string& allocationId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getInstanceType()const; - void setInstanceType(const std::string& instanceType); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - long resourceOwnerId_; - std::string allocationId_; - std::string regionId_; - std::string instanceType_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_UNASSOCIATEEIPADDRESSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_UNASSOCIATEEIPADDRESSREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_UNASSOCIATEEIPADDRESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT UnassociateEipAddressRequest : public RpcServiceRequest { +public: + UnassociateEipAddressRequest(); + ~UnassociateEipAddressRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAllocationId() const; + void setAllocationId(const std::string &allocationId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + long resourceOwnerId_; + std::string allocationId_; + std::string regionId_; + std::string instanceType_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_UNASSOCIATEEIPADDRESSREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/UnassociateHaVipRequest.h b/ecs/include/alibabacloud/ecs/model/UnassociateHaVipRequest.h index 8bf113f2d..68b4b3078 100644 --- a/ecs/include/alibabacloud/ecs/model/UnassociateHaVipRequest.h +++ b/ecs/include/alibabacloud/ecs/model/UnassociateHaVipRequest.h @@ -1,72 +1,66 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_UNASSOCIATEHAVIPREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_UNASSOCIATEHAVIPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT UnassociateHaVipRequest : public RpcServiceRequest - { - - public: - UnassociateHaVipRequest(); - ~UnassociateHaVipRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - std::string getHaVipId()const; - void setHaVipId(const std::string& haVipId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getForce()const; - void setForce(const std::string& force); - - private: - long resourceOwnerId_; - std::string clientToken_; - std::string regionId_; - std::string haVipId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string instanceId_; - std::string force_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_UNASSOCIATEHAVIPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_UNASSOCIATEHAVIPREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_UNASSOCIATEHAVIPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT UnassociateHaVipRequest : public RpcServiceRequest { +public: + UnassociateHaVipRequest(); + ~UnassociateHaVipRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getHaVipId() const; + void setHaVipId(const std::string &haVipId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getForce() const; + void setForce(const std::string &force); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string regionId_; + std::string haVipId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; + std::string force_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_UNASSOCIATEHAVIPREQUEST_H_ diff --git a/ecs/include/alibabacloud/ecs/model/UntagResourcesRequest.h b/ecs/include/alibabacloud/ecs/model/UntagResourcesRequest.h index 3140efeb3..0ead4a643 100644 --- a/ecs/include/alibabacloud/ecs/model/UntagResourcesRequest.h +++ b/ecs/include/alibabacloud/ecs/model/UntagResourcesRequest.h @@ -1,72 +1,66 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ECS_MODEL_UNTAGRESOURCESREQUEST_H_ -#define ALIBABACLOUD_ECS_MODEL_UNTAGRESOURCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Ecs - { - namespace Model - { - class ALIBABACLOUD_ECS_EXPORT UntagResourcesRequest : public RpcServiceRequest - { - - public: - UntagResourcesRequest(); - ~UntagResourcesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); - bool getAll()const; - void setAll(bool all); - 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 getOwnerId()const; - void setOwnerId(long ownerId); - std::string getResourceType()const; - void setResourceType(const std::string& resourceType); - std::vector getTagKey()const; - void setTagKey(const std::vector& tagKey); - - private: - long resourceOwnerId_; - std::string regionId_; - bool all_; - std::vector resourceId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string resourceType_; - std::vector tagKey_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ECS_MODEL_UNTAGRESOURCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ECS_MODEL_UNTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_ECS_MODEL_UNTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Ecs { +namespace Model { +class ALIBABACLOUD_ECS_EXPORT UntagResourcesRequest : public RpcServiceRequest { +public: + UntagResourcesRequest(); + ~UntagResourcesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getAll() const; + void setAll(bool all); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::vector getTagKey() const; + void setTagKey(const std::vector &tagKey); + +private: + long resourceOwnerId_; + std::string regionId_; + bool all_; + std::vector resourceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string resourceType_; + std::vector tagKey_; +}; +} // namespace Model +} // namespace Ecs +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ECS_MODEL_UNTAGRESOURCESREQUEST_H_ diff --git a/ecs/src/model/AcceptInquiredSystemEventRequest.cc b/ecs/src/model/AcceptInquiredSystemEventRequest.cc index 6fa0da7f5..e5718f1bf 100644 --- a/ecs/src/model/AcceptInquiredSystemEventRequest.cc +++ b/ecs/src/model/AcceptInquiredSystemEventRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::AcceptInquiredSystemEventRequest; - -AcceptInquiredSystemEventRequest::AcceptInquiredSystemEventRequest() : - RpcServiceRequest("ecs", "2014-05-26", "AcceptInquiredSystemEvent") -{ - setMethod(HttpRequest::Method::Post); -} - -AcceptInquiredSystemEventRequest::~AcceptInquiredSystemEventRequest() -{} - -std::string AcceptInquiredSystemEventRequest::getEventId()const -{ - return eventId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::AcceptInquiredSystemEventRequest; + +AcceptInquiredSystemEventRequest::AcceptInquiredSystemEventRequest() + : RpcServiceRequest("ecs", "2014-05-26", "AcceptInquiredSystemEvent") { + setMethod(HttpRequest::Method::Post); } -void AcceptInquiredSystemEventRequest::setEventId(const std::string& eventId) -{ - eventId_ = eventId; - setParameter("EventId", eventId); +AcceptInquiredSystemEventRequest::~AcceptInquiredSystemEventRequest() {} + +std::string AcceptInquiredSystemEventRequest::getEventId() const { + return eventId_; } -long AcceptInquiredSystemEventRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void AcceptInquiredSystemEventRequest::setEventId(const std::string &eventId) { + eventId_ = eventId; + setParameter(std::string("EventId"), eventId); } -void AcceptInquiredSystemEventRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long AcceptInquiredSystemEventRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AcceptInquiredSystemEventRequest::getRegionId()const -{ - return regionId_; +void AcceptInquiredSystemEventRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AcceptInquiredSystemEventRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string AcceptInquiredSystemEventRequest::getRegionId() const { + return regionId_; } -std::string AcceptInquiredSystemEventRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AcceptInquiredSystemEventRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void AcceptInquiredSystemEventRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AcceptInquiredSystemEventRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AcceptInquiredSystemEventRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AcceptInquiredSystemEventRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AcceptInquiredSystemEventRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AcceptInquiredSystemEventRequest::getOwnerAccount() const { + return ownerAccount_; } -long AcceptInquiredSystemEventRequest::getOwnerId()const -{ - return ownerId_; +void AcceptInquiredSystemEventRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AcceptInquiredSystemEventRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AcceptInquiredSystemEventRequest::getOwnerId() const { + return ownerId_; } -std::string AcceptInquiredSystemEventRequest::getChoice()const -{ - return choice_; +void AcceptInquiredSystemEventRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AcceptInquiredSystemEventRequest::setChoice(const std::string& choice) -{ - choice_ = choice; - setParameter("Choice", choice); +std::string AcceptInquiredSystemEventRequest::getChoice() const { + return choice_; +} + +void AcceptInquiredSystemEventRequest::setChoice(const std::string &choice) { + choice_ = choice; + setParameter(std::string("Choice"), choice); } diff --git a/ecs/src/model/ActivateRouterInterfaceRequest.cc b/ecs/src/model/ActivateRouterInterfaceRequest.cc index 547b43474..99c31164d 100644 --- a/ecs/src/model/ActivateRouterInterfaceRequest.cc +++ b/ecs/src/model/ActivateRouterInterfaceRequest.cc @@ -1,84 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ActivateRouterInterfaceRequest; - -ActivateRouterInterfaceRequest::ActivateRouterInterfaceRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ActivateRouterInterface") -{ - setMethod(HttpRequest::Method::Post); -} - -ActivateRouterInterfaceRequest::~ActivateRouterInterfaceRequest() -{} - -long ActivateRouterInterfaceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ActivateRouterInterfaceRequest; + +ActivateRouterInterfaceRequest::ActivateRouterInterfaceRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ActivateRouterInterface") { + setMethod(HttpRequest::Method::Post); } -void ActivateRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ActivateRouterInterfaceRequest::~ActivateRouterInterfaceRequest() {} + +long ActivateRouterInterfaceRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ActivateRouterInterfaceRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ActivateRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ActivateRouterInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ActivateRouterInterfaceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long ActivateRouterInterfaceRequest::getOwnerId()const -{ - return ownerId_; +void ActivateRouterInterfaceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ActivateRouterInterfaceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ActivateRouterInterfaceRequest::getOwnerId() const { + return ownerId_; } -std::string ActivateRouterInterfaceRequest::getRouterInterfaceId()const -{ - return routerInterfaceId_; +void ActivateRouterInterfaceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ActivateRouterInterfaceRequest::setRouterInterfaceId(const std::string& routerInterfaceId) -{ - routerInterfaceId_ = routerInterfaceId; - setParameter("RouterInterfaceId", routerInterfaceId); +std::string ActivateRouterInterfaceRequest::getRouterInterfaceId() const { + return routerInterfaceId_; } -std::string ActivateRouterInterfaceRequest::getRegionId()const -{ - return regionId_; +void ActivateRouterInterfaceRequest::setRouterInterfaceId(const std::string &routerInterfaceId) { + routerInterfaceId_ = routerInterfaceId; + setParameter(std::string("RouterInterfaceId"), routerInterfaceId); } -void ActivateRouterInterfaceRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ActivateRouterInterfaceRequest::getRegionId() const { + return regionId_; +} + +void ActivateRouterInterfaceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } diff --git a/ecs/src/model/AddBandwidthPackageIpsRequest.cc b/ecs/src/model/AddBandwidthPackageIpsRequest.cc index 23199d1e7..44f5f9283 100644 --- a/ecs/src/model/AddBandwidthPackageIpsRequest.cc +++ b/ecs/src/model/AddBandwidthPackageIpsRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::AddBandwidthPackageIpsRequest; - -AddBandwidthPackageIpsRequest::AddBandwidthPackageIpsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "AddBandwidthPackageIps") -{ - setMethod(HttpRequest::Method::Post); -} - -AddBandwidthPackageIpsRequest::~AddBandwidthPackageIpsRequest() -{} - -long AddBandwidthPackageIpsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::AddBandwidthPackageIpsRequest; + +AddBandwidthPackageIpsRequest::AddBandwidthPackageIpsRequest() + : RpcServiceRequest("ecs", "2014-05-26", "AddBandwidthPackageIps") { + setMethod(HttpRequest::Method::Post); } -void AddBandwidthPackageIpsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AddBandwidthPackageIpsRequest::~AddBandwidthPackageIpsRequest() {} + +long AddBandwidthPackageIpsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AddBandwidthPackageIpsRequest::getClientToken()const -{ - return clientToken_; +void AddBandwidthPackageIpsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AddBandwidthPackageIpsRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string AddBandwidthPackageIpsRequest::getClientToken() const { + return clientToken_; } -std::string AddBandwidthPackageIpsRequest::getRegionId()const -{ - return regionId_; +void AddBandwidthPackageIpsRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void AddBandwidthPackageIpsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string AddBandwidthPackageIpsRequest::getRegionId() const { + return regionId_; } -std::string AddBandwidthPackageIpsRequest::getBandwidthPackageId()const -{ - return bandwidthPackageId_; +void AddBandwidthPackageIpsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void AddBandwidthPackageIpsRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) -{ - bandwidthPackageId_ = bandwidthPackageId; - setParameter("BandwidthPackageId", bandwidthPackageId); +std::string AddBandwidthPackageIpsRequest::getBandwidthPackageId() const { + return bandwidthPackageId_; } -std::string AddBandwidthPackageIpsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AddBandwidthPackageIpsRequest::setBandwidthPackageId(const std::string &bandwidthPackageId) { + bandwidthPackageId_ = bandwidthPackageId; + setParameter(std::string("BandwidthPackageId"), bandwidthPackageId); } -void AddBandwidthPackageIpsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AddBandwidthPackageIpsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AddBandwidthPackageIpsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AddBandwidthPackageIpsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AddBandwidthPackageIpsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AddBandwidthPackageIpsRequest::getOwnerAccount() const { + return ownerAccount_; } -long AddBandwidthPackageIpsRequest::getOwnerId()const -{ - return ownerId_; +void AddBandwidthPackageIpsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AddBandwidthPackageIpsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AddBandwidthPackageIpsRequest::getOwnerId() const { + return ownerId_; } -std::string AddBandwidthPackageIpsRequest::getIpCount()const -{ - return ipCount_; +void AddBandwidthPackageIpsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AddBandwidthPackageIpsRequest::setIpCount(const std::string& ipCount) -{ - ipCount_ = ipCount; - setParameter("IpCount", ipCount); +std::string AddBandwidthPackageIpsRequest::getIpCount() const { + return ipCount_; +} + +void AddBandwidthPackageIpsRequest::setIpCount(const std::string &ipCount) { + ipCount_ = ipCount; + setParameter(std::string("IpCount"), ipCount); } diff --git a/ecs/src/model/AddTagsRequest.cc b/ecs/src/model/AddTagsRequest.cc index 97e12db8a..148e6fcb6 100644 --- a/ecs/src/model/AddTagsRequest.cc +++ b/ecs/src/model/AddTagsRequest.cc @@ -1,111 +1,95 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::AddTagsRequest; - -AddTagsRequest::AddTagsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "AddTags") -{ - setMethod(HttpRequest::Method::Post); -} - -AddTagsRequest::~AddTagsRequest() -{} - -long AddTagsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::AddTagsRequest; + +AddTagsRequest::AddTagsRequest() + : RpcServiceRequest("ecs", "2014-05-26", "AddTags") { + setMethod(HttpRequest::Method::Post); } -void AddTagsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AddTagsRequest::~AddTagsRequest() {} + +long AddTagsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AddTagsRequest::getRegionId()const -{ - return regionId_; +void AddTagsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AddTagsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string AddTagsRequest::getRegionId() const { + return regionId_; } -std::vector AddTagsRequest::getTag()const -{ - return tag_; +void AddTagsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void AddTagsRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Value", tagObj.value); - setParameter(tagObjStr + ".Key", tagObj.key); - } +std::vector AddTagsRequest::getTag() const { + return tag_; } -std::string AddTagsRequest::getResourceId()const -{ - return resourceId_; +void AddTagsRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } -void AddTagsRequest::setResourceId(const std::string& resourceId) -{ - resourceId_ = resourceId; - setParameter("ResourceId", resourceId); +std::string AddTagsRequest::getResourceId() const { + return resourceId_; } -std::string AddTagsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AddTagsRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); } -void AddTagsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AddTagsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long AddTagsRequest::getOwnerId()const -{ - return ownerId_; +void AddTagsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AddTagsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AddTagsRequest::getOwnerId() const { + return ownerId_; } -std::string AddTagsRequest::getResourceType()const -{ - return resourceType_; +void AddTagsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AddTagsRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +std::string AddTagsRequest::getResourceType() const { + return resourceType_; +} + +void AddTagsRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); } diff --git a/ecs/src/model/AllocateDedicatedHostsRequest.cc b/ecs/src/model/AllocateDedicatedHostsRequest.cc index d93121b04..fd2a14f00 100644 --- a/ecs/src/model/AllocateDedicatedHostsRequest.cc +++ b/ecs/src/model/AllocateDedicatedHostsRequest.cc @@ -1,320 +1,266 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::AllocateDedicatedHostsRequest; - -AllocateDedicatedHostsRequest::AllocateDedicatedHostsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "AllocateDedicatedHosts") -{ - setMethod(HttpRequest::Method::Post); -} - -AllocateDedicatedHostsRequest::~AllocateDedicatedHostsRequest() -{} - -long AllocateDedicatedHostsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::AllocateDedicatedHostsRequest; + +AllocateDedicatedHostsRequest::AllocateDedicatedHostsRequest() + : RpcServiceRequest("ecs", "2014-05-26", "AllocateDedicatedHosts") { + setMethod(HttpRequest::Method::Post); } -void AllocateDedicatedHostsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AllocateDedicatedHostsRequest::~AllocateDedicatedHostsRequest() {} + +long AllocateDedicatedHostsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AllocateDedicatedHostsRequest::getClientToken()const -{ - return clientToken_; +void AllocateDedicatedHostsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AllocateDedicatedHostsRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string AllocateDedicatedHostsRequest::getClientToken() const { + return clientToken_; } -std::string AllocateDedicatedHostsRequest::getDescription()const -{ - return description_; +void AllocateDedicatedHostsRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void AllocateDedicatedHostsRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string AllocateDedicatedHostsRequest::getDescription() const { + return description_; } -float AllocateDedicatedHostsRequest::getCpuOverCommitRatio()const -{ - return cpuOverCommitRatio_; +void AllocateDedicatedHostsRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void AllocateDedicatedHostsRequest::setCpuOverCommitRatio(float cpuOverCommitRatio) -{ - cpuOverCommitRatio_ = cpuOverCommitRatio; - setParameter("CpuOverCommitRatio", std::to_string(cpuOverCommitRatio)); +float AllocateDedicatedHostsRequest::getCpuOverCommitRatio() const { + return cpuOverCommitRatio_; } -std::string AllocateDedicatedHostsRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void AllocateDedicatedHostsRequest::setCpuOverCommitRatio(float cpuOverCommitRatio) { + cpuOverCommitRatio_ = cpuOverCommitRatio; + setParameter(std::string("CpuOverCommitRatio"), std::to_string(cpuOverCommitRatio)); } -void AllocateDedicatedHostsRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string AllocateDedicatedHostsRequest::getResourceGroupId() const { + return resourceGroupId_; } -int AllocateDedicatedHostsRequest::getMinQuantity()const -{ - return minQuantity_; +void AllocateDedicatedHostsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void AllocateDedicatedHostsRequest::setMinQuantity(int minQuantity) -{ - minQuantity_ = minQuantity; - setParameter("MinQuantity", std::to_string(minQuantity)); +int AllocateDedicatedHostsRequest::getMinQuantity() const { + return minQuantity_; } -std::string AllocateDedicatedHostsRequest::getRegionId()const -{ - return regionId_; +void AllocateDedicatedHostsRequest::setMinQuantity(int minQuantity) { + minQuantity_ = minQuantity; + setParameter(std::string("MinQuantity"), std::to_string(minQuantity)); } -void AllocateDedicatedHostsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string AllocateDedicatedHostsRequest::getRegionId() const { + return regionId_; } -std::string AllocateDedicatedHostsRequest::getActionOnMaintenance()const -{ - return actionOnMaintenance_; +void AllocateDedicatedHostsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void AllocateDedicatedHostsRequest::setActionOnMaintenance(const std::string& actionOnMaintenance) -{ - actionOnMaintenance_ = actionOnMaintenance; - setParameter("ActionOnMaintenance", actionOnMaintenance); +std::string AllocateDedicatedHostsRequest::getActionOnMaintenance() const { + return actionOnMaintenance_; } -std::string AllocateDedicatedHostsRequest::getDedicatedHostClusterId()const -{ - return dedicatedHostClusterId_; +void AllocateDedicatedHostsRequest::setActionOnMaintenance(const std::string &actionOnMaintenance) { + actionOnMaintenance_ = actionOnMaintenance; + setParameter(std::string("ActionOnMaintenance"), actionOnMaintenance); } -void AllocateDedicatedHostsRequest::setDedicatedHostClusterId(const std::string& dedicatedHostClusterId) -{ - dedicatedHostClusterId_ = dedicatedHostClusterId; - setParameter("DedicatedHostClusterId", dedicatedHostClusterId); +std::string AllocateDedicatedHostsRequest::getDedicatedHostClusterId() const { + return dedicatedHostClusterId_; } -std::vector AllocateDedicatedHostsRequest::getTag()const -{ - return tag_; +void AllocateDedicatedHostsRequest::setDedicatedHostClusterId(const std::string &dedicatedHostClusterId) { + dedicatedHostClusterId_ = dedicatedHostClusterId; + setParameter(std::string("DedicatedHostClusterId"), dedicatedHostClusterId); } -void AllocateDedicatedHostsRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Key", tagObj.key); - setParameter(tagObjStr + ".Value", tagObj.value); - } +std::vector AllocateDedicatedHostsRequest::getTag() const { + return tag_; } -std::string AllocateDedicatedHostsRequest::getDedicatedHostType()const -{ - return dedicatedHostType_; +void AllocateDedicatedHostsRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } } -void AllocateDedicatedHostsRequest::setDedicatedHostType(const std::string& dedicatedHostType) -{ - dedicatedHostType_ = dedicatedHostType; - setParameter("DedicatedHostType", dedicatedHostType); +std::string AllocateDedicatedHostsRequest::getDedicatedHostType() const { + return dedicatedHostType_; } -int AllocateDedicatedHostsRequest::getAutoRenewPeriod()const -{ - return autoRenewPeriod_; +void AllocateDedicatedHostsRequest::setDedicatedHostType(const std::string &dedicatedHostType) { + dedicatedHostType_ = dedicatedHostType; + setParameter(std::string("DedicatedHostType"), dedicatedHostType); } -void AllocateDedicatedHostsRequest::setAutoRenewPeriod(int autoRenewPeriod) -{ - autoRenewPeriod_ = autoRenewPeriod; - setParameter("AutoRenewPeriod", std::to_string(autoRenewPeriod)); +int AllocateDedicatedHostsRequest::getAutoRenewPeriod() const { + return autoRenewPeriod_; } -int AllocateDedicatedHostsRequest::getPeriod()const -{ - return period_; +void AllocateDedicatedHostsRequest::setAutoRenewPeriod(int autoRenewPeriod) { + autoRenewPeriod_ = autoRenewPeriod; + setParameter(std::string("AutoRenewPeriod"), std::to_string(autoRenewPeriod)); } -void AllocateDedicatedHostsRequest::setPeriod(int period) -{ - period_ = period; - setParameter("Period", std::to_string(period)); +int AllocateDedicatedHostsRequest::getPeriod() const { + return period_; } -int AllocateDedicatedHostsRequest::getQuantity()const -{ - return quantity_; +void AllocateDedicatedHostsRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); } -void AllocateDedicatedHostsRequest::setQuantity(int quantity) -{ - quantity_ = quantity; - setParameter("Quantity", std::to_string(quantity)); +int AllocateDedicatedHostsRequest::getQuantity() const { + return quantity_; } -std::string AllocateDedicatedHostsRequest::getDedicatedHostName()const -{ - return dedicatedHostName_; +void AllocateDedicatedHostsRequest::setQuantity(int quantity) { + quantity_ = quantity; + setParameter(std::string("Quantity"), std::to_string(quantity)); } -void AllocateDedicatedHostsRequest::setDedicatedHostName(const std::string& dedicatedHostName) -{ - dedicatedHostName_ = dedicatedHostName; - setParameter("DedicatedHostName", dedicatedHostName); +std::string AllocateDedicatedHostsRequest::getDedicatedHostName() const { + return dedicatedHostName_; } -std::string AllocateDedicatedHostsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AllocateDedicatedHostsRequest::setDedicatedHostName(const std::string &dedicatedHostName) { + dedicatedHostName_ = dedicatedHostName; + setParameter(std::string("DedicatedHostName"), dedicatedHostName); } -void AllocateDedicatedHostsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AllocateDedicatedHostsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AllocateDedicatedHostsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AllocateDedicatedHostsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AllocateDedicatedHostsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AllocateDedicatedHostsRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string AllocateDedicatedHostsRequest::getAutoReleaseTime()const -{ - return autoReleaseTime_; +void AllocateDedicatedHostsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AllocateDedicatedHostsRequest::setAutoReleaseTime(const std::string& autoReleaseTime) -{ - autoReleaseTime_ = autoReleaseTime; - setParameter("AutoReleaseTime", autoReleaseTime); +std::string AllocateDedicatedHostsRequest::getAutoReleaseTime() const { + return autoReleaseTime_; } -long AllocateDedicatedHostsRequest::getOwnerId()const -{ - return ownerId_; +void AllocateDedicatedHostsRequest::setAutoReleaseTime(const std::string &autoReleaseTime) { + autoReleaseTime_ = autoReleaseTime; + setParameter(std::string("AutoReleaseTime"), autoReleaseTime); } -void AllocateDedicatedHostsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AllocateDedicatedHostsRequest::getOwnerId() const { + return ownerId_; } -std::string AllocateDedicatedHostsRequest::getPeriodUnit()const -{ - return periodUnit_; +void AllocateDedicatedHostsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AllocateDedicatedHostsRequest::setPeriodUnit(const std::string& periodUnit) -{ - periodUnit_ = periodUnit; - setParameter("PeriodUnit", periodUnit); +std::string AllocateDedicatedHostsRequest::getPeriodUnit() const { + return periodUnit_; } -bool AllocateDedicatedHostsRequest::getAutoRenew()const -{ - return autoRenew_; +void AllocateDedicatedHostsRequest::setPeriodUnit(const std::string &periodUnit) { + periodUnit_ = periodUnit; + setParameter(std::string("PeriodUnit"), periodUnit); } -void AllocateDedicatedHostsRequest::setAutoRenew(bool autoRenew) -{ - autoRenew_ = autoRenew; - setParameter("AutoRenew", autoRenew ? "true" : "false"); +bool AllocateDedicatedHostsRequest::getAutoRenew() const { + return autoRenew_; } -int AllocateDedicatedHostsRequest::getNetworkAttributesSlbUdpTimeout()const -{ - return networkAttributesSlbUdpTimeout_; +void AllocateDedicatedHostsRequest::setAutoRenew(bool autoRenew) { + autoRenew_ = autoRenew; + setParameter(std::string("AutoRenew"), autoRenew ? "true" : "false"); } -void AllocateDedicatedHostsRequest::setNetworkAttributesSlbUdpTimeout(int networkAttributesSlbUdpTimeout) -{ - networkAttributesSlbUdpTimeout_ = networkAttributesSlbUdpTimeout; - setParameter("NetworkAttributesSlbUdpTimeout", std::to_string(networkAttributesSlbUdpTimeout)); +int AllocateDedicatedHostsRequest::getNetworkAttributesSlbUdpTimeout() const { + return networkAttributesSlbUdpTimeout_; } -std::string AllocateDedicatedHostsRequest::getZoneId()const -{ - return zoneId_; +void AllocateDedicatedHostsRequest::setNetworkAttributesSlbUdpTimeout(int networkAttributesSlbUdpTimeout) { + networkAttributesSlbUdpTimeout_ = networkAttributesSlbUdpTimeout; + setParameter(std::string("NetworkAttributes.SlbUdpTimeout"), std::to_string(networkAttributesSlbUdpTimeout)); } -void AllocateDedicatedHostsRequest::setZoneId(const std::string& zoneId) -{ - zoneId_ = zoneId; - setParameter("ZoneId", zoneId); +std::string AllocateDedicatedHostsRequest::getZoneId() const { + return zoneId_; } -std::string AllocateDedicatedHostsRequest::getAutoPlacement()const -{ - return autoPlacement_; +void AllocateDedicatedHostsRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); } -void AllocateDedicatedHostsRequest::setAutoPlacement(const std::string& autoPlacement) -{ - autoPlacement_ = autoPlacement; - setParameter("AutoPlacement", autoPlacement); +std::string AllocateDedicatedHostsRequest::getAutoPlacement() const { + return autoPlacement_; } -std::string AllocateDedicatedHostsRequest::getChargeType()const -{ - return chargeType_; +void AllocateDedicatedHostsRequest::setAutoPlacement(const std::string &autoPlacement) { + autoPlacement_ = autoPlacement; + setParameter(std::string("AutoPlacement"), autoPlacement); } -void AllocateDedicatedHostsRequest::setChargeType(const std::string& chargeType) -{ - chargeType_ = chargeType; - setParameter("ChargeType", chargeType); +std::string AllocateDedicatedHostsRequest::getChargeType() const { + return chargeType_; } -int AllocateDedicatedHostsRequest::getNetworkAttributesUdpTimeout()const -{ - return networkAttributesUdpTimeout_; +void AllocateDedicatedHostsRequest::setChargeType(const std::string &chargeType) { + chargeType_ = chargeType; + setParameter(std::string("ChargeType"), chargeType); } -void AllocateDedicatedHostsRequest::setNetworkAttributesUdpTimeout(int networkAttributesUdpTimeout) -{ - networkAttributesUdpTimeout_ = networkAttributesUdpTimeout; - setParameter("NetworkAttributesUdpTimeout", std::to_string(networkAttributesUdpTimeout)); +int AllocateDedicatedHostsRequest::getNetworkAttributesUdpTimeout() const { + return networkAttributesUdpTimeout_; +} + +void AllocateDedicatedHostsRequest::setNetworkAttributesUdpTimeout(int networkAttributesUdpTimeout) { + networkAttributesUdpTimeout_ = networkAttributesUdpTimeout; + setParameter(std::string("NetworkAttributes.UdpTimeout"), std::to_string(networkAttributesUdpTimeout)); } diff --git a/ecs/src/model/AllocateEipAddressRequest.cc b/ecs/src/model/AllocateEipAddressRequest.cc index 154d6e384..57c94df98 100644 --- a/ecs/src/model/AllocateEipAddressRequest.cc +++ b/ecs/src/model/AllocateEipAddressRequest.cc @@ -1,139 +1,117 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::AllocateEipAddressRequest; - -AllocateEipAddressRequest::AllocateEipAddressRequest() : - RpcServiceRequest("ecs", "2014-05-26", "AllocateEipAddress") -{ - setMethod(HttpRequest::Method::Post); -} - -AllocateEipAddressRequest::~AllocateEipAddressRequest() -{} - -long AllocateEipAddressRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::AllocateEipAddressRequest; + +AllocateEipAddressRequest::AllocateEipAddressRequest() + : RpcServiceRequest("ecs", "2014-05-26", "AllocateEipAddress") { + setMethod(HttpRequest::Method::Post); } -void AllocateEipAddressRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AllocateEipAddressRequest::~AllocateEipAddressRequest() {} + +long AllocateEipAddressRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AllocateEipAddressRequest::getClientToken()const -{ - return clientToken_; +void AllocateEipAddressRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AllocateEipAddressRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string AllocateEipAddressRequest::getClientToken() const { + return clientToken_; } -std::string AllocateEipAddressRequest::getISP()const -{ - return iSP_; +void AllocateEipAddressRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void AllocateEipAddressRequest::setISP(const std::string& iSP) -{ - iSP_ = iSP; - setParameter("ISP", iSP); +std::string AllocateEipAddressRequest::getISP() const { + return iSP_; } -std::string AllocateEipAddressRequest::getRegionId()const -{ - return regionId_; +void AllocateEipAddressRequest::setISP(const std::string &iSP) { + iSP_ = iSP; + setParameter(std::string("ISP"), iSP); } -void AllocateEipAddressRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string AllocateEipAddressRequest::getRegionId() const { + return regionId_; } -std::string AllocateEipAddressRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AllocateEipAddressRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void AllocateEipAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AllocateEipAddressRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AllocateEipAddressRequest::getBandwidth()const -{ - return bandwidth_; +void AllocateEipAddressRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AllocateEipAddressRequest::setBandwidth(const std::string& bandwidth) -{ - bandwidth_ = bandwidth; - setParameter("Bandwidth", bandwidth); +std::string AllocateEipAddressRequest::getBandwidth() const { + return bandwidth_; } -std::string AllocateEipAddressRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AllocateEipAddressRequest::setBandwidth(const std::string &bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), bandwidth); } -void AllocateEipAddressRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AllocateEipAddressRequest::getOwnerAccount() const { + return ownerAccount_; } -long AllocateEipAddressRequest::getOwnerId()const -{ - return ownerId_; +void AllocateEipAddressRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AllocateEipAddressRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AllocateEipAddressRequest::getOwnerId() const { + return ownerId_; } -long AllocateEipAddressRequest::getActivityId()const -{ - return activityId_; +void AllocateEipAddressRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AllocateEipAddressRequest::setActivityId(long activityId) -{ - activityId_ = activityId; - setParameter("ActivityId", std::to_string(activityId)); +long AllocateEipAddressRequest::getActivityId() const { + return activityId_; } -std::string AllocateEipAddressRequest::getInternetChargeType()const -{ - return internetChargeType_; +void AllocateEipAddressRequest::setActivityId(long activityId) { + activityId_ = activityId; + setParameter(std::string("ActivityId"), std::to_string(activityId)); } -void AllocateEipAddressRequest::setInternetChargeType(const std::string& internetChargeType) -{ - internetChargeType_ = internetChargeType; - setParameter("InternetChargeType", internetChargeType); +std::string AllocateEipAddressRequest::getInternetChargeType() const { + return internetChargeType_; +} + +void AllocateEipAddressRequest::setInternetChargeType(const std::string &internetChargeType) { + internetChargeType_ = internetChargeType; + setParameter(std::string("InternetChargeType"), internetChargeType); } diff --git a/ecs/src/model/AllocatePublicIpAddressRequest.cc b/ecs/src/model/AllocatePublicIpAddressRequest.cc index 63526bfc1..1ecb14240 100644 --- a/ecs/src/model/AllocatePublicIpAddressRequest.cc +++ b/ecs/src/model/AllocatePublicIpAddressRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::AllocatePublicIpAddressRequest; - -AllocatePublicIpAddressRequest::AllocatePublicIpAddressRequest() : - RpcServiceRequest("ecs", "2014-05-26", "AllocatePublicIpAddress") -{ - setMethod(HttpRequest::Method::Post); -} - -AllocatePublicIpAddressRequest::~AllocatePublicIpAddressRequest() -{} - -std::string AllocatePublicIpAddressRequest::getIpAddress()const -{ - return ipAddress_; + */ + +#include + +using AlibabaCloud::Ecs::Model::AllocatePublicIpAddressRequest; + +AllocatePublicIpAddressRequest::AllocatePublicIpAddressRequest() + : RpcServiceRequest("ecs", "2014-05-26", "AllocatePublicIpAddress") { + setMethod(HttpRequest::Method::Post); } -void AllocatePublicIpAddressRequest::setIpAddress(const std::string& ipAddress) -{ - ipAddress_ = ipAddress; - setParameter("IpAddress", ipAddress); +AllocatePublicIpAddressRequest::~AllocatePublicIpAddressRequest() {} + +std::string AllocatePublicIpAddressRequest::getIpAddress() const { + return ipAddress_; } -long AllocatePublicIpAddressRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void AllocatePublicIpAddressRequest::setIpAddress(const std::string &ipAddress) { + ipAddress_ = ipAddress; + setParameter(std::string("IpAddress"), ipAddress); } -void AllocatePublicIpAddressRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long AllocatePublicIpAddressRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AllocatePublicIpAddressRequest::getVlanId()const -{ - return vlanId_; +void AllocatePublicIpAddressRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AllocatePublicIpAddressRequest::setVlanId(const std::string& vlanId) -{ - vlanId_ = vlanId; - setParameter("VlanId", vlanId); +std::string AllocatePublicIpAddressRequest::getVlanId() const { + return vlanId_; } -std::string AllocatePublicIpAddressRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AllocatePublicIpAddressRequest::setVlanId(const std::string &vlanId) { + vlanId_ = vlanId; + setParameter(std::string("VlanId"), vlanId); } -void AllocatePublicIpAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AllocatePublicIpAddressRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AllocatePublicIpAddressRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AllocatePublicIpAddressRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AllocatePublicIpAddressRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AllocatePublicIpAddressRequest::getOwnerAccount() const { + return ownerAccount_; } -long AllocatePublicIpAddressRequest::getOwnerId()const -{ - return ownerId_; +void AllocatePublicIpAddressRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AllocatePublicIpAddressRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AllocatePublicIpAddressRequest::getOwnerId() const { + return ownerId_; } -std::string AllocatePublicIpAddressRequest::getInstanceId()const -{ - return instanceId_; +void AllocatePublicIpAddressRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AllocatePublicIpAddressRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string AllocatePublicIpAddressRequest::getInstanceId() const { + return instanceId_; +} + +void AllocatePublicIpAddressRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/ecs/src/model/ApplyAutoSnapshotPolicyRequest.cc b/ecs/src/model/ApplyAutoSnapshotPolicyRequest.cc index b08bc3c2c..6474613ab 100644 --- a/ecs/src/model/ApplyAutoSnapshotPolicyRequest.cc +++ b/ecs/src/model/ApplyAutoSnapshotPolicyRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ApplyAutoSnapshotPolicyRequest; - -ApplyAutoSnapshotPolicyRequest::ApplyAutoSnapshotPolicyRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ApplyAutoSnapshotPolicy") -{ - setMethod(HttpRequest::Method::Post); -} - -ApplyAutoSnapshotPolicyRequest::~ApplyAutoSnapshotPolicyRequest() -{} - -long ApplyAutoSnapshotPolicyRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ApplyAutoSnapshotPolicyRequest; + +ApplyAutoSnapshotPolicyRequest::ApplyAutoSnapshotPolicyRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ApplyAutoSnapshotPolicy") { + setMethod(HttpRequest::Method::Post); } -void ApplyAutoSnapshotPolicyRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ApplyAutoSnapshotPolicyRequest::~ApplyAutoSnapshotPolicyRequest() {} + +long ApplyAutoSnapshotPolicyRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ApplyAutoSnapshotPolicyRequest::getAutoSnapshotPolicyId()const -{ - return autoSnapshotPolicyId_; +void ApplyAutoSnapshotPolicyRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ApplyAutoSnapshotPolicyRequest::setAutoSnapshotPolicyId(const std::string& autoSnapshotPolicyId) -{ - autoSnapshotPolicyId_ = autoSnapshotPolicyId; - setParameter("AutoSnapshotPolicyId", autoSnapshotPolicyId); +std::string ApplyAutoSnapshotPolicyRequest::getAutoSnapshotPolicyId() const { + return autoSnapshotPolicyId_; } -std::string ApplyAutoSnapshotPolicyRequest::getRegionId()const -{ - return regionId_; +void ApplyAutoSnapshotPolicyRequest::setAutoSnapshotPolicyId(const std::string &autoSnapshotPolicyId) { + autoSnapshotPolicyId_ = autoSnapshotPolicyId; + setParameter(std::string("autoSnapshotPolicyId"), autoSnapshotPolicyId); } -void ApplyAutoSnapshotPolicyRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ApplyAutoSnapshotPolicyRequest::getRegionId() const { + return regionId_; } -std::string ApplyAutoSnapshotPolicyRequest::getDiskIds()const -{ - return diskIds_; +void ApplyAutoSnapshotPolicyRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("regionId"), regionId); } -void ApplyAutoSnapshotPolicyRequest::setDiskIds(const std::string& diskIds) -{ - diskIds_ = diskIds; - setParameter("DiskIds", diskIds); +std::string ApplyAutoSnapshotPolicyRequest::getDiskIds() const { + return diskIds_; } -std::string ApplyAutoSnapshotPolicyRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ApplyAutoSnapshotPolicyRequest::setDiskIds(const std::string &diskIds) { + diskIds_ = diskIds; + setParameter(std::string("diskIds"), diskIds); } -void ApplyAutoSnapshotPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ApplyAutoSnapshotPolicyRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long ApplyAutoSnapshotPolicyRequest::getOwnerId()const -{ - return ownerId_; +void ApplyAutoSnapshotPolicyRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ApplyAutoSnapshotPolicyRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ApplyAutoSnapshotPolicyRequest::getOwnerId() const { + return ownerId_; +} + +void ApplyAutoSnapshotPolicyRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/AssignIpv6AddressesRequest.cc b/ecs/src/model/AssignIpv6AddressesRequest.cc index f4d6d7ecc..05254d18a 100644 --- a/ecs/src/model/AssignIpv6AddressesRequest.cc +++ b/ecs/src/model/AssignIpv6AddressesRequest.cc @@ -1,119 +1,98 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::AssignIpv6AddressesRequest; - -AssignIpv6AddressesRequest::AssignIpv6AddressesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "AssignIpv6Addresses") -{ - setMethod(HttpRequest::Method::Post); -} - -AssignIpv6AddressesRequest::~AssignIpv6AddressesRequest() -{} - -long AssignIpv6AddressesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::AssignIpv6AddressesRequest; + +AssignIpv6AddressesRequest::AssignIpv6AddressesRequest() + : RpcServiceRequest("ecs", "2014-05-26", "AssignIpv6Addresses") { + setMethod(HttpRequest::Method::Post); } -void AssignIpv6AddressesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AssignIpv6AddressesRequest::~AssignIpv6AddressesRequest() {} + +long AssignIpv6AddressesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AssignIpv6AddressesRequest::getRegionId()const -{ - return regionId_; +void AssignIpv6AddressesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AssignIpv6AddressesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string AssignIpv6AddressesRequest::getRegionId() const { + return regionId_; } -std::string AssignIpv6AddressesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AssignIpv6AddressesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void AssignIpv6AddressesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AssignIpv6AddressesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -int AssignIpv6AddressesRequest::getIpv6AddressCount()const -{ - return ipv6AddressCount_; +void AssignIpv6AddressesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AssignIpv6AddressesRequest::setIpv6AddressCount(int ipv6AddressCount) -{ - ipv6AddressCount_ = ipv6AddressCount; - setParameter("Ipv6AddressCount", std::to_string(ipv6AddressCount)); +int AssignIpv6AddressesRequest::getIpv6AddressCount() const { + return ipv6AddressCount_; } -std::string AssignIpv6AddressesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AssignIpv6AddressesRequest::setIpv6AddressCount(int ipv6AddressCount) { + ipv6AddressCount_ = ipv6AddressCount; + setParameter(std::string("Ipv6AddressCount"), std::to_string(ipv6AddressCount)); } -void AssignIpv6AddressesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AssignIpv6AddressesRequest::getOwnerAccount() const { + return ownerAccount_; } -long AssignIpv6AddressesRequest::getOwnerId()const -{ - return ownerId_; +void AssignIpv6AddressesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AssignIpv6AddressesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AssignIpv6AddressesRequest::getOwnerId() const { + return ownerId_; } -std::string AssignIpv6AddressesRequest::getNetworkInterfaceId()const -{ - return networkInterfaceId_; +void AssignIpv6AddressesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AssignIpv6AddressesRequest::setNetworkInterfaceId(const std::string& networkInterfaceId) -{ - networkInterfaceId_ = networkInterfaceId; - setParameter("NetworkInterfaceId", networkInterfaceId); +std::string AssignIpv6AddressesRequest::getNetworkInterfaceId() const { + return networkInterfaceId_; } -std::vector AssignIpv6AddressesRequest::getIpv6Address()const -{ - return ipv6Address_; +void AssignIpv6AddressesRequest::setNetworkInterfaceId(const std::string &networkInterfaceId) { + networkInterfaceId_ = networkInterfaceId; + setParameter(std::string("NetworkInterfaceId"), networkInterfaceId); } -void AssignIpv6AddressesRequest::setIpv6Address(const std::vector& ipv6Address) -{ - ipv6Address_ = ipv6Address; - for(int dep1 = 0; dep1!= ipv6Address.size(); dep1++) { - setParameter("Ipv6Address."+ std::to_string(dep1), ipv6Address.at(dep1)); - } +std::vector AssignIpv6AddressesRequest::getIpv6Address() const { + return ipv6Address_; +} + +void AssignIpv6AddressesRequest::setIpv6Address(const std::vector &ipv6Address) { + ipv6Address_ = ipv6Address; } diff --git a/ecs/src/model/AssignPrivateIpAddressesRequest.cc b/ecs/src/model/AssignPrivateIpAddressesRequest.cc index 441f05e51..ad24f51ea 100644 --- a/ecs/src/model/AssignPrivateIpAddressesRequest.cc +++ b/ecs/src/model/AssignPrivateIpAddressesRequest.cc @@ -1,130 +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 - -using AlibabaCloud::Ecs::Model::AssignPrivateIpAddressesRequest; - -AssignPrivateIpAddressesRequest::AssignPrivateIpAddressesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "AssignPrivateIpAddresses") -{ - setMethod(HttpRequest::Method::Post); -} - -AssignPrivateIpAddressesRequest::~AssignPrivateIpAddressesRequest() -{} - -long AssignPrivateIpAddressesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::AssignPrivateIpAddressesRequest; + +AssignPrivateIpAddressesRequest::AssignPrivateIpAddressesRequest() + : RpcServiceRequest("ecs", "2014-05-26", "AssignPrivateIpAddresses") { + setMethod(HttpRequest::Method::Post); } -void AssignPrivateIpAddressesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AssignPrivateIpAddressesRequest::~AssignPrivateIpAddressesRequest() {} + +long AssignPrivateIpAddressesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AssignPrivateIpAddressesRequest::getClientToken()const -{ - return clientToken_; +void AssignPrivateIpAddressesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AssignPrivateIpAddressesRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string AssignPrivateIpAddressesRequest::getClientToken() const { + return clientToken_; } -int AssignPrivateIpAddressesRequest::getSecondaryPrivateIpAddressCount()const -{ - return secondaryPrivateIpAddressCount_; +void AssignPrivateIpAddressesRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void AssignPrivateIpAddressesRequest::setSecondaryPrivateIpAddressCount(int secondaryPrivateIpAddressCount) -{ - secondaryPrivateIpAddressCount_ = secondaryPrivateIpAddressCount; - setParameter("SecondaryPrivateIpAddressCount", std::to_string(secondaryPrivateIpAddressCount)); +int AssignPrivateIpAddressesRequest::getSecondaryPrivateIpAddressCount() const { + return secondaryPrivateIpAddressCount_; } -std::string AssignPrivateIpAddressesRequest::getRegionId()const -{ - return regionId_; +void AssignPrivateIpAddressesRequest::setSecondaryPrivateIpAddressCount(int secondaryPrivateIpAddressCount) { + secondaryPrivateIpAddressCount_ = secondaryPrivateIpAddressCount; + setParameter(std::string("SecondaryPrivateIpAddressCount"), std::to_string(secondaryPrivateIpAddressCount)); } -void AssignPrivateIpAddressesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string AssignPrivateIpAddressesRequest::getRegionId() const { + return regionId_; } -std::string AssignPrivateIpAddressesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AssignPrivateIpAddressesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void AssignPrivateIpAddressesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AssignPrivateIpAddressesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AssignPrivateIpAddressesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AssignPrivateIpAddressesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AssignPrivateIpAddressesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AssignPrivateIpAddressesRequest::getOwnerAccount() const { + return ownerAccount_; } -long AssignPrivateIpAddressesRequest::getOwnerId()const -{ - return ownerId_; +void AssignPrivateIpAddressesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AssignPrivateIpAddressesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AssignPrivateIpAddressesRequest::getOwnerId() const { + return ownerId_; } -std::vector AssignPrivateIpAddressesRequest::getPrivateIpAddress()const -{ - return privateIpAddress_; +void AssignPrivateIpAddressesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AssignPrivateIpAddressesRequest::setPrivateIpAddress(const std::vector& privateIpAddress) -{ - privateIpAddress_ = privateIpAddress; - for(int dep1 = 0; dep1!= privateIpAddress.size(); dep1++) { - setParameter("PrivateIpAddress."+ std::to_string(dep1), privateIpAddress.at(dep1)); - } +std::vector AssignPrivateIpAddressesRequest::getPrivateIpAddress() const { + return privateIpAddress_; } -std::string AssignPrivateIpAddressesRequest::getNetworkInterfaceId()const -{ - return networkInterfaceId_; +void AssignPrivateIpAddressesRequest::setPrivateIpAddress(const std::vector &privateIpAddress) { + privateIpAddress_ = privateIpAddress; } -void AssignPrivateIpAddressesRequest::setNetworkInterfaceId(const std::string& networkInterfaceId) -{ - networkInterfaceId_ = networkInterfaceId; - setParameter("NetworkInterfaceId", networkInterfaceId); +std::string AssignPrivateIpAddressesRequest::getNetworkInterfaceId() const { + return networkInterfaceId_; +} + +void AssignPrivateIpAddressesRequest::setNetworkInterfaceId(const std::string &networkInterfaceId) { + networkInterfaceId_ = networkInterfaceId; + setParameter(std::string("NetworkInterfaceId"), networkInterfaceId); } diff --git a/ecs/src/model/AssociateEipAddressRequest.cc b/ecs/src/model/AssociateEipAddressRequest.cc index 101d8fe3c..5fd52e6f8 100644 --- a/ecs/src/model/AssociateEipAddressRequest.cc +++ b/ecs/src/model/AssociateEipAddressRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::AssociateEipAddressRequest; - -AssociateEipAddressRequest::AssociateEipAddressRequest() : - RpcServiceRequest("ecs", "2014-05-26", "AssociateEipAddress") -{ - setMethod(HttpRequest::Method::Post); -} - -AssociateEipAddressRequest::~AssociateEipAddressRequest() -{} - -long AssociateEipAddressRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::AssociateEipAddressRequest; + +AssociateEipAddressRequest::AssociateEipAddressRequest() + : RpcServiceRequest("ecs", "2014-05-26", "AssociateEipAddress") { + setMethod(HttpRequest::Method::Post); } -void AssociateEipAddressRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AssociateEipAddressRequest::~AssociateEipAddressRequest() {} + +long AssociateEipAddressRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AssociateEipAddressRequest::getAllocationId()const -{ - return allocationId_; +void AssociateEipAddressRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AssociateEipAddressRequest::setAllocationId(const std::string& allocationId) -{ - allocationId_ = allocationId; - setParameter("AllocationId", allocationId); +std::string AssociateEipAddressRequest::getAllocationId() const { + return allocationId_; } -std::string AssociateEipAddressRequest::getRegionId()const -{ - return regionId_; +void AssociateEipAddressRequest::setAllocationId(const std::string &allocationId) { + allocationId_ = allocationId; + setParameter(std::string("AllocationId"), allocationId); } -void AssociateEipAddressRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string AssociateEipAddressRequest::getRegionId() const { + return regionId_; } -std::string AssociateEipAddressRequest::getInstanceType()const -{ - return instanceType_; +void AssociateEipAddressRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void AssociateEipAddressRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +std::string AssociateEipAddressRequest::getInstanceType() const { + return instanceType_; } -std::string AssociateEipAddressRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AssociateEipAddressRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } -void AssociateEipAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AssociateEipAddressRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AssociateEipAddressRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AssociateEipAddressRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AssociateEipAddressRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AssociateEipAddressRequest::getOwnerAccount() const { + return ownerAccount_; } -long AssociateEipAddressRequest::getOwnerId()const -{ - return ownerId_; +void AssociateEipAddressRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AssociateEipAddressRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AssociateEipAddressRequest::getOwnerId() const { + return ownerId_; } -std::string AssociateEipAddressRequest::getInstanceId()const -{ - return instanceId_; +void AssociateEipAddressRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AssociateEipAddressRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string AssociateEipAddressRequest::getInstanceId() const { + return instanceId_; +} + +void AssociateEipAddressRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/ecs/src/model/AssociateHaVipRequest.cc b/ecs/src/model/AssociateHaVipRequest.cc index f72be68ac..ef2e491b5 100644 --- a/ecs/src/model/AssociateHaVipRequest.cc +++ b/ecs/src/model/AssociateHaVipRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::AssociateHaVipRequest; - -AssociateHaVipRequest::AssociateHaVipRequest() : - RpcServiceRequest("ecs", "2014-05-26", "AssociateHaVip") -{ - setMethod(HttpRequest::Method::Post); -} - -AssociateHaVipRequest::~AssociateHaVipRequest() -{} - -long AssociateHaVipRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::AssociateHaVipRequest; + +AssociateHaVipRequest::AssociateHaVipRequest() + : RpcServiceRequest("ecs", "2014-05-26", "AssociateHaVip") { + setMethod(HttpRequest::Method::Post); } -void AssociateHaVipRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AssociateHaVipRequest::~AssociateHaVipRequest() {} + +long AssociateHaVipRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AssociateHaVipRequest::getClientToken()const -{ - return clientToken_; +void AssociateHaVipRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AssociateHaVipRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string AssociateHaVipRequest::getClientToken() const { + return clientToken_; } -std::string AssociateHaVipRequest::getRegionId()const -{ - return regionId_; +void AssociateHaVipRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void AssociateHaVipRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string AssociateHaVipRequest::getRegionId() const { + return regionId_; } -std::string AssociateHaVipRequest::getHaVipId()const -{ - return haVipId_; +void AssociateHaVipRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void AssociateHaVipRequest::setHaVipId(const std::string& haVipId) -{ - haVipId_ = haVipId; - setParameter("HaVipId", haVipId); +std::string AssociateHaVipRequest::getHaVipId() const { + return haVipId_; } -std::string AssociateHaVipRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AssociateHaVipRequest::setHaVipId(const std::string &haVipId) { + haVipId_ = haVipId; + setParameter(std::string("HaVipId"), haVipId); } -void AssociateHaVipRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AssociateHaVipRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AssociateHaVipRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AssociateHaVipRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AssociateHaVipRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AssociateHaVipRequest::getOwnerAccount() const { + return ownerAccount_; } -long AssociateHaVipRequest::getOwnerId()const -{ - return ownerId_; +void AssociateHaVipRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AssociateHaVipRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AssociateHaVipRequest::getOwnerId() const { + return ownerId_; } -std::string AssociateHaVipRequest::getInstanceId()const -{ - return instanceId_; +void AssociateHaVipRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AssociateHaVipRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string AssociateHaVipRequest::getInstanceId() const { + return instanceId_; +} + +void AssociateHaVipRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/ecs/src/model/AttachClassicLinkVpcRequest.cc b/ecs/src/model/AttachClassicLinkVpcRequest.cc index 25892ff75..35806451e 100644 --- a/ecs/src/model/AttachClassicLinkVpcRequest.cc +++ b/ecs/src/model/AttachClassicLinkVpcRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::AttachClassicLinkVpcRequest; - -AttachClassicLinkVpcRequest::AttachClassicLinkVpcRequest() : - RpcServiceRequest("ecs", "2014-05-26", "AttachClassicLinkVpc") -{ - setMethod(HttpRequest::Method::Post); -} - -AttachClassicLinkVpcRequest::~AttachClassicLinkVpcRequest() -{} - -long AttachClassicLinkVpcRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::AttachClassicLinkVpcRequest; + +AttachClassicLinkVpcRequest::AttachClassicLinkVpcRequest() + : RpcServiceRequest("ecs", "2014-05-26", "AttachClassicLinkVpc") { + setMethod(HttpRequest::Method::Post); } -void AttachClassicLinkVpcRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AttachClassicLinkVpcRequest::~AttachClassicLinkVpcRequest() {} + +long AttachClassicLinkVpcRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AttachClassicLinkVpcRequest::getRegionId()const -{ - return regionId_; +void AttachClassicLinkVpcRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AttachClassicLinkVpcRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string AttachClassicLinkVpcRequest::getRegionId() const { + return regionId_; } -std::string AttachClassicLinkVpcRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AttachClassicLinkVpcRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void AttachClassicLinkVpcRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AttachClassicLinkVpcRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long AttachClassicLinkVpcRequest::getOwnerId()const -{ - return ownerId_; +void AttachClassicLinkVpcRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AttachClassicLinkVpcRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AttachClassicLinkVpcRequest::getOwnerId() const { + return ownerId_; } -std::string AttachClassicLinkVpcRequest::getInstanceId()const -{ - return instanceId_; +void AttachClassicLinkVpcRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AttachClassicLinkVpcRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string AttachClassicLinkVpcRequest::getInstanceId() const { + return instanceId_; } -std::string AttachClassicLinkVpcRequest::getVpcId()const -{ - return vpcId_; +void AttachClassicLinkVpcRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void AttachClassicLinkVpcRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +std::string AttachClassicLinkVpcRequest::getVpcId() const { + return vpcId_; +} + +void AttachClassicLinkVpcRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); } diff --git a/ecs/src/model/AttachDiskRequest.cc b/ecs/src/model/AttachDiskRequest.cc index 435f830c5..b5ecee5f9 100644 --- a/ecs/src/model/AttachDiskRequest.cc +++ b/ecs/src/model/AttachDiskRequest.cc @@ -1,150 +1,126 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::AttachDiskRequest; - -AttachDiskRequest::AttachDiskRequest() : - RpcServiceRequest("ecs", "2014-05-26", "AttachDisk") -{ - setMethod(HttpRequest::Method::Post); -} - -AttachDiskRequest::~AttachDiskRequest() -{} - -long AttachDiskRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::AttachDiskRequest; + +AttachDiskRequest::AttachDiskRequest() + : RpcServiceRequest("ecs", "2014-05-26", "AttachDisk") { + setMethod(HttpRequest::Method::Post); } -void AttachDiskRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AttachDiskRequest::~AttachDiskRequest() {} + +long AttachDiskRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AttachDiskRequest::getKeyPairName()const -{ - return keyPairName_; +void AttachDiskRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AttachDiskRequest::setKeyPairName(const std::string& keyPairName) -{ - keyPairName_ = keyPairName; - setParameter("KeyPairName", keyPairName); +std::string AttachDiskRequest::getKeyPairName() const { + return keyPairName_; } -bool AttachDiskRequest::getBootable()const -{ - return bootable_; +void AttachDiskRequest::setKeyPairName(const std::string &keyPairName) { + keyPairName_ = keyPairName; + setParameter(std::string("KeyPairName"), keyPairName); } -void AttachDiskRequest::setBootable(bool bootable) -{ - bootable_ = bootable; - setParameter("Bootable", bootable ? "true" : "false"); +bool AttachDiskRequest::getBootable() const { + return bootable_; } -std::string AttachDiskRequest::getPassword()const -{ - return password_; +void AttachDiskRequest::setBootable(bool bootable) { + bootable_ = bootable; + setParameter(std::string("Bootable"), bootable ? "true" : "false"); } -void AttachDiskRequest::setPassword(const std::string& password) -{ - password_ = password; - setParameter("Password", password); +std::string AttachDiskRequest::getPassword() const { + return password_; } -std::string AttachDiskRequest::getDiskId()const -{ - return diskId_; +void AttachDiskRequest::setPassword(const std::string &password) { + password_ = password; + setParameter(std::string("Password"), password); } -void AttachDiskRequest::setDiskId(const std::string& diskId) -{ - diskId_ = diskId; - setParameter("DiskId", diskId); +std::string AttachDiskRequest::getDiskId() const { + return diskId_; } -bool AttachDiskRequest::getDeleteWithInstance()const -{ - return deleteWithInstance_; +void AttachDiskRequest::setDiskId(const std::string &diskId) { + diskId_ = diskId; + setParameter(std::string("DiskId"), diskId); } -void AttachDiskRequest::setDeleteWithInstance(bool deleteWithInstance) -{ - deleteWithInstance_ = deleteWithInstance; - setParameter("DeleteWithInstance", deleteWithInstance ? "true" : "false"); +bool AttachDiskRequest::getDeleteWithInstance() const { + return deleteWithInstance_; } -std::string AttachDiskRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AttachDiskRequest::setDeleteWithInstance(bool deleteWithInstance) { + deleteWithInstance_ = deleteWithInstance; + setParameter(std::string("DeleteWithInstance"), deleteWithInstance ? "true" : "false"); } -void AttachDiskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AttachDiskRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AttachDiskRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AttachDiskRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AttachDiskRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AttachDiskRequest::getOwnerAccount() const { + return ownerAccount_; } -long AttachDiskRequest::getOwnerId()const -{ - return ownerId_; +void AttachDiskRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AttachDiskRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AttachDiskRequest::getOwnerId() const { + return ownerId_; } -std::string AttachDiskRequest::getInstanceId()const -{ - return instanceId_; +void AttachDiskRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AttachDiskRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string AttachDiskRequest::getInstanceId() const { + return instanceId_; } -std::string AttachDiskRequest::getDevice()const -{ - return device_; +void AttachDiskRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void AttachDiskRequest::setDevice(const std::string& device) -{ - device_ = device; - setParameter("Device", device); +std::string AttachDiskRequest::getDevice() const { + return device_; +} + +void AttachDiskRequest::setDevice(const std::string &device) { + device_ = device; + setParameter(std::string("Device"), device); } diff --git a/ecs/src/model/AttachInstanceRamRoleRequest.cc b/ecs/src/model/AttachInstanceRamRoleRequest.cc index 0b6c28166..048209113 100644 --- a/ecs/src/model/AttachInstanceRamRoleRequest.cc +++ b/ecs/src/model/AttachInstanceRamRoleRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::AttachInstanceRamRoleRequest; - -AttachInstanceRamRoleRequest::AttachInstanceRamRoleRequest() : - RpcServiceRequest("ecs", "2014-05-26", "AttachInstanceRamRole") -{ - setMethod(HttpRequest::Method::Post); -} - -AttachInstanceRamRoleRequest::~AttachInstanceRamRoleRequest() -{} - -long AttachInstanceRamRoleRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::AttachInstanceRamRoleRequest; + +AttachInstanceRamRoleRequest::AttachInstanceRamRoleRequest() + : RpcServiceRequest("ecs", "2014-05-26", "AttachInstanceRamRole") { + setMethod(HttpRequest::Method::Post); } -void AttachInstanceRamRoleRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AttachInstanceRamRoleRequest::~AttachInstanceRamRoleRequest() {} + +long AttachInstanceRamRoleRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AttachInstanceRamRoleRequest::getRegionId()const -{ - return regionId_; +void AttachInstanceRamRoleRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AttachInstanceRamRoleRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string AttachInstanceRamRoleRequest::getRegionId() const { + return regionId_; } -std::string AttachInstanceRamRoleRequest::getPolicy()const -{ - return policy_; +void AttachInstanceRamRoleRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void AttachInstanceRamRoleRequest::setPolicy(const std::string& policy) -{ - policy_ = policy; - setParameter("Policy", policy); +std::string AttachInstanceRamRoleRequest::getPolicy() const { + return policy_; } -std::string AttachInstanceRamRoleRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AttachInstanceRamRoleRequest::setPolicy(const std::string &policy) { + policy_ = policy; + setParameter(std::string("Policy"), policy); } -void AttachInstanceRamRoleRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AttachInstanceRamRoleRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AttachInstanceRamRoleRequest::getRamRoleName()const -{ - return ramRoleName_; +void AttachInstanceRamRoleRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AttachInstanceRamRoleRequest::setRamRoleName(const std::string& ramRoleName) -{ - ramRoleName_ = ramRoleName; - setParameter("RamRoleName", ramRoleName); +std::string AttachInstanceRamRoleRequest::getRamRoleName() const { + return ramRoleName_; } -long AttachInstanceRamRoleRequest::getOwnerId()const -{ - return ownerId_; +void AttachInstanceRamRoleRequest::setRamRoleName(const std::string &ramRoleName) { + ramRoleName_ = ramRoleName; + setParameter(std::string("RamRoleName"), ramRoleName); } -void AttachInstanceRamRoleRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AttachInstanceRamRoleRequest::getOwnerId() const { + return ownerId_; } -std::string AttachInstanceRamRoleRequest::getInstanceIds()const -{ - return instanceIds_; +void AttachInstanceRamRoleRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AttachInstanceRamRoleRequest::setInstanceIds(const std::string& instanceIds) -{ - instanceIds_ = instanceIds; - setParameter("InstanceIds", instanceIds); +std::string AttachInstanceRamRoleRequest::getInstanceIds() const { + return instanceIds_; +} + +void AttachInstanceRamRoleRequest::setInstanceIds(const std::string &instanceIds) { + instanceIds_ = instanceIds; + setParameter(std::string("InstanceIds"), instanceIds); } diff --git a/ecs/src/model/AttachInstanceRamRoleResult.cc b/ecs/src/model/AttachInstanceRamRoleResult.cc index 79a4b4b39..e8aef0eef 100644 --- a/ecs/src/model/AttachInstanceRamRoleResult.cc +++ b/ecs/src/model/AttachInstanceRamRoleResult.cc @@ -43,22 +43,22 @@ void AttachInstanceRamRoleResult::parse(const std::string &payload) for (auto valueAttachInstanceRamRoleResultsAttachInstanceRamRoleResult : allAttachInstanceRamRoleResultsNode) { Result attachInstanceRamRoleResultsObject; - if(!valueAttachInstanceRamRoleResultsAttachInstanceRamRoleResult["InstanceId"].isNull()) - attachInstanceRamRoleResultsObject.instanceId = valueAttachInstanceRamRoleResultsAttachInstanceRamRoleResult["InstanceId"].asString(); - if(!valueAttachInstanceRamRoleResultsAttachInstanceRamRoleResult["Success"].isNull()) - attachInstanceRamRoleResultsObject.success = valueAttachInstanceRamRoleResultsAttachInstanceRamRoleResult["Success"].asString() == "true"; if(!valueAttachInstanceRamRoleResultsAttachInstanceRamRoleResult["Code"].isNull()) attachInstanceRamRoleResultsObject.code = valueAttachInstanceRamRoleResultsAttachInstanceRamRoleResult["Code"].asString(); if(!valueAttachInstanceRamRoleResultsAttachInstanceRamRoleResult["Message"].isNull()) attachInstanceRamRoleResultsObject.message = valueAttachInstanceRamRoleResultsAttachInstanceRamRoleResult["Message"].asString(); + if(!valueAttachInstanceRamRoleResultsAttachInstanceRamRoleResult["InstanceId"].isNull()) + attachInstanceRamRoleResultsObject.instanceId = valueAttachInstanceRamRoleResultsAttachInstanceRamRoleResult["InstanceId"].asString(); + if(!valueAttachInstanceRamRoleResultsAttachInstanceRamRoleResult["Success"].isNull()) + attachInstanceRamRoleResultsObject.success = valueAttachInstanceRamRoleResultsAttachInstanceRamRoleResult["Success"].asString() == "true"; attachInstanceRamRoleResults_.push_back(attachInstanceRamRoleResultsObject); } + if(!value["RamRoleName"].isNull()) + ramRoleName_ = value["RamRoleName"].asString(); if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); if(!value["FailCount"].isNull()) failCount_ = std::stoi(value["FailCount"].asString()); - if(!value["RamRoleName"].isNull()) - ramRoleName_ = value["RamRoleName"].asString(); } diff --git a/ecs/src/model/AttachKeyPairRequest.cc b/ecs/src/model/AttachKeyPairRequest.cc index 79119d36b..221a9dbc8 100644 --- a/ecs/src/model/AttachKeyPairRequest.cc +++ b/ecs/src/model/AttachKeyPairRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::AttachKeyPairRequest; - -AttachKeyPairRequest::AttachKeyPairRequest() : - RpcServiceRequest("ecs", "2014-05-26", "AttachKeyPair") -{ - setMethod(HttpRequest::Method::Post); -} - -AttachKeyPairRequest::~AttachKeyPairRequest() -{} - -long AttachKeyPairRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::AttachKeyPairRequest; + +AttachKeyPairRequest::AttachKeyPairRequest() + : RpcServiceRequest("ecs", "2014-05-26", "AttachKeyPair") { + setMethod(HttpRequest::Method::Post); } -void AttachKeyPairRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AttachKeyPairRequest::~AttachKeyPairRequest() {} + +long AttachKeyPairRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AttachKeyPairRequest::getKeyPairName()const -{ - return keyPairName_; +void AttachKeyPairRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AttachKeyPairRequest::setKeyPairName(const std::string& keyPairName) -{ - keyPairName_ = keyPairName; - setParameter("KeyPairName", keyPairName); +std::string AttachKeyPairRequest::getKeyPairName() const { + return keyPairName_; } -std::string AttachKeyPairRequest::getRegionId()const -{ - return regionId_; +void AttachKeyPairRequest::setKeyPairName(const std::string &keyPairName) { + keyPairName_ = keyPairName; + setParameter(std::string("KeyPairName"), keyPairName); } -void AttachKeyPairRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string AttachKeyPairRequest::getRegionId() const { + return regionId_; } -std::string AttachKeyPairRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AttachKeyPairRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void AttachKeyPairRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AttachKeyPairRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long AttachKeyPairRequest::getOwnerId()const -{ - return ownerId_; +void AttachKeyPairRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AttachKeyPairRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AttachKeyPairRequest::getOwnerId() const { + return ownerId_; } -std::string AttachKeyPairRequest::getInstanceIds()const -{ - return instanceIds_; +void AttachKeyPairRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AttachKeyPairRequest::setInstanceIds(const std::string& instanceIds) -{ - instanceIds_ = instanceIds; - setParameter("InstanceIds", instanceIds); +std::string AttachKeyPairRequest::getInstanceIds() const { + return instanceIds_; +} + +void AttachKeyPairRequest::setInstanceIds(const std::string &instanceIds) { + instanceIds_ = instanceIds; + setParameter(std::string("InstanceIds"), instanceIds); } diff --git a/ecs/src/model/AttachKeyPairResult.cc b/ecs/src/model/AttachKeyPairResult.cc index 6f34d3f09..1570c8c33 100644 --- a/ecs/src/model/AttachKeyPairResult.cc +++ b/ecs/src/model/AttachKeyPairResult.cc @@ -43,22 +43,22 @@ void AttachKeyPairResult::parse(const std::string &payload) for (auto valueResultsResult : allResultsNode) { Result resultsObject; - if(!valueResultsResult["InstanceId"].isNull()) - resultsObject.instanceId = valueResultsResult["InstanceId"].asString(); - if(!valueResultsResult["Success"].isNull()) - resultsObject.success = valueResultsResult["Success"].asString(); if(!valueResultsResult["Code"].isNull()) resultsObject.code = valueResultsResult["Code"].asString(); if(!valueResultsResult["Message"].isNull()) resultsObject.message = valueResultsResult["Message"].asString(); + if(!valueResultsResult["InstanceId"].isNull()) + resultsObject.instanceId = valueResultsResult["InstanceId"].asString(); + if(!valueResultsResult["Success"].isNull()) + resultsObject.success = valueResultsResult["Success"].asString(); results_.push_back(resultsObject); } + if(!value["KeyPairName"].isNull()) + keyPairName_ = value["KeyPairName"].asString(); if(!value["TotalCount"].isNull()) totalCount_ = value["TotalCount"].asString(); if(!value["FailCount"].isNull()) failCount_ = value["FailCount"].asString(); - if(!value["KeyPairName"].isNull()) - keyPairName_ = value["KeyPairName"].asString(); } diff --git a/ecs/src/model/AttachNetworkInterfaceRequest.cc b/ecs/src/model/AttachNetworkInterfaceRequest.cc index 2113cbac5..cef54f6b6 100644 --- a/ecs/src/model/AttachNetworkInterfaceRequest.cc +++ b/ecs/src/model/AttachNetworkInterfaceRequest.cc @@ -1,128 +1,108 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::AttachNetworkInterfaceRequest; - -AttachNetworkInterfaceRequest::AttachNetworkInterfaceRequest() : - RpcServiceRequest("ecs", "2014-05-26", "AttachNetworkInterface") -{ - setMethod(HttpRequest::Method::Post); -} - -AttachNetworkInterfaceRequest::~AttachNetworkInterfaceRequest() -{} - -long AttachNetworkInterfaceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::AttachNetworkInterfaceRequest; + +AttachNetworkInterfaceRequest::AttachNetworkInterfaceRequest() + : RpcServiceRequest("ecs", "2014-05-26", "AttachNetworkInterface") { + setMethod(HttpRequest::Method::Post); } -void AttachNetworkInterfaceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AttachNetworkInterfaceRequest::~AttachNetworkInterfaceRequest() {} + +long AttachNetworkInterfaceRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AttachNetworkInterfaceRequest::getRegionId()const -{ - return regionId_; +void AttachNetworkInterfaceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AttachNetworkInterfaceRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string AttachNetworkInterfaceRequest::getRegionId() const { + return regionId_; } -std::string AttachNetworkInterfaceRequest::getTrunkNetworkInstanceId()const -{ - return trunkNetworkInstanceId_; +void AttachNetworkInterfaceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void AttachNetworkInterfaceRequest::setTrunkNetworkInstanceId(const std::string& trunkNetworkInstanceId) -{ - trunkNetworkInstanceId_ = trunkNetworkInstanceId; - setParameter("TrunkNetworkInstanceId", trunkNetworkInstanceId); +std::string AttachNetworkInterfaceRequest::getTrunkNetworkInstanceId() const { + return trunkNetworkInstanceId_; } -std::string AttachNetworkInterfaceRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AttachNetworkInterfaceRequest::setTrunkNetworkInstanceId(const std::string &trunkNetworkInstanceId) { + trunkNetworkInstanceId_ = trunkNetworkInstanceId; + setParameter(std::string("TrunkNetworkInstanceId"), trunkNetworkInstanceId); } -void AttachNetworkInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AttachNetworkInterfaceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AttachNetworkInterfaceRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AttachNetworkInterfaceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AttachNetworkInterfaceRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AttachNetworkInterfaceRequest::getOwnerAccount() const { + return ownerAccount_; } -bool AttachNetworkInterfaceRequest::getWaitForNetworkConfigurationReady()const -{ - return waitForNetworkConfigurationReady_; +void AttachNetworkInterfaceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AttachNetworkInterfaceRequest::setWaitForNetworkConfigurationReady(bool waitForNetworkConfigurationReady) -{ - waitForNetworkConfigurationReady_ = waitForNetworkConfigurationReady; - setParameter("WaitForNetworkConfigurationReady", waitForNetworkConfigurationReady ? "true" : "false"); +bool AttachNetworkInterfaceRequest::getWaitForNetworkConfigurationReady() const { + return waitForNetworkConfigurationReady_; } -long AttachNetworkInterfaceRequest::getOwnerId()const -{ - return ownerId_; +void AttachNetworkInterfaceRequest::setWaitForNetworkConfigurationReady(bool waitForNetworkConfigurationReady) { + waitForNetworkConfigurationReady_ = waitForNetworkConfigurationReady; + setParameter(std::string("WaitForNetworkConfigurationReady"), waitForNetworkConfigurationReady ? "true" : "false"); } -void AttachNetworkInterfaceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AttachNetworkInterfaceRequest::getOwnerId() const { + return ownerId_; } -std::string AttachNetworkInterfaceRequest::getInstanceId()const -{ - return instanceId_; +void AttachNetworkInterfaceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AttachNetworkInterfaceRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string AttachNetworkInterfaceRequest::getInstanceId() const { + return instanceId_; } -std::string AttachNetworkInterfaceRequest::getNetworkInterfaceId()const -{ - return networkInterfaceId_; +void AttachNetworkInterfaceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void AttachNetworkInterfaceRequest::setNetworkInterfaceId(const std::string& networkInterfaceId) -{ - networkInterfaceId_ = networkInterfaceId; - setParameter("NetworkInterfaceId", networkInterfaceId); +std::string AttachNetworkInterfaceRequest::getNetworkInterfaceId() const { + return networkInterfaceId_; +} + +void AttachNetworkInterfaceRequest::setNetworkInterfaceId(const std::string &networkInterfaceId) { + networkInterfaceId_ = networkInterfaceId; + setParameter(std::string("NetworkInterfaceId"), networkInterfaceId); } diff --git a/ecs/src/model/AuthorizeSecurityGroupEgressRequest.cc b/ecs/src/model/AuthorizeSecurityGroupEgressRequest.cc index 86aee4769..24347acbb 100644 --- a/ecs/src/model/AuthorizeSecurityGroupEgressRequest.cc +++ b/ecs/src/model/AuthorizeSecurityGroupEgressRequest.cc @@ -1,271 +1,225 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::AuthorizeSecurityGroupEgressRequest; - -AuthorizeSecurityGroupEgressRequest::AuthorizeSecurityGroupEgressRequest() : - RpcServiceRequest("ecs", "2014-05-26", "AuthorizeSecurityGroupEgress") -{ - setMethod(HttpRequest::Method::Post); -} - -AuthorizeSecurityGroupEgressRequest::~AuthorizeSecurityGroupEgressRequest() -{} - -std::string AuthorizeSecurityGroupEgressRequest::getNicType()const -{ - return nicType_; + */ + +#include + +using AlibabaCloud::Ecs::Model::AuthorizeSecurityGroupEgressRequest; + +AuthorizeSecurityGroupEgressRequest::AuthorizeSecurityGroupEgressRequest() + : RpcServiceRequest("ecs", "2014-05-26", "AuthorizeSecurityGroupEgress") { + setMethod(HttpRequest::Method::Post); } -void AuthorizeSecurityGroupEgressRequest::setNicType(const std::string& nicType) -{ - nicType_ = nicType; - setParameter("NicType", nicType); +AuthorizeSecurityGroupEgressRequest::~AuthorizeSecurityGroupEgressRequest() {} + +std::string AuthorizeSecurityGroupEgressRequest::getNicType() const { + return nicType_; } -long AuthorizeSecurityGroupEgressRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void AuthorizeSecurityGroupEgressRequest::setNicType(const std::string &nicType) { + nicType_ = nicType; + setParameter(std::string("NicType"), nicType); } -void AuthorizeSecurityGroupEgressRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long AuthorizeSecurityGroupEgressRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AuthorizeSecurityGroupEgressRequest::getSourcePortRange()const -{ - return sourcePortRange_; +void AuthorizeSecurityGroupEgressRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AuthorizeSecurityGroupEgressRequest::setSourcePortRange(const std::string& sourcePortRange) -{ - sourcePortRange_ = sourcePortRange; - setParameter("SourcePortRange", sourcePortRange); +std::string AuthorizeSecurityGroupEgressRequest::getSourcePortRange() const { + return sourcePortRange_; } -std::string AuthorizeSecurityGroupEgressRequest::getClientToken()const -{ - return clientToken_; +void AuthorizeSecurityGroupEgressRequest::setSourcePortRange(const std::string &sourcePortRange) { + sourcePortRange_ = sourcePortRange; + setParameter(std::string("SourcePortRange"), sourcePortRange); } -void AuthorizeSecurityGroupEgressRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string AuthorizeSecurityGroupEgressRequest::getClientToken() const { + return clientToken_; } -std::string AuthorizeSecurityGroupEgressRequest::getDestPrefixListId()const -{ - return destPrefixListId_; +void AuthorizeSecurityGroupEgressRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void AuthorizeSecurityGroupEgressRequest::setDestPrefixListId(const std::string& destPrefixListId) -{ - destPrefixListId_ = destPrefixListId; - setParameter("DestPrefixListId", destPrefixListId); +std::string AuthorizeSecurityGroupEgressRequest::getDestPrefixListId() const { + return destPrefixListId_; } -std::string AuthorizeSecurityGroupEgressRequest::getSecurityGroupId()const -{ - return securityGroupId_; +void AuthorizeSecurityGroupEgressRequest::setDestPrefixListId(const std::string &destPrefixListId) { + destPrefixListId_ = destPrefixListId; + setParameter(std::string("DestPrefixListId"), destPrefixListId); } -void AuthorizeSecurityGroupEgressRequest::setSecurityGroupId(const std::string& securityGroupId) -{ - securityGroupId_ = securityGroupId; - setParameter("SecurityGroupId", securityGroupId); +std::string AuthorizeSecurityGroupEgressRequest::getSecurityGroupId() const { + return securityGroupId_; } -std::string AuthorizeSecurityGroupEgressRequest::getDescription()const -{ - return description_; +void AuthorizeSecurityGroupEgressRequest::setSecurityGroupId(const std::string &securityGroupId) { + securityGroupId_ = securityGroupId; + setParameter(std::string("SecurityGroupId"), securityGroupId); } -void AuthorizeSecurityGroupEgressRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string AuthorizeSecurityGroupEgressRequest::getDescription() const { + return description_; } -std::string AuthorizeSecurityGroupEgressRequest::getRegionId()const -{ - return regionId_; +void AuthorizeSecurityGroupEgressRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void AuthorizeSecurityGroupEgressRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string AuthorizeSecurityGroupEgressRequest::getRegionId() const { + return regionId_; } -std::string AuthorizeSecurityGroupEgressRequest::getIpv6DestCidrIp()const -{ - return ipv6DestCidrIp_; +void AuthorizeSecurityGroupEgressRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void AuthorizeSecurityGroupEgressRequest::setIpv6DestCidrIp(const std::string& ipv6DestCidrIp) -{ - ipv6DestCidrIp_ = ipv6DestCidrIp; - setParameter("Ipv6DestCidrIp", ipv6DestCidrIp); +std::string AuthorizeSecurityGroupEgressRequest::getIpv6DestCidrIp() const { + return ipv6DestCidrIp_; } -std::string AuthorizeSecurityGroupEgressRequest::getIpv6SourceCidrIp()const -{ - return ipv6SourceCidrIp_; +void AuthorizeSecurityGroupEgressRequest::setIpv6DestCidrIp(const std::string &ipv6DestCidrIp) { + ipv6DestCidrIp_ = ipv6DestCidrIp; + setParameter(std::string("Ipv6DestCidrIp"), ipv6DestCidrIp); } -void AuthorizeSecurityGroupEgressRequest::setIpv6SourceCidrIp(const std::string& ipv6SourceCidrIp) -{ - ipv6SourceCidrIp_ = ipv6SourceCidrIp; - setParameter("Ipv6SourceCidrIp", ipv6SourceCidrIp); +std::string AuthorizeSecurityGroupEgressRequest::getIpv6SourceCidrIp() const { + return ipv6SourceCidrIp_; } -std::string AuthorizeSecurityGroupEgressRequest::getPolicy()const -{ - return policy_; +void AuthorizeSecurityGroupEgressRequest::setIpv6SourceCidrIp(const std::string &ipv6SourceCidrIp) { + ipv6SourceCidrIp_ = ipv6SourceCidrIp; + setParameter(std::string("Ipv6SourceCidrIp"), ipv6SourceCidrIp); } -void AuthorizeSecurityGroupEgressRequest::setPolicy(const std::string& policy) -{ - policy_ = policy; - setParameter("Policy", policy); +std::string AuthorizeSecurityGroupEgressRequest::getPolicy() const { + return policy_; } -std::string AuthorizeSecurityGroupEgressRequest::getPortRange()const -{ - return portRange_; +void AuthorizeSecurityGroupEgressRequest::setPolicy(const std::string &policy) { + policy_ = policy; + setParameter(std::string("Policy"), policy); } -void AuthorizeSecurityGroupEgressRequest::setPortRange(const std::string& portRange) -{ - portRange_ = portRange; - setParameter("PortRange", portRange); +std::string AuthorizeSecurityGroupEgressRequest::getPortRange() const { + return portRange_; } -std::string AuthorizeSecurityGroupEgressRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AuthorizeSecurityGroupEgressRequest::setPortRange(const std::string &portRange) { + portRange_ = portRange; + setParameter(std::string("PortRange"), portRange); } -void AuthorizeSecurityGroupEgressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AuthorizeSecurityGroupEgressRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AuthorizeSecurityGroupEgressRequest::getIpProtocol()const -{ - return ipProtocol_; +void AuthorizeSecurityGroupEgressRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AuthorizeSecurityGroupEgressRequest::setIpProtocol(const std::string& ipProtocol) -{ - ipProtocol_ = ipProtocol; - setParameter("IpProtocol", ipProtocol); +std::string AuthorizeSecurityGroupEgressRequest::getIpProtocol() const { + return ipProtocol_; } -std::string AuthorizeSecurityGroupEgressRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AuthorizeSecurityGroupEgressRequest::setIpProtocol(const std::string &ipProtocol) { + ipProtocol_ = ipProtocol; + setParameter(std::string("IpProtocol"), ipProtocol); } -void AuthorizeSecurityGroupEgressRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AuthorizeSecurityGroupEgressRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string AuthorizeSecurityGroupEgressRequest::getSourceCidrIp()const -{ - return sourceCidrIp_; +void AuthorizeSecurityGroupEgressRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AuthorizeSecurityGroupEgressRequest::setSourceCidrIp(const std::string& sourceCidrIp) -{ - sourceCidrIp_ = sourceCidrIp; - setParameter("SourceCidrIp", sourceCidrIp); +std::string AuthorizeSecurityGroupEgressRequest::getSourceCidrIp() const { + return sourceCidrIp_; } -std::string AuthorizeSecurityGroupEgressRequest::getDestGroupId()const -{ - return destGroupId_; +void AuthorizeSecurityGroupEgressRequest::setSourceCidrIp(const std::string &sourceCidrIp) { + sourceCidrIp_ = sourceCidrIp; + setParameter(std::string("SourceCidrIp"), sourceCidrIp); } -void AuthorizeSecurityGroupEgressRequest::setDestGroupId(const std::string& destGroupId) -{ - destGroupId_ = destGroupId; - setParameter("DestGroupId", destGroupId); +std::string AuthorizeSecurityGroupEgressRequest::getDestGroupId() const { + return destGroupId_; } -long AuthorizeSecurityGroupEgressRequest::getOwnerId()const -{ - return ownerId_; +void AuthorizeSecurityGroupEgressRequest::setDestGroupId(const std::string &destGroupId) { + destGroupId_ = destGroupId; + setParameter(std::string("DestGroupId"), destGroupId); } -void AuthorizeSecurityGroupEgressRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AuthorizeSecurityGroupEgressRequest::getOwnerId() const { + return ownerId_; } -std::string AuthorizeSecurityGroupEgressRequest::getDestGroupOwnerAccount()const -{ - return destGroupOwnerAccount_; +void AuthorizeSecurityGroupEgressRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AuthorizeSecurityGroupEgressRequest::setDestGroupOwnerAccount(const std::string& destGroupOwnerAccount) -{ - destGroupOwnerAccount_ = destGroupOwnerAccount; - setParameter("DestGroupOwnerAccount", destGroupOwnerAccount); +std::string AuthorizeSecurityGroupEgressRequest::getDestGroupOwnerAccount() const { + return destGroupOwnerAccount_; } -std::string AuthorizeSecurityGroupEgressRequest::getPriority()const -{ - return priority_; +void AuthorizeSecurityGroupEgressRequest::setDestGroupOwnerAccount(const std::string &destGroupOwnerAccount) { + destGroupOwnerAccount_ = destGroupOwnerAccount; + setParameter(std::string("DestGroupOwnerAccount"), destGroupOwnerAccount); } -void AuthorizeSecurityGroupEgressRequest::setPriority(const std::string& priority) -{ - priority_ = priority; - setParameter("Priority", priority); +std::string AuthorizeSecurityGroupEgressRequest::getPriority() const { + return priority_; } -std::string AuthorizeSecurityGroupEgressRequest::getDestCidrIp()const -{ - return destCidrIp_; +void AuthorizeSecurityGroupEgressRequest::setPriority(const std::string &priority) { + priority_ = priority; + setParameter(std::string("Priority"), priority); } -void AuthorizeSecurityGroupEgressRequest::setDestCidrIp(const std::string& destCidrIp) -{ - destCidrIp_ = destCidrIp; - setParameter("DestCidrIp", destCidrIp); +std::string AuthorizeSecurityGroupEgressRequest::getDestCidrIp() const { + return destCidrIp_; } -long AuthorizeSecurityGroupEgressRequest::getDestGroupOwnerId()const -{ - return destGroupOwnerId_; +void AuthorizeSecurityGroupEgressRequest::setDestCidrIp(const std::string &destCidrIp) { + destCidrIp_ = destCidrIp; + setParameter(std::string("DestCidrIp"), destCidrIp); } -void AuthorizeSecurityGroupEgressRequest::setDestGroupOwnerId(long destGroupOwnerId) -{ - destGroupOwnerId_ = destGroupOwnerId; - setParameter("DestGroupOwnerId", std::to_string(destGroupOwnerId)); +long AuthorizeSecurityGroupEgressRequest::getDestGroupOwnerId() const { + return destGroupOwnerId_; +} + +void AuthorizeSecurityGroupEgressRequest::setDestGroupOwnerId(long destGroupOwnerId) { + destGroupOwnerId_ = destGroupOwnerId; + setParameter(std::string("DestGroupOwnerId"), std::to_string(destGroupOwnerId)); } diff --git a/ecs/src/model/AuthorizeSecurityGroupRequest.cc b/ecs/src/model/AuthorizeSecurityGroupRequest.cc index 1b843c218..c3c194110 100644 --- a/ecs/src/model/AuthorizeSecurityGroupRequest.cc +++ b/ecs/src/model/AuthorizeSecurityGroupRequest.cc @@ -1,271 +1,225 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::AuthorizeSecurityGroupRequest; - -AuthorizeSecurityGroupRequest::AuthorizeSecurityGroupRequest() : - RpcServiceRequest("ecs", "2014-05-26", "AuthorizeSecurityGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -AuthorizeSecurityGroupRequest::~AuthorizeSecurityGroupRequest() -{} - -std::string AuthorizeSecurityGroupRequest::getNicType()const -{ - return nicType_; + */ + +#include + +using AlibabaCloud::Ecs::Model::AuthorizeSecurityGroupRequest; + +AuthorizeSecurityGroupRequest::AuthorizeSecurityGroupRequest() + : RpcServiceRequest("ecs", "2014-05-26", "AuthorizeSecurityGroup") { + setMethod(HttpRequest::Method::Post); } -void AuthorizeSecurityGroupRequest::setNicType(const std::string& nicType) -{ - nicType_ = nicType; - setParameter("NicType", nicType); +AuthorizeSecurityGroupRequest::~AuthorizeSecurityGroupRequest() {} + +std::string AuthorizeSecurityGroupRequest::getNicType() const { + return nicType_; } -long AuthorizeSecurityGroupRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void AuthorizeSecurityGroupRequest::setNicType(const std::string &nicType) { + nicType_ = nicType; + setParameter(std::string("NicType"), nicType); } -void AuthorizeSecurityGroupRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long AuthorizeSecurityGroupRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AuthorizeSecurityGroupRequest::getSourcePrefixListId()const -{ - return sourcePrefixListId_; +void AuthorizeSecurityGroupRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AuthorizeSecurityGroupRequest::setSourcePrefixListId(const std::string& sourcePrefixListId) -{ - sourcePrefixListId_ = sourcePrefixListId; - setParameter("SourcePrefixListId", sourcePrefixListId); +std::string AuthorizeSecurityGroupRequest::getSourcePrefixListId() const { + return sourcePrefixListId_; } -std::string AuthorizeSecurityGroupRequest::getSourcePortRange()const -{ - return sourcePortRange_; +void AuthorizeSecurityGroupRequest::setSourcePrefixListId(const std::string &sourcePrefixListId) { + sourcePrefixListId_ = sourcePrefixListId; + setParameter(std::string("SourcePrefixListId"), sourcePrefixListId); } -void AuthorizeSecurityGroupRequest::setSourcePortRange(const std::string& sourcePortRange) -{ - sourcePortRange_ = sourcePortRange; - setParameter("SourcePortRange", sourcePortRange); +std::string AuthorizeSecurityGroupRequest::getSourcePortRange() const { + return sourcePortRange_; } -std::string AuthorizeSecurityGroupRequest::getClientToken()const -{ - return clientToken_; +void AuthorizeSecurityGroupRequest::setSourcePortRange(const std::string &sourcePortRange) { + sourcePortRange_ = sourcePortRange; + setParameter(std::string("SourcePortRange"), sourcePortRange); } -void AuthorizeSecurityGroupRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string AuthorizeSecurityGroupRequest::getClientToken() const { + return clientToken_; } -std::string AuthorizeSecurityGroupRequest::getSecurityGroupId()const -{ - return securityGroupId_; +void AuthorizeSecurityGroupRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void AuthorizeSecurityGroupRequest::setSecurityGroupId(const std::string& securityGroupId) -{ - securityGroupId_ = securityGroupId; - setParameter("SecurityGroupId", securityGroupId); +std::string AuthorizeSecurityGroupRequest::getSecurityGroupId() const { + return securityGroupId_; } -std::string AuthorizeSecurityGroupRequest::getDescription()const -{ - return description_; +void AuthorizeSecurityGroupRequest::setSecurityGroupId(const std::string &securityGroupId) { + securityGroupId_ = securityGroupId; + setParameter(std::string("SecurityGroupId"), securityGroupId); } -void AuthorizeSecurityGroupRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string AuthorizeSecurityGroupRequest::getDescription() const { + return description_; } -long AuthorizeSecurityGroupRequest::getSourceGroupOwnerId()const -{ - return sourceGroupOwnerId_; +void AuthorizeSecurityGroupRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void AuthorizeSecurityGroupRequest::setSourceGroupOwnerId(long sourceGroupOwnerId) -{ - sourceGroupOwnerId_ = sourceGroupOwnerId; - setParameter("SourceGroupOwnerId", std::to_string(sourceGroupOwnerId)); +long AuthorizeSecurityGroupRequest::getSourceGroupOwnerId() const { + return sourceGroupOwnerId_; } -std::string AuthorizeSecurityGroupRequest::getSourceGroupOwnerAccount()const -{ - return sourceGroupOwnerAccount_; +void AuthorizeSecurityGroupRequest::setSourceGroupOwnerId(long sourceGroupOwnerId) { + sourceGroupOwnerId_ = sourceGroupOwnerId; + setParameter(std::string("SourceGroupOwnerId"), std::to_string(sourceGroupOwnerId)); } -void AuthorizeSecurityGroupRequest::setSourceGroupOwnerAccount(const std::string& sourceGroupOwnerAccount) -{ - sourceGroupOwnerAccount_ = sourceGroupOwnerAccount; - setParameter("SourceGroupOwnerAccount", sourceGroupOwnerAccount); +std::string AuthorizeSecurityGroupRequest::getSourceGroupOwnerAccount() const { + return sourceGroupOwnerAccount_; } -std::string AuthorizeSecurityGroupRequest::getRegionId()const -{ - return regionId_; +void AuthorizeSecurityGroupRequest::setSourceGroupOwnerAccount(const std::string &sourceGroupOwnerAccount) { + sourceGroupOwnerAccount_ = sourceGroupOwnerAccount; + setParameter(std::string("SourceGroupOwnerAccount"), sourceGroupOwnerAccount); } -void AuthorizeSecurityGroupRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string AuthorizeSecurityGroupRequest::getRegionId() const { + return regionId_; } -std::string AuthorizeSecurityGroupRequest::getIpv6SourceCidrIp()const -{ - return ipv6SourceCidrIp_; +void AuthorizeSecurityGroupRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void AuthorizeSecurityGroupRequest::setIpv6SourceCidrIp(const std::string& ipv6SourceCidrIp) -{ - ipv6SourceCidrIp_ = ipv6SourceCidrIp; - setParameter("Ipv6SourceCidrIp", ipv6SourceCidrIp); +std::string AuthorizeSecurityGroupRequest::getIpv6SourceCidrIp() const { + return ipv6SourceCidrIp_; } -std::string AuthorizeSecurityGroupRequest::getIpv6DestCidrIp()const -{ - return ipv6DestCidrIp_; +void AuthorizeSecurityGroupRequest::setIpv6SourceCidrIp(const std::string &ipv6SourceCidrIp) { + ipv6SourceCidrIp_ = ipv6SourceCidrIp; + setParameter(std::string("Ipv6SourceCidrIp"), ipv6SourceCidrIp); } -void AuthorizeSecurityGroupRequest::setIpv6DestCidrIp(const std::string& ipv6DestCidrIp) -{ - ipv6DestCidrIp_ = ipv6DestCidrIp; - setParameter("Ipv6DestCidrIp", ipv6DestCidrIp); +std::string AuthorizeSecurityGroupRequest::getIpv6DestCidrIp() const { + return ipv6DestCidrIp_; } -std::string AuthorizeSecurityGroupRequest::getPolicy()const -{ - return policy_; +void AuthorizeSecurityGroupRequest::setIpv6DestCidrIp(const std::string &ipv6DestCidrIp) { + ipv6DestCidrIp_ = ipv6DestCidrIp; + setParameter(std::string("Ipv6DestCidrIp"), ipv6DestCidrIp); } -void AuthorizeSecurityGroupRequest::setPolicy(const std::string& policy) -{ - policy_ = policy; - setParameter("Policy", policy); +std::string AuthorizeSecurityGroupRequest::getPolicy() const { + return policy_; } -std::string AuthorizeSecurityGroupRequest::getPortRange()const -{ - return portRange_; +void AuthorizeSecurityGroupRequest::setPolicy(const std::string &policy) { + policy_ = policy; + setParameter(std::string("Policy"), policy); } -void AuthorizeSecurityGroupRequest::setPortRange(const std::string& portRange) -{ - portRange_ = portRange; - setParameter("PortRange", portRange); +std::string AuthorizeSecurityGroupRequest::getPortRange() const { + return portRange_; } -std::string AuthorizeSecurityGroupRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AuthorizeSecurityGroupRequest::setPortRange(const std::string &portRange) { + portRange_ = portRange; + setParameter(std::string("PortRange"), portRange); } -void AuthorizeSecurityGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AuthorizeSecurityGroupRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AuthorizeSecurityGroupRequest::getIpProtocol()const -{ - return ipProtocol_; +void AuthorizeSecurityGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AuthorizeSecurityGroupRequest::setIpProtocol(const std::string& ipProtocol) -{ - ipProtocol_ = ipProtocol; - setParameter("IpProtocol", ipProtocol); +std::string AuthorizeSecurityGroupRequest::getIpProtocol() const { + return ipProtocol_; } -std::string AuthorizeSecurityGroupRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AuthorizeSecurityGroupRequest::setIpProtocol(const std::string &ipProtocol) { + ipProtocol_ = ipProtocol; + setParameter(std::string("IpProtocol"), ipProtocol); } -void AuthorizeSecurityGroupRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AuthorizeSecurityGroupRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string AuthorizeSecurityGroupRequest::getSourceCidrIp()const -{ - return sourceCidrIp_; +void AuthorizeSecurityGroupRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AuthorizeSecurityGroupRequest::setSourceCidrIp(const std::string& sourceCidrIp) -{ - sourceCidrIp_ = sourceCidrIp; - setParameter("SourceCidrIp", sourceCidrIp); +std::string AuthorizeSecurityGroupRequest::getSourceCidrIp() const { + return sourceCidrIp_; } -long AuthorizeSecurityGroupRequest::getOwnerId()const -{ - return ownerId_; +void AuthorizeSecurityGroupRequest::setSourceCidrIp(const std::string &sourceCidrIp) { + sourceCidrIp_ = sourceCidrIp; + setParameter(std::string("SourceCidrIp"), sourceCidrIp); } -void AuthorizeSecurityGroupRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AuthorizeSecurityGroupRequest::getOwnerId() const { + return ownerId_; } -std::string AuthorizeSecurityGroupRequest::getPriority()const -{ - return priority_; +void AuthorizeSecurityGroupRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AuthorizeSecurityGroupRequest::setPriority(const std::string& priority) -{ - priority_ = priority; - setParameter("Priority", priority); +std::string AuthorizeSecurityGroupRequest::getPriority() const { + return priority_; } -std::string AuthorizeSecurityGroupRequest::getDestCidrIp()const -{ - return destCidrIp_; +void AuthorizeSecurityGroupRequest::setPriority(const std::string &priority) { + priority_ = priority; + setParameter(std::string("Priority"), priority); } -void AuthorizeSecurityGroupRequest::setDestCidrIp(const std::string& destCidrIp) -{ - destCidrIp_ = destCidrIp; - setParameter("DestCidrIp", destCidrIp); +std::string AuthorizeSecurityGroupRequest::getDestCidrIp() const { + return destCidrIp_; } -std::string AuthorizeSecurityGroupRequest::getSourceGroupId()const -{ - return sourceGroupId_; +void AuthorizeSecurityGroupRequest::setDestCidrIp(const std::string &destCidrIp) { + destCidrIp_ = destCidrIp; + setParameter(std::string("DestCidrIp"), destCidrIp); } -void AuthorizeSecurityGroupRequest::setSourceGroupId(const std::string& sourceGroupId) -{ - sourceGroupId_ = sourceGroupId; - setParameter("SourceGroupId", sourceGroupId); +std::string AuthorizeSecurityGroupRequest::getSourceGroupId() const { + return sourceGroupId_; +} + +void AuthorizeSecurityGroupRequest::setSourceGroupId(const std::string &sourceGroupId) { + sourceGroupId_ = sourceGroupId; + setParameter(std::string("SourceGroupId"), sourceGroupId); } diff --git a/ecs/src/model/CancelAutoSnapshotPolicyRequest.cc b/ecs/src/model/CancelAutoSnapshotPolicyRequest.cc index 6a7bcfb3a..b86ed8841 100644 --- a/ecs/src/model/CancelAutoSnapshotPolicyRequest.cc +++ b/ecs/src/model/CancelAutoSnapshotPolicyRequest.cc @@ -1,84 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::CancelAutoSnapshotPolicyRequest; - -CancelAutoSnapshotPolicyRequest::CancelAutoSnapshotPolicyRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CancelAutoSnapshotPolicy") -{ - setMethod(HttpRequest::Method::Post); -} - -CancelAutoSnapshotPolicyRequest::~CancelAutoSnapshotPolicyRequest() -{} - -long CancelAutoSnapshotPolicyRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::CancelAutoSnapshotPolicyRequest; + +CancelAutoSnapshotPolicyRequest::CancelAutoSnapshotPolicyRequest() + : RpcServiceRequest("ecs", "2014-05-26", "CancelAutoSnapshotPolicy") { + setMethod(HttpRequest::Method::Post); } -void CancelAutoSnapshotPolicyRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CancelAutoSnapshotPolicyRequest::~CancelAutoSnapshotPolicyRequest() {} + +long CancelAutoSnapshotPolicyRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CancelAutoSnapshotPolicyRequest::getRegionId()const -{ - return regionId_; +void CancelAutoSnapshotPolicyRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CancelAutoSnapshotPolicyRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CancelAutoSnapshotPolicyRequest::getRegionId() const { + return regionId_; } -std::string CancelAutoSnapshotPolicyRequest::getDiskIds()const -{ - return diskIds_; +void CancelAutoSnapshotPolicyRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("regionId"), regionId); } -void CancelAutoSnapshotPolicyRequest::setDiskIds(const std::string& diskIds) -{ - diskIds_ = diskIds; - setParameter("DiskIds", diskIds); +std::string CancelAutoSnapshotPolicyRequest::getDiskIds() const { + return diskIds_; } -std::string CancelAutoSnapshotPolicyRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CancelAutoSnapshotPolicyRequest::setDiskIds(const std::string &diskIds) { + diskIds_ = diskIds; + setParameter(std::string("diskIds"), diskIds); } -void CancelAutoSnapshotPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CancelAutoSnapshotPolicyRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long CancelAutoSnapshotPolicyRequest::getOwnerId()const -{ - return ownerId_; +void CancelAutoSnapshotPolicyRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CancelAutoSnapshotPolicyRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CancelAutoSnapshotPolicyRequest::getOwnerId() const { + return ownerId_; +} + +void CancelAutoSnapshotPolicyRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/CancelCopyImageRequest.cc b/ecs/src/model/CancelCopyImageRequest.cc index 7f781f463..456ac4fe0 100644 --- a/ecs/src/model/CancelCopyImageRequest.cc +++ b/ecs/src/model/CancelCopyImageRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::CancelCopyImageRequest; - -CancelCopyImageRequest::CancelCopyImageRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CancelCopyImage") -{ - setMethod(HttpRequest::Method::Post); -} - -CancelCopyImageRequest::~CancelCopyImageRequest() -{} - -long CancelCopyImageRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::CancelCopyImageRequest; + +CancelCopyImageRequest::CancelCopyImageRequest() + : RpcServiceRequest("ecs", "2014-05-26", "CancelCopyImage") { + setMethod(HttpRequest::Method::Post); } -void CancelCopyImageRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CancelCopyImageRequest::~CancelCopyImageRequest() {} + +long CancelCopyImageRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CancelCopyImageRequest::getImageId()const -{ - return imageId_; +void CancelCopyImageRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CancelCopyImageRequest::setImageId(const std::string& imageId) -{ - imageId_ = imageId; - setParameter("ImageId", imageId); +std::string CancelCopyImageRequest::getImageId() const { + return imageId_; } -std::string CancelCopyImageRequest::getRegionId()const -{ - return regionId_; +void CancelCopyImageRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("ImageId"), imageId); } -void CancelCopyImageRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CancelCopyImageRequest::getRegionId() const { + return regionId_; } -std::string CancelCopyImageRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CancelCopyImageRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CancelCopyImageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CancelCopyImageRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CancelCopyImageRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CancelCopyImageRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CancelCopyImageRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CancelCopyImageRequest::getOwnerAccount() const { + return ownerAccount_; } -long CancelCopyImageRequest::getOwnerId()const -{ - return ownerId_; +void CancelCopyImageRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CancelCopyImageRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CancelCopyImageRequest::getOwnerId() const { + return ownerId_; +} + +void CancelCopyImageRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/CancelImagePipelineExecutionRequest.cc b/ecs/src/model/CancelImagePipelineExecutionRequest.cc index b2a7b4336..e0cc437a8 100644 --- a/ecs/src/model/CancelImagePipelineExecutionRequest.cc +++ b/ecs/src/model/CancelImagePipelineExecutionRequest.cc @@ -1,111 +1,95 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::CancelImagePipelineExecutionRequest; - -CancelImagePipelineExecutionRequest::CancelImagePipelineExecutionRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CancelImagePipelineExecution") -{ - setMethod(HttpRequest::Method::Post); -} - -CancelImagePipelineExecutionRequest::~CancelImagePipelineExecutionRequest() -{} - -long CancelImagePipelineExecutionRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::CancelImagePipelineExecutionRequest; + +CancelImagePipelineExecutionRequest::CancelImagePipelineExecutionRequest() + : RpcServiceRequest("ecs", "2014-05-26", "CancelImagePipelineExecution") { + setMethod(HttpRequest::Method::Post); } -void CancelImagePipelineExecutionRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CancelImagePipelineExecutionRequest::~CancelImagePipelineExecutionRequest() {} + +long CancelImagePipelineExecutionRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CancelImagePipelineExecutionRequest::getExecutionId()const -{ - return executionId_; +void CancelImagePipelineExecutionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CancelImagePipelineExecutionRequest::setExecutionId(const std::string& executionId) -{ - executionId_ = executionId; - setParameter("ExecutionId", executionId); +std::string CancelImagePipelineExecutionRequest::getExecutionId() const { + return executionId_; } -std::string CancelImagePipelineExecutionRequest::getRegionId()const -{ - return regionId_; +void CancelImagePipelineExecutionRequest::setExecutionId(const std::string &executionId) { + executionId_ = executionId; + setParameter(std::string("ExecutionId"), executionId); } -void CancelImagePipelineExecutionRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CancelImagePipelineExecutionRequest::getRegionId() const { + return regionId_; } -std::vector CancelImagePipelineExecutionRequest::getTemplateTag()const -{ - return templateTag_; +void CancelImagePipelineExecutionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CancelImagePipelineExecutionRequest::setTemplateTag(const std::vector& templateTag) -{ - templateTag_ = templateTag; - for(int dep1 = 0; dep1!= templateTag.size(); dep1++) { - auto templateTagObj = templateTag.at(dep1); - std::string templateTagObjStr = "TemplateTag." + std::to_string(dep1 + 1); - setParameter(templateTagObjStr + ".Key", templateTagObj.key); - setParameter(templateTagObjStr + ".Value", templateTagObj.value); - } +std::vector CancelImagePipelineExecutionRequest::getTemplateTag() const { + return templateTag_; } -std::string CancelImagePipelineExecutionRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CancelImagePipelineExecutionRequest::setTemplateTag(const std::vector &templateTag) { + templateTag_ = templateTag; + for(int dep1 = 0; dep1 != templateTag.size(); dep1++) { + auto templateTagObj = templateTag.at(dep1); + std::string templateTagObjStr = std::string("TemplateTag") + "." + std::to_string(dep1 + 1); + setParameter(templateTagObjStr + ".Key", templateTagObj.key); + setParameter(templateTagObjStr + ".Value", templateTagObj.value); + } } -void CancelImagePipelineExecutionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CancelImagePipelineExecutionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CancelImagePipelineExecutionRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CancelImagePipelineExecutionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CancelImagePipelineExecutionRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CancelImagePipelineExecutionRequest::getOwnerAccount() const { + return ownerAccount_; } -long CancelImagePipelineExecutionRequest::getOwnerId()const -{ - return ownerId_; +void CancelImagePipelineExecutionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CancelImagePipelineExecutionRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CancelImagePipelineExecutionRequest::getOwnerId() const { + return ownerId_; +} + +void CancelImagePipelineExecutionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/CancelPhysicalConnectionRequest.cc b/ecs/src/model/CancelPhysicalConnectionRequest.cc index c9d68d0c5..9986c06e5 100644 --- a/ecs/src/model/CancelPhysicalConnectionRequest.cc +++ b/ecs/src/model/CancelPhysicalConnectionRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::CancelPhysicalConnectionRequest; - -CancelPhysicalConnectionRequest::CancelPhysicalConnectionRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CancelPhysicalConnection") -{ - setMethod(HttpRequest::Method::Post); -} - -CancelPhysicalConnectionRequest::~CancelPhysicalConnectionRequest() -{} - -long CancelPhysicalConnectionRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::CancelPhysicalConnectionRequest; + +CancelPhysicalConnectionRequest::CancelPhysicalConnectionRequest() + : RpcServiceRequest("ecs", "2014-05-26", "CancelPhysicalConnection") { + setMethod(HttpRequest::Method::Post); } -void CancelPhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CancelPhysicalConnectionRequest::~CancelPhysicalConnectionRequest() {} + +long CancelPhysicalConnectionRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CancelPhysicalConnectionRequest::getClientToken()const -{ - return clientToken_; +void CancelPhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CancelPhysicalConnectionRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CancelPhysicalConnectionRequest::getClientToken() const { + return clientToken_; } -std::string CancelPhysicalConnectionRequest::getRegionId()const -{ - return regionId_; +void CancelPhysicalConnectionRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CancelPhysicalConnectionRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CancelPhysicalConnectionRequest::getRegionId() const { + return regionId_; } -std::string CancelPhysicalConnectionRequest::getUserCidr()const -{ - return userCidr_; +void CancelPhysicalConnectionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CancelPhysicalConnectionRequest::setUserCidr(const std::string& userCidr) -{ - userCidr_ = userCidr; - setParameter("UserCidr", userCidr); +std::string CancelPhysicalConnectionRequest::getUserCidr() const { + return userCidr_; } -std::string CancelPhysicalConnectionRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CancelPhysicalConnectionRequest::setUserCidr(const std::string &userCidr) { + userCidr_ = userCidr; + setParameter(std::string("UserCidr"), userCidr); } -void CancelPhysicalConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CancelPhysicalConnectionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CancelPhysicalConnectionRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CancelPhysicalConnectionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CancelPhysicalConnectionRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CancelPhysicalConnectionRequest::getOwnerAccount() const { + return ownerAccount_; } -long CancelPhysicalConnectionRequest::getOwnerId()const -{ - return ownerId_; +void CancelPhysicalConnectionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CancelPhysicalConnectionRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CancelPhysicalConnectionRequest::getOwnerId() const { + return ownerId_; } -std::string CancelPhysicalConnectionRequest::getPhysicalConnectionId()const -{ - return physicalConnectionId_; +void CancelPhysicalConnectionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CancelPhysicalConnectionRequest::setPhysicalConnectionId(const std::string& physicalConnectionId) -{ - physicalConnectionId_ = physicalConnectionId; - setParameter("PhysicalConnectionId", physicalConnectionId); +std::string CancelPhysicalConnectionRequest::getPhysicalConnectionId() const { + return physicalConnectionId_; +} + +void CancelPhysicalConnectionRequest::setPhysicalConnectionId(const std::string &physicalConnectionId) { + physicalConnectionId_ = physicalConnectionId; + setParameter(std::string("PhysicalConnectionId"), physicalConnectionId); } diff --git a/ecs/src/model/CancelSimulatedSystemEventsRequest.cc b/ecs/src/model/CancelSimulatedSystemEventsRequest.cc index 78b550f13..a830101fe 100644 --- a/ecs/src/model/CancelSimulatedSystemEventsRequest.cc +++ b/ecs/src/model/CancelSimulatedSystemEventsRequest.cc @@ -1,97 +1,80 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::CancelSimulatedSystemEventsRequest; - -CancelSimulatedSystemEventsRequest::CancelSimulatedSystemEventsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CancelSimulatedSystemEvents") -{ - setMethod(HttpRequest::Method::Post); -} - -CancelSimulatedSystemEventsRequest::~CancelSimulatedSystemEventsRequest() -{} - -std::vector CancelSimulatedSystemEventsRequest::getEventId()const -{ - return eventId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::CancelSimulatedSystemEventsRequest; + +CancelSimulatedSystemEventsRequest::CancelSimulatedSystemEventsRequest() + : RpcServiceRequest("ecs", "2014-05-26", "CancelSimulatedSystemEvents") { + setMethod(HttpRequest::Method::Post); } -void CancelSimulatedSystemEventsRequest::setEventId(const std::vector& eventId) -{ - eventId_ = eventId; - for(int dep1 = 0; dep1!= eventId.size(); dep1++) { - setParameter("EventId."+ std::to_string(dep1), eventId.at(dep1)); - } +CancelSimulatedSystemEventsRequest::~CancelSimulatedSystemEventsRequest() {} + +std::vector CancelSimulatedSystemEventsRequest::getEventId() const { + return eventId_; } -long CancelSimulatedSystemEventsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void CancelSimulatedSystemEventsRequest::setEventId(const std::vector &eventId) { + eventId_ = eventId; } -void CancelSimulatedSystemEventsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long CancelSimulatedSystemEventsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CancelSimulatedSystemEventsRequest::getRegionId()const -{ - return regionId_; +void CancelSimulatedSystemEventsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CancelSimulatedSystemEventsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CancelSimulatedSystemEventsRequest::getRegionId() const { + return regionId_; } -std::string CancelSimulatedSystemEventsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CancelSimulatedSystemEventsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CancelSimulatedSystemEventsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CancelSimulatedSystemEventsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CancelSimulatedSystemEventsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CancelSimulatedSystemEventsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CancelSimulatedSystemEventsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CancelSimulatedSystemEventsRequest::getOwnerAccount() const { + return ownerAccount_; } -long CancelSimulatedSystemEventsRequest::getOwnerId()const -{ - return ownerId_; +void CancelSimulatedSystemEventsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CancelSimulatedSystemEventsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CancelSimulatedSystemEventsRequest::getOwnerId() const { + return ownerId_; +} + +void CancelSimulatedSystemEventsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/CancelTaskRequest.cc b/ecs/src/model/CancelTaskRequest.cc index e9987dd62..44275a1da 100644 --- a/ecs/src/model/CancelTaskRequest.cc +++ b/ecs/src/model/CancelTaskRequest.cc @@ -1,84 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::CancelTaskRequest; - -CancelTaskRequest::CancelTaskRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CancelTask") -{ - setMethod(HttpRequest::Method::Post); -} - -CancelTaskRequest::~CancelTaskRequest() -{} - -long CancelTaskRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::CancelTaskRequest; + +CancelTaskRequest::CancelTaskRequest() + : RpcServiceRequest("ecs", "2014-05-26", "CancelTask") { + setMethod(HttpRequest::Method::Post); } -void CancelTaskRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CancelTaskRequest::~CancelTaskRequest() {} + +long CancelTaskRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CancelTaskRequest::getRegionId()const -{ - return regionId_; +void CancelTaskRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CancelTaskRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CancelTaskRequest::getRegionId() const { + return regionId_; } -std::string CancelTaskRequest::getTaskId()const -{ - return taskId_; +void CancelTaskRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CancelTaskRequest::setTaskId(const std::string& taskId) -{ - taskId_ = taskId; - setParameter("TaskId", taskId); +std::string CancelTaskRequest::getTaskId() const { + return taskId_; } -std::string CancelTaskRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CancelTaskRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); } -void CancelTaskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CancelTaskRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long CancelTaskRequest::getOwnerId()const -{ - return ownerId_; +void CancelTaskRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CancelTaskRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CancelTaskRequest::getOwnerId() const { + return ownerId_; +} + +void CancelTaskRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/ConnectRouterInterfaceRequest.cc b/ecs/src/model/ConnectRouterInterfaceRequest.cc index f94715b85..65013ba4b 100644 --- a/ecs/src/model/ConnectRouterInterfaceRequest.cc +++ b/ecs/src/model/ConnectRouterInterfaceRequest.cc @@ -1,84 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ConnectRouterInterfaceRequest; - -ConnectRouterInterfaceRequest::ConnectRouterInterfaceRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ConnectRouterInterface") -{ - setMethod(HttpRequest::Method::Post); -} - -ConnectRouterInterfaceRequest::~ConnectRouterInterfaceRequest() -{} - -long ConnectRouterInterfaceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ConnectRouterInterfaceRequest; + +ConnectRouterInterfaceRequest::ConnectRouterInterfaceRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ConnectRouterInterface") { + setMethod(HttpRequest::Method::Post); } -void ConnectRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ConnectRouterInterfaceRequest::~ConnectRouterInterfaceRequest() {} + +long ConnectRouterInterfaceRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ConnectRouterInterfaceRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ConnectRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ConnectRouterInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ConnectRouterInterfaceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long ConnectRouterInterfaceRequest::getOwnerId()const -{ - return ownerId_; +void ConnectRouterInterfaceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ConnectRouterInterfaceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ConnectRouterInterfaceRequest::getOwnerId() const { + return ownerId_; } -std::string ConnectRouterInterfaceRequest::getRouterInterfaceId()const -{ - return routerInterfaceId_; +void ConnectRouterInterfaceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ConnectRouterInterfaceRequest::setRouterInterfaceId(const std::string& routerInterfaceId) -{ - routerInterfaceId_ = routerInterfaceId; - setParameter("RouterInterfaceId", routerInterfaceId); +std::string ConnectRouterInterfaceRequest::getRouterInterfaceId() const { + return routerInterfaceId_; } -std::string ConnectRouterInterfaceRequest::getRegionId()const -{ - return regionId_; +void ConnectRouterInterfaceRequest::setRouterInterfaceId(const std::string &routerInterfaceId) { + routerInterfaceId_ = routerInterfaceId; + setParameter(std::string("RouterInterfaceId"), routerInterfaceId); } -void ConnectRouterInterfaceRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ConnectRouterInterfaceRequest::getRegionId() const { + return regionId_; +} + +void ConnectRouterInterfaceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } diff --git a/ecs/src/model/ConvertNatPublicIpToEipRequest.cc b/ecs/src/model/ConvertNatPublicIpToEipRequest.cc index 6073dd8c4..1ff9fbcc4 100644 --- a/ecs/src/model/ConvertNatPublicIpToEipRequest.cc +++ b/ecs/src/model/ConvertNatPublicIpToEipRequest.cc @@ -1,84 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ConvertNatPublicIpToEipRequest; - -ConvertNatPublicIpToEipRequest::ConvertNatPublicIpToEipRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ConvertNatPublicIpToEip") -{ - setMethod(HttpRequest::Method::Post); -} - -ConvertNatPublicIpToEipRequest::~ConvertNatPublicIpToEipRequest() -{} - -long ConvertNatPublicIpToEipRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ConvertNatPublicIpToEipRequest; + +ConvertNatPublicIpToEipRequest::ConvertNatPublicIpToEipRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ConvertNatPublicIpToEip") { + setMethod(HttpRequest::Method::Post); } -void ConvertNatPublicIpToEipRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ConvertNatPublicIpToEipRequest::~ConvertNatPublicIpToEipRequest() {} + +long ConvertNatPublicIpToEipRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ConvertNatPublicIpToEipRequest::getRegionId()const -{ - return regionId_; +void ConvertNatPublicIpToEipRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ConvertNatPublicIpToEipRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ConvertNatPublicIpToEipRequest::getRegionId() const { + return regionId_; } -std::string ConvertNatPublicIpToEipRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ConvertNatPublicIpToEipRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ConvertNatPublicIpToEipRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ConvertNatPublicIpToEipRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long ConvertNatPublicIpToEipRequest::getOwnerId()const -{ - return ownerId_; +void ConvertNatPublicIpToEipRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ConvertNatPublicIpToEipRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ConvertNatPublicIpToEipRequest::getOwnerId() const { + return ownerId_; } -std::string ConvertNatPublicIpToEipRequest::getInstanceId()const -{ - return instanceId_; +void ConvertNatPublicIpToEipRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ConvertNatPublicIpToEipRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ConvertNatPublicIpToEipRequest::getInstanceId() const { + return instanceId_; +} + +void ConvertNatPublicIpToEipRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/ecs/src/model/CopyImageRequest.cc b/ecs/src/model/CopyImageRequest.cc index d8aff66cd..09272dc5d 100644 --- a/ecs/src/model/CopyImageRequest.cc +++ b/ecs/src/model/CopyImageRequest.cc @@ -1,188 +1,158 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::CopyImageRequest; - -CopyImageRequest::CopyImageRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CopyImage") -{ - setMethod(HttpRequest::Method::Post); -} - -CopyImageRequest::~CopyImageRequest() -{} - -long CopyImageRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::CopyImageRequest; + +CopyImageRequest::CopyImageRequest() + : RpcServiceRequest("ecs", "2014-05-26", "CopyImage") { + setMethod(HttpRequest::Method::Post); } -void CopyImageRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CopyImageRequest::~CopyImageRequest() {} + +long CopyImageRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CopyImageRequest::getImageId()const -{ - return imageId_; +void CopyImageRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CopyImageRequest::setImageId(const std::string& imageId) -{ - imageId_ = imageId; - setParameter("ImageId", imageId); +std::string CopyImageRequest::getImageId() const { + return imageId_; } -std::string CopyImageRequest::getEncryptAlgorithm()const -{ - return encryptAlgorithm_; +void CopyImageRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("ImageId"), imageId); } -void CopyImageRequest::setEncryptAlgorithm(const std::string& encryptAlgorithm) -{ - encryptAlgorithm_ = encryptAlgorithm; - setParameter("EncryptAlgorithm", encryptAlgorithm); +std::string CopyImageRequest::getEncryptAlgorithm() const { + return encryptAlgorithm_; } -std::string CopyImageRequest::getDestinationRegionId()const -{ - return destinationRegionId_; +void CopyImageRequest::setEncryptAlgorithm(const std::string &encryptAlgorithm) { + encryptAlgorithm_ = encryptAlgorithm; + setParameter(std::string("EncryptAlgorithm"), encryptAlgorithm); } -void CopyImageRequest::setDestinationRegionId(const std::string& destinationRegionId) -{ - destinationRegionId_ = destinationRegionId; - setParameter("DestinationRegionId", destinationRegionId); +std::string CopyImageRequest::getDestinationRegionId() const { + return destinationRegionId_; } -std::string CopyImageRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void CopyImageRequest::setDestinationRegionId(const std::string &destinationRegionId) { + destinationRegionId_ = destinationRegionId; + setParameter(std::string("DestinationRegionId"), destinationRegionId); } -void CopyImageRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string CopyImageRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string CopyImageRequest::getRegionId()const -{ - return regionId_; +void CopyImageRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void CopyImageRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CopyImageRequest::getRegionId() const { + return regionId_; } -std::vector CopyImageRequest::getTag()const -{ - return tag_; +void CopyImageRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CopyImageRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Value", tagObj.value); - setParameter(tagObjStr + ".Key", tagObj.key); - } +std::vector CopyImageRequest::getTag() const { + return tag_; } -std::string CopyImageRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CopyImageRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } -void CopyImageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CopyImageRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CopyImageRequest::getDestinationImageName()const -{ - return destinationImageName_; +void CopyImageRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CopyImageRequest::setDestinationImageName(const std::string& destinationImageName) -{ - destinationImageName_ = destinationImageName; - setParameter("DestinationImageName", destinationImageName); +std::string CopyImageRequest::getDestinationImageName() const { + return destinationImageName_; } -std::string CopyImageRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CopyImageRequest::setDestinationImageName(const std::string &destinationImageName) { + destinationImageName_ = destinationImageName; + setParameter(std::string("DestinationImageName"), destinationImageName); } -void CopyImageRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CopyImageRequest::getOwnerAccount() const { + return ownerAccount_; } -long CopyImageRequest::getOwnerId()const -{ - return ownerId_; +void CopyImageRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CopyImageRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CopyImageRequest::getOwnerId() const { + return ownerId_; } -bool CopyImageRequest::getEncrypted()const -{ - return encrypted_; +void CopyImageRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CopyImageRequest::setEncrypted(bool encrypted) -{ - encrypted_ = encrypted; - setParameter("Encrypted", encrypted ? "true" : "false"); +bool CopyImageRequest::getEncrypted() const { + return encrypted_; } -std::string CopyImageRequest::getKMSKeyId()const -{ - return kMSKeyId_; +void CopyImageRequest::setEncrypted(bool encrypted) { + encrypted_ = encrypted; + setParameter(std::string("Encrypted"), encrypted ? "true" : "false"); } -void CopyImageRequest::setKMSKeyId(const std::string& kMSKeyId) -{ - kMSKeyId_ = kMSKeyId; - setParameter("KMSKeyId", kMSKeyId); +std::string CopyImageRequest::getKMSKeyId() const { + return kMSKeyId_; } -std::string CopyImageRequest::getDestinationDescription()const -{ - return destinationDescription_; +void CopyImageRequest::setKMSKeyId(const std::string &kMSKeyId) { + kMSKeyId_ = kMSKeyId; + setParameter(std::string("KMSKeyId"), kMSKeyId); } -void CopyImageRequest::setDestinationDescription(const std::string& destinationDescription) -{ - destinationDescription_ = destinationDescription; - setParameter("DestinationDescription", destinationDescription); +std::string CopyImageRequest::getDestinationDescription() const { + return destinationDescription_; +} + +void CopyImageRequest::setDestinationDescription(const std::string &destinationDescription) { + destinationDescription_ = destinationDescription; + setParameter(std::string("DestinationDescription"), destinationDescription); } diff --git a/ecs/src/model/CopySnapshotRequest.cc b/ecs/src/model/CopySnapshotRequest.cc index 09ba2d054..31cfc195a 100644 --- a/ecs/src/model/CopySnapshotRequest.cc +++ b/ecs/src/model/CopySnapshotRequest.cc @@ -1,155 +1,131 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::CopySnapshotRequest; - -CopySnapshotRequest::CopySnapshotRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CopySnapshot") -{ - setMethod(HttpRequest::Method::Post); -} - -CopySnapshotRequest::~CopySnapshotRequest() -{} - -long CopySnapshotRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::CopySnapshotRequest; + +CopySnapshotRequest::CopySnapshotRequest() + : RpcServiceRequest("ecs", "2014-05-26", "CopySnapshot") { + setMethod(HttpRequest::Method::Post); } -void CopySnapshotRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CopySnapshotRequest::~CopySnapshotRequest() {} + +long CopySnapshotRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CopySnapshotRequest::getSnapshotId()const -{ - return snapshotId_; +void CopySnapshotRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CopySnapshotRequest::setSnapshotId(const std::string& snapshotId) -{ - snapshotId_ = snapshotId; - setParameter("SnapshotId", snapshotId); +std::string CopySnapshotRequest::getSnapshotId() const { + return snapshotId_; } -std::string CopySnapshotRequest::getDestinationRegionId()const -{ - return destinationRegionId_; +void CopySnapshotRequest::setSnapshotId(const std::string &snapshotId) { + snapshotId_ = snapshotId; + setParameter(std::string("SnapshotId"), snapshotId); } -void CopySnapshotRequest::setDestinationRegionId(const std::string& destinationRegionId) -{ - destinationRegionId_ = destinationRegionId; - setParameter("DestinationRegionId", destinationRegionId); +std::string CopySnapshotRequest::getDestinationRegionId() const { + return destinationRegionId_; } -std::string CopySnapshotRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void CopySnapshotRequest::setDestinationRegionId(const std::string &destinationRegionId) { + destinationRegionId_ = destinationRegionId; + setParameter(std::string("DestinationRegionId"), destinationRegionId); } -void CopySnapshotRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string CopySnapshotRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string CopySnapshotRequest::getRegionId()const -{ - return regionId_; +void CopySnapshotRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void CopySnapshotRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CopySnapshotRequest::getRegionId() const { + return regionId_; } -std::vector CopySnapshotRequest::getTag()const -{ - return tag_; +void CopySnapshotRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CopySnapshotRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Key", tagObj.key); - setParameter(tagObjStr + ".Value", tagObj.value); - } +std::vector CopySnapshotRequest::getTag() const { + return tag_; } -std::string CopySnapshotRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CopySnapshotRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } } -void CopySnapshotRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CopySnapshotRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long CopySnapshotRequest::getOwnerId()const -{ - return ownerId_; +void CopySnapshotRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CopySnapshotRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CopySnapshotRequest::getOwnerId() const { + return ownerId_; } -std::string CopySnapshotRequest::getDestinationSnapshotName()const -{ - return destinationSnapshotName_; +void CopySnapshotRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CopySnapshotRequest::setDestinationSnapshotName(const std::string& destinationSnapshotName) -{ - destinationSnapshotName_ = destinationSnapshotName; - setParameter("DestinationSnapshotName", destinationSnapshotName); +std::string CopySnapshotRequest::getDestinationSnapshotName() const { + return destinationSnapshotName_; } -std::string CopySnapshotRequest::getDestinationSnapshotDescription()const -{ - return destinationSnapshotDescription_; +void CopySnapshotRequest::setDestinationSnapshotName(const std::string &destinationSnapshotName) { + destinationSnapshotName_ = destinationSnapshotName; + setParameter(std::string("DestinationSnapshotName"), destinationSnapshotName); } -void CopySnapshotRequest::setDestinationSnapshotDescription(const std::string& destinationSnapshotDescription) -{ - destinationSnapshotDescription_ = destinationSnapshotDescription; - setParameter("DestinationSnapshotDescription", destinationSnapshotDescription); +std::string CopySnapshotRequest::getDestinationSnapshotDescription() const { + return destinationSnapshotDescription_; } -int CopySnapshotRequest::getRetentionDays()const -{ - return retentionDays_; +void CopySnapshotRequest::setDestinationSnapshotDescription(const std::string &destinationSnapshotDescription) { + destinationSnapshotDescription_ = destinationSnapshotDescription; + setParameter(std::string("DestinationSnapshotDescription"), destinationSnapshotDescription); } -void CopySnapshotRequest::setRetentionDays(int retentionDays) -{ - retentionDays_ = retentionDays; - setParameter("RetentionDays", std::to_string(retentionDays)); +int CopySnapshotRequest::getRetentionDays() const { + return retentionDays_; +} + +void CopySnapshotRequest::setRetentionDays(int retentionDays) { + retentionDays_ = retentionDays; + setParameter(std::string("RetentionDays"), std::to_string(retentionDays)); } diff --git a/ecs/src/model/CreateActivationRequest.cc b/ecs/src/model/CreateActivationRequest.cc index 0c33b5a0b..89f19fec2 100644 --- a/ecs/src/model/CreateActivationRequest.cc +++ b/ecs/src/model/CreateActivationRequest.cc @@ -1,139 +1,117 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::CreateActivationRequest; - -CreateActivationRequest::CreateActivationRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateActivation") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateActivationRequest::~CreateActivationRequest() -{} - -long CreateActivationRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::CreateActivationRequest; + +CreateActivationRequest::CreateActivationRequest() + : RpcServiceRequest("ecs", "2014-05-26", "CreateActivation") { + setMethod(HttpRequest::Method::Post); } -void CreateActivationRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateActivationRequest::~CreateActivationRequest() {} + +long CreateActivationRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateActivationRequest::getDescription()const -{ - return description_; +void CreateActivationRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateActivationRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateActivationRequest::getDescription() const { + return description_; } -std::string CreateActivationRequest::getRegionId()const -{ - return regionId_; +void CreateActivationRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateActivationRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateActivationRequest::getRegionId() const { + return regionId_; } -int CreateActivationRequest::getInstanceCount()const -{ - return instanceCount_; +void CreateActivationRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateActivationRequest::setInstanceCount(int instanceCount) -{ - instanceCount_ = instanceCount; - setParameter("InstanceCount", std::to_string(instanceCount)); +int CreateActivationRequest::getInstanceCount() const { + return instanceCount_; } -std::string CreateActivationRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateActivationRequest::setInstanceCount(int instanceCount) { + instanceCount_ = instanceCount; + setParameter(std::string("InstanceCount"), std::to_string(instanceCount)); } -void CreateActivationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateActivationRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateActivationRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateActivationRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateActivationRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateActivationRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateActivationRequest::getOwnerId()const -{ - return ownerId_; +void CreateActivationRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateActivationRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateActivationRequest::getOwnerId() const { + return ownerId_; } -std::string CreateActivationRequest::getInstanceName()const -{ - return instanceName_; +void CreateActivationRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateActivationRequest::setInstanceName(const std::string& instanceName) -{ - instanceName_ = instanceName; - setParameter("InstanceName", instanceName); +std::string CreateActivationRequest::getInstanceName() const { + return instanceName_; } -long CreateActivationRequest::getTimeToLiveInHours()const -{ - return timeToLiveInHours_; +void CreateActivationRequest::setInstanceName(const std::string &instanceName) { + instanceName_ = instanceName; + setParameter(std::string("InstanceName"), instanceName); } -void CreateActivationRequest::setTimeToLiveInHours(long timeToLiveInHours) -{ - timeToLiveInHours_ = timeToLiveInHours; - setParameter("TimeToLiveInHours", std::to_string(timeToLiveInHours)); +long CreateActivationRequest::getTimeToLiveInHours() const { + return timeToLiveInHours_; } -std::string CreateActivationRequest::getIpAddressRange()const -{ - return ipAddressRange_; +void CreateActivationRequest::setTimeToLiveInHours(long timeToLiveInHours) { + timeToLiveInHours_ = timeToLiveInHours; + setParameter(std::string("TimeToLiveInHours"), std::to_string(timeToLiveInHours)); } -void CreateActivationRequest::setIpAddressRange(const std::string& ipAddressRange) -{ - ipAddressRange_ = ipAddressRange; - setParameter("IpAddressRange", ipAddressRange); +std::string CreateActivationRequest::getIpAddressRange() const { + return ipAddressRange_; +} + +void CreateActivationRequest::setIpAddressRange(const std::string &ipAddressRange) { + ipAddressRange_ = ipAddressRange; + setParameter(std::string("IpAddressRange"), ipAddressRange); } diff --git a/ecs/src/model/CreateActivationResult.cc b/ecs/src/model/CreateActivationResult.cc index 2f0826162..11337c2a1 100644 --- a/ecs/src/model/CreateActivationResult.cc +++ b/ecs/src/model/CreateActivationResult.cc @@ -39,10 +39,10 @@ void CreateActivationResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["ActivationId"].isNull()) - activationId_ = value["ActivationId"].asString(); if(!value["ActivationCode"].isNull()) activationCode_ = value["ActivationCode"].asString(); + if(!value["ActivationId"].isNull()) + activationId_ = value["ActivationId"].asString(); } diff --git a/ecs/src/model/CreateAutoProvisioningGroupRequest.cc b/ecs/src/model/CreateAutoProvisioningGroupRequest.cc index d8da9b929..a31a6fcc8 100644 --- a/ecs/src/model/CreateAutoProvisioningGroupRequest.cc +++ b/ecs/src/model/CreateAutoProvisioningGroupRequest.cc @@ -1,681 +1,564 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::CreateAutoProvisioningGroupRequest; - -CreateAutoProvisioningGroupRequest::CreateAutoProvisioningGroupRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateAutoProvisioningGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateAutoProvisioningGroupRequest::~CreateAutoProvisioningGroupRequest() -{} - -std::vector CreateAutoProvisioningGroupRequest::getLaunchConfigurationDataDisk()const -{ - return launchConfigurationDataDisk_; + */ + +#include + +using AlibabaCloud::Ecs::Model::CreateAutoProvisioningGroupRequest; + +CreateAutoProvisioningGroupRequest::CreateAutoProvisioningGroupRequest() + : RpcServiceRequest("ecs", "2014-05-26", "CreateAutoProvisioningGroup") { + setMethod(HttpRequest::Method::Post); +} + +CreateAutoProvisioningGroupRequest::~CreateAutoProvisioningGroupRequest() {} + +std::vector CreateAutoProvisioningGroupRequest::getLaunchConfigurationDataDisk() const { + return launchConfigurationDataDisk_; } -void CreateAutoProvisioningGroupRequest::setLaunchConfigurationDataDisk(const std::vector& launchConfigurationDataDisk) -{ - launchConfigurationDataDisk_ = launchConfigurationDataDisk; - for(int dep1 = 0; dep1!= launchConfigurationDataDisk.size(); dep1++) { - auto launchConfigurationDataDiskObj = launchConfigurationDataDisk.at(dep1); - std::string launchConfigurationDataDiskObjStr = "LaunchConfiguration.DataDisk." + std::to_string(dep1 + 1); - setParameter(launchConfigurationDataDiskObjStr + ".PerformanceLevel", launchConfigurationDataDiskObj.performanceLevel); - setParameter(launchConfigurationDataDiskObjStr + ".KmsKeyId", launchConfigurationDataDiskObj.kmsKeyId); - setParameter(launchConfigurationDataDiskObjStr + ".Description", launchConfigurationDataDiskObj.description); - setParameter(launchConfigurationDataDiskObjStr + ".SnapshotId", launchConfigurationDataDiskObj.snapshotId); - setParameter(launchConfigurationDataDiskObjStr + ".Size", std::to_string(launchConfigurationDataDiskObj.size)); - setParameter(launchConfigurationDataDiskObjStr + ".Device", launchConfigurationDataDiskObj.device); - setParameter(launchConfigurationDataDiskObjStr + ".DiskName", launchConfigurationDataDiskObj.diskName); - setParameter(launchConfigurationDataDiskObjStr + ".Category", launchConfigurationDataDiskObj.category); - setParameter(launchConfigurationDataDiskObjStr + ".DeleteWithInstance", launchConfigurationDataDiskObj.deleteWithInstance ? "true" : "false"); - setParameter(launchConfigurationDataDiskObjStr + ".Encrypted", launchConfigurationDataDiskObj.encrypted ? "true" : "false"); - } +void CreateAutoProvisioningGroupRequest::setLaunchConfigurationDataDisk(const std::vector &launchConfigurationDataDisk) { + launchConfigurationDataDisk_ = launchConfigurationDataDisk; + for(int dep1 = 0; dep1 != launchConfigurationDataDisk.size(); dep1++) { + auto launchConfigurationDataDiskObj = launchConfigurationDataDisk.at(dep1); + std::string launchConfigurationDataDiskObjStr = std::string("LaunchConfiguration.DataDisk") + "." + std::to_string(dep1 + 1); + setParameter(launchConfigurationDataDiskObjStr + ".PerformanceLevel", launchConfigurationDataDiskObj.performanceLevel); + setParameter(launchConfigurationDataDiskObjStr + ".KmsKeyId", launchConfigurationDataDiskObj.kmsKeyId); + setParameter(launchConfigurationDataDiskObjStr + ".Description", launchConfigurationDataDiskObj.description); + setParameter(launchConfigurationDataDiskObjStr + ".SnapshotId", launchConfigurationDataDiskObj.snapshotId); + setParameter(launchConfigurationDataDiskObjStr + ".Size", std::to_string(launchConfigurationDataDiskObj.size)); + setParameter(launchConfigurationDataDiskObjStr + ".Device", launchConfigurationDataDiskObj.device); + setParameter(launchConfigurationDataDiskObjStr + ".DiskName", launchConfigurationDataDiskObj.diskName); + setParameter(launchConfigurationDataDiskObjStr + ".Category", launchConfigurationDataDiskObj.category); + setParameter(launchConfigurationDataDiskObjStr + ".DeleteWithInstance", launchConfigurationDataDiskObj.deleteWithInstance ? "true" : "false"); + setParameter(launchConfigurationDataDiskObjStr + ".Encrypted", launchConfigurationDataDiskObj.encrypted ? "true" : "false"); + } } -long CreateAutoProvisioningGroupRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +long CreateAutoProvisioningGroupRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -void CreateAutoProvisioningGroupRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +void CreateAutoProvisioningGroupRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationSystemDiskCategory()const -{ - return launchConfigurationSystemDiskCategory_; +std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationSystemDiskCategory() const { + return launchConfigurationSystemDiskCategory_; } -void CreateAutoProvisioningGroupRequest::setLaunchConfigurationSystemDiskCategory(const std::string& launchConfigurationSystemDiskCategory) -{ - launchConfigurationSystemDiskCategory_ = launchConfigurationSystemDiskCategory; - setParameter("LaunchConfigurationSystemDiskCategory", launchConfigurationSystemDiskCategory); +void CreateAutoProvisioningGroupRequest::setLaunchConfigurationSystemDiskCategory(const std::string &launchConfigurationSystemDiskCategory) { + launchConfigurationSystemDiskCategory_ = launchConfigurationSystemDiskCategory; + setParameter(std::string("LaunchConfiguration.SystemDiskCategory"), launchConfigurationSystemDiskCategory); } -std::string CreateAutoProvisioningGroupRequest::getAutoProvisioningGroupType()const -{ - return autoProvisioningGroupType_; +std::string CreateAutoProvisioningGroupRequest::getAutoProvisioningGroupType() const { + return autoProvisioningGroupType_; } -void CreateAutoProvisioningGroupRequest::setAutoProvisioningGroupType(const std::string& autoProvisioningGroupType) -{ - autoProvisioningGroupType_ = autoProvisioningGroupType; - setParameter("AutoProvisioningGroupType", autoProvisioningGroupType); +void CreateAutoProvisioningGroupRequest::setAutoProvisioningGroupType(const std::string &autoProvisioningGroupType) { + autoProvisioningGroupType_ = autoProvisioningGroupType; + setParameter(std::string("AutoProvisioningGroupType"), autoProvisioningGroupType); } -std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationSystemDiskPerformanceLevel()const -{ - return launchConfigurationSystemDiskPerformanceLevel_; +std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationSystemDiskPerformanceLevel() const { + return launchConfigurationSystemDiskPerformanceLevel_; } -void CreateAutoProvisioningGroupRequest::setLaunchConfigurationSystemDiskPerformanceLevel(const std::string& launchConfigurationSystemDiskPerformanceLevel) -{ - launchConfigurationSystemDiskPerformanceLevel_ = launchConfigurationSystemDiskPerformanceLevel; - setParameter("LaunchConfigurationSystemDiskPerformanceLevel", launchConfigurationSystemDiskPerformanceLevel); +void CreateAutoProvisioningGroupRequest::setLaunchConfigurationSystemDiskPerformanceLevel(const std::string &launchConfigurationSystemDiskPerformanceLevel) { + launchConfigurationSystemDiskPerformanceLevel_ = launchConfigurationSystemDiskPerformanceLevel; + setParameter(std::string("LaunchConfiguration.SystemDiskPerformanceLevel"), launchConfigurationSystemDiskPerformanceLevel); } -std::vector CreateAutoProvisioningGroupRequest::getLaunchConfigurationHostNames()const -{ - return launchConfigurationHostNames_; +std::vector CreateAutoProvisioningGroupRequest::getLaunchConfigurationHostNames() const { + return launchConfigurationHostNames_; } -void CreateAutoProvisioningGroupRequest::setLaunchConfigurationHostNames(const std::vector& launchConfigurationHostNames) -{ - launchConfigurationHostNames_ = launchConfigurationHostNames; - for(int dep1 = 0; dep1!= launchConfigurationHostNames.size(); dep1++) { - setParameter("LaunchConfigurationHostNames."+ std::to_string(dep1), launchConfigurationHostNames.at(dep1)); - } +void CreateAutoProvisioningGroupRequest::setLaunchConfigurationHostNames(const std::vector &launchConfigurationHostNames) { + launchConfigurationHostNames_ = launchConfigurationHostNames; } -std::string CreateAutoProvisioningGroupRequest::getResourceGroupId()const -{ - return resourceGroupId_; +std::string CreateAutoProvisioningGroupRequest::getResourceGroupId() const { + return resourceGroupId_; } -void CreateAutoProvisioningGroupRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +void CreateAutoProvisioningGroupRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationImageId()const -{ - return launchConfigurationImageId_; +std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationImageId() const { + return launchConfigurationImageId_; } -void CreateAutoProvisioningGroupRequest::setLaunchConfigurationImageId(const std::string& launchConfigurationImageId) -{ - launchConfigurationImageId_ = launchConfigurationImageId; - setParameter("LaunchConfigurationImageId", launchConfigurationImageId); +void CreateAutoProvisioningGroupRequest::setLaunchConfigurationImageId(const std::string &launchConfigurationImageId) { + launchConfigurationImageId_ = launchConfigurationImageId; + setParameter(std::string("LaunchConfiguration.ImageId"), launchConfigurationImageId); } -std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationResourceGroupId()const -{ - return launchConfigurationResourceGroupId_; +std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationResourceGroupId() const { + return launchConfigurationResourceGroupId_; } -void CreateAutoProvisioningGroupRequest::setLaunchConfigurationResourceGroupId(const std::string& launchConfigurationResourceGroupId) -{ - launchConfigurationResourceGroupId_ = launchConfigurationResourceGroupId; - setParameter("LaunchConfigurationResourceGroupId", launchConfigurationResourceGroupId); +void CreateAutoProvisioningGroupRequest::setLaunchConfigurationResourceGroupId(const std::string &launchConfigurationResourceGroupId) { + launchConfigurationResourceGroupId_ = launchConfigurationResourceGroupId; + setParameter(std::string("LaunchConfiguration.ResourceGroupId"), launchConfigurationResourceGroupId); } -std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationPassword()const -{ - return launchConfigurationPassword_; +std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationPassword() const { + return launchConfigurationPassword_; } -void CreateAutoProvisioningGroupRequest::setLaunchConfigurationPassword(const std::string& launchConfigurationPassword) -{ - launchConfigurationPassword_ = launchConfigurationPassword; - setParameter("LaunchConfigurationPassword", launchConfigurationPassword); +void CreateAutoProvisioningGroupRequest::setLaunchConfigurationPassword(const std::string &launchConfigurationPassword) { + launchConfigurationPassword_ = launchConfigurationPassword; + setParameter(std::string("LaunchConfiguration.Password"), launchConfigurationPassword); } -std::string CreateAutoProvisioningGroupRequest::getPayAsYouGoAllocationStrategy()const -{ - return payAsYouGoAllocationStrategy_; +std::string CreateAutoProvisioningGroupRequest::getPayAsYouGoAllocationStrategy() const { + return payAsYouGoAllocationStrategy_; } -void CreateAutoProvisioningGroupRequest::setPayAsYouGoAllocationStrategy(const std::string& payAsYouGoAllocationStrategy) -{ - payAsYouGoAllocationStrategy_ = payAsYouGoAllocationStrategy; - setParameter("PayAsYouGoAllocationStrategy", payAsYouGoAllocationStrategy); +void CreateAutoProvisioningGroupRequest::setPayAsYouGoAllocationStrategy(const std::string &payAsYouGoAllocationStrategy) { + payAsYouGoAllocationStrategy_ = payAsYouGoAllocationStrategy; + setParameter(std::string("PayAsYouGoAllocationStrategy"), payAsYouGoAllocationStrategy); } -std::string CreateAutoProvisioningGroupRequest::getDefaultTargetCapacityType()const -{ - return defaultTargetCapacityType_; +std::string CreateAutoProvisioningGroupRequest::getDefaultTargetCapacityType() const { + return defaultTargetCapacityType_; } -void CreateAutoProvisioningGroupRequest::setDefaultTargetCapacityType(const std::string& defaultTargetCapacityType) -{ - defaultTargetCapacityType_ = defaultTargetCapacityType; - setParameter("DefaultTargetCapacityType", defaultTargetCapacityType); +void CreateAutoProvisioningGroupRequest::setDefaultTargetCapacityType(const std::string &defaultTargetCapacityType) { + defaultTargetCapacityType_ = defaultTargetCapacityType; + setParameter(std::string("DefaultTargetCapacityType"), defaultTargetCapacityType); } -std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationKeyPairName()const -{ - return launchConfigurationKeyPairName_; +std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationKeyPairName() const { + return launchConfigurationKeyPairName_; } -void CreateAutoProvisioningGroupRequest::setLaunchConfigurationKeyPairName(const std::string& launchConfigurationKeyPairName) -{ - launchConfigurationKeyPairName_ = launchConfigurationKeyPairName; - setParameter("LaunchConfigurationKeyPairName", launchConfigurationKeyPairName); +void CreateAutoProvisioningGroupRequest::setLaunchConfigurationKeyPairName(const std::string &launchConfigurationKeyPairName) { + launchConfigurationKeyPairName_ = launchConfigurationKeyPairName; + setParameter(std::string("LaunchConfiguration.KeyPairName"), launchConfigurationKeyPairName); } -std::vector CreateAutoProvisioningGroupRequest::getSystemDiskConfig()const -{ - return systemDiskConfig_; +std::vector CreateAutoProvisioningGroupRequest::getSystemDiskConfig() const { + return systemDiskConfig_; } -void CreateAutoProvisioningGroupRequest::setSystemDiskConfig(const std::vector& systemDiskConfig) -{ - systemDiskConfig_ = systemDiskConfig; - for(int dep1 = 0; dep1!= systemDiskConfig.size(); dep1++) { - auto systemDiskConfigObj = systemDiskConfig.at(dep1); - std::string systemDiskConfigObjStr = "SystemDiskConfig." + std::to_string(dep1 + 1); - setParameter(systemDiskConfigObjStr + ".DiskCategory", systemDiskConfigObj.diskCategory); - } +void CreateAutoProvisioningGroupRequest::setSystemDiskConfig(const std::vector &systemDiskConfig) { + systemDiskConfig_ = systemDiskConfig; + for(int dep1 = 0; dep1 != systemDiskConfig.size(); dep1++) { + auto systemDiskConfigObj = systemDiskConfig.at(dep1); + std::string systemDiskConfigObjStr = std::string("SystemDiskConfig") + "." + std::to_string(dep1 + 1); + setParameter(systemDiskConfigObjStr + ".DiskCategory", systemDiskConfigObj.diskCategory); + } } -std::vector CreateAutoProvisioningGroupRequest::getDataDiskConfig()const -{ - return dataDiskConfig_; +std::vector CreateAutoProvisioningGroupRequest::getDataDiskConfig() const { + return dataDiskConfig_; } -void CreateAutoProvisioningGroupRequest::setDataDiskConfig(const std::vector& dataDiskConfig) -{ - dataDiskConfig_ = dataDiskConfig; - for(int dep1 = 0; dep1!= dataDiskConfig.size(); dep1++) { - auto dataDiskConfigObj = dataDiskConfig.at(dep1); - std::string dataDiskConfigObjStr = "DataDiskConfig." + std::to_string(dep1 + 1); - setParameter(dataDiskConfigObjStr + ".DiskCategory", dataDiskConfigObj.diskCategory); - } +void CreateAutoProvisioningGroupRequest::setDataDiskConfig(const std::vector &dataDiskConfig) { + dataDiskConfig_ = dataDiskConfig; + for(int dep1 = 0; dep1 != dataDiskConfig.size(); dep1++) { + auto dataDiskConfigObj = dataDiskConfig.at(dep1); + std::string dataDiskConfigObjStr = std::string("DataDiskConfig") + "." + std::to_string(dep1 + 1); + setParameter(dataDiskConfigObjStr + ".DiskCategory", dataDiskConfigObj.diskCategory); + } } -std::string CreateAutoProvisioningGroupRequest::getValidUntil()const -{ - return validUntil_; +std::string CreateAutoProvisioningGroupRequest::getValidUntil() const { + return validUntil_; } -void CreateAutoProvisioningGroupRequest::setValidUntil(const std::string& validUntil) -{ - validUntil_ = validUntil; - setParameter("ValidUntil", validUntil); +void CreateAutoProvisioningGroupRequest::setValidUntil(const std::string &validUntil) { + validUntil_ = validUntil; + setParameter(std::string("ValidUntil"), validUntil); } -std::string CreateAutoProvisioningGroupRequest::getLaunchTemplateId()const -{ - return launchTemplateId_; +std::string CreateAutoProvisioningGroupRequest::getLaunchTemplateId() const { + return launchTemplateId_; } -void CreateAutoProvisioningGroupRequest::setLaunchTemplateId(const std::string& launchTemplateId) -{ - launchTemplateId_ = launchTemplateId; - setParameter("LaunchTemplateId", launchTemplateId); +void CreateAutoProvisioningGroupRequest::setLaunchTemplateId(const std::string &launchTemplateId) { + launchTemplateId_ = launchTemplateId; + setParameter(std::string("LaunchTemplateId"), launchTemplateId); } -long CreateAutoProvisioningGroupRequest::getOwnerId()const -{ - return ownerId_; +long CreateAutoProvisioningGroupRequest::getOwnerId() const { + return ownerId_; } -void CreateAutoProvisioningGroupRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +void CreateAutoProvisioningGroupRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -int CreateAutoProvisioningGroupRequest::getLaunchConfigurationSystemDiskSize()const -{ - return launchConfigurationSystemDiskSize_; +int CreateAutoProvisioningGroupRequest::getLaunchConfigurationSystemDiskSize() const { + return launchConfigurationSystemDiskSize_; } -void CreateAutoProvisioningGroupRequest::setLaunchConfigurationSystemDiskSize(int launchConfigurationSystemDiskSize) -{ - launchConfigurationSystemDiskSize_ = launchConfigurationSystemDiskSize; - setParameter("LaunchConfigurationSystemDiskSize", std::to_string(launchConfigurationSystemDiskSize)); +void CreateAutoProvisioningGroupRequest::setLaunchConfigurationSystemDiskSize(int launchConfigurationSystemDiskSize) { + launchConfigurationSystemDiskSize_ = launchConfigurationSystemDiskSize; + setParameter(std::string("LaunchConfiguration.SystemDiskSize"), std::to_string(launchConfigurationSystemDiskSize)); } -int CreateAutoProvisioningGroupRequest::getLaunchConfigurationInternetMaxBandwidthOut()const -{ - return launchConfigurationInternetMaxBandwidthOut_; +int CreateAutoProvisioningGroupRequest::getLaunchConfigurationInternetMaxBandwidthOut() const { + return launchConfigurationInternetMaxBandwidthOut_; } -void CreateAutoProvisioningGroupRequest::setLaunchConfigurationInternetMaxBandwidthOut(int launchConfigurationInternetMaxBandwidthOut) -{ - launchConfigurationInternetMaxBandwidthOut_ = launchConfigurationInternetMaxBandwidthOut; - setParameter("LaunchConfigurationInternetMaxBandwidthOut", std::to_string(launchConfigurationInternetMaxBandwidthOut)); +void CreateAutoProvisioningGroupRequest::setLaunchConfigurationInternetMaxBandwidthOut(int launchConfigurationInternetMaxBandwidthOut) { + launchConfigurationInternetMaxBandwidthOut_ = launchConfigurationInternetMaxBandwidthOut; + setParameter(std::string("LaunchConfiguration.InternetMaxBandwidthOut"), std::to_string(launchConfigurationInternetMaxBandwidthOut)); } -std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationHostName()const -{ - return launchConfigurationHostName_; +std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationHostName() const { + return launchConfigurationHostName_; } -void CreateAutoProvisioningGroupRequest::setLaunchConfigurationHostName(const std::string& launchConfigurationHostName) -{ - launchConfigurationHostName_ = launchConfigurationHostName; - setParameter("LaunchConfigurationHostName", launchConfigurationHostName); +void CreateAutoProvisioningGroupRequest::setLaunchConfigurationHostName(const std::string &launchConfigurationHostName) { + launchConfigurationHostName_ = launchConfigurationHostName; + setParameter(std::string("LaunchConfiguration.HostName"), launchConfigurationHostName); } -std::string CreateAutoProvisioningGroupRequest::getMinTargetCapacity()const -{ - return minTargetCapacity_; +std::string CreateAutoProvisioningGroupRequest::getMinTargetCapacity() const { + return minTargetCapacity_; } -void CreateAutoProvisioningGroupRequest::setMinTargetCapacity(const std::string& minTargetCapacity) -{ - minTargetCapacity_ = minTargetCapacity; - setParameter("MinTargetCapacity", minTargetCapacity); +void CreateAutoProvisioningGroupRequest::setMinTargetCapacity(const std::string &minTargetCapacity) { + minTargetCapacity_ = minTargetCapacity; + setParameter(std::string("MinTargetCapacity"), minTargetCapacity); } -float CreateAutoProvisioningGroupRequest::getMaxSpotPrice()const -{ - return maxSpotPrice_; +float CreateAutoProvisioningGroupRequest::getMaxSpotPrice() const { + return maxSpotPrice_; } -void CreateAutoProvisioningGroupRequest::setMaxSpotPrice(float maxSpotPrice) -{ - maxSpotPrice_ = maxSpotPrice; - setParameter("MaxSpotPrice", std::to_string(maxSpotPrice)); +void CreateAutoProvisioningGroupRequest::setMaxSpotPrice(float maxSpotPrice) { + maxSpotPrice_ = maxSpotPrice; + setParameter(std::string("MaxSpotPrice"), std::to_string(maxSpotPrice)); } -bool CreateAutoProvisioningGroupRequest::getLaunchConfigurationPasswordInherit()const -{ - return launchConfigurationPasswordInherit_; +bool CreateAutoProvisioningGroupRequest::getLaunchConfigurationPasswordInherit() const { + return launchConfigurationPasswordInherit_; } -void CreateAutoProvisioningGroupRequest::setLaunchConfigurationPasswordInherit(bool launchConfigurationPasswordInherit) -{ - launchConfigurationPasswordInherit_ = launchConfigurationPasswordInherit; - setParameter("LaunchConfigurationPasswordInherit", launchConfigurationPasswordInherit ? "true" : "false"); +void CreateAutoProvisioningGroupRequest::setLaunchConfigurationPasswordInherit(bool launchConfigurationPasswordInherit) { + launchConfigurationPasswordInherit_ = launchConfigurationPasswordInherit; + setParameter(std::string("LaunchConfiguration.PasswordInherit"), launchConfigurationPasswordInherit ? "true" : "false"); } -std::string CreateAutoProvisioningGroupRequest::getClientToken()const -{ - return clientToken_; +std::string CreateAutoProvisioningGroupRequest::getClientToken() const { + return clientToken_; } -void CreateAutoProvisioningGroupRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +void CreateAutoProvisioningGroupRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationSecurityGroupId()const -{ - return launchConfigurationSecurityGroupId_; +std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationSecurityGroupId() const { + return launchConfigurationSecurityGroupId_; } -void CreateAutoProvisioningGroupRequest::setLaunchConfigurationSecurityGroupId(const std::string& launchConfigurationSecurityGroupId) -{ - launchConfigurationSecurityGroupId_ = launchConfigurationSecurityGroupId; - setParameter("LaunchConfigurationSecurityGroupId", launchConfigurationSecurityGroupId); +void CreateAutoProvisioningGroupRequest::setLaunchConfigurationSecurityGroupId(const std::string &launchConfigurationSecurityGroupId) { + launchConfigurationSecurityGroupId_ = launchConfigurationSecurityGroupId; + setParameter(std::string("LaunchConfiguration.SecurityGroupId"), launchConfigurationSecurityGroupId); } -std::string CreateAutoProvisioningGroupRequest::getDescription()const -{ - return description_; +std::string CreateAutoProvisioningGroupRequest::getDescription() const { + return description_; } -void CreateAutoProvisioningGroupRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +void CreateAutoProvisioningGroupRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -bool CreateAutoProvisioningGroupRequest::getTerminateInstancesWithExpiration()const -{ - return terminateInstancesWithExpiration_; +bool CreateAutoProvisioningGroupRequest::getTerminateInstancesWithExpiration() const { + return terminateInstancesWithExpiration_; } -void CreateAutoProvisioningGroupRequest::setTerminateInstancesWithExpiration(bool terminateInstancesWithExpiration) -{ - terminateInstancesWithExpiration_ = terminateInstancesWithExpiration; - setParameter("TerminateInstancesWithExpiration", terminateInstancesWithExpiration ? "true" : "false"); +void CreateAutoProvisioningGroupRequest::setTerminateInstancesWithExpiration(bool terminateInstancesWithExpiration) { + terminateInstancesWithExpiration_ = terminateInstancesWithExpiration; + setParameter(std::string("TerminateInstancesWithExpiration"), terminateInstancesWithExpiration ? "true" : "false"); } -std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationUserData()const -{ - return launchConfigurationUserData_; +std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationUserData() const { + return launchConfigurationUserData_; } -void CreateAutoProvisioningGroupRequest::setLaunchConfigurationUserData(const std::string& launchConfigurationUserData) -{ - launchConfigurationUserData_ = launchConfigurationUserData; - setParameter("LaunchConfigurationUserData", launchConfigurationUserData); +void CreateAutoProvisioningGroupRequest::setLaunchConfigurationUserData(const std::string &launchConfigurationUserData) { + launchConfigurationUserData_ = launchConfigurationUserData; + setParameter(std::string("LaunchConfiguration.UserData"), launchConfigurationUserData); } -std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationCreditSpecification()const -{ - return launchConfigurationCreditSpecification_; +std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationCreditSpecification() const { + return launchConfigurationCreditSpecification_; } -void CreateAutoProvisioningGroupRequest::setLaunchConfigurationCreditSpecification(const std::string& launchConfigurationCreditSpecification) -{ - launchConfigurationCreditSpecification_ = launchConfigurationCreditSpecification; - setParameter("LaunchConfigurationCreditSpecification", launchConfigurationCreditSpecification); +void CreateAutoProvisioningGroupRequest::setLaunchConfigurationCreditSpecification(const std::string &launchConfigurationCreditSpecification) { + launchConfigurationCreditSpecification_ = launchConfigurationCreditSpecification; + setParameter(std::string("LaunchConfiguration.CreditSpecification"), launchConfigurationCreditSpecification); } -std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationInstanceName()const -{ - return launchConfigurationInstanceName_; +std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationInstanceName() const { + return launchConfigurationInstanceName_; } -void CreateAutoProvisioningGroupRequest::setLaunchConfigurationInstanceName(const std::string& launchConfigurationInstanceName) -{ - launchConfigurationInstanceName_ = launchConfigurationInstanceName; - setParameter("LaunchConfigurationInstanceName", launchConfigurationInstanceName); +void CreateAutoProvisioningGroupRequest::setLaunchConfigurationInstanceName(const std::string &launchConfigurationInstanceName) { + launchConfigurationInstanceName_ = launchConfigurationInstanceName; + setParameter(std::string("LaunchConfiguration.InstanceName"), launchConfigurationInstanceName); } -std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationInstanceDescription()const -{ - return launchConfigurationInstanceDescription_; +std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationInstanceDescription() const { + return launchConfigurationInstanceDescription_; } -void CreateAutoProvisioningGroupRequest::setLaunchConfigurationInstanceDescription(const std::string& launchConfigurationInstanceDescription) -{ - launchConfigurationInstanceDescription_ = launchConfigurationInstanceDescription; - setParameter("LaunchConfigurationInstanceDescription", launchConfigurationInstanceDescription); +void CreateAutoProvisioningGroupRequest::setLaunchConfigurationInstanceDescription(const std::string &launchConfigurationInstanceDescription) { + launchConfigurationInstanceDescription_ = launchConfigurationInstanceDescription; + setParameter(std::string("LaunchConfiguration.InstanceDescription"), launchConfigurationInstanceDescription); } -std::string CreateAutoProvisioningGroupRequest::getSpotAllocationStrategy()const -{ - return spotAllocationStrategy_; +std::string CreateAutoProvisioningGroupRequest::getSpotAllocationStrategy() const { + return spotAllocationStrategy_; } -void CreateAutoProvisioningGroupRequest::setSpotAllocationStrategy(const std::string& spotAllocationStrategy) -{ - spotAllocationStrategy_ = spotAllocationStrategy; - setParameter("SpotAllocationStrategy", spotAllocationStrategy); +void CreateAutoProvisioningGroupRequest::setSpotAllocationStrategy(const std::string &spotAllocationStrategy) { + spotAllocationStrategy_ = spotAllocationStrategy; + setParameter(std::string("SpotAllocationStrategy"), spotAllocationStrategy); } -std::string CreateAutoProvisioningGroupRequest::getRegionId()const -{ - return regionId_; +std::string CreateAutoProvisioningGroupRequest::getRegionId() const { + return regionId_; } -void CreateAutoProvisioningGroupRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +void CreateAutoProvisioningGroupRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -bool CreateAutoProvisioningGroupRequest::getTerminateInstances()const -{ - return terminateInstances_; +bool CreateAutoProvisioningGroupRequest::getTerminateInstances() const { + return terminateInstances_; } -void CreateAutoProvisioningGroupRequest::setTerminateInstances(bool terminateInstances) -{ - terminateInstances_ = terminateInstances; - setParameter("TerminateInstances", terminateInstances ? "true" : "false"); +void CreateAutoProvisioningGroupRequest::setTerminateInstances(bool terminateInstances) { + terminateInstances_ = terminateInstances; + setParameter(std::string("TerminateInstances"), terminateInstances ? "true" : "false"); } -std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationSystemDiskName()const -{ - return launchConfigurationSystemDiskName_; +std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationSystemDiskName() const { + return launchConfigurationSystemDiskName_; } -void CreateAutoProvisioningGroupRequest::setLaunchConfigurationSystemDiskName(const std::string& launchConfigurationSystemDiskName) -{ - launchConfigurationSystemDiskName_ = launchConfigurationSystemDiskName; - setParameter("LaunchConfigurationSystemDiskName", launchConfigurationSystemDiskName); +void CreateAutoProvisioningGroupRequest::setLaunchConfigurationSystemDiskName(const std::string &launchConfigurationSystemDiskName) { + launchConfigurationSystemDiskName_ = launchConfigurationSystemDiskName; + setParameter(std::string("LaunchConfiguration.SystemDiskName"), launchConfigurationSystemDiskName); } -std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationSystemDiskDescription()const -{ - return launchConfigurationSystemDiskDescription_; +std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationSystemDiskDescription() const { + return launchConfigurationSystemDiskDescription_; } -void CreateAutoProvisioningGroupRequest::setLaunchConfigurationSystemDiskDescription(const std::string& launchConfigurationSystemDiskDescription) -{ - launchConfigurationSystemDiskDescription_ = launchConfigurationSystemDiskDescription; - setParameter("LaunchConfigurationSystemDiskDescription", launchConfigurationSystemDiskDescription); +void CreateAutoProvisioningGroupRequest::setLaunchConfigurationSystemDiskDescription(const std::string &launchConfigurationSystemDiskDescription) { + launchConfigurationSystemDiskDescription_ = launchConfigurationSystemDiskDescription; + setParameter(std::string("LaunchConfiguration.SystemDiskDescription"), launchConfigurationSystemDiskDescription); } -std::string CreateAutoProvisioningGroupRequest::getExcessCapacityTerminationPolicy()const -{ - return excessCapacityTerminationPolicy_; +std::string CreateAutoProvisioningGroupRequest::getExcessCapacityTerminationPolicy() const { + return excessCapacityTerminationPolicy_; } -void CreateAutoProvisioningGroupRequest::setExcessCapacityTerminationPolicy(const std::string& excessCapacityTerminationPolicy) -{ - excessCapacityTerminationPolicy_ = excessCapacityTerminationPolicy; - setParameter("ExcessCapacityTerminationPolicy", excessCapacityTerminationPolicy); +void CreateAutoProvisioningGroupRequest::setExcessCapacityTerminationPolicy(const std::string &excessCapacityTerminationPolicy) { + excessCapacityTerminationPolicy_ = excessCapacityTerminationPolicy; + setParameter(std::string("ExcessCapacityTerminationPolicy"), excessCapacityTerminationPolicy); } -std::vector CreateAutoProvisioningGroupRequest::getLaunchTemplateConfig()const -{ - return launchTemplateConfig_; +std::vector CreateAutoProvisioningGroupRequest::getLaunchTemplateConfig() const { + return launchTemplateConfig_; } -void CreateAutoProvisioningGroupRequest::setLaunchTemplateConfig(const std::vector& launchTemplateConfig) -{ - launchTemplateConfig_ = launchTemplateConfig; - for(int dep1 = 0; dep1!= launchTemplateConfig.size(); dep1++) { - auto launchTemplateConfigObj = launchTemplateConfig.at(dep1); - std::string launchTemplateConfigObjStr = "LaunchTemplateConfig." + std::to_string(dep1 + 1); - setParameter(launchTemplateConfigObjStr + ".VSwitchId", launchTemplateConfigObj.vSwitchId); - setParameter(launchTemplateConfigObjStr + ".MaxPrice", std::to_string(launchTemplateConfigObj.maxPrice)); - setParameter(launchTemplateConfigObjStr + ".Priority", std::to_string(launchTemplateConfigObj.priority)); - setParameter(launchTemplateConfigObjStr + ".InstanceType", launchTemplateConfigObj.instanceType); - setParameter(launchTemplateConfigObjStr + ".WeightedCapacity", std::to_string(launchTemplateConfigObj.weightedCapacity)); - } +void CreateAutoProvisioningGroupRequest::setLaunchTemplateConfig(const std::vector &launchTemplateConfig) { + launchTemplateConfig_ = launchTemplateConfig; + for(int dep1 = 0; dep1 != launchTemplateConfig.size(); dep1++) { + auto launchTemplateConfigObj = launchTemplateConfig.at(dep1); + std::string launchTemplateConfigObjStr = std::string("LaunchTemplateConfig") + "." + std::to_string(dep1 + 1); + setParameter(launchTemplateConfigObjStr + ".VSwitchId", launchTemplateConfigObj.vSwitchId); + setParameter(launchTemplateConfigObjStr + ".MaxPrice", std::to_string(launchTemplateConfigObj.maxPrice)); + setParameter(launchTemplateConfigObjStr + ".Priority", std::to_string(launchTemplateConfigObj.priority)); + setParameter(launchTemplateConfigObjStr + ".InstanceType", launchTemplateConfigObj.instanceType); + setParameter(launchTemplateConfigObjStr + ".WeightedCapacity", std::to_string(launchTemplateConfigObj.weightedCapacity)); + } } -std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationRamRoleName()const -{ - return launchConfigurationRamRoleName_; +std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationRamRoleName() const { + return launchConfigurationRamRoleName_; } -void CreateAutoProvisioningGroupRequest::setLaunchConfigurationRamRoleName(const std::string& launchConfigurationRamRoleName) -{ - launchConfigurationRamRoleName_ = launchConfigurationRamRoleName; - setParameter("LaunchConfigurationRamRoleName", launchConfigurationRamRoleName); +void CreateAutoProvisioningGroupRequest::setLaunchConfigurationRamRoleName(const std::string &launchConfigurationRamRoleName) { + launchConfigurationRamRoleName_ = launchConfigurationRamRoleName; + setParameter(std::string("LaunchConfiguration.RamRoleName"), launchConfigurationRamRoleName); } -int CreateAutoProvisioningGroupRequest::getLaunchConfigurationInternetMaxBandwidthIn()const -{ - return launchConfigurationInternetMaxBandwidthIn_; +int CreateAutoProvisioningGroupRequest::getLaunchConfigurationInternetMaxBandwidthIn() const { + return launchConfigurationInternetMaxBandwidthIn_; } -void CreateAutoProvisioningGroupRequest::setLaunchConfigurationInternetMaxBandwidthIn(int launchConfigurationInternetMaxBandwidthIn) -{ - launchConfigurationInternetMaxBandwidthIn_ = launchConfigurationInternetMaxBandwidthIn; - setParameter("LaunchConfigurationInternetMaxBandwidthIn", std::to_string(launchConfigurationInternetMaxBandwidthIn)); +void CreateAutoProvisioningGroupRequest::setLaunchConfigurationInternetMaxBandwidthIn(int launchConfigurationInternetMaxBandwidthIn) { + launchConfigurationInternetMaxBandwidthIn_ = launchConfigurationInternetMaxBandwidthIn; + setParameter(std::string("LaunchConfiguration.InternetMaxBandwidthIn"), std::to_string(launchConfigurationInternetMaxBandwidthIn)); } -std::string CreateAutoProvisioningGroupRequest::getSpotInstanceInterruptionBehavior()const -{ - return spotInstanceInterruptionBehavior_; +std::string CreateAutoProvisioningGroupRequest::getSpotInstanceInterruptionBehavior() const { + return spotInstanceInterruptionBehavior_; } -void CreateAutoProvisioningGroupRequest::setSpotInstanceInterruptionBehavior(const std::string& spotInstanceInterruptionBehavior) -{ - spotInstanceInterruptionBehavior_ = spotInstanceInterruptionBehavior; - setParameter("SpotInstanceInterruptionBehavior", spotInstanceInterruptionBehavior); +void CreateAutoProvisioningGroupRequest::setSpotInstanceInterruptionBehavior(const std::string &spotInstanceInterruptionBehavior) { + spotInstanceInterruptionBehavior_ = spotInstanceInterruptionBehavior; + setParameter(std::string("SpotInstanceInterruptionBehavior"), spotInstanceInterruptionBehavior); } -std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationSecurityEnhancementStrategy()const -{ - return launchConfigurationSecurityEnhancementStrategy_; +std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationSecurityEnhancementStrategy() const { + return launchConfigurationSecurityEnhancementStrategy_; } -void CreateAutoProvisioningGroupRequest::setLaunchConfigurationSecurityEnhancementStrategy(const std::string& launchConfigurationSecurityEnhancementStrategy) -{ - launchConfigurationSecurityEnhancementStrategy_ = launchConfigurationSecurityEnhancementStrategy; - setParameter("LaunchConfigurationSecurityEnhancementStrategy", launchConfigurationSecurityEnhancementStrategy); +void CreateAutoProvisioningGroupRequest::setLaunchConfigurationSecurityEnhancementStrategy(const std::string &launchConfigurationSecurityEnhancementStrategy) { + launchConfigurationSecurityEnhancementStrategy_ = launchConfigurationSecurityEnhancementStrategy; + setParameter(std::string("LaunchConfiguration.SecurityEnhancementStrategy"), launchConfigurationSecurityEnhancementStrategy); } -std::vector CreateAutoProvisioningGroupRequest::getLaunchConfigurationTag()const -{ - return launchConfigurationTag_; +std::vector CreateAutoProvisioningGroupRequest::getLaunchConfigurationTag() const { + return launchConfigurationTag_; } -void CreateAutoProvisioningGroupRequest::setLaunchConfigurationTag(const std::vector& launchConfigurationTag) -{ - launchConfigurationTag_ = launchConfigurationTag; - for(int dep1 = 0; dep1!= launchConfigurationTag.size(); dep1++) { - auto launchConfigurationTagObj = launchConfigurationTag.at(dep1); - std::string launchConfigurationTagObjStr = "LaunchConfiguration.Tag." + std::to_string(dep1 + 1); - setParameter(launchConfigurationTagObjStr + ".Key", launchConfigurationTagObj.key); - setParameter(launchConfigurationTagObjStr + ".Value", launchConfigurationTagObj.value); - } +void CreateAutoProvisioningGroupRequest::setLaunchConfigurationTag(const std::vector &launchConfigurationTag) { + launchConfigurationTag_ = launchConfigurationTag; + for(int dep1 = 0; dep1 != launchConfigurationTag.size(); dep1++) { + auto launchConfigurationTagObj = launchConfigurationTag.at(dep1); + std::string launchConfigurationTagObjStr = std::string("LaunchConfiguration.Tag") + "." + std::to_string(dep1 + 1); + setParameter(launchConfigurationTagObjStr + ".Key", launchConfigurationTagObj.key); + setParameter(launchConfigurationTagObjStr + ".Value", launchConfigurationTagObj.value); + } } -std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationDeploymentSetId()const -{ - return launchConfigurationDeploymentSetId_; +std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationDeploymentSetId() const { + return launchConfigurationDeploymentSetId_; } -void CreateAutoProvisioningGroupRequest::setLaunchConfigurationDeploymentSetId(const std::string& launchConfigurationDeploymentSetId) -{ - launchConfigurationDeploymentSetId_ = launchConfigurationDeploymentSetId; - setParameter("LaunchConfigurationDeploymentSetId", launchConfigurationDeploymentSetId); +void CreateAutoProvisioningGroupRequest::setLaunchConfigurationDeploymentSetId(const std::string &launchConfigurationDeploymentSetId) { + launchConfigurationDeploymentSetId_ = launchConfigurationDeploymentSetId; + setParameter(std::string("LaunchConfiguration.DeploymentSetId"), launchConfigurationDeploymentSetId); } -std::string CreateAutoProvisioningGroupRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +std::string CreateAutoProvisioningGroupRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -void CreateAutoProvisioningGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +void CreateAutoProvisioningGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -std::string CreateAutoProvisioningGroupRequest::getOwnerAccount()const -{ - return ownerAccount_; +std::string CreateAutoProvisioningGroupRequest::getOwnerAccount() const { + return ownerAccount_; } -void CreateAutoProvisioningGroupRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +void CreateAutoProvisioningGroupRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -int CreateAutoProvisioningGroupRequest::getSpotInstancePoolsToUseCount()const -{ - return spotInstancePoolsToUseCount_; +int CreateAutoProvisioningGroupRequest::getSpotInstancePoolsToUseCount() const { + return spotInstancePoolsToUseCount_; } -void CreateAutoProvisioningGroupRequest::setSpotInstancePoolsToUseCount(int spotInstancePoolsToUseCount) -{ - spotInstancePoolsToUseCount_ = spotInstancePoolsToUseCount; - setParameter("SpotInstancePoolsToUseCount", std::to_string(spotInstancePoolsToUseCount)); +void CreateAutoProvisioningGroupRequest::setSpotInstancePoolsToUseCount(int spotInstancePoolsToUseCount) { + spotInstancePoolsToUseCount_ = spotInstancePoolsToUseCount; + setParameter(std::string("SpotInstancePoolsToUseCount"), std::to_string(spotInstancePoolsToUseCount)); } -std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationInternetChargeType()const -{ - return launchConfigurationInternetChargeType_; +std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationInternetChargeType() const { + return launchConfigurationInternetChargeType_; } -void CreateAutoProvisioningGroupRequest::setLaunchConfigurationInternetChargeType(const std::string& launchConfigurationInternetChargeType) -{ - launchConfigurationInternetChargeType_ = launchConfigurationInternetChargeType; - setParameter("LaunchConfigurationInternetChargeType", launchConfigurationInternetChargeType); +void CreateAutoProvisioningGroupRequest::setLaunchConfigurationInternetChargeType(const std::string &launchConfigurationInternetChargeType) { + launchConfigurationInternetChargeType_ = launchConfigurationInternetChargeType; + setParameter(std::string("LaunchConfiguration.InternetChargeType"), launchConfigurationInternetChargeType); } -std::string CreateAutoProvisioningGroupRequest::getLaunchTemplateVersion()const -{ - return launchTemplateVersion_; +std::string CreateAutoProvisioningGroupRequest::getLaunchTemplateVersion() const { + return launchTemplateVersion_; } -void CreateAutoProvisioningGroupRequest::setLaunchTemplateVersion(const std::string& launchTemplateVersion) -{ - launchTemplateVersion_ = launchTemplateVersion; - setParameter("LaunchTemplateVersion", launchTemplateVersion); +void CreateAutoProvisioningGroupRequest::setLaunchTemplateVersion(const std::string &launchTemplateVersion) { + launchTemplateVersion_ = launchTemplateVersion; + setParameter(std::string("LaunchTemplateVersion"), launchTemplateVersion); } -std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationIoOptimized()const -{ - return launchConfigurationIoOptimized_; +std::string CreateAutoProvisioningGroupRequest::getLaunchConfigurationIoOptimized() const { + return launchConfigurationIoOptimized_; } -void CreateAutoProvisioningGroupRequest::setLaunchConfigurationIoOptimized(const std::string& launchConfigurationIoOptimized) -{ - launchConfigurationIoOptimized_ = launchConfigurationIoOptimized; - setParameter("LaunchConfigurationIoOptimized", launchConfigurationIoOptimized); +void CreateAutoProvisioningGroupRequest::setLaunchConfigurationIoOptimized(const std::string &launchConfigurationIoOptimized) { + launchConfigurationIoOptimized_ = launchConfigurationIoOptimized; + setParameter(std::string("LaunchConfiguration.IoOptimized"), launchConfigurationIoOptimized); } -std::string CreateAutoProvisioningGroupRequest::getPayAsYouGoTargetCapacity()const -{ - return payAsYouGoTargetCapacity_; +std::string CreateAutoProvisioningGroupRequest::getPayAsYouGoTargetCapacity() const { + return payAsYouGoTargetCapacity_; } -void CreateAutoProvisioningGroupRequest::setPayAsYouGoTargetCapacity(const std::string& payAsYouGoTargetCapacity) -{ - payAsYouGoTargetCapacity_ = payAsYouGoTargetCapacity; - setParameter("PayAsYouGoTargetCapacity", payAsYouGoTargetCapacity); +void CreateAutoProvisioningGroupRequest::setPayAsYouGoTargetCapacity(const std::string &payAsYouGoTargetCapacity) { + payAsYouGoTargetCapacity_ = payAsYouGoTargetCapacity; + setParameter(std::string("PayAsYouGoTargetCapacity"), payAsYouGoTargetCapacity); } -std::string CreateAutoProvisioningGroupRequest::getTotalTargetCapacity()const -{ - return totalTargetCapacity_; +std::string CreateAutoProvisioningGroupRequest::getTotalTargetCapacity() const { + return totalTargetCapacity_; } -void CreateAutoProvisioningGroupRequest::setTotalTargetCapacity(const std::string& totalTargetCapacity) -{ - totalTargetCapacity_ = totalTargetCapacity; - setParameter("TotalTargetCapacity", totalTargetCapacity); +void CreateAutoProvisioningGroupRequest::setTotalTargetCapacity(const std::string &totalTargetCapacity) { + totalTargetCapacity_ = totalTargetCapacity; + setParameter(std::string("TotalTargetCapacity"), totalTargetCapacity); } -std::string CreateAutoProvisioningGroupRequest::getSpotTargetCapacity()const -{ - return spotTargetCapacity_; +std::string CreateAutoProvisioningGroupRequest::getSpotTargetCapacity() const { + return spotTargetCapacity_; } -void CreateAutoProvisioningGroupRequest::setSpotTargetCapacity(const std::string& spotTargetCapacity) -{ - spotTargetCapacity_ = spotTargetCapacity; - setParameter("SpotTargetCapacity", spotTargetCapacity); +void CreateAutoProvisioningGroupRequest::setSpotTargetCapacity(const std::string &spotTargetCapacity) { + spotTargetCapacity_ = spotTargetCapacity; + setParameter(std::string("SpotTargetCapacity"), spotTargetCapacity); } -std::string CreateAutoProvisioningGroupRequest::getValidFrom()const -{ - return validFrom_; +std::string CreateAutoProvisioningGroupRequest::getValidFrom() const { + return validFrom_; } -void CreateAutoProvisioningGroupRequest::setValidFrom(const std::string& validFrom) -{ - validFrom_ = validFrom; - setParameter("ValidFrom", validFrom); +void CreateAutoProvisioningGroupRequest::setValidFrom(const std::string &validFrom) { + validFrom_ = validFrom; + setParameter(std::string("ValidFrom"), validFrom); } -std::string CreateAutoProvisioningGroupRequest::getAutoProvisioningGroupName()const -{ - return autoProvisioningGroupName_; +std::string CreateAutoProvisioningGroupRequest::getAutoProvisioningGroupName() const { + return autoProvisioningGroupName_; } -void CreateAutoProvisioningGroupRequest::setAutoProvisioningGroupName(const std::string& autoProvisioningGroupName) -{ - autoProvisioningGroupName_ = autoProvisioningGroupName; - setParameter("AutoProvisioningGroupName", autoProvisioningGroupName); +void CreateAutoProvisioningGroupRequest::setAutoProvisioningGroupName(const std::string &autoProvisioningGroupName) { + autoProvisioningGroupName_ = autoProvisioningGroupName; + setParameter(std::string("AutoProvisioningGroupName"), autoProvisioningGroupName); } diff --git a/ecs/src/model/CreateAutoSnapshotPolicyRequest.cc b/ecs/src/model/CreateAutoSnapshotPolicyRequest.cc index facce10f4..e320d6957 100644 --- a/ecs/src/model/CreateAutoSnapshotPolicyRequest.cc +++ b/ecs/src/model/CreateAutoSnapshotPolicyRequest.cc @@ -1,177 +1,149 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::CreateAutoSnapshotPolicyRequest; - -CreateAutoSnapshotPolicyRequest::CreateAutoSnapshotPolicyRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateAutoSnapshotPolicy") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateAutoSnapshotPolicyRequest::~CreateAutoSnapshotPolicyRequest() -{} - -long CreateAutoSnapshotPolicyRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::CreateAutoSnapshotPolicyRequest; + +CreateAutoSnapshotPolicyRequest::CreateAutoSnapshotPolicyRequest() + : RpcServiceRequest("ecs", "2014-05-26", "CreateAutoSnapshotPolicy") { + setMethod(HttpRequest::Method::Post); } -void CreateAutoSnapshotPolicyRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateAutoSnapshotPolicyRequest::~CreateAutoSnapshotPolicyRequest() {} + +long CreateAutoSnapshotPolicyRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int CreateAutoSnapshotPolicyRequest::getCopiedSnapshotsRetentionDays()const -{ - return copiedSnapshotsRetentionDays_; +void CreateAutoSnapshotPolicyRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateAutoSnapshotPolicyRequest::setCopiedSnapshotsRetentionDays(int copiedSnapshotsRetentionDays) -{ - copiedSnapshotsRetentionDays_ = copiedSnapshotsRetentionDays; - setParameter("CopiedSnapshotsRetentionDays", std::to_string(copiedSnapshotsRetentionDays)); +int CreateAutoSnapshotPolicyRequest::getCopiedSnapshotsRetentionDays() const { + return copiedSnapshotsRetentionDays_; } -std::string CreateAutoSnapshotPolicyRequest::getTimePoints()const -{ - return timePoints_; +void CreateAutoSnapshotPolicyRequest::setCopiedSnapshotsRetentionDays(int copiedSnapshotsRetentionDays) { + copiedSnapshotsRetentionDays_ = copiedSnapshotsRetentionDays; + setParameter(std::string("CopiedSnapshotsRetentionDays"), std::to_string(copiedSnapshotsRetentionDays)); } -void CreateAutoSnapshotPolicyRequest::setTimePoints(const std::string& timePoints) -{ - timePoints_ = timePoints; - setParameter("TimePoints", timePoints); +std::string CreateAutoSnapshotPolicyRequest::getTimePoints() const { + return timePoints_; } -std::string CreateAutoSnapshotPolicyRequest::getRepeatWeekdays()const -{ - return repeatWeekdays_; +void CreateAutoSnapshotPolicyRequest::setTimePoints(const std::string &timePoints) { + timePoints_ = timePoints; + setParameter(std::string("timePoints"), timePoints); } -void CreateAutoSnapshotPolicyRequest::setRepeatWeekdays(const std::string& repeatWeekdays) -{ - repeatWeekdays_ = repeatWeekdays; - setParameter("RepeatWeekdays", repeatWeekdays); +std::string CreateAutoSnapshotPolicyRequest::getRepeatWeekdays() const { + return repeatWeekdays_; } -std::string CreateAutoSnapshotPolicyRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void CreateAutoSnapshotPolicyRequest::setRepeatWeekdays(const std::string &repeatWeekdays) { + repeatWeekdays_ = repeatWeekdays; + setParameter(std::string("repeatWeekdays"), repeatWeekdays); } -void CreateAutoSnapshotPolicyRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string CreateAutoSnapshotPolicyRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string CreateAutoSnapshotPolicyRequest::getRegionId()const -{ - return regionId_; +void CreateAutoSnapshotPolicyRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void CreateAutoSnapshotPolicyRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateAutoSnapshotPolicyRequest::getRegionId() const { + return regionId_; } -std::vector CreateAutoSnapshotPolicyRequest::getTag()const -{ - return tag_; +void CreateAutoSnapshotPolicyRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("regionId"), regionId); } -void CreateAutoSnapshotPolicyRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Value", tagObj.value); - setParameter(tagObjStr + ".Key", tagObj.key); - } +std::vector CreateAutoSnapshotPolicyRequest::getTag() const { + return tag_; } -bool CreateAutoSnapshotPolicyRequest::getEnableCrossRegionCopy()const -{ - return enableCrossRegionCopy_; +void CreateAutoSnapshotPolicyRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } -void CreateAutoSnapshotPolicyRequest::setEnableCrossRegionCopy(bool enableCrossRegionCopy) -{ - enableCrossRegionCopy_ = enableCrossRegionCopy; - setParameter("EnableCrossRegionCopy", enableCrossRegionCopy ? "true" : "false"); +bool CreateAutoSnapshotPolicyRequest::getEnableCrossRegionCopy() const { + return enableCrossRegionCopy_; } -std::string CreateAutoSnapshotPolicyRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateAutoSnapshotPolicyRequest::setEnableCrossRegionCopy(bool enableCrossRegionCopy) { + enableCrossRegionCopy_ = enableCrossRegionCopy; + setParameter(std::string("EnableCrossRegionCopy"), enableCrossRegionCopy ? "true" : "false"); } -void CreateAutoSnapshotPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateAutoSnapshotPolicyRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long CreateAutoSnapshotPolicyRequest::getOwnerId()const -{ - return ownerId_; +void CreateAutoSnapshotPolicyRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateAutoSnapshotPolicyRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateAutoSnapshotPolicyRequest::getOwnerId() const { + return ownerId_; } -std::string CreateAutoSnapshotPolicyRequest::getAutoSnapshotPolicyName()const -{ - return autoSnapshotPolicyName_; +void CreateAutoSnapshotPolicyRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateAutoSnapshotPolicyRequest::setAutoSnapshotPolicyName(const std::string& autoSnapshotPolicyName) -{ - autoSnapshotPolicyName_ = autoSnapshotPolicyName; - setParameter("AutoSnapshotPolicyName", autoSnapshotPolicyName); +std::string CreateAutoSnapshotPolicyRequest::getAutoSnapshotPolicyName() const { + return autoSnapshotPolicyName_; } -int CreateAutoSnapshotPolicyRequest::getRetentionDays()const -{ - return retentionDays_; +void CreateAutoSnapshotPolicyRequest::setAutoSnapshotPolicyName(const std::string &autoSnapshotPolicyName) { + autoSnapshotPolicyName_ = autoSnapshotPolicyName; + setParameter(std::string("autoSnapshotPolicyName"), autoSnapshotPolicyName); } -void CreateAutoSnapshotPolicyRequest::setRetentionDays(int retentionDays) -{ - retentionDays_ = retentionDays; - setParameter("RetentionDays", std::to_string(retentionDays)); +int CreateAutoSnapshotPolicyRequest::getRetentionDays() const { + return retentionDays_; } -std::string CreateAutoSnapshotPolicyRequest::getTargetCopyRegions()const -{ - return targetCopyRegions_; +void CreateAutoSnapshotPolicyRequest::setRetentionDays(int retentionDays) { + retentionDays_ = retentionDays; + setParameter(std::string("retentionDays"), std::to_string(retentionDays)); } -void CreateAutoSnapshotPolicyRequest::setTargetCopyRegions(const std::string& targetCopyRegions) -{ - targetCopyRegions_ = targetCopyRegions; - setParameter("TargetCopyRegions", targetCopyRegions); +std::string CreateAutoSnapshotPolicyRequest::getTargetCopyRegions() const { + return targetCopyRegions_; +} + +void CreateAutoSnapshotPolicyRequest::setTargetCopyRegions(const std::string &targetCopyRegions) { + targetCopyRegions_ = targetCopyRegions; + setParameter(std::string("TargetCopyRegions"), targetCopyRegions); } diff --git a/ecs/src/model/CreateCapacityReservationRequest.cc b/ecs/src/model/CreateCapacityReservationRequest.cc index cd96f5aa3..8242ae648 100644 --- a/ecs/src/model/CreateCapacityReservationRequest.cc +++ b/ecs/src/model/CreateCapacityReservationRequest.cc @@ -1,322 +1,265 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::CreateCapacityReservationRequest; - -CreateCapacityReservationRequest::CreateCapacityReservationRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateCapacityReservation") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateCapacityReservationRequest::~CreateCapacityReservationRequest() -{} - -long CreateCapacityReservationRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::CreateCapacityReservationRequest; + +CreateCapacityReservationRequest::CreateCapacityReservationRequest() + : RpcServiceRequest("ecs", "2014-05-26", "CreateCapacityReservation") { + setMethod(HttpRequest::Method::Post); } -void CreateCapacityReservationRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateCapacityReservationRequest::~CreateCapacityReservationRequest() {} + +long CreateCapacityReservationRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateCapacityReservationRequest::getClientToken()const -{ - return clientToken_; +void CreateCapacityReservationRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateCapacityReservationRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateCapacityReservationRequest::getClientToken() const { + return clientToken_; } -std::string CreateCapacityReservationRequest::getDescription()const -{ - return description_; +void CreateCapacityReservationRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateCapacityReservationRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateCapacityReservationRequest::getDescription() const { + return description_; } -std::string CreateCapacityReservationRequest::getStartTime()const -{ - return startTime_; +void CreateCapacityReservationRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateCapacityReservationRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string CreateCapacityReservationRequest::getStartTime() const { + return startTime_; } -std::string CreateCapacityReservationRequest::getPlatform()const -{ - return platform_; +void CreateCapacityReservationRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void CreateCapacityReservationRequest::setPlatform(const std::string& platform) -{ - platform_ = platform; - setParameter("Platform", platform); +std::string CreateCapacityReservationRequest::getPlatform() const { + return platform_; } -std::string CreateCapacityReservationRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void CreateCapacityReservationRequest::setPlatform(const std::string &platform) { + platform_ = platform; + setParameter(std::string("Platform"), platform); } -void CreateCapacityReservationRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string CreateCapacityReservationRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string CreateCapacityReservationRequest::getPrivatePoolOptionsMatchCriteria()const -{ - return privatePoolOptionsMatchCriteria_; +void CreateCapacityReservationRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void CreateCapacityReservationRequest::setPrivatePoolOptionsMatchCriteria(const std::string& privatePoolOptionsMatchCriteria) -{ - privatePoolOptionsMatchCriteria_ = privatePoolOptionsMatchCriteria; - setParameter("PrivatePoolOptionsMatchCriteria", privatePoolOptionsMatchCriteria); +std::string CreateCapacityReservationRequest::getPrivatePoolOptionsMatchCriteria() const { + return privatePoolOptionsMatchCriteria_; } -std::string CreateCapacityReservationRequest::getRegionId()const -{ - return regionId_; +void CreateCapacityReservationRequest::setPrivatePoolOptionsMatchCriteria(const std::string &privatePoolOptionsMatchCriteria) { + privatePoolOptionsMatchCriteria_ = privatePoolOptionsMatchCriteria; + setParameter(std::string("PrivatePoolOptions.MatchCriteria"), privatePoolOptionsMatchCriteria); } -void CreateCapacityReservationRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateCapacityReservationRequest::getRegionId() const { + return regionId_; } -std::string CreateCapacityReservationRequest::getInstanceType()const -{ - return instanceType_; +void CreateCapacityReservationRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateCapacityReservationRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +std::string CreateCapacityReservationRequest::getInstanceType() const { + return instanceType_; } -std::vector CreateCapacityReservationRequest::getTag()const -{ - return tag_; +void CreateCapacityReservationRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } -void CreateCapacityReservationRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Key", tagObj.key); - setParameter(tagObjStr + ".Value", tagObj.value); - } +std::vector CreateCapacityReservationRequest::getTag() const { + return tag_; } -std::string CreateCapacityReservationRequest::getInstanceChargeType()const -{ - return instanceChargeType_; +void CreateCapacityReservationRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } } -void CreateCapacityReservationRequest::setInstanceChargeType(const std::string& instanceChargeType) -{ - instanceChargeType_ = instanceChargeType; - setParameter("InstanceChargeType", instanceChargeType); +std::string CreateCapacityReservationRequest::getInstanceChargeType() const { + return instanceChargeType_; } -int CreateCapacityReservationRequest::getEfficientStatus()const -{ - return efficientStatus_; +void CreateCapacityReservationRequest::setInstanceChargeType(const std::string &instanceChargeType) { + instanceChargeType_ = instanceChargeType; + setParameter(std::string("InstanceChargeType"), instanceChargeType); } -void CreateCapacityReservationRequest::setEfficientStatus(int efficientStatus) -{ - efficientStatus_ = efficientStatus; - setParameter("EfficientStatus", std::to_string(efficientStatus)); +int CreateCapacityReservationRequest::getEfficientStatus() const { + return efficientStatus_; } -int CreateCapacityReservationRequest::getPeriod()const -{ - return period_; +void CreateCapacityReservationRequest::setEfficientStatus(int efficientStatus) { + efficientStatus_ = efficientStatus; + setParameter(std::string("EfficientStatus"), std::to_string(efficientStatus)); } -void CreateCapacityReservationRequest::setPeriod(int period) -{ - period_ = period; - setParameter("Period", std::to_string(period)); +int CreateCapacityReservationRequest::getPeriod() const { + return period_; } -std::string CreateCapacityReservationRequest::getEndTimeType()const -{ - return endTimeType_; +void CreateCapacityReservationRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); } -void CreateCapacityReservationRequest::setEndTimeType(const std::string& endTimeType) -{ - endTimeType_ = endTimeType; - setParameter("EndTimeType", endTimeType); +std::string CreateCapacityReservationRequest::getEndTimeType() const { + return endTimeType_; } -std::string CreateCapacityReservationRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateCapacityReservationRequest::setEndTimeType(const std::string &endTimeType) { + endTimeType_ = endTimeType; + setParameter(std::string("EndTimeType"), endTimeType); } -void CreateCapacityReservationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateCapacityReservationRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateCapacityReservationRequest::getPrivatePoolOptionsName()const -{ - return privatePoolOptionsName_; +void CreateCapacityReservationRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateCapacityReservationRequest::setPrivatePoolOptionsName(const std::string& privatePoolOptionsName) -{ - privatePoolOptionsName_ = privatePoolOptionsName; - setParameter("PrivatePoolOptionsName", privatePoolOptionsName); +std::string CreateCapacityReservationRequest::getPrivatePoolOptionsName() const { + return privatePoolOptionsName_; } -std::string CreateCapacityReservationRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateCapacityReservationRequest::setPrivatePoolOptionsName(const std::string &privatePoolOptionsName) { + privatePoolOptionsName_ = privatePoolOptionsName; + setParameter(std::string("PrivatePoolOptions.Name"), privatePoolOptionsName); } -void CreateCapacityReservationRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateCapacityReservationRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string CreateCapacityReservationRequest::getEndTime()const -{ - return endTime_; +void CreateCapacityReservationRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateCapacityReservationRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +std::string CreateCapacityReservationRequest::getEndTime() const { + return endTime_; } -long CreateCapacityReservationRequest::getOwnerId()const -{ - return ownerId_; +void CreateCapacityReservationRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void CreateCapacityReservationRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateCapacityReservationRequest::getOwnerId() const { + return ownerId_; } -std::string CreateCapacityReservationRequest::getResourceType()const -{ - return resourceType_; +void CreateCapacityReservationRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateCapacityReservationRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +std::string CreateCapacityReservationRequest::getResourceType() const { + return resourceType_; } -std::string CreateCapacityReservationRequest::getPeriodUnit()const -{ - return periodUnit_; +void CreateCapacityReservationRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); } -void CreateCapacityReservationRequest::setPeriodUnit(const std::string& periodUnit) -{ - periodUnit_ = periodUnit; - setParameter("PeriodUnit", periodUnit); +std::string CreateCapacityReservationRequest::getPeriodUnit() const { + return periodUnit_; } -std::string CreateCapacityReservationRequest::getTimeSlot()const -{ - return timeSlot_; +void CreateCapacityReservationRequest::setPeriodUnit(const std::string &periodUnit) { + periodUnit_ = periodUnit; + setParameter(std::string("PeriodUnit"), periodUnit); } -void CreateCapacityReservationRequest::setTimeSlot(const std::string& timeSlot) -{ - timeSlot_ = timeSlot; - setParameter("TimeSlot", timeSlot); +std::string CreateCapacityReservationRequest::getTimeSlot() const { + return timeSlot_; } -std::vector CreateCapacityReservationRequest::getZoneId()const -{ - return zoneId_; +void CreateCapacityReservationRequest::setTimeSlot(const std::string &timeSlot) { + timeSlot_ = timeSlot; + setParameter(std::string("TimeSlot"), timeSlot); } -void CreateCapacityReservationRequest::setZoneId(const std::vector& zoneId) -{ - zoneId_ = zoneId; - for(int dep1 = 0; dep1!= zoneId.size(); dep1++) { - setParameter("ZoneId."+ std::to_string(dep1), zoneId.at(dep1)); - } +std::vector CreateCapacityReservationRequest::getZoneId() const { + return zoneId_; } -std::string CreateCapacityReservationRequest::getChargeType()const -{ - return chargeType_; +void CreateCapacityReservationRequest::setZoneId(const std::vector &zoneId) { + zoneId_ = zoneId; } -void CreateCapacityReservationRequest::setChargeType(const std::string& chargeType) -{ - chargeType_ = chargeType; - setParameter("ChargeType", chargeType); +std::string CreateCapacityReservationRequest::getChargeType() const { + return chargeType_; } -std::string CreateCapacityReservationRequest::getPackageType()const -{ - return packageType_; +void CreateCapacityReservationRequest::setChargeType(const std::string &chargeType) { + chargeType_ = chargeType; + setParameter(std::string("ChargeType"), chargeType); } -void CreateCapacityReservationRequest::setPackageType(const std::string& packageType) -{ - packageType_ = packageType; - setParameter("PackageType", packageType); +std::string CreateCapacityReservationRequest::getPackageType() const { + return packageType_; } -int CreateCapacityReservationRequest::getInstanceAmount()const -{ - return instanceAmount_; +void CreateCapacityReservationRequest::setPackageType(const std::string &packageType) { + packageType_ = packageType; + setParameter(std::string("PackageType"), packageType); } -void CreateCapacityReservationRequest::setInstanceAmount(int instanceAmount) -{ - instanceAmount_ = instanceAmount; - setParameter("InstanceAmount", std::to_string(instanceAmount)); +int CreateCapacityReservationRequest::getInstanceAmount() const { + return instanceAmount_; +} + +void CreateCapacityReservationRequest::setInstanceAmount(int instanceAmount) { + instanceAmount_ = instanceAmount; + setParameter(std::string("InstanceAmount"), std::to_string(instanceAmount)); } diff --git a/ecs/src/model/CreateCommandRequest.cc b/ecs/src/model/CreateCommandRequest.cc index bc6f86ad4..dbd3f4c19 100644 --- a/ecs/src/model/CreateCommandRequest.cc +++ b/ecs/src/model/CreateCommandRequest.cc @@ -1,161 +1,135 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::CreateCommandRequest; - -CreateCommandRequest::CreateCommandRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateCommand") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateCommandRequest::~CreateCommandRequest() -{} - -long CreateCommandRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::CreateCommandRequest; + +CreateCommandRequest::CreateCommandRequest() + : RpcServiceRequest("ecs", "2014-05-26", "CreateCommand") { + setMethod(HttpRequest::Method::Post); } -void CreateCommandRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateCommandRequest::~CreateCommandRequest() {} + +long CreateCommandRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateCommandRequest::getWorkingDir()const -{ - return workingDir_; +void CreateCommandRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateCommandRequest::setWorkingDir(const std::string& workingDir) -{ - workingDir_ = workingDir; - setParameter("WorkingDir", workingDir); +std::string CreateCommandRequest::getWorkingDir() const { + return workingDir_; } -std::string CreateCommandRequest::getDescription()const -{ - return description_; +void CreateCommandRequest::setWorkingDir(const std::string &workingDir) { + workingDir_ = workingDir; + setParameter(std::string("WorkingDir"), workingDir); } -void CreateCommandRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateCommandRequest::getDescription() const { + return description_; } -std::string CreateCommandRequest::getType()const -{ - return type_; +void CreateCommandRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateCommandRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +std::string CreateCommandRequest::getType() const { + return type_; } -std::string CreateCommandRequest::getCommandContent()const -{ - return commandContent_; +void CreateCommandRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void CreateCommandRequest::setCommandContent(const std::string& commandContent) -{ - commandContent_ = commandContent; - setParameter("CommandContent", commandContent); +std::string CreateCommandRequest::getCommandContent() const { + return commandContent_; } -long CreateCommandRequest::getTimeout()const -{ - return timeout_; +void CreateCommandRequest::setCommandContent(const std::string &commandContent) { + commandContent_ = commandContent; + setParameter(std::string("CommandContent"), commandContent); } -void CreateCommandRequest::setTimeout(long timeout) -{ - timeout_ = timeout; - setParameter("Timeout", std::to_string(timeout)); +long CreateCommandRequest::getTimeout() const { + return timeout_; } -std::string CreateCommandRequest::getRegionId()const -{ - return regionId_; +void CreateCommandRequest::setTimeout(long timeout) { + timeout_ = timeout; + setParameter(std::string("Timeout"), std::to_string(timeout)); } -void CreateCommandRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateCommandRequest::getRegionId() const { + return regionId_; } -std::string CreateCommandRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateCommandRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateCommandRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateCommandRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateCommandRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateCommandRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateCommandRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateCommandRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateCommandRequest::getOwnerId()const -{ - return ownerId_; +void CreateCommandRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateCommandRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateCommandRequest::getOwnerId() const { + return ownerId_; } -std::string CreateCommandRequest::getName()const -{ - return name_; +void CreateCommandRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateCommandRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string CreateCommandRequest::getName() const { + return name_; } -bool CreateCommandRequest::getEnableParameter()const -{ - return enableParameter_; +void CreateCommandRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void CreateCommandRequest::setEnableParameter(bool enableParameter) -{ - enableParameter_ = enableParameter; - setParameter("EnableParameter", enableParameter ? "true" : "false"); +bool CreateCommandRequest::getEnableParameter() const { + return enableParameter_; +} + +void CreateCommandRequest::setEnableParameter(bool enableParameter) { + enableParameter_ = enableParameter; + setParameter(std::string("EnableParameter"), enableParameter ? "true" : "false"); } diff --git a/ecs/src/model/CreateDedicatedBlockStorageClusterRequest.cc b/ecs/src/model/CreateDedicatedBlockStorageClusterRequest.cc index 9b0867b8e..04733c8c1 100644 --- a/ecs/src/model/CreateDedicatedBlockStorageClusterRequest.cc +++ b/ecs/src/model/CreateDedicatedBlockStorageClusterRequest.cc @@ -1,194 +1,162 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::CreateDedicatedBlockStorageClusterRequest; - -CreateDedicatedBlockStorageClusterRequest::CreateDedicatedBlockStorageClusterRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateDedicatedBlockStorageCluster") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateDedicatedBlockStorageClusterRequest::~CreateDedicatedBlockStorageClusterRequest() -{} - -long CreateDedicatedBlockStorageClusterRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::CreateDedicatedBlockStorageClusterRequest; + +CreateDedicatedBlockStorageClusterRequest::CreateDedicatedBlockStorageClusterRequest() + : RpcServiceRequest("ecs", "2014-05-26", "CreateDedicatedBlockStorageCluster") { + setMethod(HttpRequest::Method::Post); } -void CreateDedicatedBlockStorageClusterRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateDedicatedBlockStorageClusterRequest::~CreateDedicatedBlockStorageClusterRequest() {} + +long CreateDedicatedBlockStorageClusterRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateDedicatedBlockStorageClusterRequest::getDedicatedBlockStorageClusterName()const -{ - return dedicatedBlockStorageClusterName_; +void CreateDedicatedBlockStorageClusterRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateDedicatedBlockStorageClusterRequest::setDedicatedBlockStorageClusterName(const std::string& dedicatedBlockStorageClusterName) -{ - dedicatedBlockStorageClusterName_ = dedicatedBlockStorageClusterName; - setParameter("DedicatedBlockStorageClusterName", dedicatedBlockStorageClusterName); +std::string CreateDedicatedBlockStorageClusterRequest::getDedicatedBlockStorageClusterName() const { + return dedicatedBlockStorageClusterName_; } -std::string CreateDedicatedBlockStorageClusterRequest::getClientToken()const -{ - return clientToken_; +void CreateDedicatedBlockStorageClusterRequest::setDedicatedBlockStorageClusterName(const std::string &dedicatedBlockStorageClusterName) { + dedicatedBlockStorageClusterName_ = dedicatedBlockStorageClusterName; + setParameter(std::string("DedicatedBlockStorageClusterName"), dedicatedBlockStorageClusterName); } -void CreateDedicatedBlockStorageClusterRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateDedicatedBlockStorageClusterRequest::getClientToken() const { + return clientToken_; } -std::string CreateDedicatedBlockStorageClusterRequest::getDescription()const -{ - return description_; +void CreateDedicatedBlockStorageClusterRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateDedicatedBlockStorageClusterRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateDedicatedBlockStorageClusterRequest::getDescription() const { + return description_; } -std::string CreateDedicatedBlockStorageClusterRequest::getType()const -{ - return type_; +void CreateDedicatedBlockStorageClusterRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateDedicatedBlockStorageClusterRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +std::string CreateDedicatedBlockStorageClusterRequest::getType() const { + return type_; } -int CreateDedicatedBlockStorageClusterRequest::getCapacity()const -{ - return capacity_; +void CreateDedicatedBlockStorageClusterRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void CreateDedicatedBlockStorageClusterRequest::setCapacity(int capacity) -{ - capacity_ = capacity; - setParameter("Capacity", std::to_string(capacity)); +int CreateDedicatedBlockStorageClusterRequest::getCapacity() const { + return capacity_; } -std::string CreateDedicatedBlockStorageClusterRequest::getRegionId()const -{ - return regionId_; +void CreateDedicatedBlockStorageClusterRequest::setCapacity(int capacity) { + capacity_ = capacity; + setParameter(std::string("Capacity"), std::to_string(capacity)); } -void CreateDedicatedBlockStorageClusterRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateDedicatedBlockStorageClusterRequest::getRegionId() const { + return regionId_; } -int CreateDedicatedBlockStorageClusterRequest::getPeriod()const -{ - return period_; +void CreateDedicatedBlockStorageClusterRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateDedicatedBlockStorageClusterRequest::setPeriod(int period) -{ - period_ = period; - setParameter("Period", std::to_string(period)); +int CreateDedicatedBlockStorageClusterRequest::getPeriod() const { + return period_; } -std::string CreateDedicatedBlockStorageClusterRequest::getFromApp()const -{ - return fromApp_; +void CreateDedicatedBlockStorageClusterRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); } -void CreateDedicatedBlockStorageClusterRequest::setFromApp(const std::string& fromApp) -{ - fromApp_ = fromApp; - setParameter("FromApp", fromApp); +std::string CreateDedicatedBlockStorageClusterRequest::getFromApp() const { + return fromApp_; } -std::string CreateDedicatedBlockStorageClusterRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateDedicatedBlockStorageClusterRequest::setFromApp(const std::string &fromApp) { + fromApp_ = fromApp; + setParameter(std::string("FromApp"), fromApp); } -void CreateDedicatedBlockStorageClusterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateDedicatedBlockStorageClusterRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateDedicatedBlockStorageClusterRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateDedicatedBlockStorageClusterRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateDedicatedBlockStorageClusterRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateDedicatedBlockStorageClusterRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateDedicatedBlockStorageClusterRequest::getOwnerId()const -{ - return ownerId_; +void CreateDedicatedBlockStorageClusterRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateDedicatedBlockStorageClusterRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateDedicatedBlockStorageClusterRequest::getOwnerId() const { + return ownerId_; } -std::string CreateDedicatedBlockStorageClusterRequest::getPeriodUnit()const -{ - return periodUnit_; +void CreateDedicatedBlockStorageClusterRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateDedicatedBlockStorageClusterRequest::setPeriodUnit(const std::string& periodUnit) -{ - periodUnit_ = periodUnit; - setParameter("PeriodUnit", periodUnit); +std::string CreateDedicatedBlockStorageClusterRequest::getPeriodUnit() const { + return periodUnit_; } -std::string CreateDedicatedBlockStorageClusterRequest::getZoneId()const -{ - return zoneId_; +void CreateDedicatedBlockStorageClusterRequest::setPeriodUnit(const std::string &periodUnit) { + periodUnit_ = periodUnit; + setParameter(std::string("PeriodUnit"), periodUnit); } -void CreateDedicatedBlockStorageClusterRequest::setZoneId(const std::string& zoneId) -{ - zoneId_ = zoneId; - setParameter("ZoneId", zoneId); +std::string CreateDedicatedBlockStorageClusterRequest::getZoneId() const { + return zoneId_; } -std::string CreateDedicatedBlockStorageClusterRequest::getCategory()const -{ - return category_; +void CreateDedicatedBlockStorageClusterRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); } -void CreateDedicatedBlockStorageClusterRequest::setCategory(const std::string& category) -{ - category_ = category; - setParameter("Category", category); +std::string CreateDedicatedBlockStorageClusterRequest::getCategory() const { + return category_; +} + +void CreateDedicatedBlockStorageClusterRequest::setCategory(const std::string &category) { + category_ = category; + setParameter(std::string("Category"), category); } diff --git a/ecs/src/model/CreateDedicatedHostClusterRequest.cc b/ecs/src/model/CreateDedicatedHostClusterRequest.cc index cac39eebb..4a27c868d 100644 --- a/ecs/src/model/CreateDedicatedHostClusterRequest.cc +++ b/ecs/src/model/CreateDedicatedHostClusterRequest.cc @@ -1,155 +1,131 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::CreateDedicatedHostClusterRequest; - -CreateDedicatedHostClusterRequest::CreateDedicatedHostClusterRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateDedicatedHostCluster") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateDedicatedHostClusterRequest::~CreateDedicatedHostClusterRequest() -{} - -std::string CreateDedicatedHostClusterRequest::getDedicatedHostClusterName()const -{ - return dedicatedHostClusterName_; + */ + +#include + +using AlibabaCloud::Ecs::Model::CreateDedicatedHostClusterRequest; + +CreateDedicatedHostClusterRequest::CreateDedicatedHostClusterRequest() + : RpcServiceRequest("ecs", "2014-05-26", "CreateDedicatedHostCluster") { + setMethod(HttpRequest::Method::Post); } -void CreateDedicatedHostClusterRequest::setDedicatedHostClusterName(const std::string& dedicatedHostClusterName) -{ - dedicatedHostClusterName_ = dedicatedHostClusterName; - setParameter("DedicatedHostClusterName", dedicatedHostClusterName); +CreateDedicatedHostClusterRequest::~CreateDedicatedHostClusterRequest() {} + +std::string CreateDedicatedHostClusterRequest::getDedicatedHostClusterName() const { + return dedicatedHostClusterName_; } -long CreateDedicatedHostClusterRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void CreateDedicatedHostClusterRequest::setDedicatedHostClusterName(const std::string &dedicatedHostClusterName) { + dedicatedHostClusterName_ = dedicatedHostClusterName; + setParameter(std::string("DedicatedHostClusterName"), dedicatedHostClusterName); } -void CreateDedicatedHostClusterRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long CreateDedicatedHostClusterRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateDedicatedHostClusterRequest::getDescription()const -{ - return description_; +void CreateDedicatedHostClusterRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateDedicatedHostClusterRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateDedicatedHostClusterRequest::getDescription() const { + return description_; } -std::string CreateDedicatedHostClusterRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void CreateDedicatedHostClusterRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateDedicatedHostClusterRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string CreateDedicatedHostClusterRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string CreateDedicatedHostClusterRequest::getRegionId()const -{ - return regionId_; +void CreateDedicatedHostClusterRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void CreateDedicatedHostClusterRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateDedicatedHostClusterRequest::getRegionId() const { + return regionId_; } -std::vector CreateDedicatedHostClusterRequest::getTag()const -{ - return tag_; +void CreateDedicatedHostClusterRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateDedicatedHostClusterRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Key", tagObj.key); - setParameter(tagObjStr + ".Value", tagObj.value); - } +std::vector CreateDedicatedHostClusterRequest::getTag() const { + return tag_; } -bool CreateDedicatedHostClusterRequest::getDryRun()const -{ - return dryRun_; +void CreateDedicatedHostClusterRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } } -void CreateDedicatedHostClusterRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool CreateDedicatedHostClusterRequest::getDryRun() const { + return dryRun_; } -std::string CreateDedicatedHostClusterRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateDedicatedHostClusterRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void CreateDedicatedHostClusterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateDedicatedHostClusterRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateDedicatedHostClusterRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateDedicatedHostClusterRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateDedicatedHostClusterRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateDedicatedHostClusterRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateDedicatedHostClusterRequest::getOwnerId()const -{ - return ownerId_; +void CreateDedicatedHostClusterRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateDedicatedHostClusterRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateDedicatedHostClusterRequest::getOwnerId() const { + return ownerId_; } -std::string CreateDedicatedHostClusterRequest::getZoneId()const -{ - return zoneId_; +void CreateDedicatedHostClusterRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateDedicatedHostClusterRequest::setZoneId(const std::string& zoneId) -{ - zoneId_ = zoneId; - setParameter("ZoneId", zoneId); +std::string CreateDedicatedHostClusterRequest::getZoneId() const { + return zoneId_; +} + +void CreateDedicatedHostClusterRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); } diff --git a/ecs/src/model/CreateDemandRequest.cc b/ecs/src/model/CreateDemandRequest.cc index 5aec9883f..804801d76 100644 --- a/ecs/src/model/CreateDemandRequest.cc +++ b/ecs/src/model/CreateDemandRequest.cc @@ -1,205 +1,171 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::CreateDemandRequest; - -CreateDemandRequest::CreateDemandRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateDemand") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateDemandRequest::~CreateDemandRequest() -{} - -long CreateDemandRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::CreateDemandRequest; + +CreateDemandRequest::CreateDemandRequest() + : RpcServiceRequest("ecs", "2014-05-26", "CreateDemand") { + setMethod(HttpRequest::Method::Post); } -void CreateDemandRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateDemandRequest::~CreateDemandRequest() {} + +long CreateDemandRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateDemandRequest::getClientToken()const -{ - return clientToken_; +void CreateDemandRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateDemandRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateDemandRequest::getClientToken() const { + return clientToken_; } -std::string CreateDemandRequest::getStartTime()const -{ - return startTime_; +void CreateDemandRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateDemandRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string CreateDemandRequest::getStartTime() const { + return startTime_; } -std::string CreateDemandRequest::getDemandDescription()const -{ - return demandDescription_; +void CreateDemandRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void CreateDemandRequest::setDemandDescription(const std::string& demandDescription) -{ - demandDescription_ = demandDescription; - setParameter("DemandDescription", demandDescription); +std::string CreateDemandRequest::getDemandDescription() const { + return demandDescription_; } -std::string CreateDemandRequest::getRegionId()const -{ - return regionId_; +void CreateDemandRequest::setDemandDescription(const std::string &demandDescription) { + demandDescription_ = demandDescription; + setParameter(std::string("DemandDescription"), demandDescription); } -void CreateDemandRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateDemandRequest::getRegionId() const { + return regionId_; } -std::string CreateDemandRequest::getInstanceType()const -{ - return instanceType_; +void CreateDemandRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateDemandRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +std::string CreateDemandRequest::getInstanceType() const { + return instanceType_; } -std::string CreateDemandRequest::getInstanceChargeType()const -{ - return instanceChargeType_; +void CreateDemandRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } -void CreateDemandRequest::setInstanceChargeType(const std::string& instanceChargeType) -{ - instanceChargeType_ = instanceChargeType; - setParameter("InstanceChargeType", instanceChargeType); +std::string CreateDemandRequest::getInstanceChargeType() const { + return instanceChargeType_; } -std::string CreateDemandRequest::getDemandName()const -{ - return demandName_; +void CreateDemandRequest::setInstanceChargeType(const std::string &instanceChargeType) { + instanceChargeType_ = instanceChargeType; + setParameter(std::string("InstanceChargeType"), instanceChargeType); } -void CreateDemandRequest::setDemandName(const std::string& demandName) -{ - demandName_ = demandName; - setParameter("DemandName", demandName); +std::string CreateDemandRequest::getDemandName() const { + return demandName_; } -int CreateDemandRequest::getAmount()const -{ - return amount_; +void CreateDemandRequest::setDemandName(const std::string &demandName) { + demandName_ = demandName; + setParameter(std::string("DemandName"), demandName); } -void CreateDemandRequest::setAmount(int amount) -{ - amount_ = amount; - setParameter("Amount", std::to_string(amount)); +int CreateDemandRequest::getAmount() const { + return amount_; } -int CreateDemandRequest::getPeriod()const -{ - return period_; +void CreateDemandRequest::setAmount(int amount) { + amount_ = amount; + setParameter(std::string("Amount"), std::to_string(amount)); } -void CreateDemandRequest::setPeriod(int period) -{ - period_ = period; - setParameter("Period", std::to_string(period)); +int CreateDemandRequest::getPeriod() const { + return period_; } -std::string CreateDemandRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateDemandRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); } -void CreateDemandRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateDemandRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateDemandRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateDemandRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateDemandRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateDemandRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string CreateDemandRequest::getEndTime()const -{ - return endTime_; +void CreateDemandRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateDemandRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +std::string CreateDemandRequest::getEndTime() const { + return endTime_; } -long CreateDemandRequest::getOwnerId()const -{ - return ownerId_; +void CreateDemandRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void CreateDemandRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateDemandRequest::getOwnerId() const { + return ownerId_; } -std::string CreateDemandRequest::getPeriodUnit()const -{ - return periodUnit_; +void CreateDemandRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateDemandRequest::setPeriodUnit(const std::string& periodUnit) -{ - periodUnit_ = periodUnit; - setParameter("PeriodUnit", periodUnit); +std::string CreateDemandRequest::getPeriodUnit() const { + return periodUnit_; } -std::string CreateDemandRequest::getZoneId()const -{ - return zoneId_; +void CreateDemandRequest::setPeriodUnit(const std::string &periodUnit) { + periodUnit_ = periodUnit; + setParameter(std::string("PeriodUnit"), periodUnit); } -void CreateDemandRequest::setZoneId(const std::string& zoneId) -{ - zoneId_ = zoneId; - setParameter("ZoneId", zoneId); +std::string CreateDemandRequest::getZoneId() const { + return zoneId_; +} + +void CreateDemandRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); } diff --git a/ecs/src/model/CreateDeploymentSetRequest.cc b/ecs/src/model/CreateDeploymentSetRequest.cc index 50d645616..d413c8de9 100644 --- a/ecs/src/model/CreateDeploymentSetRequest.cc +++ b/ecs/src/model/CreateDeploymentSetRequest.cc @@ -1,172 +1,144 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::CreateDeploymentSetRequest; - -CreateDeploymentSetRequest::CreateDeploymentSetRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateDeploymentSet") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateDeploymentSetRequest::~CreateDeploymentSetRequest() -{} - -long CreateDeploymentSetRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::CreateDeploymentSetRequest; + +CreateDeploymentSetRequest::CreateDeploymentSetRequest() + : RpcServiceRequest("ecs", "2014-05-26", "CreateDeploymentSet") { + setMethod(HttpRequest::Method::Post); } -void CreateDeploymentSetRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateDeploymentSetRequest::~CreateDeploymentSetRequest() {} + +long CreateDeploymentSetRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateDeploymentSetRequest::getClientToken()const -{ - return clientToken_; +void CreateDeploymentSetRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateDeploymentSetRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateDeploymentSetRequest::getClientToken() const { + return clientToken_; } -std::string CreateDeploymentSetRequest::getDescription()const -{ - return description_; +void CreateDeploymentSetRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateDeploymentSetRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateDeploymentSetRequest::getDescription() const { + return description_; } -std::string CreateDeploymentSetRequest::getRegionId()const -{ - return regionId_; +void CreateDeploymentSetRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateDeploymentSetRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateDeploymentSetRequest::getRegionId() const { + return regionId_; } -long CreateDeploymentSetRequest::getGroupCount()const -{ - return groupCount_; +void CreateDeploymentSetRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateDeploymentSetRequest::setGroupCount(long groupCount) -{ - groupCount_ = groupCount; - setParameter("GroupCount", std::to_string(groupCount)); +long CreateDeploymentSetRequest::getGroupCount() const { + return groupCount_; } -std::string CreateDeploymentSetRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateDeploymentSetRequest::setGroupCount(long groupCount) { + groupCount_ = groupCount; + setParameter(std::string("GroupCount"), std::to_string(groupCount)); } -void CreateDeploymentSetRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateDeploymentSetRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateDeploymentSetRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateDeploymentSetRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateDeploymentSetRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateDeploymentSetRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string CreateDeploymentSetRequest::getDeploymentSetName()const -{ - return deploymentSetName_; +void CreateDeploymentSetRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateDeploymentSetRequest::setDeploymentSetName(const std::string& deploymentSetName) -{ - deploymentSetName_ = deploymentSetName; - setParameter("DeploymentSetName", deploymentSetName); +std::string CreateDeploymentSetRequest::getDeploymentSetName() const { + return deploymentSetName_; } -long CreateDeploymentSetRequest::getOwnerId()const -{ - return ownerId_; +void CreateDeploymentSetRequest::setDeploymentSetName(const std::string &deploymentSetName) { + deploymentSetName_ = deploymentSetName; + setParameter(std::string("DeploymentSetName"), deploymentSetName); } -void CreateDeploymentSetRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateDeploymentSetRequest::getOwnerId() const { + return ownerId_; } -std::string CreateDeploymentSetRequest::getOnUnableToRedeployFailedInstance()const -{ - return onUnableToRedeployFailedInstance_; +void CreateDeploymentSetRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateDeploymentSetRequest::setOnUnableToRedeployFailedInstance(const std::string& onUnableToRedeployFailedInstance) -{ - onUnableToRedeployFailedInstance_ = onUnableToRedeployFailedInstance; - setParameter("OnUnableToRedeployFailedInstance", onUnableToRedeployFailedInstance); +std::string CreateDeploymentSetRequest::getOnUnableToRedeployFailedInstance() const { + return onUnableToRedeployFailedInstance_; } -std::string CreateDeploymentSetRequest::getGranularity()const -{ - return granularity_; +void CreateDeploymentSetRequest::setOnUnableToRedeployFailedInstance(const std::string &onUnableToRedeployFailedInstance) { + onUnableToRedeployFailedInstance_ = onUnableToRedeployFailedInstance; + setParameter(std::string("OnUnableToRedeployFailedInstance"), onUnableToRedeployFailedInstance); } -void CreateDeploymentSetRequest::setGranularity(const std::string& granularity) -{ - granularity_ = granularity; - setParameter("Granularity", granularity); +std::string CreateDeploymentSetRequest::getGranularity() const { + return granularity_; } -std::string CreateDeploymentSetRequest::getDomain()const -{ - return domain_; +void CreateDeploymentSetRequest::setGranularity(const std::string &granularity) { + granularity_ = granularity; + setParameter(std::string("Granularity"), granularity); } -void CreateDeploymentSetRequest::setDomain(const std::string& domain) -{ - domain_ = domain; - setParameter("Domain", domain); +std::string CreateDeploymentSetRequest::getDomain() const { + return domain_; } -std::string CreateDeploymentSetRequest::getStrategy()const -{ - return strategy_; +void CreateDeploymentSetRequest::setDomain(const std::string &domain) { + domain_ = domain; + setParameter(std::string("Domain"), domain); } -void CreateDeploymentSetRequest::setStrategy(const std::string& strategy) -{ - strategy_ = strategy; - setParameter("Strategy", strategy); +std::string CreateDeploymentSetRequest::getStrategy() const { + return strategy_; +} + +void CreateDeploymentSetRequest::setStrategy(const std::string &strategy) { + strategy_ = strategy; + setParameter(std::string("Strategy"), strategy); } diff --git a/ecs/src/model/CreateDiskReplicaPairRequest.cc b/ecs/src/model/CreateDiskReplicaPairRequest.cc index 901883b98..ec7025279 100644 --- a/ecs/src/model/CreateDiskReplicaPairRequest.cc +++ b/ecs/src/model/CreateDiskReplicaPairRequest.cc @@ -1,150 +1,126 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::CreateDiskReplicaPairRequest; - -CreateDiskReplicaPairRequest::CreateDiskReplicaPairRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateDiskReplicaPair") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateDiskReplicaPairRequest::~CreateDiskReplicaPairRequest() -{} - -long CreateDiskReplicaPairRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::CreateDiskReplicaPairRequest; + +CreateDiskReplicaPairRequest::CreateDiskReplicaPairRequest() + : RpcServiceRequest("ecs", "2014-05-26", "CreateDiskReplicaPair") { + setMethod(HttpRequest::Method::Post); } -void CreateDiskReplicaPairRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateDiskReplicaPairRequest::~CreateDiskReplicaPairRequest() {} + +long CreateDiskReplicaPairRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateDiskReplicaPairRequest::getPairName()const -{ - return pairName_; +void CreateDiskReplicaPairRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateDiskReplicaPairRequest::setPairName(const std::string& pairName) -{ - pairName_ = pairName; - setParameter("PairName", pairName); +std::string CreateDiskReplicaPairRequest::getPairName() const { + return pairName_; } -std::string CreateDiskReplicaPairRequest::getDestinationRegionId()const -{ - return destinationRegionId_; +void CreateDiskReplicaPairRequest::setPairName(const std::string &pairName) { + pairName_ = pairName; + setParameter(std::string("PairName"), pairName); } -void CreateDiskReplicaPairRequest::setDestinationRegionId(const std::string& destinationRegionId) -{ - destinationRegionId_ = destinationRegionId; - setParameter("DestinationRegionId", destinationRegionId); +std::string CreateDiskReplicaPairRequest::getDestinationRegionId() const { + return destinationRegionId_; } -std::string CreateDiskReplicaPairRequest::getDescription()const -{ - return description_; +void CreateDiskReplicaPairRequest::setDestinationRegionId(const std::string &destinationRegionId) { + destinationRegionId_ = destinationRegionId; + setParameter(std::string("DestinationRegionId"), destinationRegionId); } -void CreateDiskReplicaPairRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateDiskReplicaPairRequest::getDescription() const { + return description_; } -std::string CreateDiskReplicaPairRequest::getRegionId()const -{ - return regionId_; +void CreateDiskReplicaPairRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateDiskReplicaPairRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateDiskReplicaPairRequest::getRegionId() const { + return regionId_; } -std::string CreateDiskReplicaPairRequest::getDiskId()const -{ - return diskId_; +void CreateDiskReplicaPairRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateDiskReplicaPairRequest::setDiskId(const std::string& diskId) -{ - diskId_ = diskId; - setParameter("DiskId", diskId); +std::string CreateDiskReplicaPairRequest::getDiskId() const { + return diskId_; } -int CreateDiskReplicaPairRequest::getAsyncCycle()const -{ - return asyncCycle_; +void CreateDiskReplicaPairRequest::setDiskId(const std::string &diskId) { + diskId_ = diskId; + setParameter(std::string("DiskId"), diskId); } -void CreateDiskReplicaPairRequest::setAsyncCycle(int asyncCycle) -{ - asyncCycle_ = asyncCycle; - setParameter("AsyncCycle", std::to_string(asyncCycle)); +int CreateDiskReplicaPairRequest::getAsyncCycle() const { + return asyncCycle_; } -std::string CreateDiskReplicaPairRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateDiskReplicaPairRequest::setAsyncCycle(int asyncCycle) { + asyncCycle_ = asyncCycle; + setParameter(std::string("AsyncCycle"), std::to_string(asyncCycle)); } -void CreateDiskReplicaPairRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateDiskReplicaPairRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateDiskReplicaPairRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateDiskReplicaPairRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateDiskReplicaPairRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateDiskReplicaPairRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateDiskReplicaPairRequest::getOwnerId()const -{ - return ownerId_; +void CreateDiskReplicaPairRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateDiskReplicaPairRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateDiskReplicaPairRequest::getOwnerId() const { + return ownerId_; } -std::string CreateDiskReplicaPairRequest::getDestinationDiskId()const -{ - return destinationDiskId_; +void CreateDiskReplicaPairRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateDiskReplicaPairRequest::setDestinationDiskId(const std::string& destinationDiskId) -{ - destinationDiskId_ = destinationDiskId; - setParameter("DestinationDiskId", destinationDiskId); +std::string CreateDiskReplicaPairRequest::getDestinationDiskId() const { + return destinationDiskId_; +} + +void CreateDiskReplicaPairRequest::setDestinationDiskId(const std::string &destinationDiskId) { + destinationDiskId_ = destinationDiskId; + setParameter(std::string("DestinationDiskId"), destinationDiskId); } diff --git a/ecs/src/model/CreateDiskRequest.cc b/ecs/src/model/CreateDiskRequest.cc index 2e4c9607b..5a9637225 100644 --- a/ecs/src/model/CreateDiskRequest.cc +++ b/ecs/src/model/CreateDiskRequest.cc @@ -1,315 +1,263 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::CreateDiskRequest; - -CreateDiskRequest::CreateDiskRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateDisk") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateDiskRequest::~CreateDiskRequest() -{} - -long CreateDiskRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::CreateDiskRequest; + +CreateDiskRequest::CreateDiskRequest() + : RpcServiceRequest("ecs", "2014-05-26", "CreateDisk") { + setMethod(HttpRequest::Method::Post); } -void CreateDiskRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateDiskRequest::~CreateDiskRequest() {} + +long CreateDiskRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateDiskRequest::getSnapshotId()const -{ - return snapshotId_; +void CreateDiskRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateDiskRequest::setSnapshotId(const std::string& snapshotId) -{ - snapshotId_ = snapshotId; - setParameter("SnapshotId", snapshotId); +std::string CreateDiskRequest::getSnapshotId() const { + return snapshotId_; } -std::string CreateDiskRequest::getClientToken()const -{ - return clientToken_; +void CreateDiskRequest::setSnapshotId(const std::string &snapshotId) { + snapshotId_ = snapshotId; + setParameter(std::string("SnapshotId"), snapshotId); } -void CreateDiskRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateDiskRequest::getClientToken() const { + return clientToken_; } -std::string CreateDiskRequest::getEncryptAlgorithm()const -{ - return encryptAlgorithm_; +void CreateDiskRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateDiskRequest::setEncryptAlgorithm(const std::string& encryptAlgorithm) -{ - encryptAlgorithm_ = encryptAlgorithm; - setParameter("EncryptAlgorithm", encryptAlgorithm); +std::string CreateDiskRequest::getEncryptAlgorithm() const { + return encryptAlgorithm_; } -std::string CreateDiskRequest::getDescription()const -{ - return description_; +void CreateDiskRequest::setEncryptAlgorithm(const std::string &encryptAlgorithm) { + encryptAlgorithm_ = encryptAlgorithm; + setParameter(std::string("EncryptAlgorithm"), encryptAlgorithm); } -void CreateDiskRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateDiskRequest::getDescription() const { + return description_; } -std::string CreateDiskRequest::getDiskName()const -{ - return diskName_; +void CreateDiskRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateDiskRequest::setDiskName(const std::string& diskName) -{ - diskName_ = diskName; - setParameter("DiskName", diskName); +std::string CreateDiskRequest::getDiskName() const { + return diskName_; } -std::string CreateDiskRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void CreateDiskRequest::setDiskName(const std::string &diskName) { + diskName_ = diskName; + setParameter(std::string("DiskName"), diskName); } -void CreateDiskRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string CreateDiskRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string CreateDiskRequest::getRegionId()const -{ - return regionId_; +void CreateDiskRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void CreateDiskRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateDiskRequest::getRegionId() const { + return regionId_; } -std::string CreateDiskRequest::getDiskCategory()const -{ - return diskCategory_; +void CreateDiskRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateDiskRequest::setDiskCategory(const std::string& diskCategory) -{ - diskCategory_ = diskCategory; - setParameter("DiskCategory", diskCategory); +std::string CreateDiskRequest::getDiskCategory() const { + return diskCategory_; } -int CreateDiskRequest::getStorageSetPartitionNumber()const -{ - return storageSetPartitionNumber_; +void CreateDiskRequest::setDiskCategory(const std::string &diskCategory) { + diskCategory_ = diskCategory; + setParameter(std::string("DiskCategory"), diskCategory); } -void CreateDiskRequest::setStorageSetPartitionNumber(int storageSetPartitionNumber) -{ - storageSetPartitionNumber_ = storageSetPartitionNumber; - setParameter("StorageSetPartitionNumber", std::to_string(storageSetPartitionNumber)); +int CreateDiskRequest::getStorageSetPartitionNumber() const { + return storageSetPartitionNumber_; } -std::string CreateDiskRequest::getMultiAttach()const -{ - return multiAttach_; +void CreateDiskRequest::setStorageSetPartitionNumber(int storageSetPartitionNumber) { + storageSetPartitionNumber_ = storageSetPartitionNumber; + setParameter(std::string("StorageSetPartitionNumber"), std::to_string(storageSetPartitionNumber)); } -void CreateDiskRequest::setMultiAttach(const std::string& multiAttach) -{ - multiAttach_ = multiAttach; - setParameter("MultiAttach", multiAttach); +std::string CreateDiskRequest::getMultiAttach() const { + return multiAttach_; } -std::vector CreateDiskRequest::getTag()const -{ - return tag_; +void CreateDiskRequest::setMultiAttach(const std::string &multiAttach) { + multiAttach_ = multiAttach; + setParameter(std::string("MultiAttach"), multiAttach); } -void CreateDiskRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Value", tagObj.value); - setParameter(tagObjStr + ".Key", tagObj.key); - } +std::vector CreateDiskRequest::getTag() const { + return tag_; } -std::string CreateDiskRequest::getAdvancedFeatures()const -{ - return advancedFeatures_; +void CreateDiskRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } -void CreateDiskRequest::setAdvancedFeatures(const std::string& advancedFeatures) -{ - advancedFeatures_ = advancedFeatures; - setParameter("AdvancedFeatures", advancedFeatures); +std::string CreateDiskRequest::getAdvancedFeatures() const { + return advancedFeatures_; } -std::vector CreateDiskRequest::getArn()const -{ - return arn_; +void CreateDiskRequest::setAdvancedFeatures(const std::string &advancedFeatures) { + advancedFeatures_ = advancedFeatures; + setParameter(std::string("AdvancedFeatures"), advancedFeatures); } -void CreateDiskRequest::setArn(const std::vector& arn) -{ - arn_ = arn; - for(int dep1 = 0; dep1!= arn.size(); dep1++) { - auto arnObj = arn.at(dep1); - std::string arnObjStr = "Arn." + std::to_string(dep1 + 1); - setParameter(arnObjStr + ".Rolearn", arnObj.rolearn); - setParameter(arnObjStr + ".RoleType", arnObj.roleType); - setParameter(arnObjStr + ".AssumeRoleFor", std::to_string(arnObj.assumeRoleFor)); - } +std::vector CreateDiskRequest::getArn() const { + return arn_; } -std::string CreateDiskRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateDiskRequest::setArn(const std::vector &arn) { + arn_ = arn; + for(int dep1 = 0; dep1 != arn.size(); dep1++) { + auto arnObj = arn.at(dep1); + std::string arnObjStr = std::string("Arn") + "." + std::to_string(dep1 + 1); + setParameter(arnObjStr + ".Rolearn", arnObj.rolearn); + setParameter(arnObjStr + ".RoleType", arnObj.roleType); + setParameter(arnObjStr + ".AssumeRoleFor", std::to_string(arnObj.assumeRoleFor)); + } } -void CreateDiskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateDiskRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateDiskRequest::getPerformanceLevel()const -{ - return performanceLevel_; +void CreateDiskRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateDiskRequest::setPerformanceLevel(const std::string& performanceLevel) -{ - performanceLevel_ = performanceLevel; - setParameter("PerformanceLevel", performanceLevel); +std::string CreateDiskRequest::getPerformanceLevel() const { + return performanceLevel_; } -std::string CreateDiskRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateDiskRequest::setPerformanceLevel(const std::string &performanceLevel) { + performanceLevel_ = performanceLevel; + setParameter(std::string("PerformanceLevel"), performanceLevel); } -void CreateDiskRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateDiskRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateDiskRequest::getOwnerId()const -{ - return ownerId_; +void CreateDiskRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateDiskRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateDiskRequest::getOwnerId() const { + return ownerId_; } -std::string CreateDiskRequest::getInstanceId()const -{ - return instanceId_; +void CreateDiskRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateDiskRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string CreateDiskRequest::getInstanceId() const { + return instanceId_; } -std::string CreateDiskRequest::getStorageSetId()const -{ - return storageSetId_; +void CreateDiskRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void CreateDiskRequest::setStorageSetId(const std::string& storageSetId) -{ - storageSetId_ = storageSetId; - setParameter("StorageSetId", storageSetId); +std::string CreateDiskRequest::getStorageSetId() const { + return storageSetId_; } -int CreateDiskRequest::getSize()const -{ - return size_; +void CreateDiskRequest::setStorageSetId(const std::string &storageSetId) { + storageSetId_ = storageSetId; + setParameter(std::string("StorageSetId"), storageSetId); } -void CreateDiskRequest::setSize(int size) -{ - size_ = size; - setParameter("Size", std::to_string(size)); +int CreateDiskRequest::getSize() const { + return size_; } -bool CreateDiskRequest::getEncrypted()const -{ - return encrypted_; +void CreateDiskRequest::setSize(int size) { + size_ = size; + setParameter(std::string("Size"), std::to_string(size)); } -void CreateDiskRequest::setEncrypted(bool encrypted) -{ - encrypted_ = encrypted; - setParameter("Encrypted", encrypted ? "true" : "false"); +bool CreateDiskRequest::getEncrypted() const { + return encrypted_; } -std::string CreateDiskRequest::getZoneId()const -{ - return zoneId_; +void CreateDiskRequest::setEncrypted(bool encrypted) { + encrypted_ = encrypted; + setParameter(std::string("Encrypted"), encrypted ? "true" : "false"); } -void CreateDiskRequest::setZoneId(const std::string& zoneId) -{ - zoneId_ = zoneId; - setParameter("ZoneId", zoneId); +std::string CreateDiskRequest::getZoneId() const { + return zoneId_; } -std::string CreateDiskRequest::getStorageClusterId()const -{ - return storageClusterId_; +void CreateDiskRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); } -void CreateDiskRequest::setStorageClusterId(const std::string& storageClusterId) -{ - storageClusterId_ = storageClusterId; - setParameter("StorageClusterId", storageClusterId); +std::string CreateDiskRequest::getStorageClusterId() const { + return storageClusterId_; } -std::string CreateDiskRequest::getKMSKeyId()const -{ - return kMSKeyId_; +void CreateDiskRequest::setStorageClusterId(const std::string &storageClusterId) { + storageClusterId_ = storageClusterId; + setParameter(std::string("StorageClusterId"), storageClusterId); } -void CreateDiskRequest::setKMSKeyId(const std::string& kMSKeyId) -{ - kMSKeyId_ = kMSKeyId; - setParameter("KMSKeyId", kMSKeyId); +std::string CreateDiskRequest::getKMSKeyId() const { + return kMSKeyId_; +} + +void CreateDiskRequest::setKMSKeyId(const std::string &kMSKeyId) { + kMSKeyId_ = kMSKeyId; + setParameter(std::string("KMSKeyId"), kMSKeyId); } diff --git a/ecs/src/model/CreateElasticityAssuranceRequest.cc b/ecs/src/model/CreateElasticityAssuranceRequest.cc index e8fea1ee2..a41172913 100644 --- a/ecs/src/model/CreateElasticityAssuranceRequest.cc +++ b/ecs/src/model/CreateElasticityAssuranceRequest.cc @@ -1,302 +1,246 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::CreateElasticityAssuranceRequest; - -CreateElasticityAssuranceRequest::CreateElasticityAssuranceRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateElasticityAssurance") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateElasticityAssuranceRequest::~CreateElasticityAssuranceRequest() -{} - -long CreateElasticityAssuranceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::CreateElasticityAssuranceRequest; + +CreateElasticityAssuranceRequest::CreateElasticityAssuranceRequest() + : RpcServiceRequest("ecs", "2014-05-26", "CreateElasticityAssurance") { + setMethod(HttpRequest::Method::Post); } -void CreateElasticityAssuranceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateElasticityAssuranceRequest::~CreateElasticityAssuranceRequest() {} + +long CreateElasticityAssuranceRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateElasticityAssuranceRequest::getClientToken()const -{ - return clientToken_; +void CreateElasticityAssuranceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateElasticityAssuranceRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateElasticityAssuranceRequest::getClientToken() const { + return clientToken_; } -std::string CreateElasticityAssuranceRequest::getDescription()const -{ - return description_; +void CreateElasticityAssuranceRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateElasticityAssuranceRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateElasticityAssuranceRequest::getDescription() const { + return description_; } -std::string CreateElasticityAssuranceRequest::getStartTime()const -{ - return startTime_; +void CreateElasticityAssuranceRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateElasticityAssuranceRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string CreateElasticityAssuranceRequest::getStartTime() const { + return startTime_; } -std::string CreateElasticityAssuranceRequest::getPlatform()const -{ - return platform_; +void CreateElasticityAssuranceRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void CreateElasticityAssuranceRequest::setPlatform(const std::string& platform) -{ - platform_ = platform; - setParameter("Platform", platform); +std::string CreateElasticityAssuranceRequest::getPlatform() const { + return platform_; } -std::string CreateElasticityAssuranceRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void CreateElasticityAssuranceRequest::setPlatform(const std::string &platform) { + platform_ = platform; + setParameter(std::string("Platform"), platform); } -void CreateElasticityAssuranceRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string CreateElasticityAssuranceRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string CreateElasticityAssuranceRequest::getPrivatePoolOptionsMatchCriteria()const -{ - return privatePoolOptionsMatchCriteria_; +void CreateElasticityAssuranceRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void CreateElasticityAssuranceRequest::setPrivatePoolOptionsMatchCriteria(const std::string& privatePoolOptionsMatchCriteria) -{ - privatePoolOptionsMatchCriteria_ = privatePoolOptionsMatchCriteria; - setParameter("PrivatePoolOptionsMatchCriteria", privatePoolOptionsMatchCriteria); +std::string CreateElasticityAssuranceRequest::getPrivatePoolOptionsMatchCriteria() const { + return privatePoolOptionsMatchCriteria_; } -std::string CreateElasticityAssuranceRequest::getRegionId()const -{ - return regionId_; +void CreateElasticityAssuranceRequest::setPrivatePoolOptionsMatchCriteria(const std::string &privatePoolOptionsMatchCriteria) { + privatePoolOptionsMatchCriteria_ = privatePoolOptionsMatchCriteria; + setParameter(std::string("PrivatePoolOptions.MatchCriteria"), privatePoolOptionsMatchCriteria); } -void CreateElasticityAssuranceRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateElasticityAssuranceRequest::getRegionId() const { + return regionId_; } -std::vector CreateElasticityAssuranceRequest::getInstanceType()const -{ - return instanceType_; +void CreateElasticityAssuranceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateElasticityAssuranceRequest::setInstanceType(const std::vector& instanceType) -{ - instanceType_ = instanceType; - for(int dep1 = 0; dep1!= instanceType.size(); dep1++) { - setParameter("InstanceType."+ std::to_string(dep1), instanceType.at(dep1)); - } +std::vector CreateElasticityAssuranceRequest::getInstanceType() const { + return instanceType_; } -std::vector CreateElasticityAssuranceRequest::getTag()const -{ - return tag_; +void CreateElasticityAssuranceRequest::setInstanceType(const std::vector &instanceType) { + instanceType_ = instanceType; } -void CreateElasticityAssuranceRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Key", tagObj.key); - setParameter(tagObjStr + ".Value", tagObj.value); - } +std::vector CreateElasticityAssuranceRequest::getTag() const { + return tag_; } -std::string CreateElasticityAssuranceRequest::getInstanceChargeType()const -{ - return instanceChargeType_; +void CreateElasticityAssuranceRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } } -void CreateElasticityAssuranceRequest::setInstanceChargeType(const std::string& instanceChargeType) -{ - instanceChargeType_ = instanceChargeType; - setParameter("InstanceChargeType", instanceChargeType); +std::string CreateElasticityAssuranceRequest::getInstanceChargeType() const { + return instanceChargeType_; } -int CreateElasticityAssuranceRequest::getPeriod()const -{ - return period_; +void CreateElasticityAssuranceRequest::setInstanceChargeType(const std::string &instanceChargeType) { + instanceChargeType_ = instanceChargeType; + setParameter(std::string("InstanceChargeType"), instanceChargeType); } -void CreateElasticityAssuranceRequest::setPeriod(int period) -{ - period_ = period; - setParameter("Period", std::to_string(period)); +int CreateElasticityAssuranceRequest::getPeriod() const { + return period_; } -std::string CreateElasticityAssuranceRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateElasticityAssuranceRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); } -void CreateElasticityAssuranceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateElasticityAssuranceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateElasticityAssuranceRequest::getPrivatePoolOptionsName()const -{ - return privatePoolOptionsName_; +void CreateElasticityAssuranceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateElasticityAssuranceRequest::setPrivatePoolOptionsName(const std::string& privatePoolOptionsName) -{ - privatePoolOptionsName_ = privatePoolOptionsName; - setParameter("PrivatePoolOptionsName", privatePoolOptionsName); +std::string CreateElasticityAssuranceRequest::getPrivatePoolOptionsName() const { + return privatePoolOptionsName_; } -std::string CreateElasticityAssuranceRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateElasticityAssuranceRequest::setPrivatePoolOptionsName(const std::string &privatePoolOptionsName) { + privatePoolOptionsName_ = privatePoolOptionsName; + setParameter(std::string("PrivatePoolOptions.Name"), privatePoolOptionsName); } -void CreateElasticityAssuranceRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateElasticityAssuranceRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string CreateElasticityAssuranceRequest::getAssuranceTimes()const -{ - return assuranceTimes_; +void CreateElasticityAssuranceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateElasticityAssuranceRequest::setAssuranceTimes(const std::string& assuranceTimes) -{ - assuranceTimes_ = assuranceTimes; - setParameter("AssuranceTimes", assuranceTimes); +std::string CreateElasticityAssuranceRequest::getAssuranceTimes() const { + return assuranceTimes_; } -long CreateElasticityAssuranceRequest::getOwnerId()const -{ - return ownerId_; +void CreateElasticityAssuranceRequest::setAssuranceTimes(const std::string &assuranceTimes) { + assuranceTimes_ = assuranceTimes; + setParameter(std::string("AssuranceTimes"), assuranceTimes); } -void CreateElasticityAssuranceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateElasticityAssuranceRequest::getOwnerId() const { + return ownerId_; } -std::string CreateElasticityAssuranceRequest::getResourceType()const -{ - return resourceType_; +void CreateElasticityAssuranceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateElasticityAssuranceRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +std::string CreateElasticityAssuranceRequest::getResourceType() const { + return resourceType_; } -int CreateElasticityAssuranceRequest::getInstanceCpuCoreCount()const -{ - return instanceCpuCoreCount_; +void CreateElasticityAssuranceRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); } -void CreateElasticityAssuranceRequest::setInstanceCpuCoreCount(int instanceCpuCoreCount) -{ - instanceCpuCoreCount_ = instanceCpuCoreCount; - setParameter("InstanceCpuCoreCount", std::to_string(instanceCpuCoreCount)); +int CreateElasticityAssuranceRequest::getInstanceCpuCoreCount() const { + return instanceCpuCoreCount_; } -std::string CreateElasticityAssuranceRequest::getPeriodUnit()const -{ - return periodUnit_; +void CreateElasticityAssuranceRequest::setInstanceCpuCoreCount(int instanceCpuCoreCount) { + instanceCpuCoreCount_ = instanceCpuCoreCount; + setParameter(std::string("InstanceCpuCoreCount"), std::to_string(instanceCpuCoreCount)); } -void CreateElasticityAssuranceRequest::setPeriodUnit(const std::string& periodUnit) -{ - periodUnit_ = periodUnit; - setParameter("PeriodUnit", periodUnit); +std::string CreateElasticityAssuranceRequest::getPeriodUnit() const { + return periodUnit_; } -std::vector CreateElasticityAssuranceRequest::getZoneId()const -{ - return zoneId_; +void CreateElasticityAssuranceRequest::setPeriodUnit(const std::string &periodUnit) { + periodUnit_ = periodUnit; + setParameter(std::string("PeriodUnit"), periodUnit); } -void CreateElasticityAssuranceRequest::setZoneId(const std::vector& zoneId) -{ - zoneId_ = zoneId; - for(int dep1 = 0; dep1!= zoneId.size(); dep1++) { - setParameter("ZoneId."+ std::to_string(dep1), zoneId.at(dep1)); - } +std::vector CreateElasticityAssuranceRequest::getZoneId() const { + return zoneId_; } -std::string CreateElasticityAssuranceRequest::getChargeType()const -{ - return chargeType_; +void CreateElasticityAssuranceRequest::setZoneId(const std::vector &zoneId) { + zoneId_ = zoneId; } -void CreateElasticityAssuranceRequest::setChargeType(const std::string& chargeType) -{ - chargeType_ = chargeType; - setParameter("ChargeType", chargeType); +std::string CreateElasticityAssuranceRequest::getChargeType() const { + return chargeType_; } -std::string CreateElasticityAssuranceRequest::getPackageType()const -{ - return packageType_; +void CreateElasticityAssuranceRequest::setChargeType(const std::string &chargeType) { + chargeType_ = chargeType; + setParameter(std::string("ChargeType"), chargeType); } -void CreateElasticityAssuranceRequest::setPackageType(const std::string& packageType) -{ - packageType_ = packageType; - setParameter("PackageType", packageType); +std::string CreateElasticityAssuranceRequest::getPackageType() const { + return packageType_; } -int CreateElasticityAssuranceRequest::getInstanceAmount()const -{ - return instanceAmount_; +void CreateElasticityAssuranceRequest::setPackageType(const std::string &packageType) { + packageType_ = packageType; + setParameter(std::string("PackageType"), packageType); } -void CreateElasticityAssuranceRequest::setInstanceAmount(int instanceAmount) -{ - instanceAmount_ = instanceAmount; - setParameter("InstanceAmount", std::to_string(instanceAmount)); +int CreateElasticityAssuranceRequest::getInstanceAmount() const { + return instanceAmount_; +} + +void CreateElasticityAssuranceRequest::setInstanceAmount(int instanceAmount) { + instanceAmount_ = instanceAmount; + setParameter(std::string("InstanceAmount"), std::to_string(instanceAmount)); } diff --git a/ecs/src/model/CreateForwardEntryRequest.cc b/ecs/src/model/CreateForwardEntryRequest.cc index f6fe8aa8d..945bb2353 100644 --- a/ecs/src/model/CreateForwardEntryRequest.cc +++ b/ecs/src/model/CreateForwardEntryRequest.cc @@ -1,150 +1,126 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::CreateForwardEntryRequest; - -CreateForwardEntryRequest::CreateForwardEntryRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateForwardEntry") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateForwardEntryRequest::~CreateForwardEntryRequest() -{} - -long CreateForwardEntryRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::CreateForwardEntryRequest; + +CreateForwardEntryRequest::CreateForwardEntryRequest() + : RpcServiceRequest("ecs", "2014-05-26", "CreateForwardEntry") { + setMethod(HttpRequest::Method::Post); } -void CreateForwardEntryRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateForwardEntryRequest::~CreateForwardEntryRequest() {} + +long CreateForwardEntryRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateForwardEntryRequest::getForwardTableId()const -{ - return forwardTableId_; +void CreateForwardEntryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateForwardEntryRequest::setForwardTableId(const std::string& forwardTableId) -{ - forwardTableId_ = forwardTableId; - setParameter("ForwardTableId", forwardTableId); +std::string CreateForwardEntryRequest::getForwardTableId() const { + return forwardTableId_; } -std::string CreateForwardEntryRequest::getInternalIp()const -{ - return internalIp_; +void CreateForwardEntryRequest::setForwardTableId(const std::string &forwardTableId) { + forwardTableId_ = forwardTableId; + setParameter(std::string("ForwardTableId"), forwardTableId); } -void CreateForwardEntryRequest::setInternalIp(const std::string& internalIp) -{ - internalIp_ = internalIp; - setParameter("InternalIp", internalIp); +std::string CreateForwardEntryRequest::getInternalIp() const { + return internalIp_; } -std::string CreateForwardEntryRequest::getRegionId()const -{ - return regionId_; +void CreateForwardEntryRequest::setInternalIp(const std::string &internalIp) { + internalIp_ = internalIp; + setParameter(std::string("InternalIp"), internalIp); } -void CreateForwardEntryRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateForwardEntryRequest::getRegionId() const { + return regionId_; } -std::string CreateForwardEntryRequest::getExternalIp()const -{ - return externalIp_; +void CreateForwardEntryRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateForwardEntryRequest::setExternalIp(const std::string& externalIp) -{ - externalIp_ = externalIp; - setParameter("ExternalIp", externalIp); +std::string CreateForwardEntryRequest::getExternalIp() const { + return externalIp_; } -std::string CreateForwardEntryRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateForwardEntryRequest::setExternalIp(const std::string &externalIp) { + externalIp_ = externalIp; + setParameter(std::string("ExternalIp"), externalIp); } -void CreateForwardEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateForwardEntryRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateForwardEntryRequest::getIpProtocol()const -{ - return ipProtocol_; +void CreateForwardEntryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateForwardEntryRequest::setIpProtocol(const std::string& ipProtocol) -{ - ipProtocol_ = ipProtocol; - setParameter("IpProtocol", ipProtocol); +std::string CreateForwardEntryRequest::getIpProtocol() const { + return ipProtocol_; } -std::string CreateForwardEntryRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateForwardEntryRequest::setIpProtocol(const std::string &ipProtocol) { + ipProtocol_ = ipProtocol; + setParameter(std::string("IpProtocol"), ipProtocol); } -void CreateForwardEntryRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateForwardEntryRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateForwardEntryRequest::getOwnerId()const -{ - return ownerId_; +void CreateForwardEntryRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateForwardEntryRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateForwardEntryRequest::getOwnerId() const { + return ownerId_; } -std::string CreateForwardEntryRequest::getInternalPort()const -{ - return internalPort_; +void CreateForwardEntryRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateForwardEntryRequest::setInternalPort(const std::string& internalPort) -{ - internalPort_ = internalPort; - setParameter("InternalPort", internalPort); +std::string CreateForwardEntryRequest::getInternalPort() const { + return internalPort_; } -std::string CreateForwardEntryRequest::getExternalPort()const -{ - return externalPort_; +void CreateForwardEntryRequest::setInternalPort(const std::string &internalPort) { + internalPort_ = internalPort; + setParameter(std::string("InternalPort"), internalPort); } -void CreateForwardEntryRequest::setExternalPort(const std::string& externalPort) -{ - externalPort_ = externalPort; - setParameter("ExternalPort", externalPort); +std::string CreateForwardEntryRequest::getExternalPort() const { + return externalPort_; +} + +void CreateForwardEntryRequest::setExternalPort(const std::string &externalPort) { + externalPort_ = externalPort; + setParameter(std::string("ExternalPort"), externalPort); } diff --git a/ecs/src/model/CreateHaVipRequest.cc b/ecs/src/model/CreateHaVipRequest.cc index 3a1776c28..0b8b0037d 100644 --- a/ecs/src/model/CreateHaVipRequest.cc +++ b/ecs/src/model/CreateHaVipRequest.cc @@ -1,128 +1,108 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::CreateHaVipRequest; - -CreateHaVipRequest::CreateHaVipRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateHaVip") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateHaVipRequest::~CreateHaVipRequest() -{} - -std::string CreateHaVipRequest::getIpAddress()const -{ - return ipAddress_; + */ + +#include + +using AlibabaCloud::Ecs::Model::CreateHaVipRequest; + +CreateHaVipRequest::CreateHaVipRequest() + : RpcServiceRequest("ecs", "2014-05-26", "CreateHaVip") { + setMethod(HttpRequest::Method::Post); } -void CreateHaVipRequest::setIpAddress(const std::string& ipAddress) -{ - ipAddress_ = ipAddress; - setParameter("IpAddress", ipAddress); +CreateHaVipRequest::~CreateHaVipRequest() {} + +std::string CreateHaVipRequest::getIpAddress() const { + return ipAddress_; } -long CreateHaVipRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void CreateHaVipRequest::setIpAddress(const std::string &ipAddress) { + ipAddress_ = ipAddress; + setParameter(std::string("IpAddress"), ipAddress); } -void CreateHaVipRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long CreateHaVipRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateHaVipRequest::getClientToken()const -{ - return clientToken_; +void CreateHaVipRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateHaVipRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateHaVipRequest::getClientToken() const { + return clientToken_; } -std::string CreateHaVipRequest::getDescription()const -{ - return description_; +void CreateHaVipRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateHaVipRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateHaVipRequest::getDescription() const { + return description_; } -std::string CreateHaVipRequest::getRegionId()const -{ - return regionId_; +void CreateHaVipRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateHaVipRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateHaVipRequest::getRegionId() const { + return regionId_; } -std::string CreateHaVipRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateHaVipRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateHaVipRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateHaVipRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateHaVipRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateHaVipRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateHaVipRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateHaVipRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateHaVipRequest::getOwnerId()const -{ - return ownerId_; +void CreateHaVipRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateHaVipRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateHaVipRequest::getOwnerId() const { + return ownerId_; } -std::string CreateHaVipRequest::getVSwitchId()const -{ - return vSwitchId_; +void CreateHaVipRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateHaVipRequest::setVSwitchId(const std::string& vSwitchId) -{ - vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); +std::string CreateHaVipRequest::getVSwitchId() const { + return vSwitchId_; +} + +void CreateHaVipRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); } diff --git a/ecs/src/model/CreateHpcClusterRequest.cc b/ecs/src/model/CreateHpcClusterRequest.cc index d8995fbe2..3c323e30a 100644 --- a/ecs/src/model/CreateHpcClusterRequest.cc +++ b/ecs/src/model/CreateHpcClusterRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::CreateHpcClusterRequest; - -CreateHpcClusterRequest::CreateHpcClusterRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateHpcCluster") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateHpcClusterRequest::~CreateHpcClusterRequest() -{} - -long CreateHpcClusterRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::CreateHpcClusterRequest; + +CreateHpcClusterRequest::CreateHpcClusterRequest() + : RpcServiceRequest("ecs", "2014-05-26", "CreateHpcCluster") { + setMethod(HttpRequest::Method::Post); } -void CreateHpcClusterRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateHpcClusterRequest::~CreateHpcClusterRequest() {} + +long CreateHpcClusterRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateHpcClusterRequest::getClientToken()const -{ - return clientToken_; +void CreateHpcClusterRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateHpcClusterRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateHpcClusterRequest::getClientToken() const { + return clientToken_; } -std::string CreateHpcClusterRequest::getDescription()const -{ - return description_; +void CreateHpcClusterRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateHpcClusterRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateHpcClusterRequest::getDescription() const { + return description_; } -std::string CreateHpcClusterRequest::getRegionId()const -{ - return regionId_; +void CreateHpcClusterRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateHpcClusterRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateHpcClusterRequest::getRegionId() const { + return regionId_; } -std::string CreateHpcClusterRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateHpcClusterRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateHpcClusterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateHpcClusterRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateHpcClusterRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateHpcClusterRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateHpcClusterRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateHpcClusterRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateHpcClusterRequest::getOwnerId()const -{ - return ownerId_; +void CreateHpcClusterRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateHpcClusterRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateHpcClusterRequest::getOwnerId() const { + return ownerId_; } -std::string CreateHpcClusterRequest::getName()const -{ - return name_; +void CreateHpcClusterRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateHpcClusterRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string CreateHpcClusterRequest::getName() const { + return name_; +} + +void CreateHpcClusterRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/ecs/src/model/CreateImageComponentRequest.cc b/ecs/src/model/CreateImageComponentRequest.cc index 532d468d6..6886c4902 100644 --- a/ecs/src/model/CreateImageComponentRequest.cc +++ b/ecs/src/model/CreateImageComponentRequest.cc @@ -1,177 +1,149 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::CreateImageComponentRequest; - -CreateImageComponentRequest::CreateImageComponentRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateImageComponent") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateImageComponentRequest::~CreateImageComponentRequest() -{} - -long CreateImageComponentRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::CreateImageComponentRequest; + +CreateImageComponentRequest::CreateImageComponentRequest() + : RpcServiceRequest("ecs", "2014-05-26", "CreateImageComponent") { + setMethod(HttpRequest::Method::Post); } -void CreateImageComponentRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateImageComponentRequest::~CreateImageComponentRequest() {} + +long CreateImageComponentRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateImageComponentRequest::getClientToken()const -{ - return clientToken_; +void CreateImageComponentRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateImageComponentRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateImageComponentRequest::getClientToken() const { + return clientToken_; } -std::string CreateImageComponentRequest::getDescription()const -{ - return description_; +void CreateImageComponentRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateImageComponentRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateImageComponentRequest::getDescription() const { + return description_; } -std::string CreateImageComponentRequest::getSystemType()const -{ - return systemType_; +void CreateImageComponentRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateImageComponentRequest::setSystemType(const std::string& systemType) -{ - systemType_ = systemType; - setParameter("SystemType", systemType); +std::string CreateImageComponentRequest::getSystemType() const { + return systemType_; } -std::string CreateImageComponentRequest::getContent()const -{ - return content_; +void CreateImageComponentRequest::setSystemType(const std::string &systemType) { + systemType_ = systemType; + setParameter(std::string("SystemType"), systemType); } -void CreateImageComponentRequest::setContent(const std::string& content) -{ - content_ = content; - setParameter("Content", content); +std::string CreateImageComponentRequest::getContent() const { + return content_; } -std::string CreateImageComponentRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void CreateImageComponentRequest::setContent(const std::string &content) { + content_ = content; + setParameter(std::string("Content"), content); } -void CreateImageComponentRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string CreateImageComponentRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string CreateImageComponentRequest::getRegionId()const -{ - return regionId_; +void CreateImageComponentRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void CreateImageComponentRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateImageComponentRequest::getRegionId() const { + return regionId_; } -std::vector CreateImageComponentRequest::getTag()const -{ - return tag_; +void CreateImageComponentRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateImageComponentRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Key", tagObj.key); - setParameter(tagObjStr + ".Value", tagObj.value); - } +std::vector CreateImageComponentRequest::getTag() const { + return tag_; } -std::string CreateImageComponentRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateImageComponentRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } } -void CreateImageComponentRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateImageComponentRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateImageComponentRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateImageComponentRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateImageComponentRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateImageComponentRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateImageComponentRequest::getOwnerId()const -{ - return ownerId_; +void CreateImageComponentRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateImageComponentRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateImageComponentRequest::getOwnerId() const { + return ownerId_; } -std::string CreateImageComponentRequest::getComponentType()const -{ - return componentType_; +void CreateImageComponentRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateImageComponentRequest::setComponentType(const std::string& componentType) -{ - componentType_ = componentType; - setParameter("ComponentType", componentType); +std::string CreateImageComponentRequest::getComponentType() const { + return componentType_; } -std::string CreateImageComponentRequest::getName()const -{ - return name_; +void CreateImageComponentRequest::setComponentType(const std::string &componentType) { + componentType_ = componentType; + setParameter(std::string("ComponentType"), componentType); } -void CreateImageComponentRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string CreateImageComponentRequest::getName() const { + return name_; +} + +void CreateImageComponentRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/ecs/src/model/CreateImagePipelineRequest.cc b/ecs/src/model/CreateImagePipelineRequest.cc index 8e1ca4a94..fe833fbcf 100644 --- a/ecs/src/model/CreateImagePipelineRequest.cc +++ b/ecs/src/model/CreateImagePipelineRequest.cc @@ -1,269 +1,219 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::CreateImagePipelineRequest; - -CreateImagePipelineRequest::CreateImagePipelineRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateImagePipeline") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateImagePipelineRequest::~CreateImagePipelineRequest() -{} - -std::string CreateImagePipelineRequest::getBaseImageType()const -{ - return baseImageType_; + */ + +#include + +using AlibabaCloud::Ecs::Model::CreateImagePipelineRequest; + +CreateImagePipelineRequest::CreateImagePipelineRequest() + : RpcServiceRequest("ecs", "2014-05-26", "CreateImagePipeline") { + setMethod(HttpRequest::Method::Post); } -void CreateImagePipelineRequest::setBaseImageType(const std::string& baseImageType) -{ - baseImageType_ = baseImageType; - setParameter("BaseImageType", baseImageType); +CreateImagePipelineRequest::~CreateImagePipelineRequest() {} + +std::string CreateImagePipelineRequest::getBaseImageType() const { + return baseImageType_; } -long CreateImagePipelineRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void CreateImagePipelineRequest::setBaseImageType(const std::string &baseImageType) { + baseImageType_ = baseImageType; + setParameter(std::string("BaseImageType"), baseImageType); } -void CreateImagePipelineRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long CreateImagePipelineRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateImagePipelineRequest::getClientToken()const -{ - return clientToken_; +void CreateImagePipelineRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateImagePipelineRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateImagePipelineRequest::getClientToken() const { + return clientToken_; } -std::vector CreateImagePipelineRequest::getToRegionId()const -{ - return toRegionId_; +void CreateImagePipelineRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateImagePipelineRequest::setToRegionId(const std::vector& toRegionId) -{ - toRegionId_ = toRegionId; - for(int dep1 = 0; dep1!= toRegionId.size(); dep1++) { - setParameter("ToRegionId."+ std::to_string(dep1), toRegionId.at(dep1)); - } +std::vector CreateImagePipelineRequest::getToRegionId() const { + return toRegionId_; } -int CreateImagePipelineRequest::getInternetMaxBandwidthOut()const -{ - return internetMaxBandwidthOut_; +void CreateImagePipelineRequest::setToRegionId(const std::vector &toRegionId) { + toRegionId_ = toRegionId; } -void CreateImagePipelineRequest::setInternetMaxBandwidthOut(int internetMaxBandwidthOut) -{ - internetMaxBandwidthOut_ = internetMaxBandwidthOut; - setParameter("InternetMaxBandwidthOut", std::to_string(internetMaxBandwidthOut)); +int CreateImagePipelineRequest::getInternetMaxBandwidthOut() const { + return internetMaxBandwidthOut_; } -std::string CreateImagePipelineRequest::getDescription()const -{ - return description_; +void CreateImagePipelineRequest::setInternetMaxBandwidthOut(int internetMaxBandwidthOut) { + internetMaxBandwidthOut_ = internetMaxBandwidthOut; + setParameter(std::string("InternetMaxBandwidthOut"), std::to_string(internetMaxBandwidthOut)); } -void CreateImagePipelineRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateImagePipelineRequest::getDescription() const { + return description_; } -std::string CreateImagePipelineRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void CreateImagePipelineRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateImagePipelineRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string CreateImagePipelineRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string CreateImagePipelineRequest::getRegionId()const -{ - return regionId_; +void CreateImagePipelineRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void CreateImagePipelineRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateImagePipelineRequest::getRegionId() const { + return regionId_; } -std::string CreateImagePipelineRequest::getImageName()const -{ - return imageName_; +void CreateImagePipelineRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateImagePipelineRequest::setImageName(const std::string& imageName) -{ - imageName_ = imageName; - setParameter("ImageName", imageName); +std::string CreateImagePipelineRequest::getImageName() const { + return imageName_; } -int CreateImagePipelineRequest::getSystemDiskSize()const -{ - return systemDiskSize_; +void CreateImagePipelineRequest::setImageName(const std::string &imageName) { + imageName_ = imageName; + setParameter(std::string("ImageName"), imageName); } -void CreateImagePipelineRequest::setSystemDiskSize(int systemDiskSize) -{ - systemDiskSize_ = systemDiskSize; - setParameter("SystemDiskSize", std::to_string(systemDiskSize)); +int CreateImagePipelineRequest::getSystemDiskSize() const { + return systemDiskSize_; } -std::string CreateImagePipelineRequest::getInstanceType()const -{ - return instanceType_; +void CreateImagePipelineRequest::setSystemDiskSize(int systemDiskSize) { + systemDiskSize_ = systemDiskSize; + setParameter(std::string("SystemDiskSize"), std::to_string(systemDiskSize)); } -void CreateImagePipelineRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +std::string CreateImagePipelineRequest::getInstanceType() const { + return instanceType_; } -std::vector CreateImagePipelineRequest::getTag()const -{ - return tag_; +void CreateImagePipelineRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } -void CreateImagePipelineRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Key", tagObj.key); - setParameter(tagObjStr + ".Value", tagObj.value); - } +std::vector CreateImagePipelineRequest::getTag() const { + return tag_; } -std::string CreateImagePipelineRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateImagePipelineRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } } -void CreateImagePipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateImagePipelineRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateImagePipelineRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateImagePipelineRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateImagePipelineRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateImagePipelineRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateImagePipelineRequest::getOwnerId()const -{ - return ownerId_; +void CreateImagePipelineRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateImagePipelineRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateImagePipelineRequest::getOwnerId() const { + return ownerId_; } -std::string CreateImagePipelineRequest::getBaseImage()const -{ - return baseImage_; +void CreateImagePipelineRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateImagePipelineRequest::setBaseImage(const std::string& baseImage) -{ - baseImage_ = baseImage; - setParameter("BaseImage", baseImage); +std::string CreateImagePipelineRequest::getBaseImage() const { + return baseImage_; } -std::string CreateImagePipelineRequest::getVSwitchId()const -{ - return vSwitchId_; +void CreateImagePipelineRequest::setBaseImage(const std::string &baseImage) { + baseImage_ = baseImage; + setParameter(std::string("BaseImage"), baseImage); } -void CreateImagePipelineRequest::setVSwitchId(const std::string& vSwitchId) -{ - vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); +std::string CreateImagePipelineRequest::getVSwitchId() const { + return vSwitchId_; } -std::vector CreateImagePipelineRequest::getAddAccount()const -{ - return addAccount_; +void CreateImagePipelineRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); } -void CreateImagePipelineRequest::setAddAccount(const std::vector& addAccount) -{ - addAccount_ = addAccount; - for(int dep1 = 0; dep1!= addAccount.size(); dep1++) { - setParameter("AddAccount."+ std::to_string(dep1), std::to_string(addAccount.at(dep1))); - } +std::vector CreateImagePipelineRequest::getAddAccount() const { + return addAccount_; } -bool CreateImagePipelineRequest::getDeleteInstanceOnFailure()const -{ - return deleteInstanceOnFailure_; +void CreateImagePipelineRequest::setAddAccount(const std::vector &addAccount) { + addAccount_ = addAccount; } -void CreateImagePipelineRequest::setDeleteInstanceOnFailure(bool deleteInstanceOnFailure) -{ - deleteInstanceOnFailure_ = deleteInstanceOnFailure; - setParameter("DeleteInstanceOnFailure", deleteInstanceOnFailure ? "true" : "false"); +bool CreateImagePipelineRequest::getDeleteInstanceOnFailure() const { + return deleteInstanceOnFailure_; } -std::string CreateImagePipelineRequest::getName()const -{ - return name_; +void CreateImagePipelineRequest::setDeleteInstanceOnFailure(bool deleteInstanceOnFailure) { + deleteInstanceOnFailure_ = deleteInstanceOnFailure; + setParameter(std::string("DeleteInstanceOnFailure"), deleteInstanceOnFailure ? "true" : "false"); } -void CreateImagePipelineRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string CreateImagePipelineRequest::getName() const { + return name_; } -std::string CreateImagePipelineRequest::getBuildContent()const -{ - return buildContent_; +void CreateImagePipelineRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void CreateImagePipelineRequest::setBuildContent(const std::string& buildContent) -{ - buildContent_ = buildContent; - setParameter("BuildContent", buildContent); +std::string CreateImagePipelineRequest::getBuildContent() const { + return buildContent_; +} + +void CreateImagePipelineRequest::setBuildContent(const std::string &buildContent) { + buildContent_ = buildContent; + setParameter(std::string("BuildContent"), buildContent); } diff --git a/ecs/src/model/CreateImageRequest.cc b/ecs/src/model/CreateImageRequest.cc index d9b87c985..496a0a90e 100644 --- a/ecs/src/model/CreateImageRequest.cc +++ b/ecs/src/model/CreateImageRequest.cc @@ -1,228 +1,192 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::CreateImageRequest; - -CreateImageRequest::CreateImageRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateImage") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateImageRequest::~CreateImageRequest() -{} - -std::vector CreateImageRequest::getDiskDeviceMapping()const -{ - return diskDeviceMapping_; + */ + +#include + +using AlibabaCloud::Ecs::Model::CreateImageRequest; + +CreateImageRequest::CreateImageRequest() + : RpcServiceRequest("ecs", "2014-05-26", "CreateImage") { + setMethod(HttpRequest::Method::Post); } -void CreateImageRequest::setDiskDeviceMapping(const std::vector& diskDeviceMapping) -{ - diskDeviceMapping_ = diskDeviceMapping; - for(int dep1 = 0; dep1!= diskDeviceMapping.size(); dep1++) { - auto diskDeviceMappingObj = diskDeviceMapping.at(dep1); - std::string diskDeviceMappingObjStr = "DiskDeviceMapping." + std::to_string(dep1 + 1); - setParameter(diskDeviceMappingObjStr + ".SnapshotId", diskDeviceMappingObj.snapshotId); - setParameter(diskDeviceMappingObjStr + ".Size", std::to_string(diskDeviceMappingObj.size)); - setParameter(diskDeviceMappingObjStr + ".DiskType", diskDeviceMappingObj.diskType); - setParameter(diskDeviceMappingObjStr + ".Device", diskDeviceMappingObj.device); - } +CreateImageRequest::~CreateImageRequest() {} + +std::vector CreateImageRequest::getDiskDeviceMapping() const { + return diskDeviceMapping_; } -long CreateImageRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void CreateImageRequest::setDiskDeviceMapping(const std::vector &diskDeviceMapping) { + diskDeviceMapping_ = diskDeviceMapping; + for(int dep1 = 0; dep1 != diskDeviceMapping.size(); dep1++) { + auto diskDeviceMappingObj = diskDeviceMapping.at(dep1); + std::string diskDeviceMappingObjStr = std::string("DiskDeviceMapping") + "." + std::to_string(dep1 + 1); + setParameter(diskDeviceMappingObjStr + ".SnapshotId", diskDeviceMappingObj.snapshotId); + setParameter(diskDeviceMappingObjStr + ".Size", std::to_string(diskDeviceMappingObj.size)); + setParameter(diskDeviceMappingObjStr + ".DiskType", diskDeviceMappingObj.diskType); + setParameter(diskDeviceMappingObjStr + ".Device", diskDeviceMappingObj.device); + } } -void CreateImageRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long CreateImageRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateImageRequest::getSnapshotId()const -{ - return snapshotId_; +void CreateImageRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateImageRequest::setSnapshotId(const std::string& snapshotId) -{ - snapshotId_ = snapshotId; - setParameter("SnapshotId", snapshotId); +std::string CreateImageRequest::getSnapshotId() const { + return snapshotId_; } -std::string CreateImageRequest::getClientToken()const -{ - return clientToken_; +void CreateImageRequest::setSnapshotId(const std::string &snapshotId) { + snapshotId_ = snapshotId; + setParameter(std::string("SnapshotId"), snapshotId); } -void CreateImageRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateImageRequest::getClientToken() const { + return clientToken_; } -std::string CreateImageRequest::getDescription()const -{ - return description_; +void CreateImageRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateImageRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateImageRequest::getDescription() const { + return description_; } -std::string CreateImageRequest::getPlatform()const -{ - return platform_; +void CreateImageRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateImageRequest::setPlatform(const std::string& platform) -{ - platform_ = platform; - setParameter("Platform", platform); +std::string CreateImageRequest::getPlatform() const { + return platform_; } -std::string CreateImageRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void CreateImageRequest::setPlatform(const std::string &platform) { + platform_ = platform; + setParameter(std::string("Platform"), platform); } -void CreateImageRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string CreateImageRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string CreateImageRequest::getRegionId()const -{ - return regionId_; +void CreateImageRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void CreateImageRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateImageRequest::getRegionId() const { + return regionId_; } -std::string CreateImageRequest::getImageName()const -{ - return imageName_; +void CreateImageRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateImageRequest::setImageName(const std::string& imageName) -{ - imageName_ = imageName; - setParameter("ImageName", imageName); +std::string CreateImageRequest::getImageName() const { + return imageName_; } -std::vector CreateImageRequest::getTag()const -{ - return tag_; +void CreateImageRequest::setImageName(const std::string &imageName) { + imageName_ = imageName; + setParameter(std::string("ImageName"), imageName); } -void CreateImageRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Value", tagObj.value); - setParameter(tagObjStr + ".Key", tagObj.key); - } +std::vector CreateImageRequest::getTag() const { + return tag_; } -std::string CreateImageRequest::getArchitecture()const -{ - return architecture_; +void CreateImageRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } -void CreateImageRequest::setArchitecture(const std::string& architecture) -{ - architecture_ = architecture; - setParameter("Architecture", architecture); +std::string CreateImageRequest::getArchitecture() const { + return architecture_; } -std::string CreateImageRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateImageRequest::setArchitecture(const std::string &architecture) { + architecture_ = architecture; + setParameter(std::string("Architecture"), architecture); } -void CreateImageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateImageRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateImageRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateImageRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateImageRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateImageRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateImageRequest::getOwnerId()const -{ - return ownerId_; +void CreateImageRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateImageRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateImageRequest::getOwnerId() const { + return ownerId_; } -std::string CreateImageRequest::getInstanceId()const -{ - return instanceId_; +void CreateImageRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateImageRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string CreateImageRequest::getInstanceId() const { + return instanceId_; } -std::string CreateImageRequest::getImageFamily()const -{ - return imageFamily_; +void CreateImageRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void CreateImageRequest::setImageFamily(const std::string& imageFamily) -{ - imageFamily_ = imageFamily; - setParameter("ImageFamily", imageFamily); +std::string CreateImageRequest::getImageFamily() const { + return imageFamily_; } -std::string CreateImageRequest::getImageVersion()const -{ - return imageVersion_; +void CreateImageRequest::setImageFamily(const std::string &imageFamily) { + imageFamily_ = imageFamily; + setParameter(std::string("ImageFamily"), imageFamily); } -void CreateImageRequest::setImageVersion(const std::string& imageVersion) -{ - imageVersion_ = imageVersion; - setParameter("ImageVersion", imageVersion); +std::string CreateImageRequest::getImageVersion() const { + return imageVersion_; +} + +void CreateImageRequest::setImageVersion(const std::string &imageVersion) { + imageVersion_ = imageVersion; + setParameter(std::string("ImageVersion"), imageVersion); } diff --git a/ecs/src/model/CreateInstanceRequest.cc b/ecs/src/model/CreateInstanceRequest.cc index 7347fee14..fc014396d 100644 --- a/ecs/src/model/CreateInstanceRequest.cc +++ b/ecs/src/model/CreateInstanceRequest.cc @@ -1,814 +1,674 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::CreateInstanceRequest; - -CreateInstanceRequest::CreateInstanceRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateInstance") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateInstanceRequest::~CreateInstanceRequest() -{} - -long CreateInstanceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::CreateInstanceRequest; + +CreateInstanceRequest::CreateInstanceRequest() + : RpcServiceRequest("ecs", "2014-05-26", "CreateInstance") { + setMethod(HttpRequest::Method::Post); +} + +CreateInstanceRequest::~CreateInstanceRequest() {} + +long CreateInstanceRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -void CreateInstanceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +void CreateInstanceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -std::string CreateInstanceRequest::getHpcClusterId()const -{ - return hpcClusterId_; +std::string CreateInstanceRequest::getHpcClusterId() const { + return hpcClusterId_; } -void CreateInstanceRequest::setHpcClusterId(const std::string& hpcClusterId) -{ - hpcClusterId_ = hpcClusterId; - setParameter("HpcClusterId", hpcClusterId); +void CreateInstanceRequest::setHpcClusterId(const std::string &hpcClusterId) { + hpcClusterId_ = hpcClusterId; + setParameter(std::string("HpcClusterId"), hpcClusterId); } -int CreateInstanceRequest::getHttpPutResponseHopLimit()const -{ - return httpPutResponseHopLimit_; +int CreateInstanceRequest::getHttpPutResponseHopLimit() const { + return httpPutResponseHopLimit_; } -void CreateInstanceRequest::setHttpPutResponseHopLimit(int httpPutResponseHopLimit) -{ - httpPutResponseHopLimit_ = httpPutResponseHopLimit; - setParameter("HttpPutResponseHopLimit", std::to_string(httpPutResponseHopLimit)); +void CreateInstanceRequest::setHttpPutResponseHopLimit(int httpPutResponseHopLimit) { + httpPutResponseHopLimit_ = httpPutResponseHopLimit; + setParameter(std::string("HttpPutResponseHopLimit"), std::to_string(httpPutResponseHopLimit)); } -std::string CreateInstanceRequest::getSecurityEnhancementStrategy()const -{ - return securityEnhancementStrategy_; +std::string CreateInstanceRequest::getSecurityEnhancementStrategy() const { + return securityEnhancementStrategy_; } -void CreateInstanceRequest::setSecurityEnhancementStrategy(const std::string& securityEnhancementStrategy) -{ - securityEnhancementStrategy_ = securityEnhancementStrategy; - setParameter("SecurityEnhancementStrategy", securityEnhancementStrategy); +void CreateInstanceRequest::setSecurityEnhancementStrategy(const std::string &securityEnhancementStrategy) { + securityEnhancementStrategy_ = securityEnhancementStrategy; + setParameter(std::string("SecurityEnhancementStrategy"), securityEnhancementStrategy); } -std::string CreateInstanceRequest::getKeyPairName()const -{ - return keyPairName_; +std::string CreateInstanceRequest::getKeyPairName() const { + return keyPairName_; } -void CreateInstanceRequest::setKeyPairName(const std::string& keyPairName) -{ - keyPairName_ = keyPairName; - setParameter("KeyPairName", keyPairName); +void CreateInstanceRequest::setKeyPairName(const std::string &keyPairName) { + keyPairName_ = keyPairName; + setParameter(std::string("KeyPairName"), keyPairName); } -float CreateInstanceRequest::getSpotPriceLimit()const -{ - return spotPriceLimit_; +float CreateInstanceRequest::getSpotPriceLimit() const { + return spotPriceLimit_; } -void CreateInstanceRequest::setSpotPriceLimit(float spotPriceLimit) -{ - spotPriceLimit_ = spotPriceLimit; - setParameter("SpotPriceLimit", std::to_string(spotPriceLimit)); +void CreateInstanceRequest::setSpotPriceLimit(float spotPriceLimit) { + spotPriceLimit_ = spotPriceLimit; + setParameter(std::string("SpotPriceLimit"), std::to_string(spotPriceLimit)); } -bool CreateInstanceRequest::getDeletionProtection()const -{ - return deletionProtection_; +bool CreateInstanceRequest::getDeletionProtection() const { + return deletionProtection_; } -void CreateInstanceRequest::setDeletionProtection(bool deletionProtection) -{ - deletionProtection_ = deletionProtection; - setParameter("DeletionProtection", deletionProtection ? "true" : "false"); +void CreateInstanceRequest::setDeletionProtection(bool deletionProtection) { + deletionProtection_ = deletionProtection; + setParameter(std::string("DeletionProtection"), deletionProtection ? "true" : "false"); } -std::string CreateInstanceRequest::getResourceGroupId()const -{ - return resourceGroupId_; +std::string CreateInstanceRequest::getResourceGroupId() const { + return resourceGroupId_; } -void CreateInstanceRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +void CreateInstanceRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -std::string CreateInstanceRequest::getPrivatePoolOptionsMatchCriteria()const -{ - return privatePoolOptionsMatchCriteria_; +std::string CreateInstanceRequest::getPrivatePoolOptionsMatchCriteria() const { + return privatePoolOptionsMatchCriteria_; } -void CreateInstanceRequest::setPrivatePoolOptionsMatchCriteria(const std::string& privatePoolOptionsMatchCriteria) -{ - privatePoolOptionsMatchCriteria_ = privatePoolOptionsMatchCriteria; - setParameter("PrivatePoolOptionsMatchCriteria", privatePoolOptionsMatchCriteria); +void CreateInstanceRequest::setPrivatePoolOptionsMatchCriteria(const std::string &privatePoolOptionsMatchCriteria) { + privatePoolOptionsMatchCriteria_ = privatePoolOptionsMatchCriteria; + setParameter(std::string("PrivatePoolOptions.MatchCriteria"), privatePoolOptionsMatchCriteria); } -std::string CreateInstanceRequest::getHostName()const -{ - return hostName_; +std::string CreateInstanceRequest::getHostName() const { + return hostName_; } -void CreateInstanceRequest::setHostName(const std::string& hostName) -{ - hostName_ = hostName; - setParameter("HostName", hostName); +void CreateInstanceRequest::setHostName(const std::string &hostName) { + hostName_ = hostName; + setParameter(std::string("HostName"), hostName); } -std::string CreateInstanceRequest::getPassword()const -{ - return password_; +std::string CreateInstanceRequest::getPassword() const { + return password_; } -void CreateInstanceRequest::setPassword(const std::string& password) -{ - password_ = password; - setParameter("Password", password); +void CreateInstanceRequest::setPassword(const std::string &password) { + password_ = password; + setParameter(std::string("Password"), password); } -Struct CreateInstanceRequest::getSystemDisk()const -{ - return systemDisk_; +CreateInstanceRequest::SystemDisk CreateInstanceRequest::getSystemDisk() const { + return systemDisk_; } -void CreateInstanceRequest::setSystemDisk(const Struct& systemDisk) -{ - systemDisk_ = systemDisk; - setParameter("SystemDisk", std::to_string(systemDisk)); +void CreateInstanceRequest::setSystemDisk(const CreateInstanceRequest::SystemDisk &systemDisk) { + systemDisk_ = systemDisk; + setParameter(std::string("SystemDisk") + ".StorageClusterId", systemDisk.storageClusterId); } -int CreateInstanceRequest::getDeploymentSetGroupNo()const -{ - return deploymentSetGroupNo_; +int CreateInstanceRequest::getDeploymentSetGroupNo() const { + return deploymentSetGroupNo_; } -void CreateInstanceRequest::setDeploymentSetGroupNo(int deploymentSetGroupNo) -{ - deploymentSetGroupNo_ = deploymentSetGroupNo; - setParameter("DeploymentSetGroupNo", std::to_string(deploymentSetGroupNo)); +void CreateInstanceRequest::setDeploymentSetGroupNo(int deploymentSetGroupNo) { + deploymentSetGroupNo_ = deploymentSetGroupNo; + setParameter(std::string("DeploymentSetGroupNo"), std::to_string(deploymentSetGroupNo)); } -int CreateInstanceRequest::getStorageSetPartitionNumber()const -{ - return storageSetPartitionNumber_; +int CreateInstanceRequest::getStorageSetPartitionNumber() const { + return storageSetPartitionNumber_; } -void CreateInstanceRequest::setStorageSetPartitionNumber(int storageSetPartitionNumber) -{ - storageSetPartitionNumber_ = storageSetPartitionNumber; - setParameter("StorageSetPartitionNumber", std::to_string(storageSetPartitionNumber)); +void CreateInstanceRequest::setStorageSetPartitionNumber(int storageSetPartitionNumber) { + storageSetPartitionNumber_ = storageSetPartitionNumber; + setParameter(std::string("StorageSetPartitionNumber"), std::to_string(storageSetPartitionNumber)); } -std::vector CreateInstanceRequest::getTag()const -{ - return tag_; +std::vector CreateInstanceRequest::getTag() const { + return tag_; } -void CreateInstanceRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Value", tagObj.value); - setParameter(tagObjStr + ".Key", tagObj.key); - } +void CreateInstanceRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } -std::string CreateInstanceRequest::getPrivatePoolOptionsId()const -{ - return privatePoolOptionsId_; +std::string CreateInstanceRequest::getPrivatePoolOptionsId() const { + return privatePoolOptionsId_; } -void CreateInstanceRequest::setPrivatePoolOptionsId(const std::string& privatePoolOptionsId) -{ - privatePoolOptionsId_ = privatePoolOptionsId; - setParameter("PrivatePoolOptionsId", privatePoolOptionsId); +void CreateInstanceRequest::setPrivatePoolOptionsId(const std::string &privatePoolOptionsId) { + privatePoolOptionsId_ = privatePoolOptionsId; + setParameter(std::string("PrivatePoolOptions.Id"), privatePoolOptionsId); } -int CreateInstanceRequest::getAutoRenewPeriod()const -{ - return autoRenewPeriod_; +int CreateInstanceRequest::getAutoRenewPeriod() const { + return autoRenewPeriod_; } -void CreateInstanceRequest::setAutoRenewPeriod(int autoRenewPeriod) -{ - autoRenewPeriod_ = autoRenewPeriod; - setParameter("AutoRenewPeriod", std::to_string(autoRenewPeriod)); +void CreateInstanceRequest::setAutoRenewPeriod(int autoRenewPeriod) { + autoRenewPeriod_ = autoRenewPeriod; + setParameter(std::string("AutoRenewPeriod"), std::to_string(autoRenewPeriod)); } -std::string CreateInstanceRequest::getNodeControllerId()const -{ - return nodeControllerId_; +std::string CreateInstanceRequest::getNodeControllerId() const { + return nodeControllerId_; } -void CreateInstanceRequest::setNodeControllerId(const std::string& nodeControllerId) -{ - nodeControllerId_ = nodeControllerId; - setParameter("NodeControllerId", nodeControllerId); +void CreateInstanceRequest::setNodeControllerId(const std::string &nodeControllerId) { + nodeControllerId_ = nodeControllerId; + setParameter(std::string("NodeControllerId"), nodeControllerId); } -int CreateInstanceRequest::getPeriod()const -{ - return period_; +int CreateInstanceRequest::getPeriod() const { + return period_; } -void CreateInstanceRequest::setPeriod(int period) -{ - period_ = period; - setParameter("Period", std::to_string(period)); +void CreateInstanceRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); } -bool CreateInstanceRequest::getDryRun()const -{ - return dryRun_; +bool CreateInstanceRequest::getDryRun() const { + return dryRun_; } -void CreateInstanceRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +void CreateInstanceRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -long CreateInstanceRequest::getOwnerId()const -{ - return ownerId_; +long CreateInstanceRequest::getOwnerId() const { + return ownerId_; } -void CreateInstanceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +void CreateInstanceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -std::string CreateInstanceRequest::getCapacityReservationPreference()const -{ - return capacityReservationPreference_; +std::string CreateInstanceRequest::getCapacityReservationPreference() const { + return capacityReservationPreference_; } -void CreateInstanceRequest::setCapacityReservationPreference(const std::string& capacityReservationPreference) -{ - capacityReservationPreference_ = capacityReservationPreference; - setParameter("CapacityReservationPreference", capacityReservationPreference); +void CreateInstanceRequest::setCapacityReservationPreference(const std::string &capacityReservationPreference) { + capacityReservationPreference_ = capacityReservationPreference; + setParameter(std::string("CapacityReservationPreference"), capacityReservationPreference); } -std::string CreateInstanceRequest::getVSwitchId()const -{ - return vSwitchId_; +std::string CreateInstanceRequest::getVSwitchId() const { + return vSwitchId_; } -void CreateInstanceRequest::setVSwitchId(const std::string& vSwitchId) -{ - vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); +void CreateInstanceRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); } -std::string CreateInstanceRequest::getPrivateIpAddress()const -{ - return privateIpAddress_; +std::string CreateInstanceRequest::getPrivateIpAddress() const { + return privateIpAddress_; } -void CreateInstanceRequest::setPrivateIpAddress(const std::string& privateIpAddress) -{ - privateIpAddress_ = privateIpAddress; - setParameter("PrivateIpAddress", privateIpAddress); +void CreateInstanceRequest::setPrivateIpAddress(const std::string &privateIpAddress) { + privateIpAddress_ = privateIpAddress; + setParameter(std::string("PrivateIpAddress"), privateIpAddress); } -std::string CreateInstanceRequest::getSpotStrategy()const -{ - return spotStrategy_; +std::string CreateInstanceRequest::getSpotStrategy() const { + return spotStrategy_; } -void CreateInstanceRequest::setSpotStrategy(const std::string& spotStrategy) -{ - spotStrategy_ = spotStrategy; - setParameter("SpotStrategy", spotStrategy); +void CreateInstanceRequest::setSpotStrategy(const std::string &spotStrategy) { + spotStrategy_ = spotStrategy; + setParameter(std::string("SpotStrategy"), spotStrategy); } -std::string CreateInstanceRequest::getPeriodUnit()const -{ - return periodUnit_; +std::string CreateInstanceRequest::getPeriodUnit() const { + return periodUnit_; } -void CreateInstanceRequest::setPeriodUnit(const std::string& periodUnit) -{ - periodUnit_ = periodUnit; - setParameter("PeriodUnit", periodUnit); +void CreateInstanceRequest::setPeriodUnit(const std::string &periodUnit) { + periodUnit_ = periodUnit; + setParameter(std::string("PeriodUnit"), periodUnit); } -std::string CreateInstanceRequest::getInstanceName()const -{ - return instanceName_; +std::string CreateInstanceRequest::getInstanceName() const { + return instanceName_; } -void CreateInstanceRequest::setInstanceName(const std::string& instanceName) -{ - instanceName_ = instanceName; - setParameter("InstanceName", instanceName); +void CreateInstanceRequest::setInstanceName(const std::string &instanceName) { + instanceName_ = instanceName; + setParameter(std::string("InstanceName"), instanceName); } -bool CreateInstanceRequest::getAutoRenew()const -{ - return autoRenew_; +bool CreateInstanceRequest::getAutoRenew() const { + return autoRenew_; } -void CreateInstanceRequest::setAutoRenew(bool autoRenew) -{ - autoRenew_ = autoRenew; - setParameter("AutoRenew", autoRenew ? "true" : "false"); +void CreateInstanceRequest::setAutoRenew(bool autoRenew) { + autoRenew_ = autoRenew; + setParameter(std::string("AutoRenew"), autoRenew ? "true" : "false"); } -std::string CreateInstanceRequest::getInternetChargeType()const -{ - return internetChargeType_; +std::string CreateInstanceRequest::getInternetChargeType() const { + return internetChargeType_; } -void CreateInstanceRequest::setInternetChargeType(const std::string& internetChargeType) -{ - internetChargeType_ = internetChargeType; - setParameter("InternetChargeType", internetChargeType); +void CreateInstanceRequest::setInternetChargeType(const std::string &internetChargeType) { + internetChargeType_ = internetChargeType; + setParameter(std::string("InternetChargeType"), internetChargeType); } -std::string CreateInstanceRequest::getZoneId()const -{ - return zoneId_; +std::string CreateInstanceRequest::getZoneId() const { + return zoneId_; } -void CreateInstanceRequest::setZoneId(const std::string& zoneId) -{ - zoneId_ = zoneId; - setParameter("ZoneId", zoneId); +void CreateInstanceRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); } -int CreateInstanceRequest::getInternetMaxBandwidthIn()const -{ - return internetMaxBandwidthIn_; +int CreateInstanceRequest::getInternetMaxBandwidthIn() const { + return internetMaxBandwidthIn_; } -void CreateInstanceRequest::setInternetMaxBandwidthIn(int internetMaxBandwidthIn) -{ - internetMaxBandwidthIn_ = internetMaxBandwidthIn; - setParameter("InternetMaxBandwidthIn", std::to_string(internetMaxBandwidthIn)); +void CreateInstanceRequest::setInternetMaxBandwidthIn(int internetMaxBandwidthIn) { + internetMaxBandwidthIn_ = internetMaxBandwidthIn; + setParameter(std::string("InternetMaxBandwidthIn"), std::to_string(internetMaxBandwidthIn)); } -bool CreateInstanceRequest::getUseAdditionalService()const -{ - return useAdditionalService_; +bool CreateInstanceRequest::getUseAdditionalService() const { + return useAdditionalService_; } -void CreateInstanceRequest::setUseAdditionalService(bool useAdditionalService) -{ - useAdditionalService_ = useAdditionalService; - setParameter("UseAdditionalService", useAdditionalService ? "true" : "false"); +void CreateInstanceRequest::setUseAdditionalService(bool useAdditionalService) { + useAdditionalService_ = useAdditionalService; + setParameter(std::string("UseAdditionalService"), useAdditionalService ? "true" : "false"); } -std::string CreateInstanceRequest::getAffinity()const -{ - return affinity_; +std::string CreateInstanceRequest::getAffinity() const { + return affinity_; } -void CreateInstanceRequest::setAffinity(const std::string& affinity) -{ - affinity_ = affinity; - setParameter("Affinity", affinity); +void CreateInstanceRequest::setAffinity(const std::string &affinity) { + affinity_ = affinity; + setParameter(std::string("Affinity"), affinity); } -std::string CreateInstanceRequest::getImageId()const -{ - return imageId_; +std::string CreateInstanceRequest::getImageId() const { + return imageId_; } -void CreateInstanceRequest::setImageId(const std::string& imageId) -{ - imageId_ = imageId; - setParameter("ImageId", imageId); +void CreateInstanceRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("ImageId"), imageId); } -std::string CreateInstanceRequest::getClientToken()const -{ - return clientToken_; +std::string CreateInstanceRequest::getClientToken() const { + return clientToken_; } -void CreateInstanceRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +void CreateInstanceRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -std::string CreateInstanceRequest::getVlanId()const -{ - return vlanId_; +std::string CreateInstanceRequest::getVlanId() const { + return vlanId_; } -void CreateInstanceRequest::setVlanId(const std::string& vlanId) -{ - vlanId_ = vlanId; - setParameter("VlanId", vlanId); +void CreateInstanceRequest::setVlanId(const std::string &vlanId) { + vlanId_ = vlanId; + setParameter(std::string("VlanId"), vlanId); } -std::string CreateInstanceRequest::getSpotInterruptionBehavior()const -{ - return spotInterruptionBehavior_; +std::string CreateInstanceRequest::getSpotInterruptionBehavior() const { + return spotInterruptionBehavior_; } -void CreateInstanceRequest::setSpotInterruptionBehavior(const std::string& spotInterruptionBehavior) -{ - spotInterruptionBehavior_ = spotInterruptionBehavior; - setParameter("SpotInterruptionBehavior", spotInterruptionBehavior); +void CreateInstanceRequest::setSpotInterruptionBehavior(const std::string &spotInterruptionBehavior) { + spotInterruptionBehavior_ = spotInterruptionBehavior; + setParameter(std::string("SpotInterruptionBehavior"), spotInterruptionBehavior); } -std::string CreateInstanceRequest::getIoOptimized()const -{ - return ioOptimized_; +std::string CreateInstanceRequest::getIoOptimized() const { + return ioOptimized_; } -void CreateInstanceRequest::setIoOptimized(const std::string& ioOptimized) -{ - ioOptimized_ = ioOptimized; - setParameter("IoOptimized", ioOptimized); +void CreateInstanceRequest::setIoOptimized(const std::string &ioOptimized) { + ioOptimized_ = ioOptimized; + setParameter(std::string("IoOptimized"), ioOptimized); } -std::string CreateInstanceRequest::getSecurityGroupId()const -{ - return securityGroupId_; +std::string CreateInstanceRequest::getSecurityGroupId() const { + return securityGroupId_; } -void CreateInstanceRequest::setSecurityGroupId(const std::string& securityGroupId) -{ - securityGroupId_ = securityGroupId; - setParameter("SecurityGroupId", securityGroupId); +void CreateInstanceRequest::setSecurityGroupId(const std::string &securityGroupId) { + securityGroupId_ = securityGroupId; + setParameter(std::string("SecurityGroupId"), securityGroupId); } -int CreateInstanceRequest::getInternetMaxBandwidthOut()const -{ - return internetMaxBandwidthOut_; +int CreateInstanceRequest::getInternetMaxBandwidthOut() const { + return internetMaxBandwidthOut_; } -void CreateInstanceRequest::setInternetMaxBandwidthOut(int internetMaxBandwidthOut) -{ - internetMaxBandwidthOut_ = internetMaxBandwidthOut; - setParameter("InternetMaxBandwidthOut", std::to_string(internetMaxBandwidthOut)); +void CreateInstanceRequest::setInternetMaxBandwidthOut(int internetMaxBandwidthOut) { + internetMaxBandwidthOut_ = internetMaxBandwidthOut; + setParameter(std::string("InternetMaxBandwidthOut"), std::to_string(internetMaxBandwidthOut)); } -bool CreateInstanceRequest::getHibernationOptionsConfigured()const -{ - return hibernationOptionsConfigured_; +bool CreateInstanceRequest::getHibernationOptionsConfigured() const { + return hibernationOptionsConfigured_; } -void CreateInstanceRequest::setHibernationOptionsConfigured(bool hibernationOptionsConfigured) -{ - hibernationOptionsConfigured_ = hibernationOptionsConfigured; - setParameter("HibernationOptionsConfigured", hibernationOptionsConfigured ? "true" : "false"); +void CreateInstanceRequest::setHibernationOptionsConfigured(bool hibernationOptionsConfigured) { + hibernationOptionsConfigured_ = hibernationOptionsConfigured; + setParameter(std::string("HibernationOptions.Configured"), hibernationOptionsConfigured ? "true" : "false"); } -std::string CreateInstanceRequest::getDescription()const -{ - return description_; +std::string CreateInstanceRequest::getDescription() const { + return description_; } -void CreateInstanceRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +void CreateInstanceRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -std::string CreateInstanceRequest::getSystemDiskCategory()const -{ - return systemDiskCategory_; +std::string CreateInstanceRequest::getSystemDiskCategory() const { + return systemDiskCategory_; } -void CreateInstanceRequest::setSystemDiskCategory(const std::string& systemDiskCategory) -{ - systemDiskCategory_ = systemDiskCategory; - setParameter("SystemDiskCategory", systemDiskCategory); +void CreateInstanceRequest::setSystemDiskCategory(const std::string &systemDiskCategory) { + systemDiskCategory_ = systemDiskCategory; + setParameter(std::string("SystemDisk.Category"), systemDiskCategory); } -std::string CreateInstanceRequest::getCapacityReservationId()const -{ - return capacityReservationId_; +std::string CreateInstanceRequest::getCapacityReservationId() const { + return capacityReservationId_; } -void CreateInstanceRequest::setCapacityReservationId(const std::string& capacityReservationId) -{ - capacityReservationId_ = capacityReservationId; - setParameter("CapacityReservationId", capacityReservationId); +void CreateInstanceRequest::setCapacityReservationId(const std::string &capacityReservationId) { + capacityReservationId_ = capacityReservationId; + setParameter(std::string("CapacityReservationId"), capacityReservationId); } -std::string CreateInstanceRequest::getSystemDiskPerformanceLevel()const -{ - return systemDiskPerformanceLevel_; +std::string CreateInstanceRequest::getSystemDiskPerformanceLevel() const { + return systemDiskPerformanceLevel_; } -void CreateInstanceRequest::setSystemDiskPerformanceLevel(const std::string& systemDiskPerformanceLevel) -{ - systemDiskPerformanceLevel_ = systemDiskPerformanceLevel; - setParameter("SystemDiskPerformanceLevel", systemDiskPerformanceLevel); +void CreateInstanceRequest::setSystemDiskPerformanceLevel(const std::string &systemDiskPerformanceLevel) { + systemDiskPerformanceLevel_ = systemDiskPerformanceLevel; + setParameter(std::string("SystemDisk.PerformanceLevel"), systemDiskPerformanceLevel); } -std::string CreateInstanceRequest::getUserData()const -{ - return userData_; +std::string CreateInstanceRequest::getUserData() const { + return userData_; } -void CreateInstanceRequest::setUserData(const std::string& userData) -{ - userData_ = userData; - setParameter("UserData", userData); +void CreateInstanceRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); } -bool CreateInstanceRequest::getPasswordInherit()const -{ - return passwordInherit_; +bool CreateInstanceRequest::getPasswordInherit() const { + return passwordInherit_; } -void CreateInstanceRequest::setPasswordInherit(bool passwordInherit) -{ - passwordInherit_ = passwordInherit; - setParameter("PasswordInherit", passwordInherit ? "true" : "false"); +void CreateInstanceRequest::setPasswordInherit(bool passwordInherit) { + passwordInherit_ = passwordInherit; + setParameter(std::string("PasswordInherit"), passwordInherit ? "true" : "false"); } -std::string CreateInstanceRequest::getRegionId()const -{ - return regionId_; +std::string CreateInstanceRequest::getRegionId() const { + return regionId_; } -void CreateInstanceRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +void CreateInstanceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -std::string CreateInstanceRequest::getHttpEndpoint()const -{ - return httpEndpoint_; +std::string CreateInstanceRequest::getHttpEndpoint() const { + return httpEndpoint_; } -void CreateInstanceRequest::setHttpEndpoint(const std::string& httpEndpoint) -{ - httpEndpoint_ = httpEndpoint; - setParameter("HttpEndpoint", httpEndpoint); +void CreateInstanceRequest::setHttpEndpoint(const std::string &httpEndpoint) { + httpEndpoint_ = httpEndpoint; + setParameter(std::string("HttpEndpoint"), httpEndpoint); } -std::string CreateInstanceRequest::getInstanceType()const -{ - return instanceType_; +std::string CreateInstanceRequest::getInstanceType() const { + return instanceType_; } -void CreateInstanceRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +void CreateInstanceRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } -std::vector CreateInstanceRequest::getArn()const -{ - return arn_; +std::vector CreateInstanceRequest::getArn() const { + return arn_; } -void CreateInstanceRequest::setArn(const std::vector& arn) -{ - arn_ = arn; - for(int dep1 = 0; dep1!= arn.size(); dep1++) { - auto arnObj = arn.at(dep1); - std::string arnObjStr = "Arn." + std::to_string(dep1 + 1); - setParameter(arnObjStr + ".Rolearn", arnObj.rolearn); - setParameter(arnObjStr + ".RoleType", arnObj.roleType); - setParameter(arnObjStr + ".AssumeRoleFor", std::to_string(arnObj.assumeRoleFor)); - } +void CreateInstanceRequest::setArn(const std::vector &arn) { + arn_ = arn; + for(int dep1 = 0; dep1 != arn.size(); dep1++) { + auto arnObj = arn.at(dep1); + std::string arnObjStr = std::string("Arn") + "." + std::to_string(dep1 + 1); + setParameter(arnObjStr + ".Rolearn", arnObj.rolearn); + setParameter(arnObjStr + ".RoleType", arnObj.roleType); + setParameter(arnObjStr + ".AssumeRoleFor", std::to_string(arnObj.assumeRoleFor)); + } } -std::string CreateInstanceRequest::getInstanceChargeType()const -{ - return instanceChargeType_; +std::string CreateInstanceRequest::getInstanceChargeType() const { + return instanceChargeType_; } -void CreateInstanceRequest::setInstanceChargeType(const std::string& instanceChargeType) -{ - instanceChargeType_ = instanceChargeType; - setParameter("InstanceChargeType", instanceChargeType); +void CreateInstanceRequest::setInstanceChargeType(const std::string &instanceChargeType) { + instanceChargeType_ = instanceChargeType; + setParameter(std::string("InstanceChargeType"), instanceChargeType); } -std::string CreateInstanceRequest::getDeploymentSetId()const -{ - return deploymentSetId_; +std::string CreateInstanceRequest::getDeploymentSetId() const { + return deploymentSetId_; } -void CreateInstanceRequest::setDeploymentSetId(const std::string& deploymentSetId) -{ - deploymentSetId_ = deploymentSetId; - setParameter("DeploymentSetId", deploymentSetId); +void CreateInstanceRequest::setDeploymentSetId(const std::string &deploymentSetId) { + deploymentSetId_ = deploymentSetId; + setParameter(std::string("DeploymentSetId"), deploymentSetId); } -std::string CreateInstanceRequest::getInnerIpAddress()const -{ - return innerIpAddress_; +std::string CreateInstanceRequest::getInnerIpAddress() const { + return innerIpAddress_; } -void CreateInstanceRequest::setInnerIpAddress(const std::string& innerIpAddress) -{ - innerIpAddress_ = innerIpAddress; - setParameter("InnerIpAddress", innerIpAddress); +void CreateInstanceRequest::setInnerIpAddress(const std::string &innerIpAddress) { + innerIpAddress_ = innerIpAddress; + setParameter(std::string("InnerIpAddress"), innerIpAddress); } -std::string CreateInstanceRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +std::string CreateInstanceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -void CreateInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +void CreateInstanceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -std::string CreateInstanceRequest::getOwnerAccount()const -{ - return ownerAccount_; +std::string CreateInstanceRequest::getOwnerAccount() const { + return ownerAccount_; } -void CreateInstanceRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +void CreateInstanceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -std::string CreateInstanceRequest::getTenancy()const -{ - return tenancy_; +std::string CreateInstanceRequest::getTenancy() const { + return tenancy_; } -void CreateInstanceRequest::setTenancy(const std::string& tenancy) -{ - tenancy_ = tenancy; - setParameter("Tenancy", tenancy); +void CreateInstanceRequest::setTenancy(const std::string &tenancy) { + tenancy_ = tenancy; + setParameter(std::string("Tenancy"), tenancy); } -std::string CreateInstanceRequest::getSystemDiskDiskName()const -{ - return systemDiskDiskName_; +std::string CreateInstanceRequest::getSystemDiskDiskName() const { + return systemDiskDiskName_; } -void CreateInstanceRequest::setSystemDiskDiskName(const std::string& systemDiskDiskName) -{ - systemDiskDiskName_ = systemDiskDiskName; - setParameter("SystemDiskDiskName", systemDiskDiskName); +void CreateInstanceRequest::setSystemDiskDiskName(const std::string &systemDiskDiskName) { + systemDiskDiskName_ = systemDiskDiskName; + setParameter(std::string("SystemDisk.DiskName"), systemDiskDiskName); } -std::string CreateInstanceRequest::getRamRoleName()const -{ - return ramRoleName_; +std::string CreateInstanceRequest::getRamRoleName() const { + return ramRoleName_; } -void CreateInstanceRequest::setRamRoleName(const std::string& ramRoleName) -{ - ramRoleName_ = ramRoleName; - setParameter("RamRoleName", ramRoleName); +void CreateInstanceRequest::setRamRoleName(const std::string &ramRoleName) { + ramRoleName_ = ramRoleName; + setParameter(std::string("RamRoleName"), ramRoleName); } -std::string CreateInstanceRequest::getDedicatedHostId()const -{ - return dedicatedHostId_; +std::string CreateInstanceRequest::getDedicatedHostId() const { + return dedicatedHostId_; } -void CreateInstanceRequest::setDedicatedHostId(const std::string& dedicatedHostId) -{ - dedicatedHostId_ = dedicatedHostId; - setParameter("DedicatedHostId", dedicatedHostId); +void CreateInstanceRequest::setDedicatedHostId(const std::string &dedicatedHostId) { + dedicatedHostId_ = dedicatedHostId; + setParameter(std::string("DedicatedHostId"), dedicatedHostId); } -std::string CreateInstanceRequest::getClusterId()const -{ - return clusterId_; +std::string CreateInstanceRequest::getClusterId() const { + return clusterId_; } -void CreateInstanceRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); +void CreateInstanceRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); } -std::string CreateInstanceRequest::getCreditSpecification()const -{ - return creditSpecification_; +std::string CreateInstanceRequest::getCreditSpecification() const { + return creditSpecification_; } -void CreateInstanceRequest::setCreditSpecification(const std::string& creditSpecification) -{ - creditSpecification_ = creditSpecification; - setParameter("CreditSpecification", creditSpecification); +void CreateInstanceRequest::setCreditSpecification(const std::string &creditSpecification) { + creditSpecification_ = creditSpecification; + setParameter(std::string("CreditSpecification"), creditSpecification); } -int CreateInstanceRequest::getSpotDuration()const -{ - return spotDuration_; +int CreateInstanceRequest::getSpotDuration() const { + return spotDuration_; } -void CreateInstanceRequest::setSpotDuration(int spotDuration) -{ - spotDuration_ = spotDuration; - setParameter("SpotDuration", std::to_string(spotDuration)); +void CreateInstanceRequest::setSpotDuration(int spotDuration) { + spotDuration_ = spotDuration; + setParameter(std::string("SpotDuration"), std::to_string(spotDuration)); } -std::vector CreateInstanceRequest::getDataDisk()const -{ - return dataDisk_; +std::vector CreateInstanceRequest::getDataDisk() const { + return dataDisk_; } -void CreateInstanceRequest::setDataDisk(const std::vector& dataDisk) -{ - dataDisk_ = dataDisk; - for(int dep1 = 0; dep1!= dataDisk.size(); dep1++) { - auto dataDiskObj = dataDisk.at(dep1); - std::string dataDiskObjStr = "DataDisk." + std::to_string(dep1 + 1); - setParameter(dataDiskObjStr + ".DiskName", dataDiskObj.diskName); - setParameter(dataDiskObjStr + ".SnapshotId", dataDiskObj.snapshotId); - setParameter(dataDiskObjStr + ".Size", std::to_string(dataDiskObj.size)); - setParameter(dataDiskObjStr + ".Encrypted", dataDiskObj.encrypted ? "true" : "false"); - setParameter(dataDiskObjStr + ".PerformanceLevel", dataDiskObj.performanceLevel); - setParameter(dataDiskObjStr + ".EncryptAlgorithm", dataDiskObj.encryptAlgorithm); - setParameter(dataDiskObjStr + ".Description", dataDiskObj.description); - setParameter(dataDiskObjStr + ".StorageClusterId", dataDiskObj.storageClusterId); - setParameter(dataDiskObjStr + ".Category", dataDiskObj.category); - setParameter(dataDiskObjStr + ".KMSKeyId", dataDiskObj.kMSKeyId); - setParameter(dataDiskObjStr + ".Device", dataDiskObj.device); - setParameter(dataDiskObjStr + ".DeleteWithInstance", dataDiskObj.deleteWithInstance ? "true" : "false"); - } +void CreateInstanceRequest::setDataDisk(const std::vector &dataDisk) { + dataDisk_ = dataDisk; + for(int dep1 = 0; dep1 != dataDisk.size(); dep1++) { + auto dataDiskObj = dataDisk.at(dep1); + std::string dataDiskObjStr = std::string("DataDisk") + "." + std::to_string(dep1 + 1); + setParameter(dataDiskObjStr + ".DiskName", dataDiskObj.diskName); + setParameter(dataDiskObjStr + ".SnapshotId", dataDiskObj.snapshotId); + setParameter(dataDiskObjStr + ".Size", std::to_string(dataDiskObj.size)); + setParameter(dataDiskObjStr + ".Encrypted", dataDiskObj.encrypted ? "true" : "false"); + setParameter(dataDiskObjStr + ".PerformanceLevel", dataDiskObj.performanceLevel); + setParameter(dataDiskObjStr + ".EncryptAlgorithm", dataDiskObj.encryptAlgorithm); + setParameter(dataDiskObjStr + ".Description", dataDiskObj.description); + setParameter(dataDiskObjStr + ".StorageClusterId", dataDiskObj.storageClusterId); + setParameter(dataDiskObjStr + ".Category", dataDiskObj.category); + setParameter(dataDiskObjStr + ".KMSKeyId", dataDiskObj.kMSKeyId); + setParameter(dataDiskObjStr + ".Device", dataDiskObj.device); + setParameter(dataDiskObjStr + ".DeleteWithInstance", dataDiskObj.deleteWithInstance ? "true" : "false"); + } } -std::string CreateInstanceRequest::getStorageSetId()const -{ - return storageSetId_; +std::string CreateInstanceRequest::getStorageSetId() const { + return storageSetId_; } -void CreateInstanceRequest::setStorageSetId(const std::string& storageSetId) -{ - storageSetId_ = storageSetId; - setParameter("StorageSetId", storageSetId); +void CreateInstanceRequest::setStorageSetId(const std::string &storageSetId) { + storageSetId_ = storageSetId; + setParameter(std::string("StorageSetId"), storageSetId); } -int CreateInstanceRequest::getSystemDiskSize()const -{ - return systemDiskSize_; +int CreateInstanceRequest::getSystemDiskSize() const { + return systemDiskSize_; } -void CreateInstanceRequest::setSystemDiskSize(int systemDiskSize) -{ - systemDiskSize_ = systemDiskSize; - setParameter("SystemDiskSize", std::to_string(systemDiskSize)); +void CreateInstanceRequest::setSystemDiskSize(int systemDiskSize) { + systemDiskSize_ = systemDiskSize; + setParameter(std::string("SystemDisk.Size"), std::to_string(systemDiskSize)); } -std::string CreateInstanceRequest::getImageFamily()const -{ - return imageFamily_; +std::string CreateInstanceRequest::getImageFamily() const { + return imageFamily_; } -void CreateInstanceRequest::setImageFamily(const std::string& imageFamily) -{ - imageFamily_ = imageFamily; - setParameter("ImageFamily", imageFamily); +void CreateInstanceRequest::setImageFamily(const std::string &imageFamily) { + imageFamily_ = imageFamily; + setParameter(std::string("ImageFamily"), imageFamily); } -std::string CreateInstanceRequest::getHttpTokens()const -{ - return httpTokens_; +std::string CreateInstanceRequest::getHttpTokens() const { + return httpTokens_; } -void CreateInstanceRequest::setHttpTokens(const std::string& httpTokens) -{ - httpTokens_ = httpTokens; - setParameter("HttpTokens", httpTokens); +void CreateInstanceRequest::setHttpTokens(const std::string &httpTokens) { + httpTokens_ = httpTokens; + setParameter(std::string("HttpTokens"), httpTokens); } -std::string CreateInstanceRequest::getSystemDiskDescription()const -{ - return systemDiskDescription_; +std::string CreateInstanceRequest::getSystemDiskDescription() const { + return systemDiskDescription_; } -void CreateInstanceRequest::setSystemDiskDescription(const std::string& systemDiskDescription) -{ - systemDiskDescription_ = systemDiskDescription; - setParameter("SystemDiskDescription", systemDiskDescription); +void CreateInstanceRequest::setSystemDiskDescription(const std::string &systemDiskDescription) { + systemDiskDescription_ = systemDiskDescription; + setParameter(std::string("SystemDisk.Description"), systemDiskDescription); } diff --git a/ecs/src/model/CreateKeyPairRequest.cc b/ecs/src/model/CreateKeyPairRequest.cc index ebc7b57b2..e30f4fa36 100644 --- a/ecs/src/model/CreateKeyPairRequest.cc +++ b/ecs/src/model/CreateKeyPairRequest.cc @@ -1,111 +1,95 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::CreateKeyPairRequest; - -CreateKeyPairRequest::CreateKeyPairRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateKeyPair") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateKeyPairRequest::~CreateKeyPairRequest() -{} - -long CreateKeyPairRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::CreateKeyPairRequest; + +CreateKeyPairRequest::CreateKeyPairRequest() + : RpcServiceRequest("ecs", "2014-05-26", "CreateKeyPair") { + setMethod(HttpRequest::Method::Post); } -void CreateKeyPairRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateKeyPairRequest::~CreateKeyPairRequest() {} + +long CreateKeyPairRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateKeyPairRequest::getKeyPairName()const -{ - return keyPairName_; +void CreateKeyPairRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateKeyPairRequest::setKeyPairName(const std::string& keyPairName) -{ - keyPairName_ = keyPairName; - setParameter("KeyPairName", keyPairName); +std::string CreateKeyPairRequest::getKeyPairName() const { + return keyPairName_; } -std::string CreateKeyPairRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void CreateKeyPairRequest::setKeyPairName(const std::string &keyPairName) { + keyPairName_ = keyPairName; + setParameter(std::string("KeyPairName"), keyPairName); } -void CreateKeyPairRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string CreateKeyPairRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string CreateKeyPairRequest::getRegionId()const -{ - return regionId_; +void CreateKeyPairRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void CreateKeyPairRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateKeyPairRequest::getRegionId() const { + return regionId_; } -std::vector CreateKeyPairRequest::getTag()const -{ - return tag_; +void CreateKeyPairRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateKeyPairRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Value", tagObj.value); - setParameter(tagObjStr + ".Key", tagObj.key); - } +std::vector CreateKeyPairRequest::getTag() const { + return tag_; } -std::string CreateKeyPairRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateKeyPairRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } -void CreateKeyPairRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateKeyPairRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long CreateKeyPairRequest::getOwnerId()const -{ - return ownerId_; +void CreateKeyPairRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateKeyPairRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateKeyPairRequest::getOwnerId() const { + return ownerId_; +} + +void CreateKeyPairRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/CreateKeyPairResult.cc b/ecs/src/model/CreateKeyPairResult.cc index 6e46479f3..aa840e891 100644 --- a/ecs/src/model/CreateKeyPairResult.cc +++ b/ecs/src/model/CreateKeyPairResult.cc @@ -39,14 +39,14 @@ void CreateKeyPairResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["KeyPairId"].isNull()) - keyPairId_ = value["KeyPairId"].asString(); - if(!value["KeyPairName"].isNull()) - keyPairName_ = value["KeyPairName"].asString(); - if(!value["KeyPairFingerPrint"].isNull()) - keyPairFingerPrint_ = value["KeyPairFingerPrint"].asString(); if(!value["PrivateKeyBody"].isNull()) privateKeyBody_ = value["PrivateKeyBody"].asString(); + if(!value["KeyPairName"].isNull()) + keyPairName_ = value["KeyPairName"].asString(); + if(!value["KeyPairId"].isNull()) + keyPairId_ = value["KeyPairId"].asString(); + if(!value["KeyPairFingerPrint"].isNull()) + keyPairFingerPrint_ = value["KeyPairFingerPrint"].asString(); } diff --git a/ecs/src/model/CreateLaunchTemplateRequest.cc b/ecs/src/model/CreateLaunchTemplateRequest.cc index 4130e026b..cb4f936da 100644 --- a/ecs/src/model/CreateLaunchTemplateRequest.cc +++ b/ecs/src/model/CreateLaunchTemplateRequest.cc @@ -1,614 +1,506 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::CreateLaunchTemplateRequest; - -CreateLaunchTemplateRequest::CreateLaunchTemplateRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateLaunchTemplate") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateLaunchTemplateRequest::~CreateLaunchTemplateRequest() -{} - -std::string CreateLaunchTemplateRequest::getLaunchTemplateName()const -{ - return launchTemplateName_; + */ + +#include + +using AlibabaCloud::Ecs::Model::CreateLaunchTemplateRequest; + +CreateLaunchTemplateRequest::CreateLaunchTemplateRequest() + : RpcServiceRequest("ecs", "2014-05-26", "CreateLaunchTemplate") { + setMethod(HttpRequest::Method::Post); +} + +CreateLaunchTemplateRequest::~CreateLaunchTemplateRequest() {} + +std::string CreateLaunchTemplateRequest::getLaunchTemplateName() const { + return launchTemplateName_; } -void CreateLaunchTemplateRequest::setLaunchTemplateName(const std::string& launchTemplateName) -{ - launchTemplateName_ = launchTemplateName; - setParameter("LaunchTemplateName", launchTemplateName); +void CreateLaunchTemplateRequest::setLaunchTemplateName(const std::string &launchTemplateName) { + launchTemplateName_ = launchTemplateName; + setParameter(std::string("LaunchTemplateName"), launchTemplateName); } -long CreateLaunchTemplateRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +long CreateLaunchTemplateRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -void CreateLaunchTemplateRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +void CreateLaunchTemplateRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -std::string CreateLaunchTemplateRequest::getSecurityEnhancementStrategy()const -{ - return securityEnhancementStrategy_; +std::string CreateLaunchTemplateRequest::getSecurityEnhancementStrategy() const { + return securityEnhancementStrategy_; } -void CreateLaunchTemplateRequest::setSecurityEnhancementStrategy(const std::string& securityEnhancementStrategy) -{ - securityEnhancementStrategy_ = securityEnhancementStrategy; - setParameter("SecurityEnhancementStrategy", securityEnhancementStrategy); +void CreateLaunchTemplateRequest::setSecurityEnhancementStrategy(const std::string &securityEnhancementStrategy) { + securityEnhancementStrategy_ = securityEnhancementStrategy; + setParameter(std::string("SecurityEnhancementStrategy"), securityEnhancementStrategy); } -std::string CreateLaunchTemplateRequest::getNetworkType()const -{ - return networkType_; +std::string CreateLaunchTemplateRequest::getNetworkType() const { + return networkType_; } -void CreateLaunchTemplateRequest::setNetworkType(const std::string& networkType) -{ - networkType_ = networkType; - setParameter("NetworkType", networkType); +void CreateLaunchTemplateRequest::setNetworkType(const std::string &networkType) { + networkType_ = networkType; + setParameter(std::string("NetworkType"), networkType); } -std::string CreateLaunchTemplateRequest::getKeyPairName()const -{ - return keyPairName_; +std::string CreateLaunchTemplateRequest::getKeyPairName() const { + return keyPairName_; } -void CreateLaunchTemplateRequest::setKeyPairName(const std::string& keyPairName) -{ - keyPairName_ = keyPairName; - setParameter("KeyPairName", keyPairName); +void CreateLaunchTemplateRequest::setKeyPairName(const std::string &keyPairName) { + keyPairName_ = keyPairName; + setParameter(std::string("KeyPairName"), keyPairName); } -float CreateLaunchTemplateRequest::getSpotPriceLimit()const -{ - return spotPriceLimit_; +float CreateLaunchTemplateRequest::getSpotPriceLimit() const { + return spotPriceLimit_; } -void CreateLaunchTemplateRequest::setSpotPriceLimit(float spotPriceLimit) -{ - spotPriceLimit_ = spotPriceLimit; - setParameter("SpotPriceLimit", std::to_string(spotPriceLimit)); +void CreateLaunchTemplateRequest::setSpotPriceLimit(float spotPriceLimit) { + spotPriceLimit_ = spotPriceLimit; + setParameter(std::string("SpotPriceLimit"), std::to_string(spotPriceLimit)); } -std::string CreateLaunchTemplateRequest::getImageOwnerAlias()const -{ - return imageOwnerAlias_; +std::string CreateLaunchTemplateRequest::getImageOwnerAlias() const { + return imageOwnerAlias_; } -void CreateLaunchTemplateRequest::setImageOwnerAlias(const std::string& imageOwnerAlias) -{ - imageOwnerAlias_ = imageOwnerAlias; - setParameter("ImageOwnerAlias", imageOwnerAlias); +void CreateLaunchTemplateRequest::setImageOwnerAlias(const std::string &imageOwnerAlias) { + imageOwnerAlias_ = imageOwnerAlias; + setParameter(std::string("ImageOwnerAlias"), imageOwnerAlias); } -std::string CreateLaunchTemplateRequest::getResourceGroupId()const -{ - return resourceGroupId_; +std::string CreateLaunchTemplateRequest::getResourceGroupId() const { + return resourceGroupId_; } -void CreateLaunchTemplateRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +void CreateLaunchTemplateRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -std::string CreateLaunchTemplateRequest::getHostName()const -{ - return hostName_; +std::string CreateLaunchTemplateRequest::getHostName() const { + return hostName_; } -void CreateLaunchTemplateRequest::setHostName(const std::string& hostName) -{ - hostName_ = hostName; - setParameter("HostName", hostName); +void CreateLaunchTemplateRequest::setHostName(const std::string &hostName) { + hostName_ = hostName; + setParameter(std::string("HostName"), hostName); } -int CreateLaunchTemplateRequest::getSystemDiskIops()const -{ - return systemDiskIops_; +int CreateLaunchTemplateRequest::getSystemDiskIops() const { + return systemDiskIops_; } -void CreateLaunchTemplateRequest::setSystemDiskIops(int systemDiskIops) -{ - systemDiskIops_ = systemDiskIops; - setParameter("SystemDiskIops", std::to_string(systemDiskIops)); +void CreateLaunchTemplateRequest::setSystemDiskIops(int systemDiskIops) { + systemDiskIops_ = systemDiskIops; + setParameter(std::string("SystemDisk.Iops"), std::to_string(systemDiskIops)); } -std::vector CreateLaunchTemplateRequest::getTemplateTag()const -{ - return templateTag_; +std::vector CreateLaunchTemplateRequest::getTemplateTag() const { + return templateTag_; } -void CreateLaunchTemplateRequest::setTemplateTag(const std::vector& templateTag) -{ - templateTag_ = templateTag; - for(int dep1 = 0; dep1!= templateTag.size(); dep1++) { - auto templateTagObj = templateTag.at(dep1); - std::string templateTagObjStr = "TemplateTag." + std::to_string(dep1 + 1); - setParameter(templateTagObjStr + ".Key", templateTagObj.key); - setParameter(templateTagObjStr + ".Value", templateTagObj.value); - } +void CreateLaunchTemplateRequest::setTemplateTag(const std::vector &templateTag) { + templateTag_ = templateTag; + for(int dep1 = 0; dep1 != templateTag.size(); dep1++) { + auto templateTagObj = templateTag.at(dep1); + std::string templateTagObjStr = std::string("TemplateTag") + "." + std::to_string(dep1 + 1); + setParameter(templateTagObjStr + ".Key", templateTagObj.key); + setParameter(templateTagObjStr + ".Value", templateTagObj.value); + } } -std::vector CreateLaunchTemplateRequest::getTag()const -{ - return tag_; +std::vector CreateLaunchTemplateRequest::getTag() const { + return tag_; } -void CreateLaunchTemplateRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Key", tagObj.key); - setParameter(tagObjStr + ".Value", tagObj.value); - } +void CreateLaunchTemplateRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } } -int CreateLaunchTemplateRequest::getPeriod()const -{ - return period_; +int CreateLaunchTemplateRequest::getPeriod() const { + return period_; } -void CreateLaunchTemplateRequest::setPeriod(int period) -{ - period_ = period; - setParameter("Period", std::to_string(period)); +void CreateLaunchTemplateRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); } -std::string CreateLaunchTemplateRequest::getTemplateResourceGroupId()const -{ - return templateResourceGroupId_; +std::string CreateLaunchTemplateRequest::getTemplateResourceGroupId() const { + return templateResourceGroupId_; } -void CreateLaunchTemplateRequest::setTemplateResourceGroupId(const std::string& templateResourceGroupId) -{ - templateResourceGroupId_ = templateResourceGroupId; - setParameter("TemplateResourceGroupId", templateResourceGroupId); +void CreateLaunchTemplateRequest::setTemplateResourceGroupId(const std::string &templateResourceGroupId) { + templateResourceGroupId_ = templateResourceGroupId; + setParameter(std::string("TemplateResourceGroupId"), templateResourceGroupId); } -long CreateLaunchTemplateRequest::getOwnerId()const -{ - return ownerId_; +long CreateLaunchTemplateRequest::getOwnerId() const { + return ownerId_; } -void CreateLaunchTemplateRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +void CreateLaunchTemplateRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -std::string CreateLaunchTemplateRequest::getVSwitchId()const -{ - return vSwitchId_; +std::string CreateLaunchTemplateRequest::getVSwitchId() const { + return vSwitchId_; } -void CreateLaunchTemplateRequest::setVSwitchId(const std::string& vSwitchId) -{ - vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); +void CreateLaunchTemplateRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); } -std::string CreateLaunchTemplateRequest::getSpotStrategy()const -{ - return spotStrategy_; +std::string CreateLaunchTemplateRequest::getSpotStrategy() const { + return spotStrategy_; } -void CreateLaunchTemplateRequest::setSpotStrategy(const std::string& spotStrategy) -{ - spotStrategy_ = spotStrategy; - setParameter("SpotStrategy", spotStrategy); +void CreateLaunchTemplateRequest::setSpotStrategy(const std::string &spotStrategy) { + spotStrategy_ = spotStrategy; + setParameter(std::string("SpotStrategy"), spotStrategy); } -std::string CreateLaunchTemplateRequest::getPrivateIpAddress()const -{ - return privateIpAddress_; +std::string CreateLaunchTemplateRequest::getPrivateIpAddress() const { + return privateIpAddress_; } -void CreateLaunchTemplateRequest::setPrivateIpAddress(const std::string& privateIpAddress) -{ - privateIpAddress_ = privateIpAddress; - setParameter("PrivateIpAddress", privateIpAddress); +void CreateLaunchTemplateRequest::setPrivateIpAddress(const std::string &privateIpAddress) { + privateIpAddress_ = privateIpAddress; + setParameter(std::string("PrivateIpAddress"), privateIpAddress); } -std::string CreateLaunchTemplateRequest::getInstanceName()const -{ - return instanceName_; +std::string CreateLaunchTemplateRequest::getInstanceName() const { + return instanceName_; } -void CreateLaunchTemplateRequest::setInstanceName(const std::string& instanceName) -{ - instanceName_ = instanceName; - setParameter("InstanceName", instanceName); +void CreateLaunchTemplateRequest::setInstanceName(const std::string &instanceName) { + instanceName_ = instanceName; + setParameter(std::string("InstanceName"), instanceName); } -std::string CreateLaunchTemplateRequest::getInternetChargeType()const -{ - return internetChargeType_; +std::string CreateLaunchTemplateRequest::getInternetChargeType() const { + return internetChargeType_; } -void CreateLaunchTemplateRequest::setInternetChargeType(const std::string& internetChargeType) -{ - internetChargeType_ = internetChargeType; - setParameter("InternetChargeType", internetChargeType); +void CreateLaunchTemplateRequest::setInternetChargeType(const std::string &internetChargeType) { + internetChargeType_ = internetChargeType; + setParameter(std::string("InternetChargeType"), internetChargeType); } -std::string CreateLaunchTemplateRequest::getZoneId()const -{ - return zoneId_; +std::string CreateLaunchTemplateRequest::getZoneId() const { + return zoneId_; } -void CreateLaunchTemplateRequest::setZoneId(const std::string& zoneId) -{ - zoneId_ = zoneId; - setParameter("ZoneId", zoneId); +void CreateLaunchTemplateRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); } -int CreateLaunchTemplateRequest::getInternetMaxBandwidthIn()const -{ - return internetMaxBandwidthIn_; +int CreateLaunchTemplateRequest::getInternetMaxBandwidthIn() const { + return internetMaxBandwidthIn_; } -void CreateLaunchTemplateRequest::setInternetMaxBandwidthIn(int internetMaxBandwidthIn) -{ - internetMaxBandwidthIn_ = internetMaxBandwidthIn; - setParameter("InternetMaxBandwidthIn", std::to_string(internetMaxBandwidthIn)); +void CreateLaunchTemplateRequest::setInternetMaxBandwidthIn(int internetMaxBandwidthIn) { + internetMaxBandwidthIn_ = internetMaxBandwidthIn; + setParameter(std::string("InternetMaxBandwidthIn"), std::to_string(internetMaxBandwidthIn)); } -std::string CreateLaunchTemplateRequest::getVersionDescription()const -{ - return versionDescription_; +std::string CreateLaunchTemplateRequest::getVersionDescription() const { + return versionDescription_; } -void CreateLaunchTemplateRequest::setVersionDescription(const std::string& versionDescription) -{ - versionDescription_ = versionDescription; - setParameter("VersionDescription", versionDescription); +void CreateLaunchTemplateRequest::setVersionDescription(const std::string &versionDescription) { + versionDescription_ = versionDescription; + setParameter(std::string("VersionDescription"), versionDescription); } -bool CreateLaunchTemplateRequest::getSystemDiskDeleteWithInstance()const -{ - return systemDiskDeleteWithInstance_; +bool CreateLaunchTemplateRequest::getSystemDiskDeleteWithInstance() const { + return systemDiskDeleteWithInstance_; } -void CreateLaunchTemplateRequest::setSystemDiskDeleteWithInstance(bool systemDiskDeleteWithInstance) -{ - systemDiskDeleteWithInstance_ = systemDiskDeleteWithInstance; - setParameter("SystemDiskDeleteWithInstance", systemDiskDeleteWithInstance ? "true" : "false"); +void CreateLaunchTemplateRequest::setSystemDiskDeleteWithInstance(bool systemDiskDeleteWithInstance) { + systemDiskDeleteWithInstance_ = systemDiskDeleteWithInstance; + setParameter(std::string("SystemDisk.DeleteWithInstance"), systemDiskDeleteWithInstance ? "true" : "false"); } -std::string CreateLaunchTemplateRequest::getImageId()const -{ - return imageId_; +std::string CreateLaunchTemplateRequest::getImageId() const { + return imageId_; } -void CreateLaunchTemplateRequest::setImageId(const std::string& imageId) -{ - imageId_ = imageId; - setParameter("ImageId", imageId); +void CreateLaunchTemplateRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("ImageId"), imageId); } -std::string CreateLaunchTemplateRequest::getIoOptimized()const -{ - return ioOptimized_; +std::string CreateLaunchTemplateRequest::getIoOptimized() const { + return ioOptimized_; } -void CreateLaunchTemplateRequest::setIoOptimized(const std::string& ioOptimized) -{ - ioOptimized_ = ioOptimized; - setParameter("IoOptimized", ioOptimized); +void CreateLaunchTemplateRequest::setIoOptimized(const std::string &ioOptimized) { + ioOptimized_ = ioOptimized; + setParameter(std::string("IoOptimized"), ioOptimized); } -std::string CreateLaunchTemplateRequest::getSecurityGroupId()const -{ - return securityGroupId_; +std::string CreateLaunchTemplateRequest::getSecurityGroupId() const { + return securityGroupId_; } -void CreateLaunchTemplateRequest::setSecurityGroupId(const std::string& securityGroupId) -{ - securityGroupId_ = securityGroupId; - setParameter("SecurityGroupId", securityGroupId); +void CreateLaunchTemplateRequest::setSecurityGroupId(const std::string &securityGroupId) { + securityGroupId_ = securityGroupId; + setParameter(std::string("SecurityGroupId"), securityGroupId); } -int CreateLaunchTemplateRequest::getInternetMaxBandwidthOut()const -{ - return internetMaxBandwidthOut_; +int CreateLaunchTemplateRequest::getInternetMaxBandwidthOut() const { + return internetMaxBandwidthOut_; } -void CreateLaunchTemplateRequest::setInternetMaxBandwidthOut(int internetMaxBandwidthOut) -{ - internetMaxBandwidthOut_ = internetMaxBandwidthOut; - setParameter("InternetMaxBandwidthOut", std::to_string(internetMaxBandwidthOut)); +void CreateLaunchTemplateRequest::setInternetMaxBandwidthOut(int internetMaxBandwidthOut) { + internetMaxBandwidthOut_ = internetMaxBandwidthOut; + setParameter(std::string("InternetMaxBandwidthOut"), std::to_string(internetMaxBandwidthOut)); } -std::string CreateLaunchTemplateRequest::getDescription()const -{ - return description_; +std::string CreateLaunchTemplateRequest::getDescription() const { + return description_; } -void CreateLaunchTemplateRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +void CreateLaunchTemplateRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -std::string CreateLaunchTemplateRequest::getSystemDiskCategory()const -{ - return systemDiskCategory_; +std::string CreateLaunchTemplateRequest::getSystemDiskCategory() const { + return systemDiskCategory_; } -void CreateLaunchTemplateRequest::setSystemDiskCategory(const std::string& systemDiskCategory) -{ - systemDiskCategory_ = systemDiskCategory; - setParameter("SystemDiskCategory", systemDiskCategory); +void CreateLaunchTemplateRequest::setSystemDiskCategory(const std::string &systemDiskCategory) { + systemDiskCategory_ = systemDiskCategory; + setParameter(std::string("SystemDisk.Category"), systemDiskCategory); } -std::string CreateLaunchTemplateRequest::getSystemDiskPerformanceLevel()const -{ - return systemDiskPerformanceLevel_; +std::string CreateLaunchTemplateRequest::getSystemDiskPerformanceLevel() const { + return systemDiskPerformanceLevel_; } -void CreateLaunchTemplateRequest::setSystemDiskPerformanceLevel(const std::string& systemDiskPerformanceLevel) -{ - systemDiskPerformanceLevel_ = systemDiskPerformanceLevel; - setParameter("SystemDiskPerformanceLevel", systemDiskPerformanceLevel); +void CreateLaunchTemplateRequest::setSystemDiskPerformanceLevel(const std::string &systemDiskPerformanceLevel) { + systemDiskPerformanceLevel_ = systemDiskPerformanceLevel; + setParameter(std::string("SystemDisk.PerformanceLevel"), systemDiskPerformanceLevel); } -std::string CreateLaunchTemplateRequest::getUserData()const -{ - return userData_; +std::string CreateLaunchTemplateRequest::getUserData() const { + return userData_; } -void CreateLaunchTemplateRequest::setUserData(const std::string& userData) -{ - userData_ = userData; - setParameter("UserData", userData); +void CreateLaunchTemplateRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); } -bool CreateLaunchTemplateRequest::getPasswordInherit()const -{ - return passwordInherit_; +bool CreateLaunchTemplateRequest::getPasswordInherit() const { + return passwordInherit_; } -void CreateLaunchTemplateRequest::setPasswordInherit(bool passwordInherit) -{ - passwordInherit_ = passwordInherit; - setParameter("PasswordInherit", passwordInherit ? "true" : "false"); +void CreateLaunchTemplateRequest::setPasswordInherit(bool passwordInherit) { + passwordInherit_ = passwordInherit; + setParameter(std::string("PasswordInherit"), passwordInherit ? "true" : "false"); } -std::string CreateLaunchTemplateRequest::getRegionId()const -{ - return regionId_; +std::string CreateLaunchTemplateRequest::getRegionId() const { + return regionId_; } -void CreateLaunchTemplateRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +void CreateLaunchTemplateRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -std::string CreateLaunchTemplateRequest::getInstanceType()const -{ - return instanceType_; +std::string CreateLaunchTemplateRequest::getInstanceType() const { + return instanceType_; } -void CreateLaunchTemplateRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +void CreateLaunchTemplateRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } -std::string CreateLaunchTemplateRequest::getInstanceChargeType()const -{ - return instanceChargeType_; +std::string CreateLaunchTemplateRequest::getInstanceChargeType() const { + return instanceChargeType_; } -void CreateLaunchTemplateRequest::setInstanceChargeType(const std::string& instanceChargeType) -{ - instanceChargeType_ = instanceChargeType; - setParameter("InstanceChargeType", instanceChargeType); +void CreateLaunchTemplateRequest::setInstanceChargeType(const std::string &instanceChargeType) { + instanceChargeType_ = instanceChargeType; + setParameter(std::string("InstanceChargeType"), instanceChargeType); } -bool CreateLaunchTemplateRequest::getEnableVmOsConfig()const -{ - return enableVmOsConfig_; +bool CreateLaunchTemplateRequest::getEnableVmOsConfig() const { + return enableVmOsConfig_; } -void CreateLaunchTemplateRequest::setEnableVmOsConfig(bool enableVmOsConfig) -{ - enableVmOsConfig_ = enableVmOsConfig; - setParameter("EnableVmOsConfig", enableVmOsConfig ? "true" : "false"); +void CreateLaunchTemplateRequest::setEnableVmOsConfig(bool enableVmOsConfig) { + enableVmOsConfig_ = enableVmOsConfig; + setParameter(std::string("EnableVmOsConfig"), enableVmOsConfig ? "true" : "false"); } -std::vector CreateLaunchTemplateRequest::getNetworkInterface()const -{ - return networkInterface_; +std::string CreateLaunchTemplateRequest::getDeploymentSetId() const { + return deploymentSetId_; } -void CreateLaunchTemplateRequest::setNetworkInterface(const std::vector& networkInterface) -{ - networkInterface_ = networkInterface; - for(int dep1 = 0; dep1!= networkInterface.size(); dep1++) { - auto networkInterfaceObj = networkInterface.at(dep1); - std::string networkInterfaceObjStr = "NetworkInterface." + std::to_string(dep1 + 1); - setParameter(networkInterfaceObjStr + ".PrimaryIpAddress", networkInterfaceObj.primaryIpAddress); - setParameter(networkInterfaceObjStr + ".VSwitchId", networkInterfaceObj.vSwitchId); - setParameter(networkInterfaceObjStr + ".SecurityGroupId", networkInterfaceObj.securityGroupId); - setParameter(networkInterfaceObjStr + ".NetworkInterfaceName", networkInterfaceObj.networkInterfaceName); - setParameter(networkInterfaceObjStr + ".Description", networkInterfaceObj.description); - for(int dep2 = 0; dep2!= networkInterfaceObj.securityGroupIds.size(); dep2++) { - setParameter(networkInterfaceObjStr + ".SecurityGroupIds."+ std::to_string(dep2), networkInterfaceObj.securityGroupIds.at(dep2)); - } - } +void CreateLaunchTemplateRequest::setDeploymentSetId(const std::string &deploymentSetId) { + deploymentSetId_ = deploymentSetId; + setParameter(std::string("DeploymentSetId"), deploymentSetId); } -std::string CreateLaunchTemplateRequest::getDeploymentSetId()const -{ - return deploymentSetId_; +std::vector CreateLaunchTemplateRequest::getNetworkInterface() const { + return networkInterface_; } -void CreateLaunchTemplateRequest::setDeploymentSetId(const std::string& deploymentSetId) -{ - deploymentSetId_ = deploymentSetId; - setParameter("DeploymentSetId", deploymentSetId); +void CreateLaunchTemplateRequest::setNetworkInterface(const std::vector &networkInterface) { + networkInterface_ = networkInterface; + for(int dep1 = 0; dep1 != networkInterface.size(); dep1++) { + auto networkInterfaceObj = networkInterface.at(dep1); + std::string networkInterfaceObjStr = std::string("NetworkInterface") + "." + std::to_string(dep1 + 1); + setParameter(networkInterfaceObjStr + ".VSwitchId", networkInterfaceObj.vSwitchId); + setParameter(networkInterfaceObjStr + ".NetworkInterfaceName", networkInterfaceObj.networkInterfaceName); + setParameter(networkInterfaceObjStr + ".Description", networkInterfaceObj.description); + setParameter(networkInterfaceObjStr + ".SecurityGroupId", networkInterfaceObj.securityGroupId); + setParameter(networkInterfaceObjStr + ".PrimaryIpAddress", networkInterfaceObj.primaryIpAddress); + } } -std::string CreateLaunchTemplateRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +std::string CreateLaunchTemplateRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -void CreateLaunchTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +void CreateLaunchTemplateRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -std::string CreateLaunchTemplateRequest::getOwnerAccount()const -{ - return ownerAccount_; +std::string CreateLaunchTemplateRequest::getOwnerAccount() const { + return ownerAccount_; } -void CreateLaunchTemplateRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +void CreateLaunchTemplateRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -std::string CreateLaunchTemplateRequest::getSystemDiskDiskName()const -{ - return systemDiskDiskName_; +std::string CreateLaunchTemplateRequest::getSystemDiskDiskName() const { + return systemDiskDiskName_; } -void CreateLaunchTemplateRequest::setSystemDiskDiskName(const std::string& systemDiskDiskName) -{ - systemDiskDiskName_ = systemDiskDiskName; - setParameter("SystemDiskDiskName", systemDiskDiskName); +void CreateLaunchTemplateRequest::setSystemDiskDiskName(const std::string &systemDiskDiskName) { + systemDiskDiskName_ = systemDiskDiskName; + setParameter(std::string("SystemDisk.DiskName"), systemDiskDiskName); } -std::string CreateLaunchTemplateRequest::getRamRoleName()const -{ - return ramRoleName_; +std::string CreateLaunchTemplateRequest::getRamRoleName() const { + return ramRoleName_; } -void CreateLaunchTemplateRequest::setRamRoleName(const std::string& ramRoleName) -{ - ramRoleName_ = ramRoleName; - setParameter("RamRoleName", ramRoleName); +void CreateLaunchTemplateRequest::setRamRoleName(const std::string &ramRoleName) { + ramRoleName_ = ramRoleName; + setParameter(std::string("RamRoleName"), ramRoleName); } -std::string CreateLaunchTemplateRequest::getAutoReleaseTime()const -{ - return autoReleaseTime_; +std::string CreateLaunchTemplateRequest::getAutoReleaseTime() const { + return autoReleaseTime_; } -void CreateLaunchTemplateRequest::setAutoReleaseTime(const std::string& autoReleaseTime) -{ - autoReleaseTime_ = autoReleaseTime; - setParameter("AutoReleaseTime", autoReleaseTime); +void CreateLaunchTemplateRequest::setAutoReleaseTime(const std::string &autoReleaseTime) { + autoReleaseTime_ = autoReleaseTime; + setParameter(std::string("AutoReleaseTime"), autoReleaseTime); } -int CreateLaunchTemplateRequest::getSpotDuration()const -{ - return spotDuration_; +int CreateLaunchTemplateRequest::getSpotDuration() const { + return spotDuration_; } -void CreateLaunchTemplateRequest::setSpotDuration(int spotDuration) -{ - spotDuration_ = spotDuration; - setParameter("SpotDuration", std::to_string(spotDuration)); +void CreateLaunchTemplateRequest::setSpotDuration(int spotDuration) { + spotDuration_ = spotDuration; + setParameter(std::string("SpotDuration"), std::to_string(spotDuration)); } -std::vector CreateLaunchTemplateRequest::getSecurityGroupIds()const -{ - return securityGroupIds_; +std::vector CreateLaunchTemplateRequest::getSecurityGroupIds() const { + return securityGroupIds_; } -void CreateLaunchTemplateRequest::setSecurityGroupIds(const std::vector& securityGroupIds) -{ - securityGroupIds_ = securityGroupIds; - for(int dep1 = 0; dep1!= securityGroupIds.size(); dep1++) { - setParameter("SecurityGroupIds."+ std::to_string(dep1), securityGroupIds.at(dep1)); - } +void CreateLaunchTemplateRequest::setSecurityGroupIds(const std::vector &securityGroupIds) { + securityGroupIds_ = securityGroupIds; } -std::vector CreateLaunchTemplateRequest::getDataDisk()const -{ - return dataDisk_; +std::vector CreateLaunchTemplateRequest::getDataDisk() const { + return dataDisk_; } -void CreateLaunchTemplateRequest::setDataDisk(const std::vector& dataDisk) -{ - dataDisk_ = dataDisk; - for(int dep1 = 0; dep1!= dataDisk.size(); dep1++) { - auto dataDiskObj = dataDisk.at(dep1); - std::string dataDiskObjStr = "DataDisk." + std::to_string(dep1 + 1); - setParameter(dataDiskObjStr + ".Size", std::to_string(dataDiskObj.size)); - setParameter(dataDiskObjStr + ".SnapshotId", dataDiskObj.snapshotId); - setParameter(dataDiskObjStr + ".Category", dataDiskObj.category); - setParameter(dataDiskObjStr + ".Encrypted", dataDiskObj.encrypted); - setParameter(dataDiskObjStr + ".DiskName", dataDiskObj.diskName); - setParameter(dataDiskObjStr + ".Description", dataDiskObj.description); - setParameter(dataDiskObjStr + ".DeleteWithInstance", dataDiskObj.deleteWithInstance ? "true" : "false"); - setParameter(dataDiskObjStr + ".Device", dataDiskObj.device); - setParameter(dataDiskObjStr + ".PerformanceLevel", dataDiskObj.performanceLevel); - } +void CreateLaunchTemplateRequest::setDataDisk(const std::vector &dataDisk) { + dataDisk_ = dataDisk; + for(int dep1 = 0; dep1 != dataDisk.size(); dep1++) { + auto dataDiskObj = dataDisk.at(dep1); + std::string dataDiskObjStr = std::string("DataDisk") + "." + std::to_string(dep1 + 1); + setParameter(dataDiskObjStr + ".PerformanceLevel", dataDiskObj.performanceLevel); + setParameter(dataDiskObjStr + ".Description", dataDiskObj.description); + setParameter(dataDiskObjStr + ".SnapshotId", dataDiskObj.snapshotId); + setParameter(dataDiskObjStr + ".Size", std::to_string(dataDiskObj.size)); + setParameter(dataDiskObjStr + ".Device", dataDiskObj.device); + setParameter(dataDiskObjStr + ".DiskName", dataDiskObj.diskName); + setParameter(dataDiskObjStr + ".Category", dataDiskObj.category); + setParameter(dataDiskObjStr + ".DeleteWithInstance", dataDiskObj.deleteWithInstance ? "true" : "false"); + setParameter(dataDiskObjStr + ".Encrypted", dataDiskObj.encrypted); + } } -int CreateLaunchTemplateRequest::getSystemDiskSize()const -{ - return systemDiskSize_; +int CreateLaunchTemplateRequest::getSystemDiskSize() const { + return systemDiskSize_; } -void CreateLaunchTemplateRequest::setSystemDiskSize(int systemDiskSize) -{ - systemDiskSize_ = systemDiskSize; - setParameter("SystemDiskSize", std::to_string(systemDiskSize)); +void CreateLaunchTemplateRequest::setSystemDiskSize(int systemDiskSize) { + systemDiskSize_ = systemDiskSize; + setParameter(std::string("SystemDisk.Size"), std::to_string(systemDiskSize)); } -std::string CreateLaunchTemplateRequest::getVpcId()const -{ - return vpcId_; +std::string CreateLaunchTemplateRequest::getVpcId() const { + return vpcId_; } -void CreateLaunchTemplateRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +void CreateLaunchTemplateRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); } -std::string CreateLaunchTemplateRequest::getSystemDiskDescription()const -{ - return systemDiskDescription_; +std::string CreateLaunchTemplateRequest::getSystemDiskDescription() const { + return systemDiskDescription_; } -void CreateLaunchTemplateRequest::setSystemDiskDescription(const std::string& systemDiskDescription) -{ - systemDiskDescription_ = systemDiskDescription; - setParameter("SystemDiskDescription", systemDiskDescription); +void CreateLaunchTemplateRequest::setSystemDiskDescription(const std::string &systemDiskDescription) { + systemDiskDescription_ = systemDiskDescription; + setParameter(std::string("SystemDisk.Description"), systemDiskDescription); } diff --git a/ecs/src/model/CreateLaunchTemplateVersionRequest.cc b/ecs/src/model/CreateLaunchTemplateVersionRequest.cc index f0783e0c3..c192540c3 100644 --- a/ecs/src/model/CreateLaunchTemplateVersionRequest.cc +++ b/ecs/src/model/CreateLaunchTemplateVersionRequest.cc @@ -1,598 +1,492 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::CreateLaunchTemplateVersionRequest; - -CreateLaunchTemplateVersionRequest::CreateLaunchTemplateVersionRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateLaunchTemplateVersion") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateLaunchTemplateVersionRequest::~CreateLaunchTemplateVersionRequest() -{} - -std::string CreateLaunchTemplateVersionRequest::getLaunchTemplateName()const -{ - return launchTemplateName_; + */ + +#include + +using AlibabaCloud::Ecs::Model::CreateLaunchTemplateVersionRequest; + +CreateLaunchTemplateVersionRequest::CreateLaunchTemplateVersionRequest() + : RpcServiceRequest("ecs", "2014-05-26", "CreateLaunchTemplateVersion") { + setMethod(HttpRequest::Method::Post); +} + +CreateLaunchTemplateVersionRequest::~CreateLaunchTemplateVersionRequest() {} + +std::string CreateLaunchTemplateVersionRequest::getLaunchTemplateName() const { + return launchTemplateName_; } -void CreateLaunchTemplateVersionRequest::setLaunchTemplateName(const std::string& launchTemplateName) -{ - launchTemplateName_ = launchTemplateName; - setParameter("LaunchTemplateName", launchTemplateName); +void CreateLaunchTemplateVersionRequest::setLaunchTemplateName(const std::string &launchTemplateName) { + launchTemplateName_ = launchTemplateName; + setParameter(std::string("LaunchTemplateName"), launchTemplateName); } -long CreateLaunchTemplateVersionRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +long CreateLaunchTemplateVersionRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -void CreateLaunchTemplateVersionRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +void CreateLaunchTemplateVersionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -std::string CreateLaunchTemplateVersionRequest::getSecurityEnhancementStrategy()const -{ - return securityEnhancementStrategy_; +std::string CreateLaunchTemplateVersionRequest::getSecurityEnhancementStrategy() const { + return securityEnhancementStrategy_; } -void CreateLaunchTemplateVersionRequest::setSecurityEnhancementStrategy(const std::string& securityEnhancementStrategy) -{ - securityEnhancementStrategy_ = securityEnhancementStrategy; - setParameter("SecurityEnhancementStrategy", securityEnhancementStrategy); +void CreateLaunchTemplateVersionRequest::setSecurityEnhancementStrategy(const std::string &securityEnhancementStrategy) { + securityEnhancementStrategy_ = securityEnhancementStrategy; + setParameter(std::string("SecurityEnhancementStrategy"), securityEnhancementStrategy); } -std::string CreateLaunchTemplateVersionRequest::getNetworkType()const -{ - return networkType_; +std::string CreateLaunchTemplateVersionRequest::getNetworkType() const { + return networkType_; } -void CreateLaunchTemplateVersionRequest::setNetworkType(const std::string& networkType) -{ - networkType_ = networkType; - setParameter("NetworkType", networkType); +void CreateLaunchTemplateVersionRequest::setNetworkType(const std::string &networkType) { + networkType_ = networkType; + setParameter(std::string("NetworkType"), networkType); } -std::string CreateLaunchTemplateVersionRequest::getKeyPairName()const -{ - return keyPairName_; +std::string CreateLaunchTemplateVersionRequest::getKeyPairName() const { + return keyPairName_; } -void CreateLaunchTemplateVersionRequest::setKeyPairName(const std::string& keyPairName) -{ - keyPairName_ = keyPairName; - setParameter("KeyPairName", keyPairName); +void CreateLaunchTemplateVersionRequest::setKeyPairName(const std::string &keyPairName) { + keyPairName_ = keyPairName; + setParameter(std::string("KeyPairName"), keyPairName); } -float CreateLaunchTemplateVersionRequest::getSpotPriceLimit()const -{ - return spotPriceLimit_; +float CreateLaunchTemplateVersionRequest::getSpotPriceLimit() const { + return spotPriceLimit_; } -void CreateLaunchTemplateVersionRequest::setSpotPriceLimit(float spotPriceLimit) -{ - spotPriceLimit_ = spotPriceLimit; - setParameter("SpotPriceLimit", std::to_string(spotPriceLimit)); +void CreateLaunchTemplateVersionRequest::setSpotPriceLimit(float spotPriceLimit) { + spotPriceLimit_ = spotPriceLimit; + setParameter(std::string("SpotPriceLimit"), std::to_string(spotPriceLimit)); } -std::string CreateLaunchTemplateVersionRequest::getImageOwnerAlias()const -{ - return imageOwnerAlias_; +std::string CreateLaunchTemplateVersionRequest::getImageOwnerAlias() const { + return imageOwnerAlias_; } -void CreateLaunchTemplateVersionRequest::setImageOwnerAlias(const std::string& imageOwnerAlias) -{ - imageOwnerAlias_ = imageOwnerAlias; - setParameter("ImageOwnerAlias", imageOwnerAlias); +void CreateLaunchTemplateVersionRequest::setImageOwnerAlias(const std::string &imageOwnerAlias) { + imageOwnerAlias_ = imageOwnerAlias; + setParameter(std::string("ImageOwnerAlias"), imageOwnerAlias); } -std::string CreateLaunchTemplateVersionRequest::getResourceGroupId()const -{ - return resourceGroupId_; +std::string CreateLaunchTemplateVersionRequest::getResourceGroupId() const { + return resourceGroupId_; } -void CreateLaunchTemplateVersionRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +void CreateLaunchTemplateVersionRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -std::string CreateLaunchTemplateVersionRequest::getHostName()const -{ - return hostName_; +std::string CreateLaunchTemplateVersionRequest::getHostName() const { + return hostName_; } -void CreateLaunchTemplateVersionRequest::setHostName(const std::string& hostName) -{ - hostName_ = hostName; - setParameter("HostName", hostName); +void CreateLaunchTemplateVersionRequest::setHostName(const std::string &hostName) { + hostName_ = hostName; + setParameter(std::string("HostName"), hostName); } -int CreateLaunchTemplateVersionRequest::getSystemDiskIops()const -{ - return systemDiskIops_; +int CreateLaunchTemplateVersionRequest::getSystemDiskIops() const { + return systemDiskIops_; } -void CreateLaunchTemplateVersionRequest::setSystemDiskIops(int systemDiskIops) -{ - systemDiskIops_ = systemDiskIops; - setParameter("SystemDiskIops", std::to_string(systemDiskIops)); +void CreateLaunchTemplateVersionRequest::setSystemDiskIops(int systemDiskIops) { + systemDiskIops_ = systemDiskIops; + setParameter(std::string("SystemDisk.Iops"), std::to_string(systemDiskIops)); } -std::vector CreateLaunchTemplateVersionRequest::getTag()const -{ - return tag_; +std::vector CreateLaunchTemplateVersionRequest::getTag() const { + return tag_; } -void CreateLaunchTemplateVersionRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Key", tagObj.key); - setParameter(tagObjStr + ".Value", tagObj.value); - } +void CreateLaunchTemplateVersionRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } } -int CreateLaunchTemplateVersionRequest::getPeriod()const -{ - return period_; +int CreateLaunchTemplateVersionRequest::getPeriod() const { + return period_; } -void CreateLaunchTemplateVersionRequest::setPeriod(int period) -{ - period_ = period; - setParameter("Period", std::to_string(period)); +void CreateLaunchTemplateVersionRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); } -std::string CreateLaunchTemplateVersionRequest::getLaunchTemplateId()const -{ - return launchTemplateId_; +std::string CreateLaunchTemplateVersionRequest::getLaunchTemplateId() const { + return launchTemplateId_; } -void CreateLaunchTemplateVersionRequest::setLaunchTemplateId(const std::string& launchTemplateId) -{ - launchTemplateId_ = launchTemplateId; - setParameter("LaunchTemplateId", launchTemplateId); +void CreateLaunchTemplateVersionRequest::setLaunchTemplateId(const std::string &launchTemplateId) { + launchTemplateId_ = launchTemplateId; + setParameter(std::string("LaunchTemplateId"), launchTemplateId); } -long CreateLaunchTemplateVersionRequest::getOwnerId()const -{ - return ownerId_; +long CreateLaunchTemplateVersionRequest::getOwnerId() const { + return ownerId_; } -void CreateLaunchTemplateVersionRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +void CreateLaunchTemplateVersionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -std::string CreateLaunchTemplateVersionRequest::getVSwitchId()const -{ - return vSwitchId_; +std::string CreateLaunchTemplateVersionRequest::getVSwitchId() const { + return vSwitchId_; } -void CreateLaunchTemplateVersionRequest::setVSwitchId(const std::string& vSwitchId) -{ - vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); +void CreateLaunchTemplateVersionRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); } -std::string CreateLaunchTemplateVersionRequest::getSpotStrategy()const -{ - return spotStrategy_; +std::string CreateLaunchTemplateVersionRequest::getSpotStrategy() const { + return spotStrategy_; } -void CreateLaunchTemplateVersionRequest::setSpotStrategy(const std::string& spotStrategy) -{ - spotStrategy_ = spotStrategy; - setParameter("SpotStrategy", spotStrategy); +void CreateLaunchTemplateVersionRequest::setSpotStrategy(const std::string &spotStrategy) { + spotStrategy_ = spotStrategy; + setParameter(std::string("SpotStrategy"), spotStrategy); } -std::string CreateLaunchTemplateVersionRequest::getPrivateIpAddress()const -{ - return privateIpAddress_; +std::string CreateLaunchTemplateVersionRequest::getPrivateIpAddress() const { + return privateIpAddress_; } -void CreateLaunchTemplateVersionRequest::setPrivateIpAddress(const std::string& privateIpAddress) -{ - privateIpAddress_ = privateIpAddress; - setParameter("PrivateIpAddress", privateIpAddress); +void CreateLaunchTemplateVersionRequest::setPrivateIpAddress(const std::string &privateIpAddress) { + privateIpAddress_ = privateIpAddress; + setParameter(std::string("PrivateIpAddress"), privateIpAddress); } -std::string CreateLaunchTemplateVersionRequest::getInstanceName()const -{ - return instanceName_; +std::string CreateLaunchTemplateVersionRequest::getInstanceName() const { + return instanceName_; } -void CreateLaunchTemplateVersionRequest::setInstanceName(const std::string& instanceName) -{ - instanceName_ = instanceName; - setParameter("InstanceName", instanceName); +void CreateLaunchTemplateVersionRequest::setInstanceName(const std::string &instanceName) { + instanceName_ = instanceName; + setParameter(std::string("InstanceName"), instanceName); } -std::string CreateLaunchTemplateVersionRequest::getInternetChargeType()const -{ - return internetChargeType_; +std::string CreateLaunchTemplateVersionRequest::getInternetChargeType() const { + return internetChargeType_; } -void CreateLaunchTemplateVersionRequest::setInternetChargeType(const std::string& internetChargeType) -{ - internetChargeType_ = internetChargeType; - setParameter("InternetChargeType", internetChargeType); +void CreateLaunchTemplateVersionRequest::setInternetChargeType(const std::string &internetChargeType) { + internetChargeType_ = internetChargeType; + setParameter(std::string("InternetChargeType"), internetChargeType); } -std::string CreateLaunchTemplateVersionRequest::getZoneId()const -{ - return zoneId_; +std::string CreateLaunchTemplateVersionRequest::getZoneId() const { + return zoneId_; } -void CreateLaunchTemplateVersionRequest::setZoneId(const std::string& zoneId) -{ - zoneId_ = zoneId; - setParameter("ZoneId", zoneId); +void CreateLaunchTemplateVersionRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); } -int CreateLaunchTemplateVersionRequest::getInternetMaxBandwidthIn()const -{ - return internetMaxBandwidthIn_; +int CreateLaunchTemplateVersionRequest::getInternetMaxBandwidthIn() const { + return internetMaxBandwidthIn_; } -void CreateLaunchTemplateVersionRequest::setInternetMaxBandwidthIn(int internetMaxBandwidthIn) -{ - internetMaxBandwidthIn_ = internetMaxBandwidthIn; - setParameter("InternetMaxBandwidthIn", std::to_string(internetMaxBandwidthIn)); +void CreateLaunchTemplateVersionRequest::setInternetMaxBandwidthIn(int internetMaxBandwidthIn) { + internetMaxBandwidthIn_ = internetMaxBandwidthIn; + setParameter(std::string("InternetMaxBandwidthIn"), std::to_string(internetMaxBandwidthIn)); } -std::string CreateLaunchTemplateVersionRequest::getVersionDescription()const -{ - return versionDescription_; +std::string CreateLaunchTemplateVersionRequest::getVersionDescription() const { + return versionDescription_; } -void CreateLaunchTemplateVersionRequest::setVersionDescription(const std::string& versionDescription) -{ - versionDescription_ = versionDescription; - setParameter("VersionDescription", versionDescription); +void CreateLaunchTemplateVersionRequest::setVersionDescription(const std::string &versionDescription) { + versionDescription_ = versionDescription; + setParameter(std::string("VersionDescription"), versionDescription); } -bool CreateLaunchTemplateVersionRequest::getSystemDiskDeleteWithInstance()const -{ - return systemDiskDeleteWithInstance_; +bool CreateLaunchTemplateVersionRequest::getSystemDiskDeleteWithInstance() const { + return systemDiskDeleteWithInstance_; } -void CreateLaunchTemplateVersionRequest::setSystemDiskDeleteWithInstance(bool systemDiskDeleteWithInstance) -{ - systemDiskDeleteWithInstance_ = systemDiskDeleteWithInstance; - setParameter("SystemDiskDeleteWithInstance", systemDiskDeleteWithInstance ? "true" : "false"); +void CreateLaunchTemplateVersionRequest::setSystemDiskDeleteWithInstance(bool systemDiskDeleteWithInstance) { + systemDiskDeleteWithInstance_ = systemDiskDeleteWithInstance; + setParameter(std::string("SystemDisk.DeleteWithInstance"), systemDiskDeleteWithInstance ? "true" : "false"); } -std::string CreateLaunchTemplateVersionRequest::getImageId()const -{ - return imageId_; +std::string CreateLaunchTemplateVersionRequest::getImageId() const { + return imageId_; } -void CreateLaunchTemplateVersionRequest::setImageId(const std::string& imageId) -{ - imageId_ = imageId; - setParameter("ImageId", imageId); +void CreateLaunchTemplateVersionRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("ImageId"), imageId); } -std::string CreateLaunchTemplateVersionRequest::getIoOptimized()const -{ - return ioOptimized_; +std::string CreateLaunchTemplateVersionRequest::getIoOptimized() const { + return ioOptimized_; } -void CreateLaunchTemplateVersionRequest::setIoOptimized(const std::string& ioOptimized) -{ - ioOptimized_ = ioOptimized; - setParameter("IoOptimized", ioOptimized); +void CreateLaunchTemplateVersionRequest::setIoOptimized(const std::string &ioOptimized) { + ioOptimized_ = ioOptimized; + setParameter(std::string("IoOptimized"), ioOptimized); } -std::string CreateLaunchTemplateVersionRequest::getSecurityGroupId()const -{ - return securityGroupId_; +std::string CreateLaunchTemplateVersionRequest::getSecurityGroupId() const { + return securityGroupId_; } -void CreateLaunchTemplateVersionRequest::setSecurityGroupId(const std::string& securityGroupId) -{ - securityGroupId_ = securityGroupId; - setParameter("SecurityGroupId", securityGroupId); +void CreateLaunchTemplateVersionRequest::setSecurityGroupId(const std::string &securityGroupId) { + securityGroupId_ = securityGroupId; + setParameter(std::string("SecurityGroupId"), securityGroupId); } -int CreateLaunchTemplateVersionRequest::getInternetMaxBandwidthOut()const -{ - return internetMaxBandwidthOut_; +int CreateLaunchTemplateVersionRequest::getInternetMaxBandwidthOut() const { + return internetMaxBandwidthOut_; } -void CreateLaunchTemplateVersionRequest::setInternetMaxBandwidthOut(int internetMaxBandwidthOut) -{ - internetMaxBandwidthOut_ = internetMaxBandwidthOut; - setParameter("InternetMaxBandwidthOut", std::to_string(internetMaxBandwidthOut)); +void CreateLaunchTemplateVersionRequest::setInternetMaxBandwidthOut(int internetMaxBandwidthOut) { + internetMaxBandwidthOut_ = internetMaxBandwidthOut; + setParameter(std::string("InternetMaxBandwidthOut"), std::to_string(internetMaxBandwidthOut)); } -std::string CreateLaunchTemplateVersionRequest::getDescription()const -{ - return description_; +std::string CreateLaunchTemplateVersionRequest::getDescription() const { + return description_; } -void CreateLaunchTemplateVersionRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +void CreateLaunchTemplateVersionRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -std::string CreateLaunchTemplateVersionRequest::getSystemDiskCategory()const -{ - return systemDiskCategory_; +std::string CreateLaunchTemplateVersionRequest::getSystemDiskCategory() const { + return systemDiskCategory_; } -void CreateLaunchTemplateVersionRequest::setSystemDiskCategory(const std::string& systemDiskCategory) -{ - systemDiskCategory_ = systemDiskCategory; - setParameter("SystemDiskCategory", systemDiskCategory); +void CreateLaunchTemplateVersionRequest::setSystemDiskCategory(const std::string &systemDiskCategory) { + systemDiskCategory_ = systemDiskCategory; + setParameter(std::string("SystemDisk.Category"), systemDiskCategory); } -std::string CreateLaunchTemplateVersionRequest::getSystemDiskPerformanceLevel()const -{ - return systemDiskPerformanceLevel_; +std::string CreateLaunchTemplateVersionRequest::getSystemDiskPerformanceLevel() const { + return systemDiskPerformanceLevel_; } -void CreateLaunchTemplateVersionRequest::setSystemDiskPerformanceLevel(const std::string& systemDiskPerformanceLevel) -{ - systemDiskPerformanceLevel_ = systemDiskPerformanceLevel; - setParameter("SystemDiskPerformanceLevel", systemDiskPerformanceLevel); +void CreateLaunchTemplateVersionRequest::setSystemDiskPerformanceLevel(const std::string &systemDiskPerformanceLevel) { + systemDiskPerformanceLevel_ = systemDiskPerformanceLevel; + setParameter(std::string("SystemDisk.PerformanceLevel"), systemDiskPerformanceLevel); } -std::string CreateLaunchTemplateVersionRequest::getUserData()const -{ - return userData_; +std::string CreateLaunchTemplateVersionRequest::getUserData() const { + return userData_; } -void CreateLaunchTemplateVersionRequest::setUserData(const std::string& userData) -{ - userData_ = userData; - setParameter("UserData", userData); +void CreateLaunchTemplateVersionRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); } -bool CreateLaunchTemplateVersionRequest::getPasswordInherit()const -{ - return passwordInherit_; +bool CreateLaunchTemplateVersionRequest::getPasswordInherit() const { + return passwordInherit_; } -void CreateLaunchTemplateVersionRequest::setPasswordInherit(bool passwordInherit) -{ - passwordInherit_ = passwordInherit; - setParameter("PasswordInherit", passwordInherit ? "true" : "false"); +void CreateLaunchTemplateVersionRequest::setPasswordInherit(bool passwordInherit) { + passwordInherit_ = passwordInherit; + setParameter(std::string("PasswordInherit"), passwordInherit ? "true" : "false"); } -std::string CreateLaunchTemplateVersionRequest::getRegionId()const -{ - return regionId_; +std::string CreateLaunchTemplateVersionRequest::getRegionId() const { + return regionId_; } -void CreateLaunchTemplateVersionRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +void CreateLaunchTemplateVersionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -std::string CreateLaunchTemplateVersionRequest::getInstanceType()const -{ - return instanceType_; +std::string CreateLaunchTemplateVersionRequest::getInstanceType() const { + return instanceType_; } -void CreateLaunchTemplateVersionRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +void CreateLaunchTemplateVersionRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } -std::string CreateLaunchTemplateVersionRequest::getInstanceChargeType()const -{ - return instanceChargeType_; +std::string CreateLaunchTemplateVersionRequest::getInstanceChargeType() const { + return instanceChargeType_; } -void CreateLaunchTemplateVersionRequest::setInstanceChargeType(const std::string& instanceChargeType) -{ - instanceChargeType_ = instanceChargeType; - setParameter("InstanceChargeType", instanceChargeType); +void CreateLaunchTemplateVersionRequest::setInstanceChargeType(const std::string &instanceChargeType) { + instanceChargeType_ = instanceChargeType; + setParameter(std::string("InstanceChargeType"), instanceChargeType); } -bool CreateLaunchTemplateVersionRequest::getEnableVmOsConfig()const -{ - return enableVmOsConfig_; +bool CreateLaunchTemplateVersionRequest::getEnableVmOsConfig() const { + return enableVmOsConfig_; } -void CreateLaunchTemplateVersionRequest::setEnableVmOsConfig(bool enableVmOsConfig) -{ - enableVmOsConfig_ = enableVmOsConfig; - setParameter("EnableVmOsConfig", enableVmOsConfig ? "true" : "false"); +void CreateLaunchTemplateVersionRequest::setEnableVmOsConfig(bool enableVmOsConfig) { + enableVmOsConfig_ = enableVmOsConfig; + setParameter(std::string("EnableVmOsConfig"), enableVmOsConfig ? "true" : "false"); } -std::vector CreateLaunchTemplateVersionRequest::getNetworkInterface()const -{ - return networkInterface_; +std::string CreateLaunchTemplateVersionRequest::getDeploymentSetId() const { + return deploymentSetId_; } -void CreateLaunchTemplateVersionRequest::setNetworkInterface(const std::vector& networkInterface) -{ - networkInterface_ = networkInterface; - for(int dep1 = 0; dep1!= networkInterface.size(); dep1++) { - auto networkInterfaceObj = networkInterface.at(dep1); - std::string networkInterfaceObjStr = "NetworkInterface." + std::to_string(dep1 + 1); - setParameter(networkInterfaceObjStr + ".PrimaryIpAddress", networkInterfaceObj.primaryIpAddress); - setParameter(networkInterfaceObjStr + ".VSwitchId", networkInterfaceObj.vSwitchId); - setParameter(networkInterfaceObjStr + ".SecurityGroupId", networkInterfaceObj.securityGroupId); - setParameter(networkInterfaceObjStr + ".NetworkInterfaceName", networkInterfaceObj.networkInterfaceName); - setParameter(networkInterfaceObjStr + ".Description", networkInterfaceObj.description); - for(int dep2 = 0; dep2!= networkInterfaceObj.securityGroupIds.size(); dep2++) { - setParameter(networkInterfaceObjStr + ".SecurityGroupIds."+ std::to_string(dep2), networkInterfaceObj.securityGroupIds.at(dep2)); - } - } +void CreateLaunchTemplateVersionRequest::setDeploymentSetId(const std::string &deploymentSetId) { + deploymentSetId_ = deploymentSetId; + setParameter(std::string("DeploymentSetId"), deploymentSetId); } -std::string CreateLaunchTemplateVersionRequest::getDeploymentSetId()const -{ - return deploymentSetId_; +std::vector CreateLaunchTemplateVersionRequest::getNetworkInterface() const { + return networkInterface_; } -void CreateLaunchTemplateVersionRequest::setDeploymentSetId(const std::string& deploymentSetId) -{ - deploymentSetId_ = deploymentSetId; - setParameter("DeploymentSetId", deploymentSetId); +void CreateLaunchTemplateVersionRequest::setNetworkInterface(const std::vector &networkInterface) { + networkInterface_ = networkInterface; + for(int dep1 = 0; dep1 != networkInterface.size(); dep1++) { + auto networkInterfaceObj = networkInterface.at(dep1); + std::string networkInterfaceObjStr = std::string("NetworkInterface") + "." + std::to_string(dep1 + 1); + setParameter(networkInterfaceObjStr + ".VSwitchId", networkInterfaceObj.vSwitchId); + setParameter(networkInterfaceObjStr + ".NetworkInterfaceName", networkInterfaceObj.networkInterfaceName); + setParameter(networkInterfaceObjStr + ".Description", networkInterfaceObj.description); + setParameter(networkInterfaceObjStr + ".SecurityGroupId", networkInterfaceObj.securityGroupId); + setParameter(networkInterfaceObjStr + ".PrimaryIpAddress", networkInterfaceObj.primaryIpAddress); + } } -std::string CreateLaunchTemplateVersionRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +std::string CreateLaunchTemplateVersionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -void CreateLaunchTemplateVersionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +void CreateLaunchTemplateVersionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -std::string CreateLaunchTemplateVersionRequest::getOwnerAccount()const -{ - return ownerAccount_; +std::string CreateLaunchTemplateVersionRequest::getOwnerAccount() const { + return ownerAccount_; } -void CreateLaunchTemplateVersionRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +void CreateLaunchTemplateVersionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -std::string CreateLaunchTemplateVersionRequest::getSystemDiskDiskName()const -{ - return systemDiskDiskName_; +std::string CreateLaunchTemplateVersionRequest::getSystemDiskDiskName() const { + return systemDiskDiskName_; } -void CreateLaunchTemplateVersionRequest::setSystemDiskDiskName(const std::string& systemDiskDiskName) -{ - systemDiskDiskName_ = systemDiskDiskName; - setParameter("SystemDiskDiskName", systemDiskDiskName); +void CreateLaunchTemplateVersionRequest::setSystemDiskDiskName(const std::string &systemDiskDiskName) { + systemDiskDiskName_ = systemDiskDiskName; + setParameter(std::string("SystemDisk.DiskName"), systemDiskDiskName); } -std::string CreateLaunchTemplateVersionRequest::getRamRoleName()const -{ - return ramRoleName_; +std::string CreateLaunchTemplateVersionRequest::getRamRoleName() const { + return ramRoleName_; } -void CreateLaunchTemplateVersionRequest::setRamRoleName(const std::string& ramRoleName) -{ - ramRoleName_ = ramRoleName; - setParameter("RamRoleName", ramRoleName); +void CreateLaunchTemplateVersionRequest::setRamRoleName(const std::string &ramRoleName) { + ramRoleName_ = ramRoleName; + setParameter(std::string("RamRoleName"), ramRoleName); } -std::string CreateLaunchTemplateVersionRequest::getAutoReleaseTime()const -{ - return autoReleaseTime_; +std::string CreateLaunchTemplateVersionRequest::getAutoReleaseTime() const { + return autoReleaseTime_; } -void CreateLaunchTemplateVersionRequest::setAutoReleaseTime(const std::string& autoReleaseTime) -{ - autoReleaseTime_ = autoReleaseTime; - setParameter("AutoReleaseTime", autoReleaseTime); +void CreateLaunchTemplateVersionRequest::setAutoReleaseTime(const std::string &autoReleaseTime) { + autoReleaseTime_ = autoReleaseTime; + setParameter(std::string("AutoReleaseTime"), autoReleaseTime); } -int CreateLaunchTemplateVersionRequest::getSpotDuration()const -{ - return spotDuration_; +int CreateLaunchTemplateVersionRequest::getSpotDuration() const { + return spotDuration_; } -void CreateLaunchTemplateVersionRequest::setSpotDuration(int spotDuration) -{ - spotDuration_ = spotDuration; - setParameter("SpotDuration", std::to_string(spotDuration)); +void CreateLaunchTemplateVersionRequest::setSpotDuration(int spotDuration) { + spotDuration_ = spotDuration; + setParameter(std::string("SpotDuration"), std::to_string(spotDuration)); } -std::vector CreateLaunchTemplateVersionRequest::getSecurityGroupIds()const -{ - return securityGroupIds_; +std::vector CreateLaunchTemplateVersionRequest::getSecurityGroupIds() const { + return securityGroupIds_; } -void CreateLaunchTemplateVersionRequest::setSecurityGroupIds(const std::vector& securityGroupIds) -{ - securityGroupIds_ = securityGroupIds; - for(int dep1 = 0; dep1!= securityGroupIds.size(); dep1++) { - setParameter("SecurityGroupIds."+ std::to_string(dep1), securityGroupIds.at(dep1)); - } +void CreateLaunchTemplateVersionRequest::setSecurityGroupIds(const std::vector &securityGroupIds) { + securityGroupIds_ = securityGroupIds; } -std::vector CreateLaunchTemplateVersionRequest::getDataDisk()const -{ - return dataDisk_; +std::vector CreateLaunchTemplateVersionRequest::getDataDisk() const { + return dataDisk_; } -void CreateLaunchTemplateVersionRequest::setDataDisk(const std::vector& dataDisk) -{ - dataDisk_ = dataDisk; - for(int dep1 = 0; dep1!= dataDisk.size(); dep1++) { - auto dataDiskObj = dataDisk.at(dep1); - std::string dataDiskObjStr = "DataDisk." + std::to_string(dep1 + 1); - setParameter(dataDiskObjStr + ".Size", std::to_string(dataDiskObj.size)); - setParameter(dataDiskObjStr + ".SnapshotId", dataDiskObj.snapshotId); - setParameter(dataDiskObjStr + ".Category", dataDiskObj.category); - setParameter(dataDiskObjStr + ".Encrypted", dataDiskObj.encrypted); - setParameter(dataDiskObjStr + ".DiskName", dataDiskObj.diskName); - setParameter(dataDiskObjStr + ".Description", dataDiskObj.description); - setParameter(dataDiskObjStr + ".DeleteWithInstance", dataDiskObj.deleteWithInstance ? "true" : "false"); - setParameter(dataDiskObjStr + ".Device", dataDiskObj.device); - setParameter(dataDiskObjStr + ".PerformanceLevel", dataDiskObj.performanceLevel); - } +void CreateLaunchTemplateVersionRequest::setDataDisk(const std::vector &dataDisk) { + dataDisk_ = dataDisk; + for(int dep1 = 0; dep1 != dataDisk.size(); dep1++) { + auto dataDiskObj = dataDisk.at(dep1); + std::string dataDiskObjStr = std::string("DataDisk") + "." + std::to_string(dep1 + 1); + setParameter(dataDiskObjStr + ".PerformanceLevel", dataDiskObj.performanceLevel); + setParameter(dataDiskObjStr + ".Description", dataDiskObj.description); + setParameter(dataDiskObjStr + ".SnapshotId", dataDiskObj.snapshotId); + setParameter(dataDiskObjStr + ".Size", std::to_string(dataDiskObj.size)); + setParameter(dataDiskObjStr + ".Device", dataDiskObj.device); + setParameter(dataDiskObjStr + ".DiskName", dataDiskObj.diskName); + setParameter(dataDiskObjStr + ".Category", dataDiskObj.category); + setParameter(dataDiskObjStr + ".DeleteWithInstance", dataDiskObj.deleteWithInstance ? "true" : "false"); + setParameter(dataDiskObjStr + ".Encrypted", dataDiskObj.encrypted); + } } -int CreateLaunchTemplateVersionRequest::getSystemDiskSize()const -{ - return systemDiskSize_; +int CreateLaunchTemplateVersionRequest::getSystemDiskSize() const { + return systemDiskSize_; } -void CreateLaunchTemplateVersionRequest::setSystemDiskSize(int systemDiskSize) -{ - systemDiskSize_ = systemDiskSize; - setParameter("SystemDiskSize", std::to_string(systemDiskSize)); +void CreateLaunchTemplateVersionRequest::setSystemDiskSize(int systemDiskSize) { + systemDiskSize_ = systemDiskSize; + setParameter(std::string("SystemDisk.Size"), std::to_string(systemDiskSize)); } -std::string CreateLaunchTemplateVersionRequest::getVpcId()const -{ - return vpcId_; +std::string CreateLaunchTemplateVersionRequest::getVpcId() const { + return vpcId_; } -void CreateLaunchTemplateVersionRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +void CreateLaunchTemplateVersionRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); } -std::string CreateLaunchTemplateVersionRequest::getSystemDiskDescription()const -{ - return systemDiskDescription_; +std::string CreateLaunchTemplateVersionRequest::getSystemDiskDescription() const { + return systemDiskDescription_; } -void CreateLaunchTemplateVersionRequest::setSystemDiskDescription(const std::string& systemDiskDescription) -{ - systemDiskDescription_ = systemDiskDescription; - setParameter("SystemDiskDescription", systemDiskDescription); +void CreateLaunchTemplateVersionRequest::setSystemDiskDescription(const std::string &systemDiskDescription) { + systemDiskDescription_ = systemDiskDescription; + setParameter(std::string("SystemDisk.Description"), systemDiskDescription); } diff --git a/ecs/src/model/CreateNatGatewayRequest.cc b/ecs/src/model/CreateNatGatewayRequest.cc index 71a8c994f..26de63dab 100644 --- a/ecs/src/model/CreateNatGatewayRequest.cc +++ b/ecs/src/model/CreateNatGatewayRequest.cc @@ -1,145 +1,123 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::CreateNatGatewayRequest; - -CreateNatGatewayRequest::CreateNatGatewayRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateNatGateway") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateNatGatewayRequest::~CreateNatGatewayRequest() -{} - -long CreateNatGatewayRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::CreateNatGatewayRequest; + +CreateNatGatewayRequest::CreateNatGatewayRequest() + : RpcServiceRequest("ecs", "2014-05-26", "CreateNatGateway") { + setMethod(HttpRequest::Method::Post); } -void CreateNatGatewayRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateNatGatewayRequest::~CreateNatGatewayRequest() {} + +long CreateNatGatewayRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateNatGatewayRequest::getClientToken()const -{ - return clientToken_; +void CreateNatGatewayRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateNatGatewayRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateNatGatewayRequest::getClientToken() const { + return clientToken_; } -std::string CreateNatGatewayRequest::getDescription()const -{ - return description_; +void CreateNatGatewayRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateNatGatewayRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateNatGatewayRequest::getDescription() const { + return description_; } -std::string CreateNatGatewayRequest::getRegionId()const -{ - return regionId_; +void CreateNatGatewayRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateNatGatewayRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateNatGatewayRequest::getRegionId() const { + return regionId_; } -std::vector CreateNatGatewayRequest::getBandwidthPackage()const -{ - return bandwidthPackage_; +void CreateNatGatewayRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateNatGatewayRequest::setBandwidthPackage(const std::vector& bandwidthPackage) -{ - bandwidthPackage_ = bandwidthPackage; - for(int dep1 = 0; dep1!= bandwidthPackage.size(); dep1++) { - auto bandwidthPackageObj = bandwidthPackage.at(dep1); - std::string bandwidthPackageObjStr = "BandwidthPackage." + std::to_string(dep1 + 1); - setParameter(bandwidthPackageObjStr + ".Bandwidth", std::to_string(bandwidthPackageObj.bandwidth)); - setParameter(bandwidthPackageObjStr + ".Zone", bandwidthPackageObj.zone); - setParameter(bandwidthPackageObjStr + ".IpCount", std::to_string(bandwidthPackageObj.ipCount)); - } +std::vector CreateNatGatewayRequest::getBandwidthPackage() const { + return bandwidthPackage_; } -std::string CreateNatGatewayRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateNatGatewayRequest::setBandwidthPackage(const std::vector &bandwidthPackage) { + bandwidthPackage_ = bandwidthPackage; + for(int dep1 = 0; dep1 != bandwidthPackage.size(); dep1++) { + auto bandwidthPackageObj = bandwidthPackage.at(dep1); + std::string bandwidthPackageObjStr = std::string("BandwidthPackage") + "." + std::to_string(dep1 + 1); + setParameter(bandwidthPackageObjStr + ".Bandwidth", std::to_string(bandwidthPackageObj.bandwidth)); + setParameter(bandwidthPackageObjStr + ".Zone", bandwidthPackageObj.zone); + setParameter(bandwidthPackageObjStr + ".IpCount", std::to_string(bandwidthPackageObj.ipCount)); + } } -void CreateNatGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateNatGatewayRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateNatGatewayRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateNatGatewayRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateNatGatewayRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateNatGatewayRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateNatGatewayRequest::getOwnerId()const -{ - return ownerId_; +void CreateNatGatewayRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateNatGatewayRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateNatGatewayRequest::getOwnerId() const { + return ownerId_; } -std::string CreateNatGatewayRequest::getVpcId()const -{ - return vpcId_; +void CreateNatGatewayRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateNatGatewayRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +std::string CreateNatGatewayRequest::getVpcId() const { + return vpcId_; } -std::string CreateNatGatewayRequest::getName()const -{ - return name_; +void CreateNatGatewayRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); } -void CreateNatGatewayRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string CreateNatGatewayRequest::getName() const { + return name_; +} + +void CreateNatGatewayRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/ecs/src/model/CreateNetworkInterfacePermissionRequest.cc b/ecs/src/model/CreateNetworkInterfacePermissionRequest.cc index d37ffedd8..11af00641 100644 --- a/ecs/src/model/CreateNetworkInterfacePermissionRequest.cc +++ b/ecs/src/model/CreateNetworkInterfacePermissionRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::CreateNetworkInterfacePermissionRequest; - -CreateNetworkInterfacePermissionRequest::CreateNetworkInterfacePermissionRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateNetworkInterfacePermission") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateNetworkInterfacePermissionRequest::~CreateNetworkInterfacePermissionRequest() -{} - -long CreateNetworkInterfacePermissionRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::CreateNetworkInterfacePermissionRequest; + +CreateNetworkInterfacePermissionRequest::CreateNetworkInterfacePermissionRequest() + : RpcServiceRequest("ecs", "2014-05-26", "CreateNetworkInterfacePermission") { + setMethod(HttpRequest::Method::Post); } -void CreateNetworkInterfacePermissionRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateNetworkInterfacePermissionRequest::~CreateNetworkInterfacePermissionRequest() {} + +long CreateNetworkInterfacePermissionRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -long CreateNetworkInterfacePermissionRequest::getAccountId()const -{ - return accountId_; +void CreateNetworkInterfacePermissionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateNetworkInterfacePermissionRequest::setAccountId(long accountId) -{ - accountId_ = accountId; - setParameter("AccountId", std::to_string(accountId)); +long CreateNetworkInterfacePermissionRequest::getAccountId() const { + return accountId_; } -std::string CreateNetworkInterfacePermissionRequest::getRegionId()const -{ - return regionId_; +void CreateNetworkInterfacePermissionRequest::setAccountId(long accountId) { + accountId_ = accountId; + setParameter(std::string("AccountId"), std::to_string(accountId)); } -void CreateNetworkInterfacePermissionRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateNetworkInterfacePermissionRequest::getRegionId() const { + return regionId_; } -std::string CreateNetworkInterfacePermissionRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateNetworkInterfacePermissionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateNetworkInterfacePermissionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateNetworkInterfacePermissionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateNetworkInterfacePermissionRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateNetworkInterfacePermissionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateNetworkInterfacePermissionRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateNetworkInterfacePermissionRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string CreateNetworkInterfacePermissionRequest::getPermission()const -{ - return permission_; +void CreateNetworkInterfacePermissionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateNetworkInterfacePermissionRequest::setPermission(const std::string& permission) -{ - permission_ = permission; - setParameter("Permission", permission); +std::string CreateNetworkInterfacePermissionRequest::getPermission() const { + return permission_; } -long CreateNetworkInterfacePermissionRequest::getOwnerId()const -{ - return ownerId_; +void CreateNetworkInterfacePermissionRequest::setPermission(const std::string &permission) { + permission_ = permission; + setParameter(std::string("Permission"), permission); } -void CreateNetworkInterfacePermissionRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateNetworkInterfacePermissionRequest::getOwnerId() const { + return ownerId_; } -std::string CreateNetworkInterfacePermissionRequest::getNetworkInterfaceId()const -{ - return networkInterfaceId_; +void CreateNetworkInterfacePermissionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateNetworkInterfacePermissionRequest::setNetworkInterfaceId(const std::string& networkInterfaceId) -{ - networkInterfaceId_ = networkInterfaceId; - setParameter("NetworkInterfaceId", networkInterfaceId); +std::string CreateNetworkInterfacePermissionRequest::getNetworkInterfaceId() const { + return networkInterfaceId_; +} + +void CreateNetworkInterfacePermissionRequest::setNetworkInterfaceId(const std::string &networkInterfaceId) { + networkInterfaceId_ = networkInterfaceId; + setParameter(std::string("NetworkInterfaceId"), networkInterfaceId); } diff --git a/ecs/src/model/CreateNetworkInterfacePermissionResult.cc b/ecs/src/model/CreateNetworkInterfacePermissionResult.cc index 2d9b5964b..2ce5c8755 100644 --- a/ecs/src/model/CreateNetworkInterfacePermissionResult.cc +++ b/ecs/src/model/CreateNetworkInterfacePermissionResult.cc @@ -40,16 +40,16 @@ void CreateNetworkInterfacePermissionResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto networkInterfacePermissionNode = value["NetworkInterfacePermission"]; - if(!networkInterfacePermissionNode["AccountId"].isNull()) - networkInterfacePermission_.accountId = std::stol(networkInterfacePermissionNode["AccountId"].asString()); - if(!networkInterfacePermissionNode["ServiceName"].isNull()) - networkInterfacePermission_.serviceName = networkInterfacePermissionNode["ServiceName"].asString(); - if(!networkInterfacePermissionNode["NetworkInterfaceId"].isNull()) - networkInterfacePermission_.networkInterfaceId = networkInterfacePermissionNode["NetworkInterfaceId"].asString(); - if(!networkInterfacePermissionNode["NetworkInterfacePermissionId"].isNull()) - networkInterfacePermission_.networkInterfacePermissionId = networkInterfacePermissionNode["NetworkInterfacePermissionId"].asString(); if(!networkInterfacePermissionNode["Permission"].isNull()) networkInterfacePermission_.permission = networkInterfacePermissionNode["Permission"].asString(); + if(!networkInterfacePermissionNode["NetworkInterfaceId"].isNull()) + networkInterfacePermission_.networkInterfaceId = networkInterfacePermissionNode["NetworkInterfaceId"].asString(); + if(!networkInterfacePermissionNode["AccountId"].isNull()) + networkInterfacePermission_.accountId = std::stol(networkInterfacePermissionNode["AccountId"].asString()); + if(!networkInterfacePermissionNode["NetworkInterfacePermissionId"].isNull()) + networkInterfacePermission_.networkInterfacePermissionId = networkInterfacePermissionNode["NetworkInterfacePermissionId"].asString(); + if(!networkInterfacePermissionNode["ServiceName"].isNull()) + networkInterfacePermission_.serviceName = networkInterfacePermissionNode["ServiceName"].asString(); if(!networkInterfacePermissionNode["PermissionState"].isNull()) networkInterfacePermission_.permissionState = networkInterfacePermissionNode["PermissionState"].asString(); diff --git a/ecs/src/model/CreateNetworkInterfaceRequest.cc b/ecs/src/model/CreateNetworkInterfaceRequest.cc index 88e9f8279..98164444b 100644 --- a/ecs/src/model/CreateNetworkInterfaceRequest.cc +++ b/ecs/src/model/CreateNetworkInterfaceRequest.cc @@ -1,304 +1,245 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::CreateNetworkInterfaceRequest; - -CreateNetworkInterfaceRequest::CreateNetworkInterfaceRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateNetworkInterface") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateNetworkInterfaceRequest::~CreateNetworkInterfaceRequest() -{} - -int CreateNetworkInterfaceRequest::getQueueNumber()const -{ - return queueNumber_; + */ + +#include + +using AlibabaCloud::Ecs::Model::CreateNetworkInterfaceRequest; + +CreateNetworkInterfaceRequest::CreateNetworkInterfaceRequest() + : RpcServiceRequest("ecs", "2014-05-26", "CreateNetworkInterface") { + setMethod(HttpRequest::Method::Post); } -void CreateNetworkInterfaceRequest::setQueueNumber(int queueNumber) -{ - queueNumber_ = queueNumber; - setParameter("QueueNumber", std::to_string(queueNumber)); +CreateNetworkInterfaceRequest::~CreateNetworkInterfaceRequest() {} + +int CreateNetworkInterfaceRequest::getQueueNumber() const { + return queueNumber_; } -long CreateNetworkInterfaceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void CreateNetworkInterfaceRequest::setQueueNumber(int queueNumber) { + queueNumber_ = queueNumber; + setParameter(std::string("QueueNumber"), std::to_string(queueNumber)); } -void CreateNetworkInterfaceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long CreateNetworkInterfaceRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateNetworkInterfaceRequest::getClientToken()const -{ - return clientToken_; +void CreateNetworkInterfaceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateNetworkInterfaceRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateNetworkInterfaceRequest::getClientToken() const { + return clientToken_; } -std::string CreateNetworkInterfaceRequest::getSecurityGroupId()const -{ - return securityGroupId_; +void CreateNetworkInterfaceRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateNetworkInterfaceRequest::setSecurityGroupId(const std::string& securityGroupId) -{ - securityGroupId_ = securityGroupId; - setParameter("SecurityGroupId", securityGroupId); +std::string CreateNetworkInterfaceRequest::getSecurityGroupId() const { + return securityGroupId_; } -std::string CreateNetworkInterfaceRequest::getDescription()const -{ - return description_; +void CreateNetworkInterfaceRequest::setSecurityGroupId(const std::string &securityGroupId) { + securityGroupId_ = securityGroupId; + setParameter(std::string("SecurityGroupId"), securityGroupId); } -void CreateNetworkInterfaceRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateNetworkInterfaceRequest::getDescription() const { + return description_; } -int CreateNetworkInterfaceRequest::getSecondaryPrivateIpAddressCount()const -{ - return secondaryPrivateIpAddressCount_; +void CreateNetworkInterfaceRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateNetworkInterfaceRequest::setSecondaryPrivateIpAddressCount(int secondaryPrivateIpAddressCount) -{ - secondaryPrivateIpAddressCount_ = secondaryPrivateIpAddressCount; - setParameter("SecondaryPrivateIpAddressCount", std::to_string(secondaryPrivateIpAddressCount)); +int CreateNetworkInterfaceRequest::getSecondaryPrivateIpAddressCount() const { + return secondaryPrivateIpAddressCount_; } -std::string CreateNetworkInterfaceRequest::getBusinessType()const -{ - return businessType_; +void CreateNetworkInterfaceRequest::setSecondaryPrivateIpAddressCount(int secondaryPrivateIpAddressCount) { + secondaryPrivateIpAddressCount_ = secondaryPrivateIpAddressCount; + setParameter(std::string("SecondaryPrivateIpAddressCount"), std::to_string(secondaryPrivateIpAddressCount)); } -void CreateNetworkInterfaceRequest::setBusinessType(const std::string& businessType) -{ - businessType_ = businessType; - setParameter("BusinessType", businessType); +std::string CreateNetworkInterfaceRequest::getBusinessType() const { + return businessType_; } -std::string CreateNetworkInterfaceRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void CreateNetworkInterfaceRequest::setBusinessType(const std::string &businessType) { + businessType_ = businessType; + setParameter(std::string("BusinessType"), businessType); } -void CreateNetworkInterfaceRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string CreateNetworkInterfaceRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string CreateNetworkInterfaceRequest::getRegionId()const -{ - return regionId_; +void CreateNetworkInterfaceRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void CreateNetworkInterfaceRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateNetworkInterfaceRequest::getRegionId() const { + return regionId_; } -std::string CreateNetworkInterfaceRequest::getInstanceType()const -{ - return instanceType_; +void CreateNetworkInterfaceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateNetworkInterfaceRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +std::string CreateNetworkInterfaceRequest::getInstanceType() const { + return instanceType_; } -std::vector CreateNetworkInterfaceRequest::getTag()const -{ - return tag_; +void CreateNetworkInterfaceRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } -void CreateNetworkInterfaceRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Key", tagObj.key); - setParameter(tagObjStr + ".Value", tagObj.value); - } +std::vector CreateNetworkInterfaceRequest::getTag() const { + return tag_; } -std::string CreateNetworkInterfaceRequest::getNetworkInterfaceName()const -{ - return networkInterfaceName_; +void CreateNetworkInterfaceRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } } -void CreateNetworkInterfaceRequest::setNetworkInterfaceName(const std::string& networkInterfaceName) -{ - networkInterfaceName_ = networkInterfaceName; - setParameter("NetworkInterfaceName", networkInterfaceName); +std::string CreateNetworkInterfaceRequest::getNetworkInterfaceName() const { + return networkInterfaceName_; } -bool CreateNetworkInterfaceRequest::getVisible()const -{ - return visible_; +void CreateNetworkInterfaceRequest::setNetworkInterfaceName(const std::string &networkInterfaceName) { + networkInterfaceName_ = networkInterfaceName; + setParameter(std::string("NetworkInterfaceName"), networkInterfaceName); } -void CreateNetworkInterfaceRequest::setVisible(bool visible) -{ - visible_ = visible; - setParameter("Visible", visible ? "true" : "false"); +bool CreateNetworkInterfaceRequest::getVisible() const { + return visible_; } -std::string CreateNetworkInterfaceRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateNetworkInterfaceRequest::setVisible(bool visible) { + visible_ = visible; + setParameter(std::string("Visible"), visible ? "true" : "false"); } -void CreateNetworkInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateNetworkInterfaceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -int CreateNetworkInterfaceRequest::getIpv6AddressCount()const -{ - return ipv6AddressCount_; +void CreateNetworkInterfaceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateNetworkInterfaceRequest::setIpv6AddressCount(int ipv6AddressCount) -{ - ipv6AddressCount_ = ipv6AddressCount; - setParameter("Ipv6AddressCount", std::to_string(ipv6AddressCount)); +int CreateNetworkInterfaceRequest::getIpv6AddressCount() const { + return ipv6AddressCount_; } -std::string CreateNetworkInterfaceRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateNetworkInterfaceRequest::setIpv6AddressCount(int ipv6AddressCount) { + ipv6AddressCount_ = ipv6AddressCount; + setParameter(std::string("Ipv6AddressCount"), std::to_string(ipv6AddressCount)); } -void CreateNetworkInterfaceRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateNetworkInterfaceRequest::getOwnerAccount() const { + return ownerAccount_; } -int CreateNetworkInterfaceRequest::getQueuePairNumber()const -{ - return queuePairNumber_; +void CreateNetworkInterfaceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateNetworkInterfaceRequest::setQueuePairNumber(int queuePairNumber) -{ - queuePairNumber_ = queuePairNumber; - setParameter("QueuePairNumber", std::to_string(queuePairNumber)); +int CreateNetworkInterfaceRequest::getQueuePairNumber() const { + return queuePairNumber_; } -long CreateNetworkInterfaceRequest::getOwnerId()const -{ - return ownerId_; +void CreateNetworkInterfaceRequest::setQueuePairNumber(int queuePairNumber) { + queuePairNumber_ = queuePairNumber; + setParameter(std::string("QueuePairNumber"), std::to_string(queuePairNumber)); } -void CreateNetworkInterfaceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateNetworkInterfaceRequest::getOwnerId() const { + return ownerId_; } -std::vector CreateNetworkInterfaceRequest::getSecurityGroupIds()const -{ - return securityGroupIds_; +void CreateNetworkInterfaceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateNetworkInterfaceRequest::setSecurityGroupIds(const std::vector& securityGroupIds) -{ - securityGroupIds_ = securityGroupIds; - for(int dep1 = 0; dep1!= securityGroupIds.size(); dep1++) { - setParameter("SecurityGroupIds."+ std::to_string(dep1), securityGroupIds.at(dep1)); - } +std::vector CreateNetworkInterfaceRequest::getSecurityGroupIds() const { + return securityGroupIds_; } -std::string CreateNetworkInterfaceRequest::getNetworkInterfaceTrafficMode()const -{ - return networkInterfaceTrafficMode_; +void CreateNetworkInterfaceRequest::setSecurityGroupIds(const std::vector &securityGroupIds) { + securityGroupIds_ = securityGroupIds; } -void CreateNetworkInterfaceRequest::setNetworkInterfaceTrafficMode(const std::string& networkInterfaceTrafficMode) -{ - networkInterfaceTrafficMode_ = networkInterfaceTrafficMode; - setParameter("NetworkInterfaceTrafficMode", networkInterfaceTrafficMode); +std::string CreateNetworkInterfaceRequest::getNetworkInterfaceTrafficMode() const { + return networkInterfaceTrafficMode_; } -std::string CreateNetworkInterfaceRequest::getVSwitchId()const -{ - return vSwitchId_; +void CreateNetworkInterfaceRequest::setNetworkInterfaceTrafficMode(const std::string &networkInterfaceTrafficMode) { + networkInterfaceTrafficMode_ = networkInterfaceTrafficMode; + setParameter(std::string("NetworkInterfaceTrafficMode"), networkInterfaceTrafficMode); } -void CreateNetworkInterfaceRequest::setVSwitchId(const std::string& vSwitchId) -{ - vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); +std::string CreateNetworkInterfaceRequest::getVSwitchId() const { + return vSwitchId_; } -std::vector CreateNetworkInterfaceRequest::getPrivateIpAddress()const -{ - return privateIpAddress_; +void CreateNetworkInterfaceRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); } -void CreateNetworkInterfaceRequest::setPrivateIpAddress(const std::vector& privateIpAddress) -{ - privateIpAddress_ = privateIpAddress; - for(int dep1 = 0; dep1!= privateIpAddress.size(); dep1++) { - setParameter("PrivateIpAddress."+ std::to_string(dep1), privateIpAddress.at(dep1)); - } +std::vector CreateNetworkInterfaceRequest::getPrivateIpAddress() const { + return privateIpAddress_; } -std::string CreateNetworkInterfaceRequest::getPrimaryIpAddress()const -{ - return primaryIpAddress_; +void CreateNetworkInterfaceRequest::setPrivateIpAddress(const std::vector &privateIpAddress) { + privateIpAddress_ = privateIpAddress; } -void CreateNetworkInterfaceRequest::setPrimaryIpAddress(const std::string& primaryIpAddress) -{ - primaryIpAddress_ = primaryIpAddress; - setParameter("PrimaryIpAddress", primaryIpAddress); +std::string CreateNetworkInterfaceRequest::getPrimaryIpAddress() const { + return primaryIpAddress_; } -std::vector CreateNetworkInterfaceRequest::getIpv6Address()const -{ - return ipv6Address_; +void CreateNetworkInterfaceRequest::setPrimaryIpAddress(const std::string &primaryIpAddress) { + primaryIpAddress_ = primaryIpAddress; + setParameter(std::string("PrimaryIpAddress"), primaryIpAddress); } -void CreateNetworkInterfaceRequest::setIpv6Address(const std::vector& ipv6Address) -{ - ipv6Address_ = ipv6Address; - for(int dep1 = 0; dep1!= ipv6Address.size(); dep1++) { - setParameter("Ipv6Address."+ std::to_string(dep1), ipv6Address.at(dep1)); - } +std::vector CreateNetworkInterfaceRequest::getIpv6Address() const { + return ipv6Address_; +} + +void CreateNetworkInterfaceRequest::setIpv6Address(const std::vector &ipv6Address) { + ipv6Address_ = ipv6Address; } diff --git a/ecs/src/model/CreatePhysicalConnectionRequest.cc b/ecs/src/model/CreatePhysicalConnectionRequest.cc index eba52d209..b3ec640d3 100644 --- a/ecs/src/model/CreatePhysicalConnectionRequest.cc +++ b/ecs/src/model/CreatePhysicalConnectionRequest.cc @@ -1,216 +1,180 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::CreatePhysicalConnectionRequest; - -CreatePhysicalConnectionRequest::CreatePhysicalConnectionRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreatePhysicalConnection") -{ - setMethod(HttpRequest::Method::Post); -} - -CreatePhysicalConnectionRequest::~CreatePhysicalConnectionRequest() -{} - -std::string CreatePhysicalConnectionRequest::getAccessPointId()const -{ - return accessPointId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::CreatePhysicalConnectionRequest; + +CreatePhysicalConnectionRequest::CreatePhysicalConnectionRequest() + : RpcServiceRequest("ecs", "2014-05-26", "CreatePhysicalConnection") { + setMethod(HttpRequest::Method::Post); } -void CreatePhysicalConnectionRequest::setAccessPointId(const std::string& accessPointId) -{ - accessPointId_ = accessPointId; - setParameter("AccessPointId", accessPointId); +CreatePhysicalConnectionRequest::~CreatePhysicalConnectionRequest() {} + +std::string CreatePhysicalConnectionRequest::getAccessPointId() const { + return accessPointId_; } -long CreatePhysicalConnectionRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void CreatePhysicalConnectionRequest::setAccessPointId(const std::string &accessPointId) { + accessPointId_ = accessPointId; + setParameter(std::string("AccessPointId"), accessPointId); } -void CreatePhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long CreatePhysicalConnectionRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreatePhysicalConnectionRequest::getPortType()const -{ - return portType_; +void CreatePhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreatePhysicalConnectionRequest::setPortType(const std::string& portType) -{ - portType_ = portType; - setParameter("PortType", portType); +std::string CreatePhysicalConnectionRequest::getPortType() const { + return portType_; } -std::string CreatePhysicalConnectionRequest::getCircuitCode()const -{ - return circuitCode_; +void CreatePhysicalConnectionRequest::setPortType(const std::string &portType) { + portType_ = portType; + setParameter(std::string("PortType"), portType); } -void CreatePhysicalConnectionRequest::setCircuitCode(const std::string& circuitCode) -{ - circuitCode_ = circuitCode; - setParameter("CircuitCode", circuitCode); +std::string CreatePhysicalConnectionRequest::getCircuitCode() const { + return circuitCode_; } -std::string CreatePhysicalConnectionRequest::getClientToken()const -{ - return clientToken_; +void CreatePhysicalConnectionRequest::setCircuitCode(const std::string &circuitCode) { + circuitCode_ = circuitCode; + setParameter(std::string("CircuitCode"), circuitCode); } -void CreatePhysicalConnectionRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreatePhysicalConnectionRequest::getClientToken() const { + return clientToken_; } -std::string CreatePhysicalConnectionRequest::getDescription()const -{ - return description_; +void CreatePhysicalConnectionRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreatePhysicalConnectionRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreatePhysicalConnectionRequest::getDescription() const { + return description_; } -std::string CreatePhysicalConnectionRequest::getType()const -{ - return type_; +void CreatePhysicalConnectionRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreatePhysicalConnectionRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +std::string CreatePhysicalConnectionRequest::getType() const { + return type_; } -std::string CreatePhysicalConnectionRequest::getRegionId()const -{ - return regionId_; +void CreatePhysicalConnectionRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void CreatePhysicalConnectionRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreatePhysicalConnectionRequest::getRegionId() const { + return regionId_; } -std::string CreatePhysicalConnectionRequest::getUserCidr()const -{ - return userCidr_; +void CreatePhysicalConnectionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreatePhysicalConnectionRequest::setUserCidr(const std::string& userCidr) -{ - userCidr_ = userCidr; - setParameter("UserCidr", userCidr); +std::string CreatePhysicalConnectionRequest::getUserCidr() const { + return userCidr_; } -std::string CreatePhysicalConnectionRequest::getRedundantPhysicalConnectionId()const -{ - return redundantPhysicalConnectionId_; +void CreatePhysicalConnectionRequest::setUserCidr(const std::string &userCidr) { + userCidr_ = userCidr; + setParameter(std::string("UserCidr"), userCidr); } -void CreatePhysicalConnectionRequest::setRedundantPhysicalConnectionId(const std::string& redundantPhysicalConnectionId) -{ - redundantPhysicalConnectionId_ = redundantPhysicalConnectionId; - setParameter("RedundantPhysicalConnectionId", redundantPhysicalConnectionId); +std::string CreatePhysicalConnectionRequest::getRedundantPhysicalConnectionId() const { + return redundantPhysicalConnectionId_; } -std::string CreatePhysicalConnectionRequest::getPeerLocation()const -{ - return peerLocation_; +void CreatePhysicalConnectionRequest::setRedundantPhysicalConnectionId(const std::string &redundantPhysicalConnectionId) { + redundantPhysicalConnectionId_ = redundantPhysicalConnectionId; + setParameter(std::string("RedundantPhysicalConnectionId"), redundantPhysicalConnectionId); } -void CreatePhysicalConnectionRequest::setPeerLocation(const std::string& peerLocation) -{ - peerLocation_ = peerLocation; - setParameter("PeerLocation", peerLocation); +std::string CreatePhysicalConnectionRequest::getPeerLocation() const { + return peerLocation_; } -int CreatePhysicalConnectionRequest::getBandwidth()const -{ - return bandwidth_; +void CreatePhysicalConnectionRequest::setPeerLocation(const std::string &peerLocation) { + peerLocation_ = peerLocation; + setParameter(std::string("PeerLocation"), peerLocation); } -void CreatePhysicalConnectionRequest::setBandwidth(int bandwidth) -{ - bandwidth_ = bandwidth; - setParameter("Bandwidth", std::to_string(bandwidth)); +int CreatePhysicalConnectionRequest::getBandwidth() const { + return bandwidth_; } -std::string CreatePhysicalConnectionRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreatePhysicalConnectionRequest::setBandwidth(int bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("bandwidth"), std::to_string(bandwidth)); } -void CreatePhysicalConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreatePhysicalConnectionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreatePhysicalConnectionRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreatePhysicalConnectionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreatePhysicalConnectionRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreatePhysicalConnectionRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreatePhysicalConnectionRequest::getOwnerId()const -{ - return ownerId_; +void CreatePhysicalConnectionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreatePhysicalConnectionRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreatePhysicalConnectionRequest::getOwnerId() const { + return ownerId_; } -std::string CreatePhysicalConnectionRequest::getLineOperator()const -{ - return lineOperator_; +void CreatePhysicalConnectionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreatePhysicalConnectionRequest::setLineOperator(const std::string& lineOperator) -{ - lineOperator_ = lineOperator; - setParameter("LineOperator", lineOperator); +std::string CreatePhysicalConnectionRequest::getLineOperator() const { + return lineOperator_; } -std::string CreatePhysicalConnectionRequest::getName()const -{ - return name_; +void CreatePhysicalConnectionRequest::setLineOperator(const std::string &lineOperator) { + lineOperator_ = lineOperator; + setParameter(std::string("LineOperator"), lineOperator); } -void CreatePhysicalConnectionRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string CreatePhysicalConnectionRequest::getName() const { + return name_; +} + +void CreatePhysicalConnectionRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/ecs/src/model/CreatePrefixListRequest.cc b/ecs/src/model/CreatePrefixListRequest.cc index 4683444f9..0cf52e5d0 100644 --- a/ecs/src/model/CreatePrefixListRequest.cc +++ b/ecs/src/model/CreatePrefixListRequest.cc @@ -1,155 +1,131 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::CreatePrefixListRequest; - -CreatePrefixListRequest::CreatePrefixListRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreatePrefixList") -{ - setMethod(HttpRequest::Method::Post); -} - -CreatePrefixListRequest::~CreatePrefixListRequest() -{} - -long CreatePrefixListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::CreatePrefixListRequest; + +CreatePrefixListRequest::CreatePrefixListRequest() + : RpcServiceRequest("ecs", "2014-05-26", "CreatePrefixList") { + setMethod(HttpRequest::Method::Post); } -void CreatePrefixListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreatePrefixListRequest::~CreatePrefixListRequest() {} + +long CreatePrefixListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreatePrefixListRequest::getClientToken()const -{ - return clientToken_; +void CreatePrefixListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreatePrefixListRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreatePrefixListRequest::getClientToken() const { + return clientToken_; } -std::string CreatePrefixListRequest::getDescription()const -{ - return description_; +void CreatePrefixListRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreatePrefixListRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreatePrefixListRequest::getDescription() const { + return description_; } -int CreatePrefixListRequest::getMaxEntries()const -{ - return maxEntries_; +void CreatePrefixListRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreatePrefixListRequest::setMaxEntries(int maxEntries) -{ - maxEntries_ = maxEntries; - setParameter("MaxEntries", std::to_string(maxEntries)); +int CreatePrefixListRequest::getMaxEntries() const { + return maxEntries_; } -std::string CreatePrefixListRequest::getRegionId()const -{ - return regionId_; +void CreatePrefixListRequest::setMaxEntries(int maxEntries) { + maxEntries_ = maxEntries; + setParameter(std::string("MaxEntries"), std::to_string(maxEntries)); } -void CreatePrefixListRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreatePrefixListRequest::getRegionId() const { + return regionId_; } -std::string CreatePrefixListRequest::getAddressFamily()const -{ - return addressFamily_; +void CreatePrefixListRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreatePrefixListRequest::setAddressFamily(const std::string& addressFamily) -{ - addressFamily_ = addressFamily; - setParameter("AddressFamily", addressFamily); +std::string CreatePrefixListRequest::getAddressFamily() const { + return addressFamily_; } -std::string CreatePrefixListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreatePrefixListRequest::setAddressFamily(const std::string &addressFamily) { + addressFamily_ = addressFamily; + setParameter(std::string("AddressFamily"), addressFamily); } -void CreatePrefixListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreatePrefixListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreatePrefixListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreatePrefixListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreatePrefixListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreatePrefixListRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreatePrefixListRequest::getOwnerId()const -{ - return ownerId_; +void CreatePrefixListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreatePrefixListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreatePrefixListRequest::getOwnerId() const { + return ownerId_; } -std::string CreatePrefixListRequest::getPrefixListName()const -{ - return prefixListName_; +void CreatePrefixListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreatePrefixListRequest::setPrefixListName(const std::string& prefixListName) -{ - prefixListName_ = prefixListName; - setParameter("PrefixListName", prefixListName); +std::string CreatePrefixListRequest::getPrefixListName() const { + return prefixListName_; } -std::vector CreatePrefixListRequest::getEntry()const -{ - return entry_; +void CreatePrefixListRequest::setPrefixListName(const std::string &prefixListName) { + prefixListName_ = prefixListName; + setParameter(std::string("PrefixListName"), prefixListName); } -void CreatePrefixListRequest::setEntry(const std::vector& entry) -{ - entry_ = entry; - for(int dep1 = 0; dep1!= entry.size(); dep1++) { - auto entryObj = entry.at(dep1); - std::string entryObjStr = "Entry." + std::to_string(dep1 + 1); - setParameter(entryObjStr + ".Cidr", entryObj.cidr); - setParameter(entryObjStr + ".Description", entryObj.description); - } +std::vector CreatePrefixListRequest::getEntry() const { + return entry_; +} + +void CreatePrefixListRequest::setEntry(const std::vector &entry) { + entry_ = entry; + for(int dep1 = 0; dep1 != entry.size(); dep1++) { + auto entryObj = entry.at(dep1); + std::string entryObjStr = std::string("Entry") + "." + std::to_string(dep1 + 1); + setParameter(entryObjStr + ".Description", entryObj.description); + setParameter(entryObjStr + ".Cidr", entryObj.cidr); + } } diff --git a/ecs/src/model/CreateRouteEntryRequest.cc b/ecs/src/model/CreateRouteEntryRequest.cc index ca1df7672..94a21ff20 100644 --- a/ecs/src/model/CreateRouteEntryRequest.cc +++ b/ecs/src/model/CreateRouteEntryRequest.cc @@ -1,155 +1,131 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::CreateRouteEntryRequest; - -CreateRouteEntryRequest::CreateRouteEntryRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateRouteEntry") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateRouteEntryRequest::~CreateRouteEntryRequest() -{} - -long CreateRouteEntryRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::CreateRouteEntryRequest; + +CreateRouteEntryRequest::CreateRouteEntryRequest() + : RpcServiceRequest("ecs", "2014-05-26", "CreateRouteEntry") { + setMethod(HttpRequest::Method::Post); } -void CreateRouteEntryRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateRouteEntryRequest::~CreateRouteEntryRequest() {} + +long CreateRouteEntryRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateRouteEntryRequest::getClientToken()const -{ - return clientToken_; +void CreateRouteEntryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateRouteEntryRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateRouteEntryRequest::getClientToken() const { + return clientToken_; } -std::string CreateRouteEntryRequest::getRegionId()const -{ - return regionId_; +void CreateRouteEntryRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateRouteEntryRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateRouteEntryRequest::getRegionId() const { + return regionId_; } -std::string CreateRouteEntryRequest::getNextHopId()const -{ - return nextHopId_; +void CreateRouteEntryRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateRouteEntryRequest::setNextHopId(const std::string& nextHopId) -{ - nextHopId_ = nextHopId; - setParameter("NextHopId", nextHopId); +std::string CreateRouteEntryRequest::getNextHopId() const { + return nextHopId_; } -std::string CreateRouteEntryRequest::getNextHopType()const -{ - return nextHopType_; +void CreateRouteEntryRequest::setNextHopId(const std::string &nextHopId) { + nextHopId_ = nextHopId; + setParameter(std::string("NextHopId"), nextHopId); } -void CreateRouteEntryRequest::setNextHopType(const std::string& nextHopType) -{ - nextHopType_ = nextHopType; - setParameter("NextHopType", nextHopType); +std::string CreateRouteEntryRequest::getNextHopType() const { + return nextHopType_; } -std::string CreateRouteEntryRequest::getRouteTableId()const -{ - return routeTableId_; +void CreateRouteEntryRequest::setNextHopType(const std::string &nextHopType) { + nextHopType_ = nextHopType; + setParameter(std::string("NextHopType"), nextHopType); } -void CreateRouteEntryRequest::setRouteTableId(const std::string& routeTableId) -{ - routeTableId_ = routeTableId; - setParameter("RouteTableId", routeTableId); +std::string CreateRouteEntryRequest::getRouteTableId() const { + return routeTableId_; } -std::string CreateRouteEntryRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateRouteEntryRequest::setRouteTableId(const std::string &routeTableId) { + routeTableId_ = routeTableId; + setParameter(std::string("RouteTableId"), routeTableId); } -void CreateRouteEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateRouteEntryRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateRouteEntryRequest::getDestinationCidrBlock()const -{ - return destinationCidrBlock_; +void CreateRouteEntryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateRouteEntryRequest::setDestinationCidrBlock(const std::string& destinationCidrBlock) -{ - destinationCidrBlock_ = destinationCidrBlock; - setParameter("DestinationCidrBlock", destinationCidrBlock); +std::string CreateRouteEntryRequest::getDestinationCidrBlock() const { + return destinationCidrBlock_; } -std::string CreateRouteEntryRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateRouteEntryRequest::setDestinationCidrBlock(const std::string &destinationCidrBlock) { + destinationCidrBlock_ = destinationCidrBlock; + setParameter(std::string("DestinationCidrBlock"), destinationCidrBlock); } -void CreateRouteEntryRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateRouteEntryRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateRouteEntryRequest::getOwnerId()const -{ - return ownerId_; +void CreateRouteEntryRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateRouteEntryRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateRouteEntryRequest::getOwnerId() const { + return ownerId_; } -std::vector CreateRouteEntryRequest::getNextHopList()const -{ - return nextHopList_; +void CreateRouteEntryRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateRouteEntryRequest::setNextHopList(const std::vector& nextHopList) -{ - nextHopList_ = nextHopList; - for(int dep1 = 0; dep1!= nextHopList.size(); dep1++) { - auto nextHopListObj = nextHopList.at(dep1); - std::string nextHopListObjStr = "NextHopList." + std::to_string(dep1 + 1); - setParameter(nextHopListObjStr + ".NextHopId", nextHopListObj.nextHopId); - setParameter(nextHopListObjStr + ".NextHopType", nextHopListObj.nextHopType); - } +std::vector CreateRouteEntryRequest::getNextHopList() const { + return nextHopList_; +} + +void CreateRouteEntryRequest::setNextHopList(const std::vector &nextHopList) { + nextHopList_ = nextHopList; + for(int dep1 = 0; dep1 != nextHopList.size(); dep1++) { + auto nextHopListObj = nextHopList.at(dep1); + std::string nextHopListObjStr = std::string("NextHopList") + "." + std::to_string(dep1 + 1); + setParameter(nextHopListObjStr + ".NextHopId", nextHopListObj.nextHopId); + setParameter(nextHopListObjStr + ".NextHopType", nextHopListObj.nextHopType); + } } diff --git a/ecs/src/model/CreateRouterInterfaceRequest.cc b/ecs/src/model/CreateRouterInterfaceRequest.cc index acb127423..8f456d9d5 100644 --- a/ecs/src/model/CreateRouterInterfaceRequest.cc +++ b/ecs/src/model/CreateRouterInterfaceRequest.cc @@ -1,315 +1,261 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::CreateRouterInterfaceRequest; - -CreateRouterInterfaceRequest::CreateRouterInterfaceRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateRouterInterface") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateRouterInterfaceRequest::~CreateRouterInterfaceRequest() -{} - -std::string CreateRouterInterfaceRequest::getAccessPointId()const -{ - return accessPointId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::CreateRouterInterfaceRequest; + +CreateRouterInterfaceRequest::CreateRouterInterfaceRequest() + : RpcServiceRequest("ecs", "2014-05-26", "CreateRouterInterface") { + setMethod(HttpRequest::Method::Post); } -void CreateRouterInterfaceRequest::setAccessPointId(const std::string& accessPointId) -{ - accessPointId_ = accessPointId; - setParameter("AccessPointId", accessPointId); +CreateRouterInterfaceRequest::~CreateRouterInterfaceRequest() {} + +std::string CreateRouterInterfaceRequest::getAccessPointId() const { + return accessPointId_; } -std::string CreateRouterInterfaceRequest::getOppositeRouterId()const -{ - return oppositeRouterId_; +void CreateRouterInterfaceRequest::setAccessPointId(const std::string &accessPointId) { + accessPointId_ = accessPointId; + setParameter(std::string("AccessPointId"), accessPointId); } -void CreateRouterInterfaceRequest::setOppositeRouterId(const std::string& oppositeRouterId) -{ - oppositeRouterId_ = oppositeRouterId; - setParameter("OppositeRouterId", oppositeRouterId); +std::string CreateRouterInterfaceRequest::getOppositeRouterId() const { + return oppositeRouterId_; } -std::string CreateRouterInterfaceRequest::getOppositeAccessPointId()const -{ - return oppositeAccessPointId_; +void CreateRouterInterfaceRequest::setOppositeRouterId(const std::string &oppositeRouterId) { + oppositeRouterId_ = oppositeRouterId; + setParameter(std::string("OppositeRouterId"), oppositeRouterId); } -void CreateRouterInterfaceRequest::setOppositeAccessPointId(const std::string& oppositeAccessPointId) -{ - oppositeAccessPointId_ = oppositeAccessPointId; - setParameter("OppositeAccessPointId", oppositeAccessPointId); +std::string CreateRouterInterfaceRequest::getOppositeAccessPointId() const { + return oppositeAccessPointId_; } -long CreateRouterInterfaceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void CreateRouterInterfaceRequest::setOppositeAccessPointId(const std::string &oppositeAccessPointId) { + oppositeAccessPointId_ = oppositeAccessPointId; + setParameter(std::string("OppositeAccessPointId"), oppositeAccessPointId); } -void CreateRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long CreateRouterInterfaceRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateRouterInterfaceRequest::getRole()const -{ - return role_; +void CreateRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateRouterInterfaceRequest::setRole(const std::string& role) -{ - role_ = role; - setParameter("Role", role); +std::string CreateRouterInterfaceRequest::getRole() const { + return role_; } -std::string CreateRouterInterfaceRequest::getClientToken()const -{ - return clientToken_; +void CreateRouterInterfaceRequest::setRole(const std::string &role) { + role_ = role; + setParameter(std::string("Role"), role); } -void CreateRouterInterfaceRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateRouterInterfaceRequest::getClientToken() const { + return clientToken_; } -std::string CreateRouterInterfaceRequest::getHealthCheckTargetIp()const -{ - return healthCheckTargetIp_; +void CreateRouterInterfaceRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateRouterInterfaceRequest::setHealthCheckTargetIp(const std::string& healthCheckTargetIp) -{ - healthCheckTargetIp_ = healthCheckTargetIp; - setParameter("HealthCheckTargetIp", healthCheckTargetIp); +std::string CreateRouterInterfaceRequest::getHealthCheckTargetIp() const { + return healthCheckTargetIp_; } -std::string CreateRouterInterfaceRequest::getDescription()const -{ - return description_; +void CreateRouterInterfaceRequest::setHealthCheckTargetIp(const std::string &healthCheckTargetIp) { + healthCheckTargetIp_ = healthCheckTargetIp; + setParameter(std::string("HealthCheckTargetIp"), healthCheckTargetIp); } -void CreateRouterInterfaceRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateRouterInterfaceRequest::getDescription() const { + return description_; } -std::string CreateRouterInterfaceRequest::getSpec()const -{ - return spec_; +void CreateRouterInterfaceRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateRouterInterfaceRequest::setSpec(const std::string& spec) -{ - spec_ = spec; - setParameter("Spec", spec); +std::string CreateRouterInterfaceRequest::getSpec() const { + return spec_; } -std::string CreateRouterInterfaceRequest::getRegionId()const -{ - return regionId_; +void CreateRouterInterfaceRequest::setSpec(const std::string &spec) { + spec_ = spec; + setParameter(std::string("Spec"), spec); } -void CreateRouterInterfaceRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateRouterInterfaceRequest::getRegionId() const { + return regionId_; } -std::string CreateRouterInterfaceRequest::getUserCidr()const -{ - return userCidr_; +void CreateRouterInterfaceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateRouterInterfaceRequest::setUserCidr(const std::string& userCidr) -{ - userCidr_ = userCidr; - setParameter("UserCidr", userCidr); +std::string CreateRouterInterfaceRequest::getUserCidr() const { + return userCidr_; } -std::string CreateRouterInterfaceRequest::getOppositeInterfaceId()const -{ - return oppositeInterfaceId_; +void CreateRouterInterfaceRequest::setUserCidr(const std::string &userCidr) { + userCidr_ = userCidr; + setParameter(std::string("UserCidr"), userCidr); } -void CreateRouterInterfaceRequest::setOppositeInterfaceId(const std::string& oppositeInterfaceId) -{ - oppositeInterfaceId_ = oppositeInterfaceId; - setParameter("OppositeInterfaceId", oppositeInterfaceId); +std::string CreateRouterInterfaceRequest::getOppositeInterfaceId() const { + return oppositeInterfaceId_; } -std::string CreateRouterInterfaceRequest::getInstanceChargeType()const -{ - return instanceChargeType_; +void CreateRouterInterfaceRequest::setOppositeInterfaceId(const std::string &oppositeInterfaceId) { + oppositeInterfaceId_ = oppositeInterfaceId; + setParameter(std::string("OppositeInterfaceId"), oppositeInterfaceId); } -void CreateRouterInterfaceRequest::setInstanceChargeType(const std::string& instanceChargeType) -{ - instanceChargeType_ = instanceChargeType; - setParameter("InstanceChargeType", instanceChargeType); +std::string CreateRouterInterfaceRequest::getInstanceChargeType() const { + return instanceChargeType_; } -int CreateRouterInterfaceRequest::getPeriod()const -{ - return period_; +void CreateRouterInterfaceRequest::setInstanceChargeType(const std::string &instanceChargeType) { + instanceChargeType_ = instanceChargeType; + setParameter(std::string("InstanceChargeType"), instanceChargeType); } -void CreateRouterInterfaceRequest::setPeriod(int period) -{ - period_ = period; - setParameter("Period", std::to_string(period)); +int CreateRouterInterfaceRequest::getPeriod() const { + return period_; } -bool CreateRouterInterfaceRequest::getAutoPay()const -{ - return autoPay_; +void CreateRouterInterfaceRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); } -void CreateRouterInterfaceRequest::setAutoPay(bool autoPay) -{ - autoPay_ = autoPay; - setParameter("AutoPay", autoPay ? "true" : "false"); +bool CreateRouterInterfaceRequest::getAutoPay() const { + return autoPay_; } -std::string CreateRouterInterfaceRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateRouterInterfaceRequest::setAutoPay(bool autoPay) { + autoPay_ = autoPay; + setParameter(std::string("AutoPay"), autoPay ? "true" : "false"); } -void CreateRouterInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateRouterInterfaceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateRouterInterfaceRequest::getOppositeRegionId()const -{ - return oppositeRegionId_; +void CreateRouterInterfaceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateRouterInterfaceRequest::setOppositeRegionId(const std::string& oppositeRegionId) -{ - oppositeRegionId_ = oppositeRegionId; - setParameter("OppositeRegionId", oppositeRegionId); +std::string CreateRouterInterfaceRequest::getOppositeRegionId() const { + return oppositeRegionId_; } -std::string CreateRouterInterfaceRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateRouterInterfaceRequest::setOppositeRegionId(const std::string &oppositeRegionId) { + oppositeRegionId_ = oppositeRegionId; + setParameter(std::string("OppositeRegionId"), oppositeRegionId); } -void CreateRouterInterfaceRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateRouterInterfaceRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateRouterInterfaceRequest::getOwnerId()const -{ - return ownerId_; +void CreateRouterInterfaceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateRouterInterfaceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateRouterInterfaceRequest::getOwnerId() const { + return ownerId_; } -std::string CreateRouterInterfaceRequest::getOppositeInterfaceOwnerId()const -{ - return oppositeInterfaceOwnerId_; +void CreateRouterInterfaceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateRouterInterfaceRequest::setOppositeInterfaceOwnerId(const std::string& oppositeInterfaceOwnerId) -{ - oppositeInterfaceOwnerId_ = oppositeInterfaceOwnerId; - setParameter("OppositeInterfaceOwnerId", oppositeInterfaceOwnerId); +std::string CreateRouterInterfaceRequest::getOppositeInterfaceOwnerId() const { + return oppositeInterfaceOwnerId_; } -std::string CreateRouterInterfaceRequest::getRouterType()const -{ - return routerType_; +void CreateRouterInterfaceRequest::setOppositeInterfaceOwnerId(const std::string &oppositeInterfaceOwnerId) { + oppositeInterfaceOwnerId_ = oppositeInterfaceOwnerId; + setParameter(std::string("OppositeInterfaceOwnerId"), oppositeInterfaceOwnerId); } -void CreateRouterInterfaceRequest::setRouterType(const std::string& routerType) -{ - routerType_ = routerType; - setParameter("RouterType", routerType); +std::string CreateRouterInterfaceRequest::getRouterType() const { + return routerType_; } -std::string CreateRouterInterfaceRequest::getHealthCheckSourceIp()const -{ - return healthCheckSourceIp_; +void CreateRouterInterfaceRequest::setRouterType(const std::string &routerType) { + routerType_ = routerType; + setParameter(std::string("RouterType"), routerType); } -void CreateRouterInterfaceRequest::setHealthCheckSourceIp(const std::string& healthCheckSourceIp) -{ - healthCheckSourceIp_ = healthCheckSourceIp; - setParameter("HealthCheckSourceIp", healthCheckSourceIp); +std::string CreateRouterInterfaceRequest::getHealthCheckSourceIp() const { + return healthCheckSourceIp_; } -std::string CreateRouterInterfaceRequest::getRouterId()const -{ - return routerId_; +void CreateRouterInterfaceRequest::setHealthCheckSourceIp(const std::string &healthCheckSourceIp) { + healthCheckSourceIp_ = healthCheckSourceIp; + setParameter(std::string("HealthCheckSourceIp"), healthCheckSourceIp); } -void CreateRouterInterfaceRequest::setRouterId(const std::string& routerId) -{ - routerId_ = routerId; - setParameter("RouterId", routerId); +std::string CreateRouterInterfaceRequest::getRouterId() const { + return routerId_; } -std::string CreateRouterInterfaceRequest::getOppositeRouterType()const -{ - return oppositeRouterType_; +void CreateRouterInterfaceRequest::setRouterId(const std::string &routerId) { + routerId_ = routerId; + setParameter(std::string("RouterId"), routerId); } -void CreateRouterInterfaceRequest::setOppositeRouterType(const std::string& oppositeRouterType) -{ - oppositeRouterType_ = oppositeRouterType; - setParameter("OppositeRouterType", oppositeRouterType); +std::string CreateRouterInterfaceRequest::getOppositeRouterType() const { + return oppositeRouterType_; } -std::string CreateRouterInterfaceRequest::getName()const -{ - return name_; +void CreateRouterInterfaceRequest::setOppositeRouterType(const std::string &oppositeRouterType) { + oppositeRouterType_ = oppositeRouterType; + setParameter(std::string("OppositeRouterType"), oppositeRouterType); } -void CreateRouterInterfaceRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string CreateRouterInterfaceRequest::getName() const { + return name_; } -std::string CreateRouterInterfaceRequest::getPricingCycle()const -{ - return pricingCycle_; +void CreateRouterInterfaceRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void CreateRouterInterfaceRequest::setPricingCycle(const std::string& pricingCycle) -{ - pricingCycle_ = pricingCycle; - setParameter("PricingCycle", pricingCycle); +std::string CreateRouterInterfaceRequest::getPricingCycle() const { + return pricingCycle_; +} + +void CreateRouterInterfaceRequest::setPricingCycle(const std::string &pricingCycle) { + pricingCycle_ = pricingCycle; + setParameter(std::string("PricingCycle"), pricingCycle); } diff --git a/ecs/src/model/CreateRouterInterfaceResult.cc b/ecs/src/model/CreateRouterInterfaceResult.cc index 243fae017..db656910a 100644 --- a/ecs/src/model/CreateRouterInterfaceResult.cc +++ b/ecs/src/model/CreateRouterInterfaceResult.cc @@ -39,10 +39,10 @@ void CreateRouterInterfaceResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["RouterInterfaceId"].isNull()) - routerInterfaceId_ = value["RouterInterfaceId"].asString(); if(!value["OrderId"].isNull()) orderId_ = std::stol(value["OrderId"].asString()); + if(!value["RouterInterfaceId"].isNull()) + routerInterfaceId_ = value["RouterInterfaceId"].asString(); } diff --git a/ecs/src/model/CreateSecurityGroupRequest.cc b/ecs/src/model/CreateSecurityGroupRequest.cc index 0f0dae5c3..2ca65d5f6 100644 --- a/ecs/src/model/CreateSecurityGroupRequest.cc +++ b/ecs/src/model/CreateSecurityGroupRequest.cc @@ -1,177 +1,149 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::CreateSecurityGroupRequest; - -CreateSecurityGroupRequest::CreateSecurityGroupRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateSecurityGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateSecurityGroupRequest::~CreateSecurityGroupRequest() -{} - -long CreateSecurityGroupRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::CreateSecurityGroupRequest; + +CreateSecurityGroupRequest::CreateSecurityGroupRequest() + : RpcServiceRequest("ecs", "2014-05-26", "CreateSecurityGroup") { + setMethod(HttpRequest::Method::Post); } -void CreateSecurityGroupRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateSecurityGroupRequest::~CreateSecurityGroupRequest() {} + +long CreateSecurityGroupRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateSecurityGroupRequest::getClientToken()const -{ - return clientToken_; +void CreateSecurityGroupRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateSecurityGroupRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateSecurityGroupRequest::getClientToken() const { + return clientToken_; } -bool CreateSecurityGroupRequest::getServiceManaged()const -{ - return serviceManaged_; +void CreateSecurityGroupRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateSecurityGroupRequest::setServiceManaged(bool serviceManaged) -{ - serviceManaged_ = serviceManaged; - setParameter("ServiceManaged", serviceManaged ? "true" : "false"); +bool CreateSecurityGroupRequest::getServiceManaged() const { + return serviceManaged_; } -std::string CreateSecurityGroupRequest::getDescription()const -{ - return description_; +void CreateSecurityGroupRequest::setServiceManaged(bool serviceManaged) { + serviceManaged_ = serviceManaged; + setParameter(std::string("ServiceManaged"), serviceManaged ? "true" : "false"); } -void CreateSecurityGroupRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateSecurityGroupRequest::getDescription() const { + return description_; } -std::string CreateSecurityGroupRequest::getSecurityGroupName()const -{ - return securityGroupName_; +void CreateSecurityGroupRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateSecurityGroupRequest::setSecurityGroupName(const std::string& securityGroupName) -{ - securityGroupName_ = securityGroupName; - setParameter("SecurityGroupName", securityGroupName); +std::string CreateSecurityGroupRequest::getSecurityGroupName() const { + return securityGroupName_; } -std::string CreateSecurityGroupRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void CreateSecurityGroupRequest::setSecurityGroupName(const std::string &securityGroupName) { + securityGroupName_ = securityGroupName; + setParameter(std::string("SecurityGroupName"), securityGroupName); } -void CreateSecurityGroupRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string CreateSecurityGroupRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string CreateSecurityGroupRequest::getRegionId()const -{ - return regionId_; +void CreateSecurityGroupRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void CreateSecurityGroupRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateSecurityGroupRequest::getRegionId() const { + return regionId_; } -std::vector CreateSecurityGroupRequest::getTag()const -{ - return tag_; +void CreateSecurityGroupRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateSecurityGroupRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Value", tagObj.value); - setParameter(tagObjStr + ".Key", tagObj.key); - } +std::vector CreateSecurityGroupRequest::getTag() const { + return tag_; } -std::string CreateSecurityGroupRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateSecurityGroupRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } -void CreateSecurityGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateSecurityGroupRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateSecurityGroupRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateSecurityGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateSecurityGroupRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateSecurityGroupRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateSecurityGroupRequest::getOwnerId()const -{ - return ownerId_; +void CreateSecurityGroupRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateSecurityGroupRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateSecurityGroupRequest::getOwnerId() const { + return ownerId_; } -std::string CreateSecurityGroupRequest::getSecurityGroupType()const -{ - return securityGroupType_; +void CreateSecurityGroupRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateSecurityGroupRequest::setSecurityGroupType(const std::string& securityGroupType) -{ - securityGroupType_ = securityGroupType; - setParameter("SecurityGroupType", securityGroupType); +std::string CreateSecurityGroupRequest::getSecurityGroupType() const { + return securityGroupType_; } -std::string CreateSecurityGroupRequest::getVpcId()const -{ - return vpcId_; +void CreateSecurityGroupRequest::setSecurityGroupType(const std::string &securityGroupType) { + securityGroupType_ = securityGroupType; + setParameter(std::string("SecurityGroupType"), securityGroupType); } -void CreateSecurityGroupRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +std::string CreateSecurityGroupRequest::getVpcId() const { + return vpcId_; +} + +void CreateSecurityGroupRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); } diff --git a/ecs/src/model/CreateSimulatedSystemEventsRequest.cc b/ecs/src/model/CreateSimulatedSystemEventsRequest.cc index a09607180..c3dccd07c 100644 --- a/ecs/src/model/CreateSimulatedSystemEventsRequest.cc +++ b/ecs/src/model/CreateSimulatedSystemEventsRequest.cc @@ -1,119 +1,98 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::CreateSimulatedSystemEventsRequest; - -CreateSimulatedSystemEventsRequest::CreateSimulatedSystemEventsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateSimulatedSystemEvents") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateSimulatedSystemEventsRequest::~CreateSimulatedSystemEventsRequest() -{} - -long CreateSimulatedSystemEventsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::CreateSimulatedSystemEventsRequest; + +CreateSimulatedSystemEventsRequest::CreateSimulatedSystemEventsRequest() + : RpcServiceRequest("ecs", "2014-05-26", "CreateSimulatedSystemEvents") { + setMethod(HttpRequest::Method::Post); } -void CreateSimulatedSystemEventsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateSimulatedSystemEventsRequest::~CreateSimulatedSystemEventsRequest() {} + +long CreateSimulatedSystemEventsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateSimulatedSystemEventsRequest::getNotBefore()const -{ - return notBefore_; +void CreateSimulatedSystemEventsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateSimulatedSystemEventsRequest::setNotBefore(const std::string& notBefore) -{ - notBefore_ = notBefore; - setParameter("NotBefore", notBefore); +std::string CreateSimulatedSystemEventsRequest::getNotBefore() const { + return notBefore_; } -std::string CreateSimulatedSystemEventsRequest::getRegionId()const -{ - return regionId_; +void CreateSimulatedSystemEventsRequest::setNotBefore(const std::string ¬Before) { + notBefore_ = notBefore; + setParameter(std::string("NotBefore"), notBefore); } -void CreateSimulatedSystemEventsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateSimulatedSystemEventsRequest::getRegionId() const { + return regionId_; } -std::string CreateSimulatedSystemEventsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateSimulatedSystemEventsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateSimulatedSystemEventsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateSimulatedSystemEventsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateSimulatedSystemEventsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateSimulatedSystemEventsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateSimulatedSystemEventsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateSimulatedSystemEventsRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateSimulatedSystemEventsRequest::getOwnerId()const -{ - return ownerId_; +void CreateSimulatedSystemEventsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateSimulatedSystemEventsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateSimulatedSystemEventsRequest::getOwnerId() const { + return ownerId_; } -std::vector CreateSimulatedSystemEventsRequest::getInstanceId()const -{ - return instanceId_; +void CreateSimulatedSystemEventsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateSimulatedSystemEventsRequest::setInstanceId(const std::vector& instanceId) -{ - instanceId_ = instanceId; - for(int dep1 = 0; dep1!= instanceId.size(); dep1++) { - setParameter("InstanceId."+ std::to_string(dep1), instanceId.at(dep1)); - } +std::vector CreateSimulatedSystemEventsRequest::getInstanceId() const { + return instanceId_; } -std::string CreateSimulatedSystemEventsRequest::getEventType()const -{ - return eventType_; +void CreateSimulatedSystemEventsRequest::setInstanceId(const std::vector &instanceId) { + instanceId_ = instanceId; } -void CreateSimulatedSystemEventsRequest::setEventType(const std::string& eventType) -{ - eventType_ = eventType; - setParameter("EventType", eventType); +std::string CreateSimulatedSystemEventsRequest::getEventType() const { + return eventType_; +} + +void CreateSimulatedSystemEventsRequest::setEventType(const std::string &eventType) { + eventType_ = eventType; + setParameter(std::string("EventType"), eventType); } diff --git a/ecs/src/model/CreateSnapshotGroupRequest.cc b/ecs/src/model/CreateSnapshotGroupRequest.cc index 90741964a..a487fbed2 100644 --- a/ecs/src/model/CreateSnapshotGroupRequest.cc +++ b/ecs/src/model/CreateSnapshotGroupRequest.cc @@ -1,192 +1,156 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::CreateSnapshotGroupRequest; - -CreateSnapshotGroupRequest::CreateSnapshotGroupRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateSnapshotGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateSnapshotGroupRequest::~CreateSnapshotGroupRequest() -{} - -long CreateSnapshotGroupRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::CreateSnapshotGroupRequest; + +CreateSnapshotGroupRequest::CreateSnapshotGroupRequest() + : RpcServiceRequest("ecs", "2014-05-26", "CreateSnapshotGroup") { + setMethod(HttpRequest::Method::Post); } -void CreateSnapshotGroupRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateSnapshotGroupRequest::~CreateSnapshotGroupRequest() {} + +long CreateSnapshotGroupRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -bool CreateSnapshotGroupRequest::getInstantAccess()const -{ - return instantAccess_; +void CreateSnapshotGroupRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateSnapshotGroupRequest::setInstantAccess(bool instantAccess) -{ - instantAccess_ = instantAccess; - setParameter("InstantAccess", instantAccess ? "true" : "false"); +bool CreateSnapshotGroupRequest::getInstantAccess() const { + return instantAccess_; } -std::vector CreateSnapshotGroupRequest::getExcludeDiskId()const -{ - return excludeDiskId_; +void CreateSnapshotGroupRequest::setInstantAccess(bool instantAccess) { + instantAccess_ = instantAccess; + setParameter(std::string("InstantAccess"), instantAccess ? "true" : "false"); } -void CreateSnapshotGroupRequest::setExcludeDiskId(const std::vector& excludeDiskId) -{ - excludeDiskId_ = excludeDiskId; - for(int dep1 = 0; dep1!= excludeDiskId.size(); dep1++) { - setParameter("ExcludeDiskId."+ std::to_string(dep1), excludeDiskId.at(dep1)); - } +std::vector CreateSnapshotGroupRequest::getExcludeDiskId() const { + return excludeDiskId_; } -std::string CreateSnapshotGroupRequest::getDescription()const -{ - return description_; +void CreateSnapshotGroupRequest::setExcludeDiskId(const std::vector &excludeDiskId) { + excludeDiskId_ = excludeDiskId; } -void CreateSnapshotGroupRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateSnapshotGroupRequest::getDescription() const { + return description_; } -std::string CreateSnapshotGroupRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void CreateSnapshotGroupRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateSnapshotGroupRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string CreateSnapshotGroupRequest::getResourceGroupId() const { + return resourceGroupId_; } -int CreateSnapshotGroupRequest::getInstantAccessRetentionDays()const -{ - return instantAccessRetentionDays_; +void CreateSnapshotGroupRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void CreateSnapshotGroupRequest::setInstantAccessRetentionDays(int instantAccessRetentionDays) -{ - instantAccessRetentionDays_ = instantAccessRetentionDays; - setParameter("InstantAccessRetentionDays", std::to_string(instantAccessRetentionDays)); +int CreateSnapshotGroupRequest::getInstantAccessRetentionDays() const { + return instantAccessRetentionDays_; } -std::string CreateSnapshotGroupRequest::getRegionId()const -{ - return regionId_; +void CreateSnapshotGroupRequest::setInstantAccessRetentionDays(int instantAccessRetentionDays) { + instantAccessRetentionDays_ = instantAccessRetentionDays; + setParameter(std::string("InstantAccessRetentionDays"), std::to_string(instantAccessRetentionDays)); } -void CreateSnapshotGroupRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateSnapshotGroupRequest::getRegionId() const { + return regionId_; } -std::vector CreateSnapshotGroupRequest::getDiskId()const -{ - return diskId_; +void CreateSnapshotGroupRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateSnapshotGroupRequest::setDiskId(const std::vector& diskId) -{ - diskId_ = diskId; - for(int dep1 = 0; dep1!= diskId.size(); dep1++) { - setParameter("DiskId."+ std::to_string(dep1), diskId.at(dep1)); - } +std::vector CreateSnapshotGroupRequest::getDiskId() const { + return diskId_; } -std::vector CreateSnapshotGroupRequest::getTag()const -{ - return tag_; +void CreateSnapshotGroupRequest::setDiskId(const std::vector &diskId) { + diskId_ = diskId; } -void CreateSnapshotGroupRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Key", tagObj.key); - setParameter(tagObjStr + ".Value", tagObj.value); - } +std::vector CreateSnapshotGroupRequest::getTag() const { + return tag_; } -std::string CreateSnapshotGroupRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateSnapshotGroupRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } } -void CreateSnapshotGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateSnapshotGroupRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateSnapshotGroupRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateSnapshotGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateSnapshotGroupRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateSnapshotGroupRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateSnapshotGroupRequest::getOwnerId()const -{ - return ownerId_; +void CreateSnapshotGroupRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateSnapshotGroupRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateSnapshotGroupRequest::getOwnerId() const { + return ownerId_; } -std::string CreateSnapshotGroupRequest::getInstanceId()const -{ - return instanceId_; +void CreateSnapshotGroupRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateSnapshotGroupRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string CreateSnapshotGroupRequest::getInstanceId() const { + return instanceId_; } -std::string CreateSnapshotGroupRequest::getName()const -{ - return name_; +void CreateSnapshotGroupRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void CreateSnapshotGroupRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string CreateSnapshotGroupRequest::getName() const { + return name_; +} + +void CreateSnapshotGroupRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/ecs/src/model/CreateSnapshotRequest.cc b/ecs/src/model/CreateSnapshotRequest.cc index 1f11a1185..b57daac0b 100644 --- a/ecs/src/model/CreateSnapshotRequest.cc +++ b/ecs/src/model/CreateSnapshotRequest.cc @@ -1,188 +1,158 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::CreateSnapshotRequest; - -CreateSnapshotRequest::CreateSnapshotRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateSnapshot") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateSnapshotRequest::~CreateSnapshotRequest() -{} - -long CreateSnapshotRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::CreateSnapshotRequest; + +CreateSnapshotRequest::CreateSnapshotRequest() + : RpcServiceRequest("ecs", "2014-05-26", "CreateSnapshot") { + setMethod(HttpRequest::Method::Post); } -void CreateSnapshotRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateSnapshotRequest::~CreateSnapshotRequest() {} + +long CreateSnapshotRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateSnapshotRequest::getClientToken()const -{ - return clientToken_; +void CreateSnapshotRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateSnapshotRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateSnapshotRequest::getClientToken() const { + return clientToken_; } -bool CreateSnapshotRequest::getInstantAccess()const -{ - return instantAccess_; +void CreateSnapshotRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateSnapshotRequest::setInstantAccess(bool instantAccess) -{ - instantAccess_ = instantAccess; - setParameter("InstantAccess", instantAccess ? "true" : "false"); +bool CreateSnapshotRequest::getInstantAccess() const { + return instantAccess_; } -std::string CreateSnapshotRequest::getDescription()const -{ - return description_; +void CreateSnapshotRequest::setInstantAccess(bool instantAccess) { + instantAccess_ = instantAccess; + setParameter(std::string("InstantAccess"), instantAccess ? "true" : "false"); } -void CreateSnapshotRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateSnapshotRequest::getDescription() const { + return description_; } -std::string CreateSnapshotRequest::getSnapshotName()const -{ - return snapshotName_; +void CreateSnapshotRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateSnapshotRequest::setSnapshotName(const std::string& snapshotName) -{ - snapshotName_ = snapshotName; - setParameter("SnapshotName", snapshotName); +std::string CreateSnapshotRequest::getSnapshotName() const { + return snapshotName_; } -std::string CreateSnapshotRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void CreateSnapshotRequest::setSnapshotName(const std::string &snapshotName) { + snapshotName_ = snapshotName; + setParameter(std::string("SnapshotName"), snapshotName); } -void CreateSnapshotRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string CreateSnapshotRequest::getResourceGroupId() const { + return resourceGroupId_; } -int CreateSnapshotRequest::getInstantAccessRetentionDays()const -{ - return instantAccessRetentionDays_; +void CreateSnapshotRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void CreateSnapshotRequest::setInstantAccessRetentionDays(int instantAccessRetentionDays) -{ - instantAccessRetentionDays_ = instantAccessRetentionDays; - setParameter("InstantAccessRetentionDays", std::to_string(instantAccessRetentionDays)); +int CreateSnapshotRequest::getInstantAccessRetentionDays() const { + return instantAccessRetentionDays_; } -std::string CreateSnapshotRequest::getDiskId()const -{ - return diskId_; +void CreateSnapshotRequest::setInstantAccessRetentionDays(int instantAccessRetentionDays) { + instantAccessRetentionDays_ = instantAccessRetentionDays; + setParameter(std::string("InstantAccessRetentionDays"), std::to_string(instantAccessRetentionDays)); } -void CreateSnapshotRequest::setDiskId(const std::string& diskId) -{ - diskId_ = diskId; - setParameter("DiskId", diskId); +std::string CreateSnapshotRequest::getDiskId() const { + return diskId_; } -std::vector CreateSnapshotRequest::getTag()const -{ - return tag_; +void CreateSnapshotRequest::setDiskId(const std::string &diskId) { + diskId_ = diskId; + setParameter(std::string("DiskId"), diskId); } -void CreateSnapshotRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Value", tagObj.value); - setParameter(tagObjStr + ".Key", tagObj.key); - } +std::vector CreateSnapshotRequest::getTag() const { + return tag_; } -std::string CreateSnapshotRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateSnapshotRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } -void CreateSnapshotRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateSnapshotRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateSnapshotRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateSnapshotRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateSnapshotRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateSnapshotRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateSnapshotRequest::getOwnerId()const -{ - return ownerId_; +void CreateSnapshotRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateSnapshotRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateSnapshotRequest::getOwnerId() const { + return ownerId_; } -int CreateSnapshotRequest::getRetentionDays()const -{ - return retentionDays_; +void CreateSnapshotRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateSnapshotRequest::setRetentionDays(int retentionDays) -{ - retentionDays_ = retentionDays; - setParameter("RetentionDays", std::to_string(retentionDays)); +int CreateSnapshotRequest::getRetentionDays() const { + return retentionDays_; } -std::string CreateSnapshotRequest::getCategory()const -{ - return category_; +void CreateSnapshotRequest::setRetentionDays(int retentionDays) { + retentionDays_ = retentionDays; + setParameter(std::string("RetentionDays"), std::to_string(retentionDays)); } -void CreateSnapshotRequest::setCategory(const std::string& category) -{ - category_ = category; - setParameter("Category", category); +std::string CreateSnapshotRequest::getCategory() const { + return category_; +} + +void CreateSnapshotRequest::setCategory(const std::string &category) { + category_ = category; + setParameter(std::string("Category"), category); } diff --git a/ecs/src/model/CreateStorageSetRequest.cc b/ecs/src/model/CreateStorageSetRequest.cc index c928d29c9..d56ba1baa 100644 --- a/ecs/src/model/CreateStorageSetRequest.cc +++ b/ecs/src/model/CreateStorageSetRequest.cc @@ -1,139 +1,117 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::CreateStorageSetRequest; - -CreateStorageSetRequest::CreateStorageSetRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateStorageSet") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateStorageSetRequest::~CreateStorageSetRequest() -{} - -long CreateStorageSetRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::CreateStorageSetRequest; + +CreateStorageSetRequest::CreateStorageSetRequest() + : RpcServiceRequest("ecs", "2014-05-26", "CreateStorageSet") { + setMethod(HttpRequest::Method::Post); } -void CreateStorageSetRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateStorageSetRequest::~CreateStorageSetRequest() {} + +long CreateStorageSetRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateStorageSetRequest::getClientToken()const -{ - return clientToken_; +void CreateStorageSetRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateStorageSetRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateStorageSetRequest::getClientToken() const { + return clientToken_; } -int CreateStorageSetRequest::getMaxPartitionNumber()const -{ - return maxPartitionNumber_; +void CreateStorageSetRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateStorageSetRequest::setMaxPartitionNumber(int maxPartitionNumber) -{ - maxPartitionNumber_ = maxPartitionNumber; - setParameter("MaxPartitionNumber", std::to_string(maxPartitionNumber)); +int CreateStorageSetRequest::getMaxPartitionNumber() const { + return maxPartitionNumber_; } -std::string CreateStorageSetRequest::getDescription()const -{ - return description_; +void CreateStorageSetRequest::setMaxPartitionNumber(int maxPartitionNumber) { + maxPartitionNumber_ = maxPartitionNumber; + setParameter(std::string("MaxPartitionNumber"), std::to_string(maxPartitionNumber)); } -void CreateStorageSetRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateStorageSetRequest::getDescription() const { + return description_; } -std::string CreateStorageSetRequest::getRegionId()const -{ - return regionId_; +void CreateStorageSetRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateStorageSetRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateStorageSetRequest::getRegionId() const { + return regionId_; } -std::string CreateStorageSetRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateStorageSetRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateStorageSetRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateStorageSetRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateStorageSetRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateStorageSetRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateStorageSetRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateStorageSetRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateStorageSetRequest::getOwnerId()const -{ - return ownerId_; +void CreateStorageSetRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateStorageSetRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateStorageSetRequest::getOwnerId() const { + return ownerId_; } -std::string CreateStorageSetRequest::getZoneId()const -{ - return zoneId_; +void CreateStorageSetRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateStorageSetRequest::setZoneId(const std::string& zoneId) -{ - zoneId_ = zoneId; - setParameter("ZoneId", zoneId); +std::string CreateStorageSetRequest::getZoneId() const { + return zoneId_; } -std::string CreateStorageSetRequest::getStorageSetName()const -{ - return storageSetName_; +void CreateStorageSetRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); } -void CreateStorageSetRequest::setStorageSetName(const std::string& storageSetName) -{ - storageSetName_ = storageSetName; - setParameter("StorageSetName", storageSetName); +std::string CreateStorageSetRequest::getStorageSetName() const { + return storageSetName_; +} + +void CreateStorageSetRequest::setStorageSetName(const std::string &storageSetName) { + storageSetName_ = storageSetName; + setParameter(std::string("StorageSetName"), storageSetName); } diff --git a/ecs/src/model/CreateVSwitchRequest.cc b/ecs/src/model/CreateVSwitchRequest.cc index 82b9b7068..a7d1b29c8 100644 --- a/ecs/src/model/CreateVSwitchRequest.cc +++ b/ecs/src/model/CreateVSwitchRequest.cc @@ -1,150 +1,126 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::CreateVSwitchRequest; - -CreateVSwitchRequest::CreateVSwitchRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateVSwitch") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateVSwitchRequest::~CreateVSwitchRequest() -{} - -long CreateVSwitchRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::CreateVSwitchRequest; + +CreateVSwitchRequest::CreateVSwitchRequest() + : RpcServiceRequest("ecs", "2014-05-26", "CreateVSwitch") { + setMethod(HttpRequest::Method::Post); } -void CreateVSwitchRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateVSwitchRequest::~CreateVSwitchRequest() {} + +long CreateVSwitchRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateVSwitchRequest::getClientToken()const -{ - return clientToken_; +void CreateVSwitchRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateVSwitchRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateVSwitchRequest::getClientToken() const { + return clientToken_; } -std::string CreateVSwitchRequest::getDescription()const -{ - return description_; +void CreateVSwitchRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateVSwitchRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateVSwitchRequest::getDescription() const { + return description_; } -std::string CreateVSwitchRequest::getRegionId()const -{ - return regionId_; +void CreateVSwitchRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateVSwitchRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateVSwitchRequest::getRegionId() const { + return regionId_; } -std::string CreateVSwitchRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateVSwitchRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateVSwitchRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateVSwitchRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateVSwitchRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateVSwitchRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateVSwitchRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateVSwitchRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateVSwitchRequest::getOwnerId()const -{ - return ownerId_; +void CreateVSwitchRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateVSwitchRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateVSwitchRequest::getOwnerId() const { + return ownerId_; } -std::string CreateVSwitchRequest::getVpcId()const -{ - return vpcId_; +void CreateVSwitchRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateVSwitchRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +std::string CreateVSwitchRequest::getVpcId() const { + return vpcId_; } -std::string CreateVSwitchRequest::getVSwitchName()const -{ - return vSwitchName_; +void CreateVSwitchRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); } -void CreateVSwitchRequest::setVSwitchName(const std::string& vSwitchName) -{ - vSwitchName_ = vSwitchName; - setParameter("VSwitchName", vSwitchName); +std::string CreateVSwitchRequest::getVSwitchName() const { + return vSwitchName_; } -std::string CreateVSwitchRequest::getCidrBlock()const -{ - return cidrBlock_; +void CreateVSwitchRequest::setVSwitchName(const std::string &vSwitchName) { + vSwitchName_ = vSwitchName; + setParameter(std::string("VSwitchName"), vSwitchName); } -void CreateVSwitchRequest::setCidrBlock(const std::string& cidrBlock) -{ - cidrBlock_ = cidrBlock; - setParameter("CidrBlock", cidrBlock); +std::string CreateVSwitchRequest::getCidrBlock() const { + return cidrBlock_; } -std::string CreateVSwitchRequest::getZoneId()const -{ - return zoneId_; +void CreateVSwitchRequest::setCidrBlock(const std::string &cidrBlock) { + cidrBlock_ = cidrBlock; + setParameter(std::string("CidrBlock"), cidrBlock); } -void CreateVSwitchRequest::setZoneId(const std::string& zoneId) -{ - zoneId_ = zoneId; - setParameter("ZoneId", zoneId); +std::string CreateVSwitchRequest::getZoneId() const { + return zoneId_; +} + +void CreateVSwitchRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); } diff --git a/ecs/src/model/CreateVirtualBorderRouterRequest.cc b/ecs/src/model/CreateVirtualBorderRouterRequest.cc index 54e1b1253..ebf9ddf9a 100644 --- a/ecs/src/model/CreateVirtualBorderRouterRequest.cc +++ b/ecs/src/model/CreateVirtualBorderRouterRequest.cc @@ -1,205 +1,171 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::CreateVirtualBorderRouterRequest; - -CreateVirtualBorderRouterRequest::CreateVirtualBorderRouterRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateVirtualBorderRouter") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateVirtualBorderRouterRequest::~CreateVirtualBorderRouterRequest() -{} - -long CreateVirtualBorderRouterRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::CreateVirtualBorderRouterRequest; + +CreateVirtualBorderRouterRequest::CreateVirtualBorderRouterRequest() + : RpcServiceRequest("ecs", "2014-05-26", "CreateVirtualBorderRouter") { + setMethod(HttpRequest::Method::Post); } -void CreateVirtualBorderRouterRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateVirtualBorderRouterRequest::~CreateVirtualBorderRouterRequest() {} + +long CreateVirtualBorderRouterRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateVirtualBorderRouterRequest::getCircuitCode()const -{ - return circuitCode_; +void CreateVirtualBorderRouterRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateVirtualBorderRouterRequest::setCircuitCode(const std::string& circuitCode) -{ - circuitCode_ = circuitCode; - setParameter("CircuitCode", circuitCode); +std::string CreateVirtualBorderRouterRequest::getCircuitCode() const { + return circuitCode_; } -int CreateVirtualBorderRouterRequest::getVlanId()const -{ - return vlanId_; +void CreateVirtualBorderRouterRequest::setCircuitCode(const std::string &circuitCode) { + circuitCode_ = circuitCode; + setParameter(std::string("CircuitCode"), circuitCode); } -void CreateVirtualBorderRouterRequest::setVlanId(int vlanId) -{ - vlanId_ = vlanId; - setParameter("VlanId", std::to_string(vlanId)); +int CreateVirtualBorderRouterRequest::getVlanId() const { + return vlanId_; } -std::string CreateVirtualBorderRouterRequest::getClientToken()const -{ - return clientToken_; +void CreateVirtualBorderRouterRequest::setVlanId(int vlanId) { + vlanId_ = vlanId; + setParameter(std::string("VlanId"), std::to_string(vlanId)); } -void CreateVirtualBorderRouterRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateVirtualBorderRouterRequest::getClientToken() const { + return clientToken_; } -std::string CreateVirtualBorderRouterRequest::getDescription()const -{ - return description_; +void CreateVirtualBorderRouterRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateVirtualBorderRouterRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateVirtualBorderRouterRequest::getDescription() const { + return description_; } -std::string CreateVirtualBorderRouterRequest::getPeerGatewayIp()const -{ - return peerGatewayIp_; +void CreateVirtualBorderRouterRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateVirtualBorderRouterRequest::setPeerGatewayIp(const std::string& peerGatewayIp) -{ - peerGatewayIp_ = peerGatewayIp; - setParameter("PeerGatewayIp", peerGatewayIp); +std::string CreateVirtualBorderRouterRequest::getPeerGatewayIp() const { + return peerGatewayIp_; } -std::string CreateVirtualBorderRouterRequest::getPeeringSubnetMask()const -{ - return peeringSubnetMask_; +void CreateVirtualBorderRouterRequest::setPeerGatewayIp(const std::string &peerGatewayIp) { + peerGatewayIp_ = peerGatewayIp; + setParameter(std::string("PeerGatewayIp"), peerGatewayIp); } -void CreateVirtualBorderRouterRequest::setPeeringSubnetMask(const std::string& peeringSubnetMask) -{ - peeringSubnetMask_ = peeringSubnetMask; - setParameter("PeeringSubnetMask", peeringSubnetMask); +std::string CreateVirtualBorderRouterRequest::getPeeringSubnetMask() const { + return peeringSubnetMask_; } -std::string CreateVirtualBorderRouterRequest::getRegionId()const -{ - return regionId_; +void CreateVirtualBorderRouterRequest::setPeeringSubnetMask(const std::string &peeringSubnetMask) { + peeringSubnetMask_ = peeringSubnetMask; + setParameter(std::string("PeeringSubnetMask"), peeringSubnetMask); } -void CreateVirtualBorderRouterRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateVirtualBorderRouterRequest::getRegionId() const { + return regionId_; } -std::string CreateVirtualBorderRouterRequest::getLocalGatewayIp()const -{ - return localGatewayIp_; +void CreateVirtualBorderRouterRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateVirtualBorderRouterRequest::setLocalGatewayIp(const std::string& localGatewayIp) -{ - localGatewayIp_ = localGatewayIp; - setParameter("LocalGatewayIp", localGatewayIp); +std::string CreateVirtualBorderRouterRequest::getLocalGatewayIp() const { + return localGatewayIp_; } -std::string CreateVirtualBorderRouterRequest::getUserCidr()const -{ - return userCidr_; +void CreateVirtualBorderRouterRequest::setLocalGatewayIp(const std::string &localGatewayIp) { + localGatewayIp_ = localGatewayIp; + setParameter(std::string("LocalGatewayIp"), localGatewayIp); } -void CreateVirtualBorderRouterRequest::setUserCidr(const std::string& userCidr) -{ - userCidr_ = userCidr; - setParameter("UserCidr", userCidr); +std::string CreateVirtualBorderRouterRequest::getUserCidr() const { + return userCidr_; } -std::string CreateVirtualBorderRouterRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateVirtualBorderRouterRequest::setUserCidr(const std::string &userCidr) { + userCidr_ = userCidr; + setParameter(std::string("UserCidr"), userCidr); } -void CreateVirtualBorderRouterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateVirtualBorderRouterRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateVirtualBorderRouterRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateVirtualBorderRouterRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateVirtualBorderRouterRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateVirtualBorderRouterRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateVirtualBorderRouterRequest::getOwnerId()const -{ - return ownerId_; +void CreateVirtualBorderRouterRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateVirtualBorderRouterRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateVirtualBorderRouterRequest::getOwnerId() const { + return ownerId_; } -std::string CreateVirtualBorderRouterRequest::getPhysicalConnectionId()const -{ - return physicalConnectionId_; +void CreateVirtualBorderRouterRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateVirtualBorderRouterRequest::setPhysicalConnectionId(const std::string& physicalConnectionId) -{ - physicalConnectionId_ = physicalConnectionId; - setParameter("PhysicalConnectionId", physicalConnectionId); +std::string CreateVirtualBorderRouterRequest::getPhysicalConnectionId() const { + return physicalConnectionId_; } -std::string CreateVirtualBorderRouterRequest::getName()const -{ - return name_; +void CreateVirtualBorderRouterRequest::setPhysicalConnectionId(const std::string &physicalConnectionId) { + physicalConnectionId_ = physicalConnectionId; + setParameter(std::string("PhysicalConnectionId"), physicalConnectionId); } -void CreateVirtualBorderRouterRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string CreateVirtualBorderRouterRequest::getName() const { + return name_; } -long CreateVirtualBorderRouterRequest::getVbrOwnerId()const -{ - return vbrOwnerId_; +void CreateVirtualBorderRouterRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void CreateVirtualBorderRouterRequest::setVbrOwnerId(long vbrOwnerId) -{ - vbrOwnerId_ = vbrOwnerId; - setParameter("VbrOwnerId", std::to_string(vbrOwnerId)); +long CreateVirtualBorderRouterRequest::getVbrOwnerId() const { + return vbrOwnerId_; +} + +void CreateVirtualBorderRouterRequest::setVbrOwnerId(long vbrOwnerId) { + vbrOwnerId_ = vbrOwnerId; + setParameter(std::string("VbrOwnerId"), std::to_string(vbrOwnerId)); } diff --git a/ecs/src/model/CreateVpcRequest.cc b/ecs/src/model/CreateVpcRequest.cc index 56e95164e..b6c610e9a 100644 --- a/ecs/src/model/CreateVpcRequest.cc +++ b/ecs/src/model/CreateVpcRequest.cc @@ -1,139 +1,117 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::CreateVpcRequest; - -CreateVpcRequest::CreateVpcRequest() : - RpcServiceRequest("ecs", "2014-05-26", "CreateVpc") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateVpcRequest::~CreateVpcRequest() -{} - -long CreateVpcRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::CreateVpcRequest; + +CreateVpcRequest::CreateVpcRequest() + : RpcServiceRequest("ecs", "2014-05-26", "CreateVpc") { + setMethod(HttpRequest::Method::Post); } -void CreateVpcRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateVpcRequest::~CreateVpcRequest() {} + +long CreateVpcRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateVpcRequest::getClientToken()const -{ - return clientToken_; +void CreateVpcRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateVpcRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateVpcRequest::getClientToken() const { + return clientToken_; } -std::string CreateVpcRequest::getDescription()const -{ - return description_; +void CreateVpcRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateVpcRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateVpcRequest::getDescription() const { + return description_; } -std::string CreateVpcRequest::getVpcName()const -{ - return vpcName_; +void CreateVpcRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateVpcRequest::setVpcName(const std::string& vpcName) -{ - vpcName_ = vpcName; - setParameter("VpcName", vpcName); +std::string CreateVpcRequest::getVpcName() const { + return vpcName_; } -std::string CreateVpcRequest::getRegionId()const -{ - return regionId_; +void CreateVpcRequest::setVpcName(const std::string &vpcName) { + vpcName_ = vpcName; + setParameter(std::string("VpcName"), vpcName); } -void CreateVpcRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string CreateVpcRequest::getRegionId() const { + return regionId_; } -std::string CreateVpcRequest::getUserCidr()const -{ - return userCidr_; +void CreateVpcRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void CreateVpcRequest::setUserCidr(const std::string& userCidr) -{ - userCidr_ = userCidr; - setParameter("UserCidr", userCidr); +std::string CreateVpcRequest::getUserCidr() const { + return userCidr_; } -std::string CreateVpcRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateVpcRequest::setUserCidr(const std::string &userCidr) { + userCidr_ = userCidr; + setParameter(std::string("UserCidr"), userCidr); } -void CreateVpcRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateVpcRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateVpcRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateVpcRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateVpcRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateVpcRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateVpcRequest::getOwnerId()const -{ - return ownerId_; +void CreateVpcRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateVpcRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateVpcRequest::getOwnerId() const { + return ownerId_; } -std::string CreateVpcRequest::getCidrBlock()const -{ - return cidrBlock_; +void CreateVpcRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateVpcRequest::setCidrBlock(const std::string& cidrBlock) -{ - cidrBlock_ = cidrBlock; - setParameter("CidrBlock", cidrBlock); +std::string CreateVpcRequest::getCidrBlock() const { + return cidrBlock_; +} + +void CreateVpcRequest::setCidrBlock(const std::string &cidrBlock) { + cidrBlock_ = cidrBlock; + setParameter(std::string("CidrBlock"), cidrBlock); } diff --git a/ecs/src/model/DeactivateRouterInterfaceRequest.cc b/ecs/src/model/DeactivateRouterInterfaceRequest.cc index 073187d2f..533b87c7c 100644 --- a/ecs/src/model/DeactivateRouterInterfaceRequest.cc +++ b/ecs/src/model/DeactivateRouterInterfaceRequest.cc @@ -1,84 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DeactivateRouterInterfaceRequest; - -DeactivateRouterInterfaceRequest::DeactivateRouterInterfaceRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeactivateRouterInterface") -{ - setMethod(HttpRequest::Method::Post); -} - -DeactivateRouterInterfaceRequest::~DeactivateRouterInterfaceRequest() -{} - -long DeactivateRouterInterfaceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DeactivateRouterInterfaceRequest; + +DeactivateRouterInterfaceRequest::DeactivateRouterInterfaceRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DeactivateRouterInterface") { + setMethod(HttpRequest::Method::Post); } -void DeactivateRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeactivateRouterInterfaceRequest::~DeactivateRouterInterfaceRequest() {} + +long DeactivateRouterInterfaceRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeactivateRouterInterfaceRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeactivateRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeactivateRouterInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeactivateRouterInterfaceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long DeactivateRouterInterfaceRequest::getOwnerId()const -{ - return ownerId_; +void DeactivateRouterInterfaceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeactivateRouterInterfaceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeactivateRouterInterfaceRequest::getOwnerId() const { + return ownerId_; } -std::string DeactivateRouterInterfaceRequest::getRouterInterfaceId()const -{ - return routerInterfaceId_; +void DeactivateRouterInterfaceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeactivateRouterInterfaceRequest::setRouterInterfaceId(const std::string& routerInterfaceId) -{ - routerInterfaceId_ = routerInterfaceId; - setParameter("RouterInterfaceId", routerInterfaceId); +std::string DeactivateRouterInterfaceRequest::getRouterInterfaceId() const { + return routerInterfaceId_; } -std::string DeactivateRouterInterfaceRequest::getRegionId()const -{ - return regionId_; +void DeactivateRouterInterfaceRequest::setRouterInterfaceId(const std::string &routerInterfaceId) { + routerInterfaceId_ = routerInterfaceId; + setParameter(std::string("RouterInterfaceId"), routerInterfaceId); } -void DeactivateRouterInterfaceRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeactivateRouterInterfaceRequest::getRegionId() const { + return regionId_; +} + +void DeactivateRouterInterfaceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } diff --git a/ecs/src/model/DeleteActivationRequest.cc b/ecs/src/model/DeleteActivationRequest.cc index facd9ed80..d964ae338 100644 --- a/ecs/src/model/DeleteActivationRequest.cc +++ b/ecs/src/model/DeleteActivationRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DeleteActivationRequest; - -DeleteActivationRequest::DeleteActivationRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteActivation") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteActivationRequest::~DeleteActivationRequest() -{} - -long DeleteActivationRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DeleteActivationRequest; + +DeleteActivationRequest::DeleteActivationRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DeleteActivation") { + setMethod(HttpRequest::Method::Post); } -void DeleteActivationRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteActivationRequest::~DeleteActivationRequest() {} + +long DeleteActivationRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteActivationRequest::getRegionId()const -{ - return regionId_; +void DeleteActivationRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteActivationRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteActivationRequest::getRegionId() const { + return regionId_; } -std::string DeleteActivationRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteActivationRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteActivationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteActivationRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteActivationRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteActivationRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteActivationRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteActivationRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteActivationRequest::getOwnerId()const -{ - return ownerId_; +void DeleteActivationRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteActivationRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteActivationRequest::getOwnerId() const { + return ownerId_; } -std::string DeleteActivationRequest::getActivationId()const -{ - return activationId_; +void DeleteActivationRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteActivationRequest::setActivationId(const std::string& activationId) -{ - activationId_ = activationId; - setParameter("ActivationId", activationId); +std::string DeleteActivationRequest::getActivationId() const { + return activationId_; +} + +void DeleteActivationRequest::setActivationId(const std::string &activationId) { + activationId_ = activationId; + setParameter(std::string("ActivationId"), activationId); } diff --git a/ecs/src/model/DeleteActivationResult.cc b/ecs/src/model/DeleteActivationResult.cc index c8e9c85a1..5dd9c7804 100644 --- a/ecs/src/model/DeleteActivationResult.cc +++ b/ecs/src/model/DeleteActivationResult.cc @@ -40,24 +40,24 @@ void DeleteActivationResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto activationNode = value["Activation"]; - if(!activationNode["ActivationId"].isNull()) - activation_.activationId = activationNode["ActivationId"].asString(); - if(!activationNode["InstanceName"].isNull()) - activation_.instanceName = activationNode["InstanceName"].asString(); - if(!activationNode["Description"].isNull()) - activation_.description = activationNode["Description"].asString(); - if(!activationNode["InstanceCount"].isNull()) - activation_.instanceCount = std::stoi(activationNode["InstanceCount"].asString()); - if(!activationNode["TimeToLiveInHours"].isNull()) - activation_.timeToLiveInHours = std::stol(activationNode["TimeToLiveInHours"].asString()); - if(!activationNode["IpAddressRange"].isNull()) - activation_.ipAddressRange = activationNode["IpAddressRange"].asString(); - if(!activationNode["RegisteredCount"].isNull()) - activation_.registeredCount = std::stoi(activationNode["RegisteredCount"].asString()); - if(!activationNode["DeregisteredCount"].isNull()) - activation_.deregisteredCount = std::stoi(activationNode["DeregisteredCount"].asString()); if(!activationNode["CreationTime"].isNull()) activation_.creationTime = activationNode["CreationTime"].asString(); + if(!activationNode["DeregisteredCount"].isNull()) + activation_.deregisteredCount = std::stoi(activationNode["DeregisteredCount"].asString()); + if(!activationNode["InstanceCount"].isNull()) + activation_.instanceCount = std::stoi(activationNode["InstanceCount"].asString()); + if(!activationNode["Description"].isNull()) + activation_.description = activationNode["Description"].asString(); + if(!activationNode["RegisteredCount"].isNull()) + activation_.registeredCount = std::stoi(activationNode["RegisteredCount"].asString()); + if(!activationNode["InstanceName"].isNull()) + activation_.instanceName = activationNode["InstanceName"].asString(); + if(!activationNode["IpAddressRange"].isNull()) + activation_.ipAddressRange = activationNode["IpAddressRange"].asString(); + if(!activationNode["TimeToLiveInHours"].isNull()) + activation_.timeToLiveInHours = std::stol(activationNode["TimeToLiveInHours"].asString()); + if(!activationNode["ActivationId"].isNull()) + activation_.activationId = activationNode["ActivationId"].asString(); } diff --git a/ecs/src/model/DeleteAutoProvisioningGroupRequest.cc b/ecs/src/model/DeleteAutoProvisioningGroupRequest.cc index 6efd1719a..7e1a0e5bd 100644 --- a/ecs/src/model/DeleteAutoProvisioningGroupRequest.cc +++ b/ecs/src/model/DeleteAutoProvisioningGroupRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DeleteAutoProvisioningGroupRequest; - -DeleteAutoProvisioningGroupRequest::DeleteAutoProvisioningGroupRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteAutoProvisioningGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteAutoProvisioningGroupRequest::~DeleteAutoProvisioningGroupRequest() -{} - -long DeleteAutoProvisioningGroupRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DeleteAutoProvisioningGroupRequest; + +DeleteAutoProvisioningGroupRequest::DeleteAutoProvisioningGroupRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DeleteAutoProvisioningGroup") { + setMethod(HttpRequest::Method::Post); } -void DeleteAutoProvisioningGroupRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteAutoProvisioningGroupRequest::~DeleteAutoProvisioningGroupRequest() {} + +long DeleteAutoProvisioningGroupRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteAutoProvisioningGroupRequest::getRegionId()const -{ - return regionId_; +void DeleteAutoProvisioningGroupRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteAutoProvisioningGroupRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteAutoProvisioningGroupRequest::getRegionId() const { + return regionId_; } -bool DeleteAutoProvisioningGroupRequest::getTerminateInstances()const -{ - return terminateInstances_; +void DeleteAutoProvisioningGroupRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteAutoProvisioningGroupRequest::setTerminateInstances(bool terminateInstances) -{ - terminateInstances_ = terminateInstances; - setParameter("TerminateInstances", terminateInstances ? "true" : "false"); +bool DeleteAutoProvisioningGroupRequest::getTerminateInstances() const { + return terminateInstances_; } -std::string DeleteAutoProvisioningGroupRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteAutoProvisioningGroupRequest::setTerminateInstances(bool terminateInstances) { + terminateInstances_ = terminateInstances; + setParameter(std::string("TerminateInstances"), terminateInstances ? "true" : "false"); } -void DeleteAutoProvisioningGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteAutoProvisioningGroupRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteAutoProvisioningGroupRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteAutoProvisioningGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteAutoProvisioningGroupRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteAutoProvisioningGroupRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteAutoProvisioningGroupRequest::getOwnerId()const -{ - return ownerId_; +void DeleteAutoProvisioningGroupRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteAutoProvisioningGroupRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteAutoProvisioningGroupRequest::getOwnerId() const { + return ownerId_; } -std::string DeleteAutoProvisioningGroupRequest::getAutoProvisioningGroupId()const -{ - return autoProvisioningGroupId_; +void DeleteAutoProvisioningGroupRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteAutoProvisioningGroupRequest::setAutoProvisioningGroupId(const std::string& autoProvisioningGroupId) -{ - autoProvisioningGroupId_ = autoProvisioningGroupId; - setParameter("AutoProvisioningGroupId", autoProvisioningGroupId); +std::string DeleteAutoProvisioningGroupRequest::getAutoProvisioningGroupId() const { + return autoProvisioningGroupId_; +} + +void DeleteAutoProvisioningGroupRequest::setAutoProvisioningGroupId(const std::string &autoProvisioningGroupId) { + autoProvisioningGroupId_ = autoProvisioningGroupId; + setParameter(std::string("AutoProvisioningGroupId"), autoProvisioningGroupId); } diff --git a/ecs/src/model/DeleteAutoSnapshotPolicyRequest.cc b/ecs/src/model/DeleteAutoSnapshotPolicyRequest.cc index 621c391b6..37dff08d5 100644 --- a/ecs/src/model/DeleteAutoSnapshotPolicyRequest.cc +++ b/ecs/src/model/DeleteAutoSnapshotPolicyRequest.cc @@ -1,84 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DeleteAutoSnapshotPolicyRequest; - -DeleteAutoSnapshotPolicyRequest::DeleteAutoSnapshotPolicyRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteAutoSnapshotPolicy") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteAutoSnapshotPolicyRequest::~DeleteAutoSnapshotPolicyRequest() -{} - -long DeleteAutoSnapshotPolicyRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DeleteAutoSnapshotPolicyRequest; + +DeleteAutoSnapshotPolicyRequest::DeleteAutoSnapshotPolicyRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DeleteAutoSnapshotPolicy") { + setMethod(HttpRequest::Method::Post); } -void DeleteAutoSnapshotPolicyRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteAutoSnapshotPolicyRequest::~DeleteAutoSnapshotPolicyRequest() {} + +long DeleteAutoSnapshotPolicyRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteAutoSnapshotPolicyRequest::getAutoSnapshotPolicyId()const -{ - return autoSnapshotPolicyId_; +void DeleteAutoSnapshotPolicyRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteAutoSnapshotPolicyRequest::setAutoSnapshotPolicyId(const std::string& autoSnapshotPolicyId) -{ - autoSnapshotPolicyId_ = autoSnapshotPolicyId; - setParameter("AutoSnapshotPolicyId", autoSnapshotPolicyId); +std::string DeleteAutoSnapshotPolicyRequest::getAutoSnapshotPolicyId() const { + return autoSnapshotPolicyId_; } -std::string DeleteAutoSnapshotPolicyRequest::getRegionId()const -{ - return regionId_; +void DeleteAutoSnapshotPolicyRequest::setAutoSnapshotPolicyId(const std::string &autoSnapshotPolicyId) { + autoSnapshotPolicyId_ = autoSnapshotPolicyId; + setParameter(std::string("autoSnapshotPolicyId"), autoSnapshotPolicyId); } -void DeleteAutoSnapshotPolicyRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteAutoSnapshotPolicyRequest::getRegionId() const { + return regionId_; } -std::string DeleteAutoSnapshotPolicyRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteAutoSnapshotPolicyRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("regionId"), regionId); } -void DeleteAutoSnapshotPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteAutoSnapshotPolicyRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long DeleteAutoSnapshotPolicyRequest::getOwnerId()const -{ - return ownerId_; +void DeleteAutoSnapshotPolicyRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteAutoSnapshotPolicyRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteAutoSnapshotPolicyRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteAutoSnapshotPolicyRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/DeleteBandwidthPackageRequest.cc b/ecs/src/model/DeleteBandwidthPackageRequest.cc index 69a973182..9b4ef3972 100644 --- a/ecs/src/model/DeleteBandwidthPackageRequest.cc +++ b/ecs/src/model/DeleteBandwidthPackageRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DeleteBandwidthPackageRequest; - -DeleteBandwidthPackageRequest::DeleteBandwidthPackageRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteBandwidthPackage") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteBandwidthPackageRequest::~DeleteBandwidthPackageRequest() -{} - -long DeleteBandwidthPackageRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DeleteBandwidthPackageRequest; + +DeleteBandwidthPackageRequest::DeleteBandwidthPackageRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DeleteBandwidthPackage") { + setMethod(HttpRequest::Method::Post); } -void DeleteBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteBandwidthPackageRequest::~DeleteBandwidthPackageRequest() {} + +long DeleteBandwidthPackageRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteBandwidthPackageRequest::getRegionId()const -{ - return regionId_; +void DeleteBandwidthPackageRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteBandwidthPackageRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteBandwidthPackageRequest::getRegionId() const { + return regionId_; } -std::string DeleteBandwidthPackageRequest::getBandwidthPackageId()const -{ - return bandwidthPackageId_; +void DeleteBandwidthPackageRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteBandwidthPackageRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) -{ - bandwidthPackageId_ = bandwidthPackageId; - setParameter("BandwidthPackageId", bandwidthPackageId); +std::string DeleteBandwidthPackageRequest::getBandwidthPackageId() const { + return bandwidthPackageId_; } -std::string DeleteBandwidthPackageRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteBandwidthPackageRequest::setBandwidthPackageId(const std::string &bandwidthPackageId) { + bandwidthPackageId_ = bandwidthPackageId; + setParameter(std::string("BandwidthPackageId"), bandwidthPackageId); } -void DeleteBandwidthPackageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteBandwidthPackageRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteBandwidthPackageRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteBandwidthPackageRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteBandwidthPackageRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteBandwidthPackageRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteBandwidthPackageRequest::getOwnerId()const -{ - return ownerId_; +void DeleteBandwidthPackageRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteBandwidthPackageRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteBandwidthPackageRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteBandwidthPackageRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/DeleteCommandRequest.cc b/ecs/src/model/DeleteCommandRequest.cc index cfa3ccd98..06a92da67 100644 --- a/ecs/src/model/DeleteCommandRequest.cc +++ b/ecs/src/model/DeleteCommandRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DeleteCommandRequest; - -DeleteCommandRequest::DeleteCommandRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteCommand") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteCommandRequest::~DeleteCommandRequest() -{} - -long DeleteCommandRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DeleteCommandRequest; + +DeleteCommandRequest::DeleteCommandRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DeleteCommand") { + setMethod(HttpRequest::Method::Post); } -void DeleteCommandRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteCommandRequest::~DeleteCommandRequest() {} + +long DeleteCommandRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteCommandRequest::getCommandId()const -{ - return commandId_; +void DeleteCommandRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteCommandRequest::setCommandId(const std::string& commandId) -{ - commandId_ = commandId; - setParameter("CommandId", commandId); +std::string DeleteCommandRequest::getCommandId() const { + return commandId_; } -std::string DeleteCommandRequest::getRegionId()const -{ - return regionId_; +void DeleteCommandRequest::setCommandId(const std::string &commandId) { + commandId_ = commandId; + setParameter(std::string("CommandId"), commandId); } -void DeleteCommandRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteCommandRequest::getRegionId() const { + return regionId_; } -std::string DeleteCommandRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteCommandRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteCommandRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteCommandRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteCommandRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteCommandRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteCommandRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteCommandRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteCommandRequest::getOwnerId()const -{ - return ownerId_; +void DeleteCommandRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteCommandRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteCommandRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteCommandRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/DeleteDedicatedHostClusterRequest.cc b/ecs/src/model/DeleteDedicatedHostClusterRequest.cc index e4450b62f..08cc2f6e2 100644 --- a/ecs/src/model/DeleteDedicatedHostClusterRequest.cc +++ b/ecs/src/model/DeleteDedicatedHostClusterRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DeleteDedicatedHostClusterRequest; - -DeleteDedicatedHostClusterRequest::DeleteDedicatedHostClusterRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteDedicatedHostCluster") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteDedicatedHostClusterRequest::~DeleteDedicatedHostClusterRequest() -{} - -long DeleteDedicatedHostClusterRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DeleteDedicatedHostClusterRequest; + +DeleteDedicatedHostClusterRequest::DeleteDedicatedHostClusterRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DeleteDedicatedHostCluster") { + setMethod(HttpRequest::Method::Post); } -void DeleteDedicatedHostClusterRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteDedicatedHostClusterRequest::~DeleteDedicatedHostClusterRequest() {} + +long DeleteDedicatedHostClusterRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteDedicatedHostClusterRequest::getRegionId()const -{ - return regionId_; +void DeleteDedicatedHostClusterRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteDedicatedHostClusterRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteDedicatedHostClusterRequest::getRegionId() const { + return regionId_; } -std::string DeleteDedicatedHostClusterRequest::getDedicatedHostClusterId()const -{ - return dedicatedHostClusterId_; +void DeleteDedicatedHostClusterRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteDedicatedHostClusterRequest::setDedicatedHostClusterId(const std::string& dedicatedHostClusterId) -{ - dedicatedHostClusterId_ = dedicatedHostClusterId; - setParameter("DedicatedHostClusterId", dedicatedHostClusterId); +std::string DeleteDedicatedHostClusterRequest::getDedicatedHostClusterId() const { + return dedicatedHostClusterId_; } -std::string DeleteDedicatedHostClusterRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteDedicatedHostClusterRequest::setDedicatedHostClusterId(const std::string &dedicatedHostClusterId) { + dedicatedHostClusterId_ = dedicatedHostClusterId; + setParameter(std::string("DedicatedHostClusterId"), dedicatedHostClusterId); } -void DeleteDedicatedHostClusterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteDedicatedHostClusterRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteDedicatedHostClusterRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteDedicatedHostClusterRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteDedicatedHostClusterRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteDedicatedHostClusterRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteDedicatedHostClusterRequest::getOwnerId()const -{ - return ownerId_; +void DeleteDedicatedHostClusterRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteDedicatedHostClusterRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteDedicatedHostClusterRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteDedicatedHostClusterRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/DeleteDemandRequest.cc b/ecs/src/model/DeleteDemandRequest.cc index dd9e60644..8ec9fd6fc 100644 --- a/ecs/src/model/DeleteDemandRequest.cc +++ b/ecs/src/model/DeleteDemandRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DeleteDemandRequest; - -DeleteDemandRequest::DeleteDemandRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteDemand") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteDemandRequest::~DeleteDemandRequest() -{} - -std::string DeleteDemandRequest::getReason()const -{ - return reason_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DeleteDemandRequest; + +DeleteDemandRequest::DeleteDemandRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DeleteDemand") { + setMethod(HttpRequest::Method::Post); } -void DeleteDemandRequest::setReason(const std::string& reason) -{ - reason_ = reason; - setParameter("Reason", reason); +DeleteDemandRequest::~DeleteDemandRequest() {} + +std::string DeleteDemandRequest::getReason() const { + return reason_; } -long DeleteDemandRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void DeleteDemandRequest::setReason(const std::string &reason) { + reason_ = reason; + setParameter(std::string("Reason"), reason); } -void DeleteDemandRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long DeleteDemandRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteDemandRequest::getClientToken()const -{ - return clientToken_; +void DeleteDemandRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteDemandRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DeleteDemandRequest::getClientToken() const { + return clientToken_; } -std::string DeleteDemandRequest::getRegionId()const -{ - return regionId_; +void DeleteDemandRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DeleteDemandRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteDemandRequest::getRegionId() const { + return regionId_; } -std::string DeleteDemandRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteDemandRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteDemandRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteDemandRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteDemandRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteDemandRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteDemandRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteDemandRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteDemandRequest::getOwnerId()const -{ - return ownerId_; +void DeleteDemandRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteDemandRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteDemandRequest::getOwnerId() const { + return ownerId_; } -std::string DeleteDemandRequest::getDemandId()const -{ - return demandId_; +void DeleteDemandRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteDemandRequest::setDemandId(const std::string& demandId) -{ - demandId_ = demandId; - setParameter("DemandId", demandId); +std::string DeleteDemandRequest::getDemandId() const { + return demandId_; +} + +void DeleteDemandRequest::setDemandId(const std::string &demandId) { + demandId_ = demandId; + setParameter(std::string("DemandId"), demandId); } diff --git a/ecs/src/model/DeleteDeploymentSetRequest.cc b/ecs/src/model/DeleteDeploymentSetRequest.cc index c994ab858..3e8dedd0e 100644 --- a/ecs/src/model/DeleteDeploymentSetRequest.cc +++ b/ecs/src/model/DeleteDeploymentSetRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DeleteDeploymentSetRequest; - -DeleteDeploymentSetRequest::DeleteDeploymentSetRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteDeploymentSet") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteDeploymentSetRequest::~DeleteDeploymentSetRequest() -{} - -long DeleteDeploymentSetRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DeleteDeploymentSetRequest; + +DeleteDeploymentSetRequest::DeleteDeploymentSetRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DeleteDeploymentSet") { + setMethod(HttpRequest::Method::Post); } -void DeleteDeploymentSetRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteDeploymentSetRequest::~DeleteDeploymentSetRequest() {} + +long DeleteDeploymentSetRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteDeploymentSetRequest::getRegionId()const -{ - return regionId_; +void DeleteDeploymentSetRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteDeploymentSetRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteDeploymentSetRequest::getRegionId() const { + return regionId_; } -std::string DeleteDeploymentSetRequest::getDeploymentSetId()const -{ - return deploymentSetId_; +void DeleteDeploymentSetRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteDeploymentSetRequest::setDeploymentSetId(const std::string& deploymentSetId) -{ - deploymentSetId_ = deploymentSetId; - setParameter("DeploymentSetId", deploymentSetId); +std::string DeleteDeploymentSetRequest::getDeploymentSetId() const { + return deploymentSetId_; } -std::string DeleteDeploymentSetRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteDeploymentSetRequest::setDeploymentSetId(const std::string &deploymentSetId) { + deploymentSetId_ = deploymentSetId; + setParameter(std::string("DeploymentSetId"), deploymentSetId); } -void DeleteDeploymentSetRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteDeploymentSetRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteDeploymentSetRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteDeploymentSetRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteDeploymentSetRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteDeploymentSetRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteDeploymentSetRequest::getOwnerId()const -{ - return ownerId_; +void DeleteDeploymentSetRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteDeploymentSetRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteDeploymentSetRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteDeploymentSetRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/DeleteDiskReplicaPairRequest.cc b/ecs/src/model/DeleteDiskReplicaPairRequest.cc index c0bc2aec9..06d161301 100644 --- a/ecs/src/model/DeleteDiskReplicaPairRequest.cc +++ b/ecs/src/model/DeleteDiskReplicaPairRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DeleteDiskReplicaPairRequest; - -DeleteDiskReplicaPairRequest::DeleteDiskReplicaPairRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteDiskReplicaPair") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteDiskReplicaPairRequest::~DeleteDiskReplicaPairRequest() -{} - -long DeleteDiskReplicaPairRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DeleteDiskReplicaPairRequest; + +DeleteDiskReplicaPairRequest::DeleteDiskReplicaPairRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DeleteDiskReplicaPair") { + setMethod(HttpRequest::Method::Post); } -void DeleteDiskReplicaPairRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteDiskReplicaPairRequest::~DeleteDiskReplicaPairRequest() {} + +long DeleteDiskReplicaPairRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteDiskReplicaPairRequest::getRegionId()const -{ - return regionId_; +void DeleteDiskReplicaPairRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteDiskReplicaPairRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteDiskReplicaPairRequest::getRegionId() const { + return regionId_; } -std::string DeleteDiskReplicaPairRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteDiskReplicaPairRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteDiskReplicaPairRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteDiskReplicaPairRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteDiskReplicaPairRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteDiskReplicaPairRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteDiskReplicaPairRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteDiskReplicaPairRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteDiskReplicaPairRequest::getOwnerId()const -{ - return ownerId_; +void DeleteDiskReplicaPairRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteDiskReplicaPairRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteDiskReplicaPairRequest::getOwnerId() const { + return ownerId_; } -std::string DeleteDiskReplicaPairRequest::getReplicaPairId()const -{ - return replicaPairId_; +void DeleteDiskReplicaPairRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteDiskReplicaPairRequest::setReplicaPairId(const std::string& replicaPairId) -{ - replicaPairId_ = replicaPairId; - setParameter("ReplicaPairId", replicaPairId); +std::string DeleteDiskReplicaPairRequest::getReplicaPairId() const { + return replicaPairId_; +} + +void DeleteDiskReplicaPairRequest::setReplicaPairId(const std::string &replicaPairId) { + replicaPairId_ = replicaPairId; + setParameter(std::string("ReplicaPairId"), replicaPairId); } diff --git a/ecs/src/model/DeleteDiskRequest.cc b/ecs/src/model/DeleteDiskRequest.cc index 8b158c96e..7d16a60b1 100644 --- a/ecs/src/model/DeleteDiskRequest.cc +++ b/ecs/src/model/DeleteDiskRequest.cc @@ -1,84 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DeleteDiskRequest; - -DeleteDiskRequest::DeleteDiskRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteDisk") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteDiskRequest::~DeleteDiskRequest() -{} - -long DeleteDiskRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DeleteDiskRequest; + +DeleteDiskRequest::DeleteDiskRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DeleteDisk") { + setMethod(HttpRequest::Method::Post); } -void DeleteDiskRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteDiskRequest::~DeleteDiskRequest() {} + +long DeleteDiskRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteDiskRequest::getDiskId()const -{ - return diskId_; +void DeleteDiskRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteDiskRequest::setDiskId(const std::string& diskId) -{ - diskId_ = diskId; - setParameter("DiskId", diskId); +std::string DeleteDiskRequest::getDiskId() const { + return diskId_; } -std::string DeleteDiskRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteDiskRequest::setDiskId(const std::string &diskId) { + diskId_ = diskId; + setParameter(std::string("DiskId"), diskId); } -void DeleteDiskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteDiskRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteDiskRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteDiskRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteDiskRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteDiskRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteDiskRequest::getOwnerId()const -{ - return ownerId_; +void DeleteDiskRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteDiskRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteDiskRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteDiskRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/DeleteForwardEntryRequest.cc b/ecs/src/model/DeleteForwardEntryRequest.cc index fa84a9e26..f3116bfc7 100644 --- a/ecs/src/model/DeleteForwardEntryRequest.cc +++ b/ecs/src/model/DeleteForwardEntryRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DeleteForwardEntryRequest; - -DeleteForwardEntryRequest::DeleteForwardEntryRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteForwardEntry") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteForwardEntryRequest::~DeleteForwardEntryRequest() -{} - -long DeleteForwardEntryRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DeleteForwardEntryRequest; + +DeleteForwardEntryRequest::DeleteForwardEntryRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DeleteForwardEntry") { + setMethod(HttpRequest::Method::Post); } -void DeleteForwardEntryRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteForwardEntryRequest::~DeleteForwardEntryRequest() {} + +long DeleteForwardEntryRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteForwardEntryRequest::getForwardTableId()const -{ - return forwardTableId_; +void DeleteForwardEntryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteForwardEntryRequest::setForwardTableId(const std::string& forwardTableId) -{ - forwardTableId_ = forwardTableId; - setParameter("ForwardTableId", forwardTableId); +std::string DeleteForwardEntryRequest::getForwardTableId() const { + return forwardTableId_; } -std::string DeleteForwardEntryRequest::getRegionId()const -{ - return regionId_; +void DeleteForwardEntryRequest::setForwardTableId(const std::string &forwardTableId) { + forwardTableId_ = forwardTableId; + setParameter(std::string("ForwardTableId"), forwardTableId); } -void DeleteForwardEntryRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteForwardEntryRequest::getRegionId() const { + return regionId_; } -std::string DeleteForwardEntryRequest::getForwardEntryId()const -{ - return forwardEntryId_; +void DeleteForwardEntryRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteForwardEntryRequest::setForwardEntryId(const std::string& forwardEntryId) -{ - forwardEntryId_ = forwardEntryId; - setParameter("ForwardEntryId", forwardEntryId); +std::string DeleteForwardEntryRequest::getForwardEntryId() const { + return forwardEntryId_; } -std::string DeleteForwardEntryRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteForwardEntryRequest::setForwardEntryId(const std::string &forwardEntryId) { + forwardEntryId_ = forwardEntryId; + setParameter(std::string("ForwardEntryId"), forwardEntryId); } -void DeleteForwardEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteForwardEntryRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteForwardEntryRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteForwardEntryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteForwardEntryRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteForwardEntryRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteForwardEntryRequest::getOwnerId()const -{ - return ownerId_; +void DeleteForwardEntryRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteForwardEntryRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteForwardEntryRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteForwardEntryRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/DeleteHaVipRequest.cc b/ecs/src/model/DeleteHaVipRequest.cc index 8ef0f90de..e8a0cf445 100644 --- a/ecs/src/model/DeleteHaVipRequest.cc +++ b/ecs/src/model/DeleteHaVipRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DeleteHaVipRequest; - -DeleteHaVipRequest::DeleteHaVipRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteHaVip") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteHaVipRequest::~DeleteHaVipRequest() -{} - -long DeleteHaVipRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DeleteHaVipRequest; + +DeleteHaVipRequest::DeleteHaVipRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DeleteHaVip") { + setMethod(HttpRequest::Method::Post); } -void DeleteHaVipRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteHaVipRequest::~DeleteHaVipRequest() {} + +long DeleteHaVipRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteHaVipRequest::getClientToken()const -{ - return clientToken_; +void DeleteHaVipRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteHaVipRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DeleteHaVipRequest::getClientToken() const { + return clientToken_; } -std::string DeleteHaVipRequest::getRegionId()const -{ - return regionId_; +void DeleteHaVipRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DeleteHaVipRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteHaVipRequest::getRegionId() const { + return regionId_; } -std::string DeleteHaVipRequest::getHaVipId()const -{ - return haVipId_; +void DeleteHaVipRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteHaVipRequest::setHaVipId(const std::string& haVipId) -{ - haVipId_ = haVipId; - setParameter("HaVipId", haVipId); +std::string DeleteHaVipRequest::getHaVipId() const { + return haVipId_; } -std::string DeleteHaVipRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteHaVipRequest::setHaVipId(const std::string &haVipId) { + haVipId_ = haVipId; + setParameter(std::string("HaVipId"), haVipId); } -void DeleteHaVipRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteHaVipRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteHaVipRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteHaVipRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteHaVipRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteHaVipRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteHaVipRequest::getOwnerId()const -{ - return ownerId_; +void DeleteHaVipRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteHaVipRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteHaVipRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteHaVipRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/DeleteHpcClusterRequest.cc b/ecs/src/model/DeleteHpcClusterRequest.cc index 80f50407b..a49cd1671 100644 --- a/ecs/src/model/DeleteHpcClusterRequest.cc +++ b/ecs/src/model/DeleteHpcClusterRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DeleteHpcClusterRequest; - -DeleteHpcClusterRequest::DeleteHpcClusterRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteHpcCluster") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteHpcClusterRequest::~DeleteHpcClusterRequest() -{} - -long DeleteHpcClusterRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DeleteHpcClusterRequest; + +DeleteHpcClusterRequest::DeleteHpcClusterRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DeleteHpcCluster") { + setMethod(HttpRequest::Method::Post); } -void DeleteHpcClusterRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteHpcClusterRequest::~DeleteHpcClusterRequest() {} + +long DeleteHpcClusterRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteHpcClusterRequest::getHpcClusterId()const -{ - return hpcClusterId_; +void DeleteHpcClusterRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteHpcClusterRequest::setHpcClusterId(const std::string& hpcClusterId) -{ - hpcClusterId_ = hpcClusterId; - setParameter("HpcClusterId", hpcClusterId); +std::string DeleteHpcClusterRequest::getHpcClusterId() const { + return hpcClusterId_; } -std::string DeleteHpcClusterRequest::getClientToken()const -{ - return clientToken_; +void DeleteHpcClusterRequest::setHpcClusterId(const std::string &hpcClusterId) { + hpcClusterId_ = hpcClusterId; + setParameter(std::string("HpcClusterId"), hpcClusterId); } -void DeleteHpcClusterRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DeleteHpcClusterRequest::getClientToken() const { + return clientToken_; } -std::string DeleteHpcClusterRequest::getRegionId()const -{ - return regionId_; +void DeleteHpcClusterRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DeleteHpcClusterRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteHpcClusterRequest::getRegionId() const { + return regionId_; } -std::string DeleteHpcClusterRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteHpcClusterRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteHpcClusterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteHpcClusterRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteHpcClusterRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteHpcClusterRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteHpcClusterRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteHpcClusterRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteHpcClusterRequest::getOwnerId()const -{ - return ownerId_; +void DeleteHpcClusterRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteHpcClusterRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteHpcClusterRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteHpcClusterRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/DeleteImageComponentRequest.cc b/ecs/src/model/DeleteImageComponentRequest.cc index 3e239f9a5..f031f5e8f 100644 --- a/ecs/src/model/DeleteImageComponentRequest.cc +++ b/ecs/src/model/DeleteImageComponentRequest.cc @@ -1,111 +1,95 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DeleteImageComponentRequest; - -DeleteImageComponentRequest::DeleteImageComponentRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteImageComponent") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteImageComponentRequest::~DeleteImageComponentRequest() -{} - -long DeleteImageComponentRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DeleteImageComponentRequest; + +DeleteImageComponentRequest::DeleteImageComponentRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DeleteImageComponent") { + setMethod(HttpRequest::Method::Post); } -void DeleteImageComponentRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteImageComponentRequest::~DeleteImageComponentRequest() {} + +long DeleteImageComponentRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteImageComponentRequest::getImageComponentId()const -{ - return imageComponentId_; +void DeleteImageComponentRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteImageComponentRequest::setImageComponentId(const std::string& imageComponentId) -{ - imageComponentId_ = imageComponentId; - setParameter("ImageComponentId", imageComponentId); +std::string DeleteImageComponentRequest::getImageComponentId() const { + return imageComponentId_; } -std::string DeleteImageComponentRequest::getRegionId()const -{ - return regionId_; +void DeleteImageComponentRequest::setImageComponentId(const std::string &imageComponentId) { + imageComponentId_ = imageComponentId; + setParameter(std::string("ImageComponentId"), imageComponentId); } -void DeleteImageComponentRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteImageComponentRequest::getRegionId() const { + return regionId_; } -std::vector DeleteImageComponentRequest::getTemplateTag()const -{ - return templateTag_; +void DeleteImageComponentRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteImageComponentRequest::setTemplateTag(const std::vector& templateTag) -{ - templateTag_ = templateTag; - for(int dep1 = 0; dep1!= templateTag.size(); dep1++) { - auto templateTagObj = templateTag.at(dep1); - std::string templateTagObjStr = "TemplateTag." + std::to_string(dep1 + 1); - setParameter(templateTagObjStr + ".Key", templateTagObj.key); - setParameter(templateTagObjStr + ".Value", templateTagObj.value); - } +std::vector DeleteImageComponentRequest::getTemplateTag() const { + return templateTag_; } -std::string DeleteImageComponentRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteImageComponentRequest::setTemplateTag(const std::vector &templateTag) { + templateTag_ = templateTag; + for(int dep1 = 0; dep1 != templateTag.size(); dep1++) { + auto templateTagObj = templateTag.at(dep1); + std::string templateTagObjStr = std::string("TemplateTag") + "." + std::to_string(dep1 + 1); + setParameter(templateTagObjStr + ".Key", templateTagObj.key); + setParameter(templateTagObjStr + ".Value", templateTagObj.value); + } } -void DeleteImageComponentRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteImageComponentRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteImageComponentRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteImageComponentRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteImageComponentRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteImageComponentRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteImageComponentRequest::getOwnerId()const -{ - return ownerId_; +void DeleteImageComponentRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteImageComponentRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteImageComponentRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteImageComponentRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/DeleteImagePipelineRequest.cc b/ecs/src/model/DeleteImagePipelineRequest.cc index a67d6197a..d97478d3f 100644 --- a/ecs/src/model/DeleteImagePipelineRequest.cc +++ b/ecs/src/model/DeleteImagePipelineRequest.cc @@ -1,111 +1,95 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DeleteImagePipelineRequest; - -DeleteImagePipelineRequest::DeleteImagePipelineRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteImagePipeline") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteImagePipelineRequest::~DeleteImagePipelineRequest() -{} - -std::string DeleteImagePipelineRequest::getImagePipelineId()const -{ - return imagePipelineId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DeleteImagePipelineRequest; + +DeleteImagePipelineRequest::DeleteImagePipelineRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DeleteImagePipeline") { + setMethod(HttpRequest::Method::Post); } -void DeleteImagePipelineRequest::setImagePipelineId(const std::string& imagePipelineId) -{ - imagePipelineId_ = imagePipelineId; - setParameter("ImagePipelineId", imagePipelineId); +DeleteImagePipelineRequest::~DeleteImagePipelineRequest() {} + +std::string DeleteImagePipelineRequest::getImagePipelineId() const { + return imagePipelineId_; } -long DeleteImagePipelineRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void DeleteImagePipelineRequest::setImagePipelineId(const std::string &imagePipelineId) { + imagePipelineId_ = imagePipelineId; + setParameter(std::string("ImagePipelineId"), imagePipelineId); } -void DeleteImagePipelineRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long DeleteImagePipelineRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteImagePipelineRequest::getRegionId()const -{ - return regionId_; +void DeleteImagePipelineRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteImagePipelineRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteImagePipelineRequest::getRegionId() const { + return regionId_; } -std::vector DeleteImagePipelineRequest::getTemplateTag()const -{ - return templateTag_; +void DeleteImagePipelineRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteImagePipelineRequest::setTemplateTag(const std::vector& templateTag) -{ - templateTag_ = templateTag; - for(int dep1 = 0; dep1!= templateTag.size(); dep1++) { - auto templateTagObj = templateTag.at(dep1); - std::string templateTagObjStr = "TemplateTag." + std::to_string(dep1 + 1); - setParameter(templateTagObjStr + ".Key", templateTagObj.key); - setParameter(templateTagObjStr + ".Value", templateTagObj.value); - } +std::vector DeleteImagePipelineRequest::getTemplateTag() const { + return templateTag_; } -std::string DeleteImagePipelineRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteImagePipelineRequest::setTemplateTag(const std::vector &templateTag) { + templateTag_ = templateTag; + for(int dep1 = 0; dep1 != templateTag.size(); dep1++) { + auto templateTagObj = templateTag.at(dep1); + std::string templateTagObjStr = std::string("TemplateTag") + "." + std::to_string(dep1 + 1); + setParameter(templateTagObjStr + ".Key", templateTagObj.key); + setParameter(templateTagObjStr + ".Value", templateTagObj.value); + } } -void DeleteImagePipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteImagePipelineRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteImagePipelineRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteImagePipelineRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteImagePipelineRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteImagePipelineRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteImagePipelineRequest::getOwnerId()const -{ - return ownerId_; +void DeleteImagePipelineRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteImagePipelineRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteImagePipelineRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteImagePipelineRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/DeleteImageRequest.cc b/ecs/src/model/DeleteImageRequest.cc index bcc89313f..26e5fb070 100644 --- a/ecs/src/model/DeleteImageRequest.cc +++ b/ecs/src/model/DeleteImageRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DeleteImageRequest; - -DeleteImageRequest::DeleteImageRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteImage") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteImageRequest::~DeleteImageRequest() -{} - -long DeleteImageRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DeleteImageRequest; + +DeleteImageRequest::DeleteImageRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DeleteImage") { + setMethod(HttpRequest::Method::Post); } -void DeleteImageRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteImageRequest::~DeleteImageRequest() {} + +long DeleteImageRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteImageRequest::getImageId()const -{ - return imageId_; +void DeleteImageRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteImageRequest::setImageId(const std::string& imageId) -{ - imageId_ = imageId; - setParameter("ImageId", imageId); +std::string DeleteImageRequest::getImageId() const { + return imageId_; } -std::string DeleteImageRequest::getRegionId()const -{ - return regionId_; +void DeleteImageRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("ImageId"), imageId); } -void DeleteImageRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteImageRequest::getRegionId() const { + return regionId_; } -std::string DeleteImageRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteImageRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteImageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteImageRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteImageRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteImageRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteImageRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteImageRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteImageRequest::getOwnerId()const -{ - return ownerId_; +void DeleteImageRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteImageRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteImageRequest::getOwnerId() const { + return ownerId_; } -bool DeleteImageRequest::getForce()const -{ - return force_; +void DeleteImageRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteImageRequest::setForce(bool force) -{ - force_ = force; - setParameter("Force", force ? "true" : "false"); +bool DeleteImageRequest::getForce() const { + return force_; +} + +void DeleteImageRequest::setForce(bool force) { + force_ = force; + setParameter(std::string("Force"), force ? "true" : "false"); } diff --git a/ecs/src/model/DeleteInstanceRequest.cc b/ecs/src/model/DeleteInstanceRequest.cc index fbc823c55..ccc819cc0 100644 --- a/ecs/src/model/DeleteInstanceRequest.cc +++ b/ecs/src/model/DeleteInstanceRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DeleteInstanceRequest; - -DeleteInstanceRequest::DeleteInstanceRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteInstance") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteInstanceRequest::~DeleteInstanceRequest() -{} - -long DeleteInstanceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DeleteInstanceRequest; + +DeleteInstanceRequest::DeleteInstanceRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DeleteInstance") { + setMethod(HttpRequest::Method::Post); } -void DeleteInstanceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteInstanceRequest::~DeleteInstanceRequest() {} + +long DeleteInstanceRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -bool DeleteInstanceRequest::getTerminateSubscription()const -{ - return terminateSubscription_; +void DeleteInstanceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteInstanceRequest::setTerminateSubscription(bool terminateSubscription) -{ - terminateSubscription_ = terminateSubscription; - setParameter("TerminateSubscription", terminateSubscription ? "true" : "false"); +bool DeleteInstanceRequest::getTerminateSubscription() const { + return terminateSubscription_; } -std::string DeleteInstanceRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteInstanceRequest::setTerminateSubscription(bool terminateSubscription) { + terminateSubscription_ = terminateSubscription; + setParameter(std::string("TerminateSubscription"), terminateSubscription ? "true" : "false"); } -void DeleteInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteInstanceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteInstanceRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteInstanceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteInstanceRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteInstanceRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteInstanceRequest::getOwnerId()const -{ - return ownerId_; +void DeleteInstanceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteInstanceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteInstanceRequest::getOwnerId() const { + return ownerId_; } -std::string DeleteInstanceRequest::getInstanceId()const -{ - return instanceId_; +void DeleteInstanceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteInstanceRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DeleteInstanceRequest::getInstanceId() const { + return instanceId_; } -bool DeleteInstanceRequest::getForce()const -{ - return force_; +void DeleteInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DeleteInstanceRequest::setForce(bool force) -{ - force_ = force; - setParameter("Force", force ? "true" : "false"); +bool DeleteInstanceRequest::getForce() const { + return force_; +} + +void DeleteInstanceRequest::setForce(bool force) { + force_ = force; + setParameter(std::string("Force"), force ? "true" : "false"); } diff --git a/ecs/src/model/DeleteInstancesRequest.cc b/ecs/src/model/DeleteInstancesRequest.cc index 1975b5d9e..6b3fc09a4 100644 --- a/ecs/src/model/DeleteInstancesRequest.cc +++ b/ecs/src/model/DeleteInstancesRequest.cc @@ -1,141 +1,116 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DeleteInstancesRequest; - -DeleteInstancesRequest::DeleteInstancesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteInstances") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteInstancesRequest::~DeleteInstancesRequest() -{} - -long DeleteInstancesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DeleteInstancesRequest; + +DeleteInstancesRequest::DeleteInstancesRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DeleteInstances") { + setMethod(HttpRequest::Method::Post); } -void DeleteInstancesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteInstancesRequest::~DeleteInstancesRequest() {} + +long DeleteInstancesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteInstancesRequest::getClientToken()const -{ - return clientToken_; +void DeleteInstancesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteInstancesRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DeleteInstancesRequest::getClientToken() const { + return clientToken_; } -std::string DeleteInstancesRequest::getRegionId()const -{ - return regionId_; +void DeleteInstancesRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DeleteInstancesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteInstancesRequest::getRegionId() const { + return regionId_; } -bool DeleteInstancesRequest::getTerminateSubscription()const -{ - return terminateSubscription_; +void DeleteInstancesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteInstancesRequest::setTerminateSubscription(bool terminateSubscription) -{ - terminateSubscription_ = terminateSubscription; - setParameter("TerminateSubscription", terminateSubscription ? "true" : "false"); +bool DeleteInstancesRequest::getTerminateSubscription() const { + return terminateSubscription_; } -bool DeleteInstancesRequest::getDryRun()const -{ - return dryRun_; +void DeleteInstancesRequest::setTerminateSubscription(bool terminateSubscription) { + terminateSubscription_ = terminateSubscription; + setParameter(std::string("TerminateSubscription"), terminateSubscription ? "true" : "false"); } -void DeleteInstancesRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool DeleteInstancesRequest::getDryRun() const { + return dryRun_; } -std::string DeleteInstancesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteInstancesRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void DeleteInstancesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteInstancesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteInstancesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteInstancesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteInstancesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteInstancesRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteInstancesRequest::getOwnerId()const -{ - return ownerId_; +void DeleteInstancesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteInstancesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteInstancesRequest::getOwnerId() const { + return ownerId_; } -std::vector DeleteInstancesRequest::getInstanceId()const -{ - return instanceId_; +void DeleteInstancesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteInstancesRequest::setInstanceId(const std::vector& instanceId) -{ - instanceId_ = instanceId; - for(int dep1 = 0; dep1!= instanceId.size(); dep1++) { - setParameter("InstanceId."+ std::to_string(dep1), instanceId.at(dep1)); - } +std::vector DeleteInstancesRequest::getInstanceId() const { + return instanceId_; } -bool DeleteInstancesRequest::getForce()const -{ - return force_; +void DeleteInstancesRequest::setInstanceId(const std::vector &instanceId) { + instanceId_ = instanceId; } -void DeleteInstancesRequest::setForce(bool force) -{ - force_ = force; - setParameter("Force", force ? "true" : "false"); +bool DeleteInstancesRequest::getForce() const { + return force_; +} + +void DeleteInstancesRequest::setForce(bool force) { + force_ = force; + setParameter(std::string("Force"), force ? "true" : "false"); } diff --git a/ecs/src/model/DeleteKeyPairsRequest.cc b/ecs/src/model/DeleteKeyPairsRequest.cc index a31e1926f..9fc3947c4 100644 --- a/ecs/src/model/DeleteKeyPairsRequest.cc +++ b/ecs/src/model/DeleteKeyPairsRequest.cc @@ -1,84 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DeleteKeyPairsRequest; - -DeleteKeyPairsRequest::DeleteKeyPairsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteKeyPairs") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteKeyPairsRequest::~DeleteKeyPairsRequest() -{} - -long DeleteKeyPairsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DeleteKeyPairsRequest; + +DeleteKeyPairsRequest::DeleteKeyPairsRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DeleteKeyPairs") { + setMethod(HttpRequest::Method::Post); } -void DeleteKeyPairsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteKeyPairsRequest::~DeleteKeyPairsRequest() {} + +long DeleteKeyPairsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteKeyPairsRequest::getKeyPairNames()const -{ - return keyPairNames_; +void DeleteKeyPairsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteKeyPairsRequest::setKeyPairNames(const std::string& keyPairNames) -{ - keyPairNames_ = keyPairNames; - setParameter("KeyPairNames", keyPairNames); +std::string DeleteKeyPairsRequest::getKeyPairNames() const { + return keyPairNames_; } -std::string DeleteKeyPairsRequest::getRegionId()const -{ - return regionId_; +void DeleteKeyPairsRequest::setKeyPairNames(const std::string &keyPairNames) { + keyPairNames_ = keyPairNames; + setParameter(std::string("KeyPairNames"), keyPairNames); } -void DeleteKeyPairsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteKeyPairsRequest::getRegionId() const { + return regionId_; } -std::string DeleteKeyPairsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteKeyPairsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteKeyPairsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteKeyPairsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long DeleteKeyPairsRequest::getOwnerId()const -{ - return ownerId_; +void DeleteKeyPairsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteKeyPairsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteKeyPairsRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteKeyPairsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/DeleteLaunchTemplateRequest.cc b/ecs/src/model/DeleteLaunchTemplateRequest.cc index 22f9d8c96..58898159d 100644 --- a/ecs/src/model/DeleteLaunchTemplateRequest.cc +++ b/ecs/src/model/DeleteLaunchTemplateRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DeleteLaunchTemplateRequest; - -DeleteLaunchTemplateRequest::DeleteLaunchTemplateRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteLaunchTemplate") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteLaunchTemplateRequest::~DeleteLaunchTemplateRequest() -{} - -std::string DeleteLaunchTemplateRequest::getLaunchTemplateName()const -{ - return launchTemplateName_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DeleteLaunchTemplateRequest; + +DeleteLaunchTemplateRequest::DeleteLaunchTemplateRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DeleteLaunchTemplate") { + setMethod(HttpRequest::Method::Post); } -void DeleteLaunchTemplateRequest::setLaunchTemplateName(const std::string& launchTemplateName) -{ - launchTemplateName_ = launchTemplateName; - setParameter("LaunchTemplateName", launchTemplateName); +DeleteLaunchTemplateRequest::~DeleteLaunchTemplateRequest() {} + +std::string DeleteLaunchTemplateRequest::getLaunchTemplateName() const { + return launchTemplateName_; } -long DeleteLaunchTemplateRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void DeleteLaunchTemplateRequest::setLaunchTemplateName(const std::string &launchTemplateName) { + launchTemplateName_ = launchTemplateName; + setParameter(std::string("LaunchTemplateName"), launchTemplateName); } -void DeleteLaunchTemplateRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long DeleteLaunchTemplateRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteLaunchTemplateRequest::getRegionId()const -{ - return regionId_; +void DeleteLaunchTemplateRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteLaunchTemplateRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteLaunchTemplateRequest::getRegionId() const { + return regionId_; } -std::string DeleteLaunchTemplateRequest::getLaunchTemplateId()const -{ - return launchTemplateId_; +void DeleteLaunchTemplateRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteLaunchTemplateRequest::setLaunchTemplateId(const std::string& launchTemplateId) -{ - launchTemplateId_ = launchTemplateId; - setParameter("LaunchTemplateId", launchTemplateId); +std::string DeleteLaunchTemplateRequest::getLaunchTemplateId() const { + return launchTemplateId_; } -std::string DeleteLaunchTemplateRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteLaunchTemplateRequest::setLaunchTemplateId(const std::string &launchTemplateId) { + launchTemplateId_ = launchTemplateId; + setParameter(std::string("LaunchTemplateId"), launchTemplateId); } -void DeleteLaunchTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteLaunchTemplateRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteLaunchTemplateRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteLaunchTemplateRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteLaunchTemplateRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteLaunchTemplateRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteLaunchTemplateRequest::getOwnerId()const -{ - return ownerId_; +void DeleteLaunchTemplateRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteLaunchTemplateRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteLaunchTemplateRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteLaunchTemplateRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/DeleteLaunchTemplateVersionRequest.cc b/ecs/src/model/DeleteLaunchTemplateVersionRequest.cc index 7449237e5..a244e391c 100644 --- a/ecs/src/model/DeleteLaunchTemplateVersionRequest.cc +++ b/ecs/src/model/DeleteLaunchTemplateVersionRequest.cc @@ -1,119 +1,98 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DeleteLaunchTemplateVersionRequest; - -DeleteLaunchTemplateVersionRequest::DeleteLaunchTemplateVersionRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteLaunchTemplateVersion") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteLaunchTemplateVersionRequest::~DeleteLaunchTemplateVersionRequest() -{} - -std::string DeleteLaunchTemplateVersionRequest::getLaunchTemplateName()const -{ - return launchTemplateName_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DeleteLaunchTemplateVersionRequest; + +DeleteLaunchTemplateVersionRequest::DeleteLaunchTemplateVersionRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DeleteLaunchTemplateVersion") { + setMethod(HttpRequest::Method::Post); } -void DeleteLaunchTemplateVersionRequest::setLaunchTemplateName(const std::string& launchTemplateName) -{ - launchTemplateName_ = launchTemplateName; - setParameter("LaunchTemplateName", launchTemplateName); +DeleteLaunchTemplateVersionRequest::~DeleteLaunchTemplateVersionRequest() {} + +std::string DeleteLaunchTemplateVersionRequest::getLaunchTemplateName() const { + return launchTemplateName_; } -long DeleteLaunchTemplateVersionRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void DeleteLaunchTemplateVersionRequest::setLaunchTemplateName(const std::string &launchTemplateName) { + launchTemplateName_ = launchTemplateName; + setParameter(std::string("LaunchTemplateName"), launchTemplateName); } -void DeleteLaunchTemplateVersionRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long DeleteLaunchTemplateVersionRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::vector DeleteLaunchTemplateVersionRequest::getDeleteVersion()const -{ - return deleteVersion_; +void DeleteLaunchTemplateVersionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteLaunchTemplateVersionRequest::setDeleteVersion(const std::vector& deleteVersion) -{ - deleteVersion_ = deleteVersion; - for(int dep1 = 0; dep1!= deleteVersion.size(); dep1++) { - setParameter("DeleteVersion."+ std::to_string(dep1), std::to_string(deleteVersion.at(dep1))); - } +std::vector DeleteLaunchTemplateVersionRequest::getDeleteVersion() const { + return deleteVersion_; } -std::string DeleteLaunchTemplateVersionRequest::getRegionId()const -{ - return regionId_; +void DeleteLaunchTemplateVersionRequest::setDeleteVersion(const std::vector &deleteVersion) { + deleteVersion_ = deleteVersion; } -void DeleteLaunchTemplateVersionRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteLaunchTemplateVersionRequest::getRegionId() const { + return regionId_; } -std::string DeleteLaunchTemplateVersionRequest::getLaunchTemplateId()const -{ - return launchTemplateId_; +void DeleteLaunchTemplateVersionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteLaunchTemplateVersionRequest::setLaunchTemplateId(const std::string& launchTemplateId) -{ - launchTemplateId_ = launchTemplateId; - setParameter("LaunchTemplateId", launchTemplateId); +std::string DeleteLaunchTemplateVersionRequest::getLaunchTemplateId() const { + return launchTemplateId_; } -std::string DeleteLaunchTemplateVersionRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteLaunchTemplateVersionRequest::setLaunchTemplateId(const std::string &launchTemplateId) { + launchTemplateId_ = launchTemplateId; + setParameter(std::string("LaunchTemplateId"), launchTemplateId); } -void DeleteLaunchTemplateVersionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteLaunchTemplateVersionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteLaunchTemplateVersionRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteLaunchTemplateVersionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteLaunchTemplateVersionRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteLaunchTemplateVersionRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteLaunchTemplateVersionRequest::getOwnerId()const -{ - return ownerId_; +void DeleteLaunchTemplateVersionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteLaunchTemplateVersionRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteLaunchTemplateVersionRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteLaunchTemplateVersionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/DeleteNatGatewayRequest.cc b/ecs/src/model/DeleteNatGatewayRequest.cc index 8a1fb3fda..03a514d3d 100644 --- a/ecs/src/model/DeleteNatGatewayRequest.cc +++ b/ecs/src/model/DeleteNatGatewayRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DeleteNatGatewayRequest; - -DeleteNatGatewayRequest::DeleteNatGatewayRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteNatGateway") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteNatGatewayRequest::~DeleteNatGatewayRequest() -{} - -long DeleteNatGatewayRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DeleteNatGatewayRequest; + +DeleteNatGatewayRequest::DeleteNatGatewayRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DeleteNatGateway") { + setMethod(HttpRequest::Method::Post); } -void DeleteNatGatewayRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteNatGatewayRequest::~DeleteNatGatewayRequest() {} + +long DeleteNatGatewayRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteNatGatewayRequest::getRegionId()const -{ - return regionId_; +void DeleteNatGatewayRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteNatGatewayRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteNatGatewayRequest::getRegionId() const { + return regionId_; } -std::string DeleteNatGatewayRequest::getNatGatewayId()const -{ - return natGatewayId_; +void DeleteNatGatewayRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteNatGatewayRequest::setNatGatewayId(const std::string& natGatewayId) -{ - natGatewayId_ = natGatewayId; - setParameter("NatGatewayId", natGatewayId); +std::string DeleteNatGatewayRequest::getNatGatewayId() const { + return natGatewayId_; } -std::string DeleteNatGatewayRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteNatGatewayRequest::setNatGatewayId(const std::string &natGatewayId) { + natGatewayId_ = natGatewayId; + setParameter(std::string("NatGatewayId"), natGatewayId); } -void DeleteNatGatewayRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteNatGatewayRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteNatGatewayRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteNatGatewayRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteNatGatewayRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteNatGatewayRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteNatGatewayRequest::getOwnerId()const -{ - return ownerId_; +void DeleteNatGatewayRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteNatGatewayRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteNatGatewayRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteNatGatewayRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/DeleteNetworkInterfacePermissionRequest.cc b/ecs/src/model/DeleteNetworkInterfacePermissionRequest.cc index d1dc2d7cc..90582118d 100644 --- a/ecs/src/model/DeleteNetworkInterfacePermissionRequest.cc +++ b/ecs/src/model/DeleteNetworkInterfacePermissionRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DeleteNetworkInterfacePermissionRequest; - -DeleteNetworkInterfacePermissionRequest::DeleteNetworkInterfacePermissionRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteNetworkInterfacePermission") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteNetworkInterfacePermissionRequest::~DeleteNetworkInterfacePermissionRequest() -{} - -long DeleteNetworkInterfacePermissionRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DeleteNetworkInterfacePermissionRequest; + +DeleteNetworkInterfacePermissionRequest::DeleteNetworkInterfacePermissionRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DeleteNetworkInterfacePermission") { + setMethod(HttpRequest::Method::Post); } -void DeleteNetworkInterfacePermissionRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteNetworkInterfacePermissionRequest::~DeleteNetworkInterfacePermissionRequest() {} + +long DeleteNetworkInterfacePermissionRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteNetworkInterfacePermissionRequest::getRegionId()const -{ - return regionId_; +void DeleteNetworkInterfacePermissionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteNetworkInterfacePermissionRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteNetworkInterfacePermissionRequest::getRegionId() const { + return regionId_; } -std::string DeleteNetworkInterfacePermissionRequest::getNetworkInterfacePermissionId()const -{ - return networkInterfacePermissionId_; +void DeleteNetworkInterfacePermissionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteNetworkInterfacePermissionRequest::setNetworkInterfacePermissionId(const std::string& networkInterfacePermissionId) -{ - networkInterfacePermissionId_ = networkInterfacePermissionId; - setParameter("NetworkInterfacePermissionId", networkInterfacePermissionId); +std::string DeleteNetworkInterfacePermissionRequest::getNetworkInterfacePermissionId() const { + return networkInterfacePermissionId_; } -std::string DeleteNetworkInterfacePermissionRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteNetworkInterfacePermissionRequest::setNetworkInterfacePermissionId(const std::string &networkInterfacePermissionId) { + networkInterfacePermissionId_ = networkInterfacePermissionId; + setParameter(std::string("NetworkInterfacePermissionId"), networkInterfacePermissionId); } -void DeleteNetworkInterfacePermissionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteNetworkInterfacePermissionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteNetworkInterfacePermissionRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteNetworkInterfacePermissionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteNetworkInterfacePermissionRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteNetworkInterfacePermissionRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteNetworkInterfacePermissionRequest::getOwnerId()const -{ - return ownerId_; +void DeleteNetworkInterfacePermissionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteNetworkInterfacePermissionRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteNetworkInterfacePermissionRequest::getOwnerId() const { + return ownerId_; } -bool DeleteNetworkInterfacePermissionRequest::getForce()const -{ - return force_; +void DeleteNetworkInterfacePermissionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteNetworkInterfacePermissionRequest::setForce(bool force) -{ - force_ = force; - setParameter("Force", force ? "true" : "false"); +bool DeleteNetworkInterfacePermissionRequest::getForce() const { + return force_; +} + +void DeleteNetworkInterfacePermissionRequest::setForce(bool force) { + force_ = force; + setParameter(std::string("Force"), force ? "true" : "false"); } diff --git a/ecs/src/model/DeleteNetworkInterfaceRequest.cc b/ecs/src/model/DeleteNetworkInterfaceRequest.cc index ed0cf5f09..2acaad6e3 100644 --- a/ecs/src/model/DeleteNetworkInterfaceRequest.cc +++ b/ecs/src/model/DeleteNetworkInterfaceRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DeleteNetworkInterfaceRequest; - -DeleteNetworkInterfaceRequest::DeleteNetworkInterfaceRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteNetworkInterface") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteNetworkInterfaceRequest::~DeleteNetworkInterfaceRequest() -{} - -long DeleteNetworkInterfaceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DeleteNetworkInterfaceRequest; + +DeleteNetworkInterfaceRequest::DeleteNetworkInterfaceRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DeleteNetworkInterface") { + setMethod(HttpRequest::Method::Post); } -void DeleteNetworkInterfaceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteNetworkInterfaceRequest::~DeleteNetworkInterfaceRequest() {} + +long DeleteNetworkInterfaceRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteNetworkInterfaceRequest::getRegionId()const -{ - return regionId_; +void DeleteNetworkInterfaceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteNetworkInterfaceRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteNetworkInterfaceRequest::getRegionId() const { + return regionId_; } -std::string DeleteNetworkInterfaceRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteNetworkInterfaceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteNetworkInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteNetworkInterfaceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteNetworkInterfaceRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteNetworkInterfaceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteNetworkInterfaceRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteNetworkInterfaceRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteNetworkInterfaceRequest::getOwnerId()const -{ - return ownerId_; +void DeleteNetworkInterfaceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteNetworkInterfaceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteNetworkInterfaceRequest::getOwnerId() const { + return ownerId_; } -std::string DeleteNetworkInterfaceRequest::getNetworkInterfaceId()const -{ - return networkInterfaceId_; +void DeleteNetworkInterfaceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteNetworkInterfaceRequest::setNetworkInterfaceId(const std::string& networkInterfaceId) -{ - networkInterfaceId_ = networkInterfaceId; - setParameter("NetworkInterfaceId", networkInterfaceId); +std::string DeleteNetworkInterfaceRequest::getNetworkInterfaceId() const { + return networkInterfaceId_; +} + +void DeleteNetworkInterfaceRequest::setNetworkInterfaceId(const std::string &networkInterfaceId) { + networkInterfaceId_ = networkInterfaceId; + setParameter(std::string("NetworkInterfaceId"), networkInterfaceId); } diff --git a/ecs/src/model/DeletePhysicalConnectionRequest.cc b/ecs/src/model/DeletePhysicalConnectionRequest.cc index a7f0b8e5d..cbc487f24 100644 --- a/ecs/src/model/DeletePhysicalConnectionRequest.cc +++ b/ecs/src/model/DeletePhysicalConnectionRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DeletePhysicalConnectionRequest; - -DeletePhysicalConnectionRequest::DeletePhysicalConnectionRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeletePhysicalConnection") -{ - setMethod(HttpRequest::Method::Post); -} - -DeletePhysicalConnectionRequest::~DeletePhysicalConnectionRequest() -{} - -long DeletePhysicalConnectionRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DeletePhysicalConnectionRequest; + +DeletePhysicalConnectionRequest::DeletePhysicalConnectionRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DeletePhysicalConnection") { + setMethod(HttpRequest::Method::Post); } -void DeletePhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeletePhysicalConnectionRequest::~DeletePhysicalConnectionRequest() {} + +long DeletePhysicalConnectionRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeletePhysicalConnectionRequest::getClientToken()const -{ - return clientToken_; +void DeletePhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeletePhysicalConnectionRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DeletePhysicalConnectionRequest::getClientToken() const { + return clientToken_; } -std::string DeletePhysicalConnectionRequest::getRegionId()const -{ - return regionId_; +void DeletePhysicalConnectionRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DeletePhysicalConnectionRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeletePhysicalConnectionRequest::getRegionId() const { + return regionId_; } -std::string DeletePhysicalConnectionRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeletePhysicalConnectionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeletePhysicalConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeletePhysicalConnectionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeletePhysicalConnectionRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeletePhysicalConnectionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeletePhysicalConnectionRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeletePhysicalConnectionRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeletePhysicalConnectionRequest::getOwnerId()const -{ - return ownerId_; +void DeletePhysicalConnectionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeletePhysicalConnectionRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeletePhysicalConnectionRequest::getOwnerId() const { + return ownerId_; } -std::string DeletePhysicalConnectionRequest::getPhysicalConnectionId()const -{ - return physicalConnectionId_; +void DeletePhysicalConnectionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeletePhysicalConnectionRequest::setPhysicalConnectionId(const std::string& physicalConnectionId) -{ - physicalConnectionId_ = physicalConnectionId; - setParameter("PhysicalConnectionId", physicalConnectionId); +std::string DeletePhysicalConnectionRequest::getPhysicalConnectionId() const { + return physicalConnectionId_; +} + +void DeletePhysicalConnectionRequest::setPhysicalConnectionId(const std::string &physicalConnectionId) { + physicalConnectionId_ = physicalConnectionId; + setParameter(std::string("PhysicalConnectionId"), physicalConnectionId); } diff --git a/ecs/src/model/DeletePrefixListRequest.cc b/ecs/src/model/DeletePrefixListRequest.cc index 071ffb466..7d40120f3 100644 --- a/ecs/src/model/DeletePrefixListRequest.cc +++ b/ecs/src/model/DeletePrefixListRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DeletePrefixListRequest; - -DeletePrefixListRequest::DeletePrefixListRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeletePrefixList") -{ - setMethod(HttpRequest::Method::Post); -} - -DeletePrefixListRequest::~DeletePrefixListRequest() -{} - -long DeletePrefixListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DeletePrefixListRequest; + +DeletePrefixListRequest::DeletePrefixListRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DeletePrefixList") { + setMethod(HttpRequest::Method::Post); } -void DeletePrefixListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeletePrefixListRequest::~DeletePrefixListRequest() {} + +long DeletePrefixListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeletePrefixListRequest::getRegionId()const -{ - return regionId_; +void DeletePrefixListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeletePrefixListRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeletePrefixListRequest::getRegionId() const { + return regionId_; } -std::string DeletePrefixListRequest::getPrefixListId()const -{ - return prefixListId_; +void DeletePrefixListRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeletePrefixListRequest::setPrefixListId(const std::string& prefixListId) -{ - prefixListId_ = prefixListId; - setParameter("PrefixListId", prefixListId); +std::string DeletePrefixListRequest::getPrefixListId() const { + return prefixListId_; } -std::string DeletePrefixListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeletePrefixListRequest::setPrefixListId(const std::string &prefixListId) { + prefixListId_ = prefixListId; + setParameter(std::string("PrefixListId"), prefixListId); } -void DeletePrefixListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeletePrefixListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeletePrefixListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeletePrefixListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeletePrefixListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeletePrefixListRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeletePrefixListRequest::getOwnerId()const -{ - return ownerId_; +void DeletePrefixListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeletePrefixListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeletePrefixListRequest::getOwnerId() const { + return ownerId_; +} + +void DeletePrefixListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/DeleteRouteEntryRequest.cc b/ecs/src/model/DeleteRouteEntryRequest.cc index 116d3a2fb..3183d28f0 100644 --- a/ecs/src/model/DeleteRouteEntryRequest.cc +++ b/ecs/src/model/DeleteRouteEntryRequest.cc @@ -1,133 +1,113 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DeleteRouteEntryRequest; - -DeleteRouteEntryRequest::DeleteRouteEntryRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteRouteEntry") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteRouteEntryRequest::~DeleteRouteEntryRequest() -{} - -long DeleteRouteEntryRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DeleteRouteEntryRequest; + +DeleteRouteEntryRequest::DeleteRouteEntryRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DeleteRouteEntry") { + setMethod(HttpRequest::Method::Post); } -void DeleteRouteEntryRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteRouteEntryRequest::~DeleteRouteEntryRequest() {} + +long DeleteRouteEntryRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteRouteEntryRequest::getRegionId()const -{ - return regionId_; +void DeleteRouteEntryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteRouteEntryRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteRouteEntryRequest::getRegionId() const { + return regionId_; } -std::string DeleteRouteEntryRequest::getNextHopId()const -{ - return nextHopId_; +void DeleteRouteEntryRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteRouteEntryRequest::setNextHopId(const std::string& nextHopId) -{ - nextHopId_ = nextHopId; - setParameter("NextHopId", nextHopId); +std::string DeleteRouteEntryRequest::getNextHopId() const { + return nextHopId_; } -std::string DeleteRouteEntryRequest::getRouteTableId()const -{ - return routeTableId_; +void DeleteRouteEntryRequest::setNextHopId(const std::string &nextHopId) { + nextHopId_ = nextHopId; + setParameter(std::string("NextHopId"), nextHopId); } -void DeleteRouteEntryRequest::setRouteTableId(const std::string& routeTableId) -{ - routeTableId_ = routeTableId; - setParameter("RouteTableId", routeTableId); +std::string DeleteRouteEntryRequest::getRouteTableId() const { + return routeTableId_; } -std::string DeleteRouteEntryRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteRouteEntryRequest::setRouteTableId(const std::string &routeTableId) { + routeTableId_ = routeTableId; + setParameter(std::string("RouteTableId"), routeTableId); } -void DeleteRouteEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteRouteEntryRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteRouteEntryRequest::getDestinationCidrBlock()const -{ - return destinationCidrBlock_; +void DeleteRouteEntryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteRouteEntryRequest::setDestinationCidrBlock(const std::string& destinationCidrBlock) -{ - destinationCidrBlock_ = destinationCidrBlock; - setParameter("DestinationCidrBlock", destinationCidrBlock); +std::string DeleteRouteEntryRequest::getDestinationCidrBlock() const { + return destinationCidrBlock_; } -std::string DeleteRouteEntryRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteRouteEntryRequest::setDestinationCidrBlock(const std::string &destinationCidrBlock) { + destinationCidrBlock_ = destinationCidrBlock; + setParameter(std::string("DestinationCidrBlock"), destinationCidrBlock); } -void DeleteRouteEntryRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteRouteEntryRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteRouteEntryRequest::getOwnerId()const -{ - return ownerId_; +void DeleteRouteEntryRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteRouteEntryRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteRouteEntryRequest::getOwnerId() const { + return ownerId_; } -std::vector DeleteRouteEntryRequest::getNextHopList()const -{ - return nextHopList_; +void DeleteRouteEntryRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteRouteEntryRequest::setNextHopList(const std::vector& nextHopList) -{ - nextHopList_ = nextHopList; - for(int dep1 = 0; dep1!= nextHopList.size(); dep1++) { - auto nextHopListObj = nextHopList.at(dep1); - std::string nextHopListObjStr = "NextHopList." + std::to_string(dep1 + 1); - setParameter(nextHopListObjStr + ".NextHopId", nextHopListObj.nextHopId); - setParameter(nextHopListObjStr + ".NextHopType", nextHopListObj.nextHopType); - } +std::vector DeleteRouteEntryRequest::getNextHopList() const { + return nextHopList_; +} + +void DeleteRouteEntryRequest::setNextHopList(const std::vector &nextHopList) { + nextHopList_ = nextHopList; + for(int dep1 = 0; dep1 != nextHopList.size(); dep1++) { + auto nextHopListObj = nextHopList.at(dep1); + std::string nextHopListObjStr = std::string("NextHopList") + "." + std::to_string(dep1 + 1); + setParameter(nextHopListObjStr + ".NextHopId", nextHopListObj.nextHopId); + setParameter(nextHopListObjStr + ".NextHopType", nextHopListObj.nextHopType); + } } diff --git a/ecs/src/model/DeleteRouterInterfaceRequest.cc b/ecs/src/model/DeleteRouterInterfaceRequest.cc index 94c4e8e38..c3c77d030 100644 --- a/ecs/src/model/DeleteRouterInterfaceRequest.cc +++ b/ecs/src/model/DeleteRouterInterfaceRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DeleteRouterInterfaceRequest; - -DeleteRouterInterfaceRequest::DeleteRouterInterfaceRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteRouterInterface") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteRouterInterfaceRequest::~DeleteRouterInterfaceRequest() -{} - -long DeleteRouterInterfaceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DeleteRouterInterfaceRequest; + +DeleteRouterInterfaceRequest::DeleteRouterInterfaceRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DeleteRouterInterface") { + setMethod(HttpRequest::Method::Post); } -void DeleteRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteRouterInterfaceRequest::~DeleteRouterInterfaceRequest() {} + +long DeleteRouterInterfaceRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteRouterInterfaceRequest::getClientToken()const -{ - return clientToken_; +void DeleteRouterInterfaceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteRouterInterfaceRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DeleteRouterInterfaceRequest::getClientToken() const { + return clientToken_; } -std::string DeleteRouterInterfaceRequest::getRegionId()const -{ - return regionId_; +void DeleteRouterInterfaceRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DeleteRouterInterfaceRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteRouterInterfaceRequest::getRegionId() const { + return regionId_; } -std::string DeleteRouterInterfaceRequest::getUserCidr()const -{ - return userCidr_; +void DeleteRouterInterfaceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteRouterInterfaceRequest::setUserCidr(const std::string& userCidr) -{ - userCidr_ = userCidr; - setParameter("UserCidr", userCidr); +std::string DeleteRouterInterfaceRequest::getUserCidr() const { + return userCidr_; } -std::string DeleteRouterInterfaceRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteRouterInterfaceRequest::setUserCidr(const std::string &userCidr) { + userCidr_ = userCidr; + setParameter(std::string("UserCidr"), userCidr); } -void DeleteRouterInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteRouterInterfaceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteRouterInterfaceRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteRouterInterfaceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteRouterInterfaceRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteRouterInterfaceRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DeleteRouterInterfaceRequest::getRouterInterfaceId()const -{ - return routerInterfaceId_; +void DeleteRouterInterfaceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteRouterInterfaceRequest::setRouterInterfaceId(const std::string& routerInterfaceId) -{ - routerInterfaceId_ = routerInterfaceId; - setParameter("RouterInterfaceId", routerInterfaceId); +std::string DeleteRouterInterfaceRequest::getRouterInterfaceId() const { + return routerInterfaceId_; } -long DeleteRouterInterfaceRequest::getOwnerId()const -{ - return ownerId_; +void DeleteRouterInterfaceRequest::setRouterInterfaceId(const std::string &routerInterfaceId) { + routerInterfaceId_ = routerInterfaceId; + setParameter(std::string("RouterInterfaceId"), routerInterfaceId); } -void DeleteRouterInterfaceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteRouterInterfaceRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteRouterInterfaceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/DeleteSecurityGroupRequest.cc b/ecs/src/model/DeleteSecurityGroupRequest.cc index 9136f9341..9c44f9d5b 100644 --- a/ecs/src/model/DeleteSecurityGroupRequest.cc +++ b/ecs/src/model/DeleteSecurityGroupRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DeleteSecurityGroupRequest; - -DeleteSecurityGroupRequest::DeleteSecurityGroupRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteSecurityGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteSecurityGroupRequest::~DeleteSecurityGroupRequest() -{} - -long DeleteSecurityGroupRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DeleteSecurityGroupRequest; + +DeleteSecurityGroupRequest::DeleteSecurityGroupRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DeleteSecurityGroup") { + setMethod(HttpRequest::Method::Post); } -void DeleteSecurityGroupRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteSecurityGroupRequest::~DeleteSecurityGroupRequest() {} + +long DeleteSecurityGroupRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteSecurityGroupRequest::getSecurityGroupId()const -{ - return securityGroupId_; +void DeleteSecurityGroupRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteSecurityGroupRequest::setSecurityGroupId(const std::string& securityGroupId) -{ - securityGroupId_ = securityGroupId; - setParameter("SecurityGroupId", securityGroupId); +std::string DeleteSecurityGroupRequest::getSecurityGroupId() const { + return securityGroupId_; } -std::string DeleteSecurityGroupRequest::getRegionId()const -{ - return regionId_; +void DeleteSecurityGroupRequest::setSecurityGroupId(const std::string &securityGroupId) { + securityGroupId_ = securityGroupId; + setParameter(std::string("SecurityGroupId"), securityGroupId); } -void DeleteSecurityGroupRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteSecurityGroupRequest::getRegionId() const { + return regionId_; } -std::string DeleteSecurityGroupRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteSecurityGroupRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteSecurityGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteSecurityGroupRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteSecurityGroupRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteSecurityGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteSecurityGroupRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteSecurityGroupRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteSecurityGroupRequest::getOwnerId()const -{ - return ownerId_; +void DeleteSecurityGroupRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteSecurityGroupRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteSecurityGroupRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteSecurityGroupRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/DeleteSnapshotGroupRequest.cc b/ecs/src/model/DeleteSnapshotGroupRequest.cc index 6cd08c8db..edf341348 100644 --- a/ecs/src/model/DeleteSnapshotGroupRequest.cc +++ b/ecs/src/model/DeleteSnapshotGroupRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DeleteSnapshotGroupRequest; - -DeleteSnapshotGroupRequest::DeleteSnapshotGroupRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteSnapshotGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteSnapshotGroupRequest::~DeleteSnapshotGroupRequest() -{} - -long DeleteSnapshotGroupRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DeleteSnapshotGroupRequest; + +DeleteSnapshotGroupRequest::DeleteSnapshotGroupRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DeleteSnapshotGroup") { + setMethod(HttpRequest::Method::Post); } -void DeleteSnapshotGroupRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteSnapshotGroupRequest::~DeleteSnapshotGroupRequest() {} + +long DeleteSnapshotGroupRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteSnapshotGroupRequest::getRegionId()const -{ - return regionId_; +void DeleteSnapshotGroupRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteSnapshotGroupRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteSnapshotGroupRequest::getRegionId() const { + return regionId_; } -std::string DeleteSnapshotGroupRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteSnapshotGroupRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteSnapshotGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteSnapshotGroupRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteSnapshotGroupRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteSnapshotGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteSnapshotGroupRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteSnapshotGroupRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DeleteSnapshotGroupRequest::getSnapshotGroupId()const -{ - return snapshotGroupId_; +void DeleteSnapshotGroupRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteSnapshotGroupRequest::setSnapshotGroupId(const std::string& snapshotGroupId) -{ - snapshotGroupId_ = snapshotGroupId; - setParameter("SnapshotGroupId", snapshotGroupId); +std::string DeleteSnapshotGroupRequest::getSnapshotGroupId() const { + return snapshotGroupId_; } -long DeleteSnapshotGroupRequest::getOwnerId()const -{ - return ownerId_; +void DeleteSnapshotGroupRequest::setSnapshotGroupId(const std::string &snapshotGroupId) { + snapshotGroupId_ = snapshotGroupId; + setParameter(std::string("SnapshotGroupId"), snapshotGroupId); } -void DeleteSnapshotGroupRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteSnapshotGroupRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteSnapshotGroupRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/DeleteSnapshotRequest.cc b/ecs/src/model/DeleteSnapshotRequest.cc index 3d22ca5d7..834cc6070 100644 --- a/ecs/src/model/DeleteSnapshotRequest.cc +++ b/ecs/src/model/DeleteSnapshotRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DeleteSnapshotRequest; - -DeleteSnapshotRequest::DeleteSnapshotRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteSnapshot") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteSnapshotRequest::~DeleteSnapshotRequest() -{} - -long DeleteSnapshotRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DeleteSnapshotRequest; + +DeleteSnapshotRequest::DeleteSnapshotRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DeleteSnapshot") { + setMethod(HttpRequest::Method::Post); } -void DeleteSnapshotRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteSnapshotRequest::~DeleteSnapshotRequest() {} + +long DeleteSnapshotRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteSnapshotRequest::getSnapshotId()const -{ - return snapshotId_; +void DeleteSnapshotRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteSnapshotRequest::setSnapshotId(const std::string& snapshotId) -{ - snapshotId_ = snapshotId; - setParameter("SnapshotId", snapshotId); +std::string DeleteSnapshotRequest::getSnapshotId() const { + return snapshotId_; } -std::string DeleteSnapshotRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteSnapshotRequest::setSnapshotId(const std::string &snapshotId) { + snapshotId_ = snapshotId; + setParameter(std::string("SnapshotId"), snapshotId); } -void DeleteSnapshotRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteSnapshotRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteSnapshotRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteSnapshotRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteSnapshotRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteSnapshotRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteSnapshotRequest::getOwnerId()const -{ - return ownerId_; +void DeleteSnapshotRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteSnapshotRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteSnapshotRequest::getOwnerId() const { + return ownerId_; } -bool DeleteSnapshotRequest::getForce()const -{ - return force_; +void DeleteSnapshotRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteSnapshotRequest::setForce(bool force) -{ - force_ = force; - setParameter("Force", force ? "true" : "false"); +bool DeleteSnapshotRequest::getForce() const { + return force_; +} + +void DeleteSnapshotRequest::setForce(bool force) { + force_ = force; + setParameter(std::string("Force"), force ? "true" : "false"); } diff --git a/ecs/src/model/DeleteStorageSetRequest.cc b/ecs/src/model/DeleteStorageSetRequest.cc index b86942ede..5de725f68 100644 --- a/ecs/src/model/DeleteStorageSetRequest.cc +++ b/ecs/src/model/DeleteStorageSetRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DeleteStorageSetRequest; - -DeleteStorageSetRequest::DeleteStorageSetRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteStorageSet") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteStorageSetRequest::~DeleteStorageSetRequest() -{} - -long DeleteStorageSetRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DeleteStorageSetRequest; + +DeleteStorageSetRequest::DeleteStorageSetRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DeleteStorageSet") { + setMethod(HttpRequest::Method::Post); } -void DeleteStorageSetRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteStorageSetRequest::~DeleteStorageSetRequest() {} + +long DeleteStorageSetRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteStorageSetRequest::getClientToken()const -{ - return clientToken_; +void DeleteStorageSetRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteStorageSetRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DeleteStorageSetRequest::getClientToken() const { + return clientToken_; } -std::string DeleteStorageSetRequest::getRegionId()const -{ - return regionId_; +void DeleteStorageSetRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DeleteStorageSetRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteStorageSetRequest::getRegionId() const { + return regionId_; } -std::string DeleteStorageSetRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteStorageSetRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteStorageSetRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteStorageSetRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteStorageSetRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteStorageSetRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteStorageSetRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteStorageSetRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteStorageSetRequest::getOwnerId()const -{ - return ownerId_; +void DeleteStorageSetRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteStorageSetRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteStorageSetRequest::getOwnerId() const { + return ownerId_; } -std::string DeleteStorageSetRequest::getStorageSetId()const -{ - return storageSetId_; +void DeleteStorageSetRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteStorageSetRequest::setStorageSetId(const std::string& storageSetId) -{ - storageSetId_ = storageSetId; - setParameter("StorageSetId", storageSetId); +std::string DeleteStorageSetRequest::getStorageSetId() const { + return storageSetId_; +} + +void DeleteStorageSetRequest::setStorageSetId(const std::string &storageSetId) { + storageSetId_ = storageSetId; + setParameter(std::string("StorageSetId"), storageSetId); } diff --git a/ecs/src/model/DeleteVSwitchRequest.cc b/ecs/src/model/DeleteVSwitchRequest.cc index 6422f9537..c7e7e70df 100644 --- a/ecs/src/model/DeleteVSwitchRequest.cc +++ b/ecs/src/model/DeleteVSwitchRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DeleteVSwitchRequest; - -DeleteVSwitchRequest::DeleteVSwitchRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteVSwitch") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteVSwitchRequest::~DeleteVSwitchRequest() -{} - -long DeleteVSwitchRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DeleteVSwitchRequest; + +DeleteVSwitchRequest::DeleteVSwitchRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DeleteVSwitch") { + setMethod(HttpRequest::Method::Post); } -void DeleteVSwitchRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteVSwitchRequest::~DeleteVSwitchRequest() {} + +long DeleteVSwitchRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteVSwitchRequest::getRegionId()const -{ - return regionId_; +void DeleteVSwitchRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteVSwitchRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteVSwitchRequest::getRegionId() const { + return regionId_; } -std::string DeleteVSwitchRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteVSwitchRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteVSwitchRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteVSwitchRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteVSwitchRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteVSwitchRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteVSwitchRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteVSwitchRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteVSwitchRequest::getOwnerId()const -{ - return ownerId_; +void DeleteVSwitchRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteVSwitchRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteVSwitchRequest::getOwnerId() const { + return ownerId_; } -std::string DeleteVSwitchRequest::getVSwitchId()const -{ - return vSwitchId_; +void DeleteVSwitchRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteVSwitchRequest::setVSwitchId(const std::string& vSwitchId) -{ - vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); +std::string DeleteVSwitchRequest::getVSwitchId() const { + return vSwitchId_; +} + +void DeleteVSwitchRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); } diff --git a/ecs/src/model/DeleteVirtualBorderRouterRequest.cc b/ecs/src/model/DeleteVirtualBorderRouterRequest.cc index 67b6a7374..334203902 100644 --- a/ecs/src/model/DeleteVirtualBorderRouterRequest.cc +++ b/ecs/src/model/DeleteVirtualBorderRouterRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DeleteVirtualBorderRouterRequest; - -DeleteVirtualBorderRouterRequest::DeleteVirtualBorderRouterRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteVirtualBorderRouter") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteVirtualBorderRouterRequest::~DeleteVirtualBorderRouterRequest() -{} - -long DeleteVirtualBorderRouterRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DeleteVirtualBorderRouterRequest; + +DeleteVirtualBorderRouterRequest::DeleteVirtualBorderRouterRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DeleteVirtualBorderRouter") { + setMethod(HttpRequest::Method::Post); } -void DeleteVirtualBorderRouterRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteVirtualBorderRouterRequest::~DeleteVirtualBorderRouterRequest() {} + +long DeleteVirtualBorderRouterRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteVirtualBorderRouterRequest::getClientToken()const -{ - return clientToken_; +void DeleteVirtualBorderRouterRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteVirtualBorderRouterRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DeleteVirtualBorderRouterRequest::getClientToken() const { + return clientToken_; } -std::string DeleteVirtualBorderRouterRequest::getVbrId()const -{ - return vbrId_; +void DeleteVirtualBorderRouterRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DeleteVirtualBorderRouterRequest::setVbrId(const std::string& vbrId) -{ - vbrId_ = vbrId; - setParameter("VbrId", vbrId); +std::string DeleteVirtualBorderRouterRequest::getVbrId() const { + return vbrId_; } -std::string DeleteVirtualBorderRouterRequest::getRegionId()const -{ - return regionId_; +void DeleteVirtualBorderRouterRequest::setVbrId(const std::string &vbrId) { + vbrId_ = vbrId; + setParameter(std::string("VbrId"), vbrId); } -void DeleteVirtualBorderRouterRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteVirtualBorderRouterRequest::getRegionId() const { + return regionId_; } -std::string DeleteVirtualBorderRouterRequest::getUserCidr()const -{ - return userCidr_; +void DeleteVirtualBorderRouterRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteVirtualBorderRouterRequest::setUserCidr(const std::string& userCidr) -{ - userCidr_ = userCidr; - setParameter("UserCidr", userCidr); +std::string DeleteVirtualBorderRouterRequest::getUserCidr() const { + return userCidr_; } -std::string DeleteVirtualBorderRouterRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteVirtualBorderRouterRequest::setUserCidr(const std::string &userCidr) { + userCidr_ = userCidr; + setParameter(std::string("UserCidr"), userCidr); } -void DeleteVirtualBorderRouterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteVirtualBorderRouterRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteVirtualBorderRouterRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteVirtualBorderRouterRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteVirtualBorderRouterRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteVirtualBorderRouterRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteVirtualBorderRouterRequest::getOwnerId()const -{ - return ownerId_; +void DeleteVirtualBorderRouterRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteVirtualBorderRouterRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteVirtualBorderRouterRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteVirtualBorderRouterRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/DeleteVpcRequest.cc b/ecs/src/model/DeleteVpcRequest.cc index 508c7b318..063cdaef2 100644 --- a/ecs/src/model/DeleteVpcRequest.cc +++ b/ecs/src/model/DeleteVpcRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DeleteVpcRequest; - -DeleteVpcRequest::DeleteVpcRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeleteVpc") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteVpcRequest::~DeleteVpcRequest() -{} - -long DeleteVpcRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DeleteVpcRequest; + +DeleteVpcRequest::DeleteVpcRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DeleteVpc") { + setMethod(HttpRequest::Method::Post); } -void DeleteVpcRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteVpcRequest::~DeleteVpcRequest() {} + +long DeleteVpcRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteVpcRequest::getRegionId()const -{ - return regionId_; +void DeleteVpcRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteVpcRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeleteVpcRequest::getRegionId() const { + return regionId_; } -std::string DeleteVpcRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteVpcRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeleteVpcRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteVpcRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteVpcRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteVpcRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteVpcRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteVpcRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteVpcRequest::getOwnerId()const -{ - return ownerId_; +void DeleteVpcRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteVpcRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteVpcRequest::getOwnerId() const { + return ownerId_; } -std::string DeleteVpcRequest::getVpcId()const -{ - return vpcId_; +void DeleteVpcRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteVpcRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +std::string DeleteVpcRequest::getVpcId() const { + return vpcId_; +} + +void DeleteVpcRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); } diff --git a/ecs/src/model/DeregisterManagedInstanceRequest.cc b/ecs/src/model/DeregisterManagedInstanceRequest.cc index 2a357b27c..aedab1826 100644 --- a/ecs/src/model/DeregisterManagedInstanceRequest.cc +++ b/ecs/src/model/DeregisterManagedInstanceRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DeregisterManagedInstanceRequest; - -DeregisterManagedInstanceRequest::DeregisterManagedInstanceRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DeregisterManagedInstance") -{ - setMethod(HttpRequest::Method::Post); -} - -DeregisterManagedInstanceRequest::~DeregisterManagedInstanceRequest() -{} - -long DeregisterManagedInstanceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DeregisterManagedInstanceRequest; + +DeregisterManagedInstanceRequest::DeregisterManagedInstanceRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DeregisterManagedInstance") { + setMethod(HttpRequest::Method::Post); } -void DeregisterManagedInstanceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeregisterManagedInstanceRequest::~DeregisterManagedInstanceRequest() {} + +long DeregisterManagedInstanceRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeregisterManagedInstanceRequest::getRegionId()const -{ - return regionId_; +void DeregisterManagedInstanceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeregisterManagedInstanceRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DeregisterManagedInstanceRequest::getRegionId() const { + return regionId_; } -std::string DeregisterManagedInstanceRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeregisterManagedInstanceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DeregisterManagedInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeregisterManagedInstanceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeregisterManagedInstanceRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeregisterManagedInstanceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeregisterManagedInstanceRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeregisterManagedInstanceRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeregisterManagedInstanceRequest::getOwnerId()const -{ - return ownerId_; +void DeregisterManagedInstanceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeregisterManagedInstanceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeregisterManagedInstanceRequest::getOwnerId() const { + return ownerId_; } -std::string DeregisterManagedInstanceRequest::getInstanceId()const -{ - return instanceId_; +void DeregisterManagedInstanceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeregisterManagedInstanceRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DeregisterManagedInstanceRequest::getInstanceId() const { + return instanceId_; +} + +void DeregisterManagedInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/ecs/src/model/DeregisterManagedInstanceResult.cc b/ecs/src/model/DeregisterManagedInstanceResult.cc index 2a77a0423..b7dcef145 100644 --- a/ecs/src/model/DeregisterManagedInstanceResult.cc +++ b/ecs/src/model/DeregisterManagedInstanceResult.cc @@ -40,32 +40,32 @@ void DeregisterManagedInstanceResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto instanceNode = value["Instance"]; - if(!instanceNode["InstanceId"].isNull()) - instance_.instanceId = instanceNode["InstanceId"].asString(); - if(!instanceNode["InstanceName"].isNull()) - instance_.instanceName = instanceNode["InstanceName"].asString(); - if(!instanceNode["ActivationId"].isNull()) - instance_.activationId = instanceNode["ActivationId"].asString(); - if(!instanceNode["Hostname"].isNull()) - instance_.hostname = instanceNode["Hostname"].asString(); - if(!instanceNode["MachineId"].isNull()) - instance_.machineId = instanceNode["MachineId"].asString(); - if(!instanceNode["OsType"].isNull()) - instance_.osType = instanceNode["OsType"].asString(); - if(!instanceNode["OsVersion"].isNull()) - instance_.osVersion = instanceNode["OsVersion"].asString(); - if(!instanceNode["IntranetIp"].isNull()) - instance_.intranetIp = instanceNode["IntranetIp"].asString(); + if(!instanceNode["LastInvokedTime"].isNull()) + instance_.lastInvokedTime = instanceNode["LastInvokedTime"].asString(); if(!instanceNode["InternetIp"].isNull()) instance_.internetIp = instanceNode["InternetIp"].asString(); + if(!instanceNode["Hostname"].isNull()) + instance_.hostname = instanceNode["Hostname"].asString(); + if(!instanceNode["InstanceId"].isNull()) + instance_.instanceId = instanceNode["InstanceId"].asString(); + if(!instanceNode["ActivationId"].isNull()) + instance_.activationId = instanceNode["ActivationId"].asString(); + if(!instanceNode["IntranetIp"].isNull()) + instance_.intranetIp = instanceNode["IntranetIp"].asString(); if(!instanceNode["AgentVersion"].isNull()) instance_.agentVersion = instanceNode["AgentVersion"].asString(); if(!instanceNode["RegistrationTime"].isNull()) instance_.registrationTime = instanceNode["RegistrationTime"].asString(); + if(!instanceNode["InstanceName"].isNull()) + instance_.instanceName = instanceNode["InstanceName"].asString(); + if(!instanceNode["OsType"].isNull()) + instance_.osType = instanceNode["OsType"].asString(); + if(!instanceNode["OsVersion"].isNull()) + instance_.osVersion = instanceNode["OsVersion"].asString(); if(!instanceNode["InvocationCount"].isNull()) instance_.invocationCount = std::stol(instanceNode["InvocationCount"].asString()); - if(!instanceNode["LastInvokedTime"].isNull()) - instance_.lastInvokedTime = instanceNode["LastInvokedTime"].asString(); + if(!instanceNode["MachineId"].isNull()) + instance_.machineId = instanceNode["MachineId"].asString(); } diff --git a/ecs/src/model/DescribeAccessPointsRequest.cc b/ecs/src/model/DescribeAccessPointsRequest.cc index 2b34f077f..fcfd71b20 100644 --- a/ecs/src/model/DescribeAccessPointsRequest.cc +++ b/ecs/src/model/DescribeAccessPointsRequest.cc @@ -1,124 +1,103 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeAccessPointsRequest; - -DescribeAccessPointsRequest::DescribeAccessPointsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeAccessPoints") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeAccessPointsRequest::~DescribeAccessPointsRequest() -{} - -long DescribeAccessPointsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeAccessPointsRequest; + +DescribeAccessPointsRequest::DescribeAccessPointsRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeAccessPoints") { + setMethod(HttpRequest::Method::Post); } -void DescribeAccessPointsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeAccessPointsRequest::~DescribeAccessPointsRequest() {} + +long DescribeAccessPointsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeAccessPointsRequest::getType()const -{ - return type_; +void DescribeAccessPointsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeAccessPointsRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +std::string DescribeAccessPointsRequest::getType() const { + return type_; } -int DescribeAccessPointsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeAccessPointsRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void DescribeAccessPointsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeAccessPointsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeAccessPointsRequest::getRegionId()const -{ - return regionId_; +void DescribeAccessPointsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeAccessPointsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeAccessPointsRequest::getRegionId() const { + return regionId_; } -int DescribeAccessPointsRequest::getPageSize()const -{ - return pageSize_; +void DescribeAccessPointsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeAccessPointsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeAccessPointsRequest::getPageSize() const { + return pageSize_; } -std::string DescribeAccessPointsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeAccessPointsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeAccessPointsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeAccessPointsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long DescribeAccessPointsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeAccessPointsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeAccessPointsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeAccessPointsRequest::getOwnerId() const { + return ownerId_; } -std::vector DescribeAccessPointsRequest::getFilter()const -{ - return filter_; +void DescribeAccessPointsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeAccessPointsRequest::setFilter(const std::vector& filter) -{ - filter_ = filter; - for(int dep1 = 0; dep1!= filter.size(); dep1++) { - auto filterObj = filter.at(dep1); - std::string filterObjStr = "Filter." + std::to_string(dep1 + 1); - for(int dep2 = 0; dep2!= filterObj.value.size(); dep2++) { - setParameter(filterObjStr + ".Value."+ std::to_string(dep2), filterObj.value.at(dep2)); - } - setParameter(filterObjStr + ".Key", filterObj.key); - } +std::vector DescribeAccessPointsRequest::getFilter() const { + return filter_; +} + +void DescribeAccessPointsRequest::setFilter(const std::vector &filter) { + filter_ = filter; + for(int dep1 = 0; dep1 != filter.size(); dep1++) { + auto filterObj = filter.at(dep1); + std::string filterObjStr = std::string("Filter") + "." + std::to_string(dep1 + 1); + setParameter(filterObjStr + ".Key", filterObj.key); + } } diff --git a/ecs/src/model/DescribeAccessPointsResult.cc b/ecs/src/model/DescribeAccessPointsResult.cc index b03a3aa13..a4779ce7c 100644 --- a/ecs/src/model/DescribeAccessPointsResult.cc +++ b/ecs/src/model/DescribeAccessPointsResult.cc @@ -43,22 +43,22 @@ void DescribeAccessPointsResult::parse(const std::string &payload) for (auto valueAccessPointSetAccessPointType : allAccessPointSetNode) { AccessPointType accessPointSetObject; - if(!valueAccessPointSetAccessPointType["AccessPointId"].isNull()) - accessPointSetObject.accessPointId = valueAccessPointSetAccessPointType["AccessPointId"].asString(); if(!valueAccessPointSetAccessPointType["Status"].isNull()) accessPointSetObject.status = valueAccessPointSetAccessPointType["Status"].asString(); if(!valueAccessPointSetAccessPointType["Type"].isNull()) accessPointSetObject.type = valueAccessPointSetAccessPointType["Type"].asString(); - if(!valueAccessPointSetAccessPointType["AttachedRegionNo"].isNull()) - accessPointSetObject.attachedRegionNo = valueAccessPointSetAccessPointType["AttachedRegionNo"].asString(); - if(!valueAccessPointSetAccessPointType["Location"].isNull()) - accessPointSetObject.location = valueAccessPointSetAccessPointType["Location"].asString(); if(!valueAccessPointSetAccessPointType["HostOperator"].isNull()) accessPointSetObject.hostOperator = valueAccessPointSetAccessPointType["HostOperator"].asString(); - if(!valueAccessPointSetAccessPointType["Name"].isNull()) - accessPointSetObject.name = valueAccessPointSetAccessPointType["Name"].asString(); if(!valueAccessPointSetAccessPointType["Description"].isNull()) accessPointSetObject.description = valueAccessPointSetAccessPointType["Description"].asString(); + if(!valueAccessPointSetAccessPointType["AttachedRegionNo"].isNull()) + accessPointSetObject.attachedRegionNo = valueAccessPointSetAccessPointType["AttachedRegionNo"].asString(); + if(!valueAccessPointSetAccessPointType["Name"].isNull()) + accessPointSetObject.name = valueAccessPointSetAccessPointType["Name"].asString(); + if(!valueAccessPointSetAccessPointType["AccessPointId"].isNull()) + accessPointSetObject.accessPointId = valueAccessPointSetAccessPointType["AccessPointId"].asString(); + if(!valueAccessPointSetAccessPointType["Location"].isNull()) + accessPointSetObject.location = valueAccessPointSetAccessPointType["Location"].asString(); accessPointSet_.push_back(accessPointSetObject); } if(!value["PageNumber"].isNull()) diff --git a/ecs/src/model/DescribeAccountAttributesRequest.cc b/ecs/src/model/DescribeAccountAttributesRequest.cc index 9b203c752..e61a868ed 100644 --- a/ecs/src/model/DescribeAccountAttributesRequest.cc +++ b/ecs/src/model/DescribeAccountAttributesRequest.cc @@ -1,97 +1,80 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeAccountAttributesRequest; - -DescribeAccountAttributesRequest::DescribeAccountAttributesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeAccountAttributes") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeAccountAttributesRequest::~DescribeAccountAttributesRequest() -{} - -long DescribeAccountAttributesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeAccountAttributesRequest; + +DescribeAccountAttributesRequest::DescribeAccountAttributesRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeAccountAttributes") { + setMethod(HttpRequest::Method::Post); } -void DescribeAccountAttributesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeAccountAttributesRequest::~DescribeAccountAttributesRequest() {} + +long DescribeAccountAttributesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::vector DescribeAccountAttributesRequest::getAttributeName()const -{ - return attributeName_; +void DescribeAccountAttributesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeAccountAttributesRequest::setAttributeName(const std::vector& attributeName) -{ - attributeName_ = attributeName; - for(int dep1 = 0; dep1!= attributeName.size(); dep1++) { - setParameter("AttributeName."+ std::to_string(dep1), attributeName.at(dep1)); - } +std::vector DescribeAccountAttributesRequest::getAttributeName() const { + return attributeName_; } -std::string DescribeAccountAttributesRequest::getRegionId()const -{ - return regionId_; +void DescribeAccountAttributesRequest::setAttributeName(const std::vector &attributeName) { + attributeName_ = attributeName; } -void DescribeAccountAttributesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeAccountAttributesRequest::getRegionId() const { + return regionId_; } -std::string DescribeAccountAttributesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeAccountAttributesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeAccountAttributesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeAccountAttributesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long DescribeAccountAttributesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeAccountAttributesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeAccountAttributesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeAccountAttributesRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeAccountAttributesRequest::getZoneId()const -{ - return zoneId_; +void DescribeAccountAttributesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeAccountAttributesRequest::setZoneId(const std::string& zoneId) -{ - zoneId_ = zoneId; - setParameter("ZoneId", zoneId); +std::string DescribeAccountAttributesRequest::getZoneId() const { + return zoneId_; +} + +void DescribeAccountAttributesRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); } diff --git a/ecs/src/model/DescribeAccountAttributesResult.cc b/ecs/src/model/DescribeAccountAttributesResult.cc index 796e927f6..a91ab1b28 100644 --- a/ecs/src/model/DescribeAccountAttributesResult.cc +++ b/ecs/src/model/DescribeAccountAttributesResult.cc @@ -49,20 +49,20 @@ void DescribeAccountAttributesResult::parse(const std::string &payload) for (auto valueAccountAttributeItemsAccountAttributeItemAttributeValuesValueItem : allAttributeValuesNode) { AccountAttributeItem::ValueItem attributeValuesObject; + if(!valueAccountAttributeItemsAccountAttributeItemAttributeValuesValueItem["DiskCategory"].isNull()) + attributeValuesObject.diskCategory = valueAccountAttributeItemsAccountAttributeItemAttributeValuesValueItem["DiskCategory"].asString(); if(!valueAccountAttributeItemsAccountAttributeItemAttributeValuesValueItem["Value"].isNull()) attributeValuesObject.value = valueAccountAttributeItemsAccountAttributeItemAttributeValuesValueItem["Value"].asString(); if(!valueAccountAttributeItemsAccountAttributeItemAttributeValuesValueItem["ExpiredTime"].isNull()) attributeValuesObject.expiredTime = valueAccountAttributeItemsAccountAttributeItemAttributeValuesValueItem["ExpiredTime"].asString(); if(!valueAccountAttributeItemsAccountAttributeItemAttributeValuesValueItem["ZoneId"].isNull()) attributeValuesObject.zoneId = valueAccountAttributeItemsAccountAttributeItemAttributeValuesValueItem["ZoneId"].asString(); - if(!valueAccountAttributeItemsAccountAttributeItemAttributeValuesValueItem["InstanceChargeType"].isNull()) - attributeValuesObject.instanceChargeType = valueAccountAttributeItemsAccountAttributeItemAttributeValuesValueItem["InstanceChargeType"].asString(); if(!valueAccountAttributeItemsAccountAttributeItemAttributeValuesValueItem["InstanceType"].isNull()) attributeValuesObject.instanceType = valueAccountAttributeItemsAccountAttributeItemAttributeValuesValueItem["InstanceType"].asString(); if(!valueAccountAttributeItemsAccountAttributeItemAttributeValuesValueItem["Count"].isNull()) attributeValuesObject.count = std::stoi(valueAccountAttributeItemsAccountAttributeItemAttributeValuesValueItem["Count"].asString()); - if(!valueAccountAttributeItemsAccountAttributeItemAttributeValuesValueItem["DiskCategory"].isNull()) - attributeValuesObject.diskCategory = valueAccountAttributeItemsAccountAttributeItemAttributeValuesValueItem["DiskCategory"].asString(); + if(!valueAccountAttributeItemsAccountAttributeItemAttributeValuesValueItem["InstanceChargeType"].isNull()) + attributeValuesObject.instanceChargeType = valueAccountAttributeItemsAccountAttributeItemAttributeValuesValueItem["InstanceChargeType"].asString(); accountAttributeItemsObject.attributeValues.push_back(attributeValuesObject); } accountAttributeItems_.push_back(accountAttributeItemsObject); diff --git a/ecs/src/model/DescribeActivationsRequest.cc b/ecs/src/model/DescribeActivationsRequest.cc index 43755b1b4..00e30cf4c 100644 --- a/ecs/src/model/DescribeActivationsRequest.cc +++ b/ecs/src/model/DescribeActivationsRequest.cc @@ -1,128 +1,108 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeActivationsRequest; - -DescribeActivationsRequest::DescribeActivationsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeActivations") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeActivationsRequest::~DescribeActivationsRequest() -{} - -long DescribeActivationsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeActivationsRequest; + +DescribeActivationsRequest::DescribeActivationsRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeActivations") { + setMethod(HttpRequest::Method::Post); } -void DescribeActivationsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeActivationsRequest::~DescribeActivationsRequest() {} + +long DescribeActivationsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -long DescribeActivationsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeActivationsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeActivationsRequest::setPageNumber(long pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +long DescribeActivationsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeActivationsRequest::getRegionId()const -{ - return regionId_; +void DescribeActivationsRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeActivationsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeActivationsRequest::getRegionId() const { + return regionId_; } -long DescribeActivationsRequest::getPageSize()const -{ - return pageSize_; +void DescribeActivationsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeActivationsRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +long DescribeActivationsRequest::getPageSize() const { + return pageSize_; } -std::string DescribeActivationsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeActivationsRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeActivationsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeActivationsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeActivationsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeActivationsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeActivationsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeActivationsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeActivationsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeActivationsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeActivationsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeActivationsRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeActivationsRequest::getInstanceName()const -{ - return instanceName_; +void DescribeActivationsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeActivationsRequest::setInstanceName(const std::string& instanceName) -{ - instanceName_ = instanceName; - setParameter("InstanceName", instanceName); +std::string DescribeActivationsRequest::getInstanceName() const { + return instanceName_; } -std::string DescribeActivationsRequest::getActivationId()const -{ - return activationId_; +void DescribeActivationsRequest::setInstanceName(const std::string &instanceName) { + instanceName_ = instanceName; + setParameter(std::string("InstanceName"), instanceName); } -void DescribeActivationsRequest::setActivationId(const std::string& activationId) -{ - activationId_ = activationId; - setParameter("ActivationId", activationId); +std::string DescribeActivationsRequest::getActivationId() const { + return activationId_; +} + +void DescribeActivationsRequest::setActivationId(const std::string &activationId) { + activationId_ = activationId; + setParameter(std::string("ActivationId"), activationId); } diff --git a/ecs/src/model/DescribeActivationsResult.cc b/ecs/src/model/DescribeActivationsResult.cc index 92424fdcc..270e47d09 100644 --- a/ecs/src/model/DescribeActivationsResult.cc +++ b/ecs/src/model/DescribeActivationsResult.cc @@ -43,34 +43,34 @@ void DescribeActivationsResult::parse(const std::string &payload) for (auto valueActivationListActivation : allActivationListNode) { Activation activationListObject; - if(!valueActivationListActivation["ActivationId"].isNull()) - activationListObject.activationId = valueActivationListActivation["ActivationId"].asString(); - if(!valueActivationListActivation["InstanceName"].isNull()) - activationListObject.instanceName = valueActivationListActivation["InstanceName"].asString(); - if(!valueActivationListActivation["Description"].isNull()) - activationListObject.description = valueActivationListActivation["Description"].asString(); - if(!valueActivationListActivation["InstanceCount"].isNull()) - activationListObject.instanceCount = std::stoi(valueActivationListActivation["InstanceCount"].asString()); - if(!valueActivationListActivation["TimeToLiveInHours"].isNull()) - activationListObject.timeToLiveInHours = std::stol(valueActivationListActivation["TimeToLiveInHours"].asString()); - if(!valueActivationListActivation["IpAddressRange"].isNull()) - activationListObject.ipAddressRange = valueActivationListActivation["IpAddressRange"].asString(); - if(!valueActivationListActivation["RegisteredCount"].isNull()) - activationListObject.registeredCount = std::stoi(valueActivationListActivation["RegisteredCount"].asString()); - if(!valueActivationListActivation["DeregisteredCount"].isNull()) - activationListObject.deregisteredCount = std::stoi(valueActivationListActivation["DeregisteredCount"].asString()); - if(!valueActivationListActivation["Disabled"].isNull()) - activationListObject.disabled = valueActivationListActivation["Disabled"].asString() == "true"; if(!valueActivationListActivation["CreationTime"].isNull()) activationListObject.creationTime = valueActivationListActivation["CreationTime"].asString(); + if(!valueActivationListActivation["DeregisteredCount"].isNull()) + activationListObject.deregisteredCount = std::stoi(valueActivationListActivation["DeregisteredCount"].asString()); + if(!valueActivationListActivation["InstanceCount"].isNull()) + activationListObject.instanceCount = std::stoi(valueActivationListActivation["InstanceCount"].asString()); + if(!valueActivationListActivation["Description"].isNull()) + activationListObject.description = valueActivationListActivation["Description"].asString(); + if(!valueActivationListActivation["RegisteredCount"].isNull()) + activationListObject.registeredCount = std::stoi(valueActivationListActivation["RegisteredCount"].asString()); + if(!valueActivationListActivation["InstanceName"].isNull()) + activationListObject.instanceName = valueActivationListActivation["InstanceName"].asString(); + if(!valueActivationListActivation["Disabled"].isNull()) + activationListObject.disabled = valueActivationListActivation["Disabled"].asString() == "true"; + if(!valueActivationListActivation["IpAddressRange"].isNull()) + activationListObject.ipAddressRange = valueActivationListActivation["IpAddressRange"].asString(); + if(!valueActivationListActivation["TimeToLiveInHours"].isNull()) + activationListObject.timeToLiveInHours = std::stol(valueActivationListActivation["TimeToLiveInHours"].asString()); + if(!valueActivationListActivation["ActivationId"].isNull()) + activationListObject.activationId = valueActivationListActivation["ActivationId"].asString(); activationList_.push_back(activationListObject); } - if(!value["TotalCount"].isNull()) - totalCount_ = std::stol(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stol(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stol(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); } diff --git a/ecs/src/model/DescribeAutoProvisioningGroupHistoryRequest.cc b/ecs/src/model/DescribeAutoProvisioningGroupHistoryRequest.cc index ec6e6df16..d33d90120 100644 --- a/ecs/src/model/DescribeAutoProvisioningGroupHistoryRequest.cc +++ b/ecs/src/model/DescribeAutoProvisioningGroupHistoryRequest.cc @@ -1,139 +1,117 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeAutoProvisioningGroupHistoryRequest; - -DescribeAutoProvisioningGroupHistoryRequest::DescribeAutoProvisioningGroupHistoryRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeAutoProvisioningGroupHistory") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeAutoProvisioningGroupHistoryRequest::~DescribeAutoProvisioningGroupHistoryRequest() -{} - -long DescribeAutoProvisioningGroupHistoryRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeAutoProvisioningGroupHistoryRequest; + +DescribeAutoProvisioningGroupHistoryRequest::DescribeAutoProvisioningGroupHistoryRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeAutoProvisioningGroupHistory") { + setMethod(HttpRequest::Method::Post); } -void DescribeAutoProvisioningGroupHistoryRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeAutoProvisioningGroupHistoryRequest::~DescribeAutoProvisioningGroupHistoryRequest() {} + +long DescribeAutoProvisioningGroupHistoryRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeAutoProvisioningGroupHistoryRequest::getStartTime()const -{ - return startTime_; +void DescribeAutoProvisioningGroupHistoryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeAutoProvisioningGroupHistoryRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string DescribeAutoProvisioningGroupHistoryRequest::getStartTime() const { + return startTime_; } -int DescribeAutoProvisioningGroupHistoryRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeAutoProvisioningGroupHistoryRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void DescribeAutoProvisioningGroupHistoryRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeAutoProvisioningGroupHistoryRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeAutoProvisioningGroupHistoryRequest::getRegionId()const -{ - return regionId_; +void DescribeAutoProvisioningGroupHistoryRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeAutoProvisioningGroupHistoryRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeAutoProvisioningGroupHistoryRequest::getRegionId() const { + return regionId_; } -int DescribeAutoProvisioningGroupHistoryRequest::getPageSize()const -{ - return pageSize_; +void DescribeAutoProvisioningGroupHistoryRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeAutoProvisioningGroupHistoryRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeAutoProvisioningGroupHistoryRequest::getPageSize() const { + return pageSize_; } -std::string DescribeAutoProvisioningGroupHistoryRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeAutoProvisioningGroupHistoryRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeAutoProvisioningGroupHistoryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeAutoProvisioningGroupHistoryRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeAutoProvisioningGroupHistoryRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeAutoProvisioningGroupHistoryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeAutoProvisioningGroupHistoryRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeAutoProvisioningGroupHistoryRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeAutoProvisioningGroupHistoryRequest::getEndTime()const -{ - return endTime_; +void DescribeAutoProvisioningGroupHistoryRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeAutoProvisioningGroupHistoryRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +std::string DescribeAutoProvisioningGroupHistoryRequest::getEndTime() const { + return endTime_; } -long DescribeAutoProvisioningGroupHistoryRequest::getOwnerId()const -{ - return ownerId_; +void DescribeAutoProvisioningGroupHistoryRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void DescribeAutoProvisioningGroupHistoryRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeAutoProvisioningGroupHistoryRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeAutoProvisioningGroupHistoryRequest::getAutoProvisioningGroupId()const -{ - return autoProvisioningGroupId_; +void DescribeAutoProvisioningGroupHistoryRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeAutoProvisioningGroupHistoryRequest::setAutoProvisioningGroupId(const std::string& autoProvisioningGroupId) -{ - autoProvisioningGroupId_ = autoProvisioningGroupId; - setParameter("AutoProvisioningGroupId", autoProvisioningGroupId); +std::string DescribeAutoProvisioningGroupHistoryRequest::getAutoProvisioningGroupId() const { + return autoProvisioningGroupId_; +} + +void DescribeAutoProvisioningGroupHistoryRequest::setAutoProvisioningGroupId(const std::string &autoProvisioningGroupId) { + autoProvisioningGroupId_ = autoProvisioningGroupId; + setParameter(std::string("AutoProvisioningGroupId"), autoProvisioningGroupId); } diff --git a/ecs/src/model/DescribeAutoProvisioningGroupHistoryResult.cc b/ecs/src/model/DescribeAutoProvisioningGroupHistoryResult.cc index cda0c92b3..072187f2b 100644 --- a/ecs/src/model/DescribeAutoProvisioningGroupHistoryResult.cc +++ b/ecs/src/model/DescribeAutoProvisioningGroupHistoryResult.cc @@ -43,32 +43,32 @@ void DescribeAutoProvisioningGroupHistoryResult::parse(const std::string &payloa for (auto valueAutoProvisioningGroupHistoriesAutoProvisioningGroupHistory : allAutoProvisioningGroupHistoriesNode) { AutoProvisioningGroupHistory autoProvisioningGroupHistoriesObject; - if(!valueAutoProvisioningGroupHistoriesAutoProvisioningGroupHistory["TaskId"].isNull()) - autoProvisioningGroupHistoriesObject.taskId = valueAutoProvisioningGroupHistoriesAutoProvisioningGroupHistory["TaskId"].asString(); if(!valueAutoProvisioningGroupHistoriesAutoProvisioningGroupHistory["Status"].isNull()) autoProvisioningGroupHistoriesObject.status = valueAutoProvisioningGroupHistoriesAutoProvisioningGroupHistory["Status"].asString(); - if(!valueAutoProvisioningGroupHistoriesAutoProvisioningGroupHistory["LastEventTime"].isNull()) - autoProvisioningGroupHistoriesObject.lastEventTime = valueAutoProvisioningGroupHistoriesAutoProvisioningGroupHistory["LastEventTime"].asString(); if(!valueAutoProvisioningGroupHistoriesAutoProvisioningGroupHistory["StartTime"].isNull()) autoProvisioningGroupHistoriesObject.startTime = valueAutoProvisioningGroupHistoriesAutoProvisioningGroupHistory["StartTime"].asString(); + if(!valueAutoProvisioningGroupHistoriesAutoProvisioningGroupHistory["TaskId"].isNull()) + autoProvisioningGroupHistoriesObject.taskId = valueAutoProvisioningGroupHistoriesAutoProvisioningGroupHistory["TaskId"].asString(); + if(!valueAutoProvisioningGroupHistoriesAutoProvisioningGroupHistory["LastEventTime"].isNull()) + autoProvisioningGroupHistoriesObject.lastEventTime = valueAutoProvisioningGroupHistoriesAutoProvisioningGroupHistory["LastEventTime"].asString(); auto allActivityDetailsNode = valueAutoProvisioningGroupHistoriesAutoProvisioningGroupHistory["ActivityDetails"]["ActivityDetail"]; for (auto valueAutoProvisioningGroupHistoriesAutoProvisioningGroupHistoryActivityDetailsActivityDetail : allActivityDetailsNode) { AutoProvisioningGroupHistory::ActivityDetail activityDetailsObject; - if(!valueAutoProvisioningGroupHistoriesAutoProvisioningGroupHistoryActivityDetailsActivityDetail["Detail"].isNull()) - activityDetailsObject.detail = valueAutoProvisioningGroupHistoriesAutoProvisioningGroupHistoryActivityDetailsActivityDetail["Detail"].asString(); if(!valueAutoProvisioningGroupHistoriesAutoProvisioningGroupHistoryActivityDetailsActivityDetail["Status"].isNull()) activityDetailsObject.status = valueAutoProvisioningGroupHistoriesAutoProvisioningGroupHistoryActivityDetailsActivityDetail["Status"].asString(); + if(!valueAutoProvisioningGroupHistoriesAutoProvisioningGroupHistoryActivityDetailsActivityDetail["Detail"].isNull()) + activityDetailsObject.detail = valueAutoProvisioningGroupHistoriesAutoProvisioningGroupHistoryActivityDetailsActivityDetail["Detail"].asString(); autoProvisioningGroupHistoriesObject.activityDetails.push_back(activityDetailsObject); } autoProvisioningGroupHistories_.push_back(autoProvisioningGroupHistoriesObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/ecs/src/model/DescribeAutoProvisioningGroupInstancesRequest.cc b/ecs/src/model/DescribeAutoProvisioningGroupInstancesRequest.cc index 5ab41c636..40cfcd470 100644 --- a/ecs/src/model/DescribeAutoProvisioningGroupInstancesRequest.cc +++ b/ecs/src/model/DescribeAutoProvisioningGroupInstancesRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeAutoProvisioningGroupInstancesRequest; - -DescribeAutoProvisioningGroupInstancesRequest::DescribeAutoProvisioningGroupInstancesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeAutoProvisioningGroupInstances") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeAutoProvisioningGroupInstancesRequest::~DescribeAutoProvisioningGroupInstancesRequest() -{} - -long DescribeAutoProvisioningGroupInstancesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeAutoProvisioningGroupInstancesRequest; + +DescribeAutoProvisioningGroupInstancesRequest::DescribeAutoProvisioningGroupInstancesRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeAutoProvisioningGroupInstances") { + setMethod(HttpRequest::Method::Post); } -void DescribeAutoProvisioningGroupInstancesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeAutoProvisioningGroupInstancesRequest::~DescribeAutoProvisioningGroupInstancesRequest() {} + +long DescribeAutoProvisioningGroupInstancesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeAutoProvisioningGroupInstancesRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeAutoProvisioningGroupInstancesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeAutoProvisioningGroupInstancesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeAutoProvisioningGroupInstancesRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeAutoProvisioningGroupInstancesRequest::getRegionId()const -{ - return regionId_; +void DescribeAutoProvisioningGroupInstancesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeAutoProvisioningGroupInstancesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeAutoProvisioningGroupInstancesRequest::getRegionId() const { + return regionId_; } -int DescribeAutoProvisioningGroupInstancesRequest::getPageSize()const -{ - return pageSize_; +void DescribeAutoProvisioningGroupInstancesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeAutoProvisioningGroupInstancesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeAutoProvisioningGroupInstancesRequest::getPageSize() const { + return pageSize_; } -std::string DescribeAutoProvisioningGroupInstancesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeAutoProvisioningGroupInstancesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeAutoProvisioningGroupInstancesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeAutoProvisioningGroupInstancesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeAutoProvisioningGroupInstancesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeAutoProvisioningGroupInstancesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeAutoProvisioningGroupInstancesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeAutoProvisioningGroupInstancesRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeAutoProvisioningGroupInstancesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeAutoProvisioningGroupInstancesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeAutoProvisioningGroupInstancesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeAutoProvisioningGroupInstancesRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeAutoProvisioningGroupInstancesRequest::getAutoProvisioningGroupId()const -{ - return autoProvisioningGroupId_; +void DescribeAutoProvisioningGroupInstancesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeAutoProvisioningGroupInstancesRequest::setAutoProvisioningGroupId(const std::string& autoProvisioningGroupId) -{ - autoProvisioningGroupId_ = autoProvisioningGroupId; - setParameter("AutoProvisioningGroupId", autoProvisioningGroupId); +std::string DescribeAutoProvisioningGroupInstancesRequest::getAutoProvisioningGroupId() const { + return autoProvisioningGroupId_; +} + +void DescribeAutoProvisioningGroupInstancesRequest::setAutoProvisioningGroupId(const std::string &autoProvisioningGroupId) { + autoProvisioningGroupId_ = autoProvisioningGroupId; + setParameter(std::string("AutoProvisioningGroupId"), autoProvisioningGroupId); } diff --git a/ecs/src/model/DescribeAutoProvisioningGroupInstancesResult.cc b/ecs/src/model/DescribeAutoProvisioningGroupInstancesResult.cc index 679cf17c8..d340c9c60 100644 --- a/ecs/src/model/DescribeAutoProvisioningGroupInstancesResult.cc +++ b/ecs/src/model/DescribeAutoProvisioningGroupInstancesResult.cc @@ -43,38 +43,38 @@ void DescribeAutoProvisioningGroupInstancesResult::parse(const std::string &payl for (auto valueInstancesInstance : allInstancesNode) { Instance instancesObject; - if(!valueInstancesInstance["InstanceId"].isNull()) - instancesObject.instanceId = valueInstancesInstance["InstanceId"].asString(); if(!valueInstancesInstance["Status"].isNull()) instancesObject.status = valueInstancesInstance["Status"].asString(); - if(!valueInstancesInstance["RegionId"].isNull()) - instancesObject.regionId = valueInstancesInstance["RegionId"].asString(); - if(!valueInstancesInstance["ZoneId"].isNull()) - instancesObject.zoneId = valueInstancesInstance["ZoneId"].asString(); - if(!valueInstancesInstance["CPU"].isNull()) - instancesObject.cPU = std::stoi(valueInstancesInstance["CPU"].asString()); - if(!valueInstancesInstance["Memory"].isNull()) - instancesObject.memory = std::stoi(valueInstancesInstance["Memory"].asString()); - if(!valueInstancesInstance["InstanceType"].isNull()) - instancesObject.instanceType = valueInstancesInstance["InstanceType"].asString(); - if(!valueInstancesInstance["IsSpot"].isNull()) - instancesObject.isSpot = valueInstancesInstance["IsSpot"].asString() == "true"; - if(!valueInstancesInstance["IoOptimized"].isNull()) - instancesObject.ioOptimized = valueInstancesInstance["IoOptimized"].asString() == "true"; - if(!valueInstancesInstance["NetworkType"].isNull()) - instancesObject.networkType = valueInstancesInstance["NetworkType"].asString(); - if(!valueInstancesInstance["OsType"].isNull()) - instancesObject.osType = valueInstancesInstance["OsType"].asString(); if(!valueInstancesInstance["CreationTime"].isNull()) instancesObject.creationTime = valueInstancesInstance["CreationTime"].asString(); + if(!valueInstancesInstance["IsSpot"].isNull()) + instancesObject.isSpot = valueInstancesInstance["IsSpot"].asString() == "true"; + if(!valueInstancesInstance["CPU"].isNull()) + instancesObject.cPU = std::stoi(valueInstancesInstance["CPU"].asString()); + if(!valueInstancesInstance["InstanceId"].isNull()) + instancesObject.instanceId = valueInstancesInstance["InstanceId"].asString(); + if(!valueInstancesInstance["NetworkType"].isNull()) + instancesObject.networkType = valueInstancesInstance["NetworkType"].asString(); + if(!valueInstancesInstance["InstanceType"].isNull()) + instancesObject.instanceType = valueInstancesInstance["InstanceType"].asString(); + if(!valueInstancesInstance["RegionId"].isNull()) + instancesObject.regionId = valueInstancesInstance["RegionId"].asString(); + if(!valueInstancesInstance["IoOptimized"].isNull()) + instancesObject.ioOptimized = valueInstancesInstance["IoOptimized"].asString() == "true"; + if(!valueInstancesInstance["OsType"].isNull()) + instancesObject.osType = valueInstancesInstance["OsType"].asString(); + if(!valueInstancesInstance["ZoneId"].isNull()) + instancesObject.zoneId = valueInstancesInstance["ZoneId"].asString(); + if(!valueInstancesInstance["Memory"].isNull()) + instancesObject.memory = std::stoi(valueInstancesInstance["Memory"].asString()); instances_.push_back(instancesObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/ecs/src/model/DescribeAutoProvisioningGroupsRequest.cc b/ecs/src/model/DescribeAutoProvisioningGroupsRequest.cc index 3c06667d0..9a9ab3a20 100644 --- a/ecs/src/model/DescribeAutoProvisioningGroupsRequest.cc +++ b/ecs/src/model/DescribeAutoProvisioningGroupsRequest.cc @@ -1,143 +1,115 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeAutoProvisioningGroupsRequest; - -DescribeAutoProvisioningGroupsRequest::DescribeAutoProvisioningGroupsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeAutoProvisioningGroups") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeAutoProvisioningGroupsRequest::~DescribeAutoProvisioningGroupsRequest() -{} - -long DescribeAutoProvisioningGroupsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeAutoProvisioningGroupsRequest; + +DescribeAutoProvisioningGroupsRequest::DescribeAutoProvisioningGroupsRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeAutoProvisioningGroups") { + setMethod(HttpRequest::Method::Post); } -void DescribeAutoProvisioningGroupsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeAutoProvisioningGroupsRequest::~DescribeAutoProvisioningGroupsRequest() {} + +long DescribeAutoProvisioningGroupsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeAutoProvisioningGroupsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeAutoProvisioningGroupsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeAutoProvisioningGroupsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeAutoProvisioningGroupsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeAutoProvisioningGroupsRequest::getRegionId()const -{ - return regionId_; +void DescribeAutoProvisioningGroupsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeAutoProvisioningGroupsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeAutoProvisioningGroupsRequest::getRegionId() const { + return regionId_; } -int DescribeAutoProvisioningGroupsRequest::getPageSize()const -{ - return pageSize_; +void DescribeAutoProvisioningGroupsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeAutoProvisioningGroupsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeAutoProvisioningGroupsRequest::getPageSize() const { + return pageSize_; } -std::vector DescribeAutoProvisioningGroupsRequest::getAutoProvisioningGroupStatus()const -{ - return autoProvisioningGroupStatus_; +void DescribeAutoProvisioningGroupsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeAutoProvisioningGroupsRequest::setAutoProvisioningGroupStatus(const std::vector& autoProvisioningGroupStatus) -{ - autoProvisioningGroupStatus_ = autoProvisioningGroupStatus; - for(int dep1 = 0; dep1!= autoProvisioningGroupStatus.size(); dep1++) { - setParameter("AutoProvisioningGroupStatus."+ std::to_string(dep1), autoProvisioningGroupStatus.at(dep1)); - } +std::vector DescribeAutoProvisioningGroupsRequest::getAutoProvisioningGroupStatus() const { + return autoProvisioningGroupStatus_; } -std::string DescribeAutoProvisioningGroupsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeAutoProvisioningGroupsRequest::setAutoProvisioningGroupStatus(const std::vector &autoProvisioningGroupStatus) { + autoProvisioningGroupStatus_ = autoProvisioningGroupStatus; } -void DescribeAutoProvisioningGroupsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeAutoProvisioningGroupsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeAutoProvisioningGroupsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeAutoProvisioningGroupsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeAutoProvisioningGroupsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeAutoProvisioningGroupsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeAutoProvisioningGroupsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeAutoProvisioningGroupsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeAutoProvisioningGroupsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeAutoProvisioningGroupsRequest::getOwnerId() const { + return ownerId_; } -std::vector DescribeAutoProvisioningGroupsRequest::getAutoProvisioningGroupId()const -{ - return autoProvisioningGroupId_; +void DescribeAutoProvisioningGroupsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeAutoProvisioningGroupsRequest::setAutoProvisioningGroupId(const std::vector& autoProvisioningGroupId) -{ - autoProvisioningGroupId_ = autoProvisioningGroupId; - for(int dep1 = 0; dep1!= autoProvisioningGroupId.size(); dep1++) { - setParameter("AutoProvisioningGroupId."+ std::to_string(dep1), autoProvisioningGroupId.at(dep1)); - } +std::vector DescribeAutoProvisioningGroupsRequest::getAutoProvisioningGroupId() const { + return autoProvisioningGroupId_; } -std::string DescribeAutoProvisioningGroupsRequest::getAutoProvisioningGroupName()const -{ - return autoProvisioningGroupName_; +void DescribeAutoProvisioningGroupsRequest::setAutoProvisioningGroupId(const std::vector &autoProvisioningGroupId) { + autoProvisioningGroupId_ = autoProvisioningGroupId; } -void DescribeAutoProvisioningGroupsRequest::setAutoProvisioningGroupName(const std::string& autoProvisioningGroupName) -{ - autoProvisioningGroupName_ = autoProvisioningGroupName; - setParameter("AutoProvisioningGroupName", autoProvisioningGroupName); +std::string DescribeAutoProvisioningGroupsRequest::getAutoProvisioningGroupName() const { + return autoProvisioningGroupName_; +} + +void DescribeAutoProvisioningGroupsRequest::setAutoProvisioningGroupName(const std::string &autoProvisioningGroupName) { + autoProvisioningGroupName_ = autoProvisioningGroupName; + setParameter(std::string("AutoProvisioningGroupName"), autoProvisioningGroupName); } diff --git a/ecs/src/model/DescribeAutoProvisioningGroupsResult.cc b/ecs/src/model/DescribeAutoProvisioningGroupsResult.cc index dd329a6b6..99ded2fe4 100644 --- a/ecs/src/model/DescribeAutoProvisioningGroupsResult.cc +++ b/ecs/src/model/DescribeAutoProvisioningGroupsResult.cc @@ -43,79 +43,79 @@ void DescribeAutoProvisioningGroupsResult::parse(const std::string &payload) for (auto valueAutoProvisioningGroupsAutoProvisioningGroup : allAutoProvisioningGroupsNode) { AutoProvisioningGroup autoProvisioningGroupsObject; - if(!valueAutoProvisioningGroupsAutoProvisioningGroup["AutoProvisioningGroupId"].isNull()) - autoProvisioningGroupsObject.autoProvisioningGroupId = valueAutoProvisioningGroupsAutoProvisioningGroup["AutoProvisioningGroupId"].asString(); - if(!valueAutoProvisioningGroupsAutoProvisioningGroup["AutoProvisioningGroupName"].isNull()) - autoProvisioningGroupsObject.autoProvisioningGroupName = valueAutoProvisioningGroupsAutoProvisioningGroup["AutoProvisioningGroupName"].asString(); - if(!valueAutoProvisioningGroupsAutoProvisioningGroup["AutoProvisioningGroupType"].isNull()) - autoProvisioningGroupsObject.autoProvisioningGroupType = valueAutoProvisioningGroupsAutoProvisioningGroup["AutoProvisioningGroupType"].asString(); - if(!valueAutoProvisioningGroupsAutoProvisioningGroup["Status"].isNull()) - autoProvisioningGroupsObject.status = valueAutoProvisioningGroupsAutoProvisioningGroup["Status"].asString(); - if(!valueAutoProvisioningGroupsAutoProvisioningGroup["State"].isNull()) - autoProvisioningGroupsObject.state = valueAutoProvisioningGroupsAutoProvisioningGroup["State"].asString(); - if(!valueAutoProvisioningGroupsAutoProvisioningGroup["RegionId"].isNull()) - autoProvisioningGroupsObject.regionId = valueAutoProvisioningGroupsAutoProvisioningGroup["RegionId"].asString(); - if(!valueAutoProvisioningGroupsAutoProvisioningGroup["ValidFrom"].isNull()) - autoProvisioningGroupsObject.validFrom = valueAutoProvisioningGroupsAutoProvisioningGroup["ValidFrom"].asString(); - if(!valueAutoProvisioningGroupsAutoProvisioningGroup["ValidUntil"].isNull()) - autoProvisioningGroupsObject.validUntil = valueAutoProvisioningGroupsAutoProvisioningGroup["ValidUntil"].asString(); - if(!valueAutoProvisioningGroupsAutoProvisioningGroup["ExcessCapacityTerminationPolicy"].isNull()) - autoProvisioningGroupsObject.excessCapacityTerminationPolicy = valueAutoProvisioningGroupsAutoProvisioningGroup["ExcessCapacityTerminationPolicy"].asString(); - if(!valueAutoProvisioningGroupsAutoProvisioningGroup["MaxSpotPrice"].isNull()) - autoProvisioningGroupsObject.maxSpotPrice = std::stof(valueAutoProvisioningGroupsAutoProvisioningGroup["MaxSpotPrice"].asString()); - if(!valueAutoProvisioningGroupsAutoProvisioningGroup["LaunchTemplateId"].isNull()) - autoProvisioningGroupsObject.launchTemplateId = valueAutoProvisioningGroupsAutoProvisioningGroup["LaunchTemplateId"].asString(); - if(!valueAutoProvisioningGroupsAutoProvisioningGroup["LaunchTemplateVersion"].isNull()) - autoProvisioningGroupsObject.launchTemplateVersion = valueAutoProvisioningGroupsAutoProvisioningGroup["LaunchTemplateVersion"].asString(); - if(!valueAutoProvisioningGroupsAutoProvisioningGroup["TerminateInstances"].isNull()) - autoProvisioningGroupsObject.terminateInstances = valueAutoProvisioningGroupsAutoProvisioningGroup["TerminateInstances"].asString() == "true"; - if(!valueAutoProvisioningGroupsAutoProvisioningGroup["TerminateInstancesWithExpiration"].isNull()) - autoProvisioningGroupsObject.terminateInstancesWithExpiration = valueAutoProvisioningGroupsAutoProvisioningGroup["TerminateInstancesWithExpiration"].asString() == "true"; if(!valueAutoProvisioningGroupsAutoProvisioningGroup["CreationTime"].isNull()) autoProvisioningGroupsObject.creationTime = valueAutoProvisioningGroupsAutoProvisioningGroup["CreationTime"].asString(); + if(!valueAutoProvisioningGroupsAutoProvisioningGroup["AutoProvisioningGroupName"].isNull()) + autoProvisioningGroupsObject.autoProvisioningGroupName = valueAutoProvisioningGroupsAutoProvisioningGroup["AutoProvisioningGroupName"].asString(); + if(!valueAutoProvisioningGroupsAutoProvisioningGroup["Status"].isNull()) + autoProvisioningGroupsObject.status = valueAutoProvisioningGroupsAutoProvisioningGroup["Status"].asString(); + if(!valueAutoProvisioningGroupsAutoProvisioningGroup["TerminateInstances"].isNull()) + autoProvisioningGroupsObject.terminateInstances = valueAutoProvisioningGroupsAutoProvisioningGroup["TerminateInstances"].asString() == "true"; + if(!valueAutoProvisioningGroupsAutoProvisioningGroup["MaxSpotPrice"].isNull()) + autoProvisioningGroupsObject.maxSpotPrice = std::stof(valueAutoProvisioningGroupsAutoProvisioningGroup["MaxSpotPrice"].asString()); + if(!valueAutoProvisioningGroupsAutoProvisioningGroup["State"].isNull()) + autoProvisioningGroupsObject.state = valueAutoProvisioningGroupsAutoProvisioningGroup["State"].asString(); + if(!valueAutoProvisioningGroupsAutoProvisioningGroup["LaunchTemplateId"].isNull()) + autoProvisioningGroupsObject.launchTemplateId = valueAutoProvisioningGroupsAutoProvisioningGroup["LaunchTemplateId"].asString(); + if(!valueAutoProvisioningGroupsAutoProvisioningGroup["ValidFrom"].isNull()) + autoProvisioningGroupsObject.validFrom = valueAutoProvisioningGroupsAutoProvisioningGroup["ValidFrom"].asString(); + if(!valueAutoProvisioningGroupsAutoProvisioningGroup["LaunchTemplateVersion"].isNull()) + autoProvisioningGroupsObject.launchTemplateVersion = valueAutoProvisioningGroupsAutoProvisioningGroup["LaunchTemplateVersion"].asString(); + if(!valueAutoProvisioningGroupsAutoProvisioningGroup["TerminateInstancesWithExpiration"].isNull()) + autoProvisioningGroupsObject.terminateInstancesWithExpiration = valueAutoProvisioningGroupsAutoProvisioningGroup["TerminateInstancesWithExpiration"].asString() == "true"; + if(!valueAutoProvisioningGroupsAutoProvisioningGroup["RegionId"].isNull()) + autoProvisioningGroupsObject.regionId = valueAutoProvisioningGroupsAutoProvisioningGroup["RegionId"].asString(); + if(!valueAutoProvisioningGroupsAutoProvisioningGroup["ValidUntil"].isNull()) + autoProvisioningGroupsObject.validUntil = valueAutoProvisioningGroupsAutoProvisioningGroup["ValidUntil"].asString(); + if(!valueAutoProvisioningGroupsAutoProvisioningGroup["AutoProvisioningGroupType"].isNull()) + autoProvisioningGroupsObject.autoProvisioningGroupType = valueAutoProvisioningGroupsAutoProvisioningGroup["AutoProvisioningGroupType"].asString(); + if(!valueAutoProvisioningGroupsAutoProvisioningGroup["AutoProvisioningGroupId"].isNull()) + autoProvisioningGroupsObject.autoProvisioningGroupId = valueAutoProvisioningGroupsAutoProvisioningGroup["AutoProvisioningGroupId"].asString(); + if(!valueAutoProvisioningGroupsAutoProvisioningGroup["ExcessCapacityTerminationPolicy"].isNull()) + autoProvisioningGroupsObject.excessCapacityTerminationPolicy = valueAutoProvisioningGroupsAutoProvisioningGroup["ExcessCapacityTerminationPolicy"].asString(); auto allLaunchTemplateConfigsNode = valueAutoProvisioningGroupsAutoProvisioningGroup["LaunchTemplateConfigs"]["LaunchTemplateConfig"]; for (auto valueAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigsLaunchTemplateConfig : allLaunchTemplateConfigsNode) { AutoProvisioningGroup::LaunchTemplateConfig launchTemplateConfigsObject; - if(!valueAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigsLaunchTemplateConfig["InstanceType"].isNull()) - launchTemplateConfigsObject.instanceType = valueAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigsLaunchTemplateConfig["InstanceType"].asString(); if(!valueAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigsLaunchTemplateConfig["MaxPrice"].isNull()) launchTemplateConfigsObject.maxPrice = std::stof(valueAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigsLaunchTemplateConfig["MaxPrice"].asString()); + if(!valueAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigsLaunchTemplateConfig["Priority"].isNull()) + launchTemplateConfigsObject.priority = std::stof(valueAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigsLaunchTemplateConfig["Priority"].asString()); if(!valueAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigsLaunchTemplateConfig["VSwitchId"].isNull()) launchTemplateConfigsObject.vSwitchId = valueAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigsLaunchTemplateConfig["VSwitchId"].asString(); if(!valueAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigsLaunchTemplateConfig["WeightedCapacity"].isNull()) launchTemplateConfigsObject.weightedCapacity = std::stof(valueAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigsLaunchTemplateConfig["WeightedCapacity"].asString()); - if(!valueAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigsLaunchTemplateConfig["Priority"].isNull()) - launchTemplateConfigsObject.priority = std::stof(valueAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigsLaunchTemplateConfig["Priority"].asString()); + if(!valueAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigsLaunchTemplateConfig["InstanceType"].isNull()) + launchTemplateConfigsObject.instanceType = valueAutoProvisioningGroupsAutoProvisioningGroupLaunchTemplateConfigsLaunchTemplateConfig["InstanceType"].asString(); autoProvisioningGroupsObject.launchTemplateConfigs.push_back(launchTemplateConfigsObject); } auto spotOptionsNode = value["SpotOptions"]; + if(!spotOptionsNode["InstancePoolsToUseCount"].isNull()) + autoProvisioningGroupsObject.spotOptions.instancePoolsToUseCount = std::stoi(spotOptionsNode["InstancePoolsToUseCount"].asString()); if(!spotOptionsNode["AllocationStrategy"].isNull()) autoProvisioningGroupsObject.spotOptions.allocationStrategy = spotOptionsNode["AllocationStrategy"].asString(); if(!spotOptionsNode["InstanceInterruptionBehavior"].isNull()) autoProvisioningGroupsObject.spotOptions.instanceInterruptionBehavior = spotOptionsNode["InstanceInterruptionBehavior"].asString(); - if(!spotOptionsNode["InstancePoolsToUseCount"].isNull()) - autoProvisioningGroupsObject.spotOptions.instancePoolsToUseCount = std::stoi(spotOptionsNode["InstancePoolsToUseCount"].asString()); auto payAsYouGoOptionsNode = value["PayAsYouGoOptions"]; if(!payAsYouGoOptionsNode["AllocationStrategy"].isNull()) autoProvisioningGroupsObject.payAsYouGoOptions.allocationStrategy = payAsYouGoOptionsNode["AllocationStrategy"].asString(); auto targetCapacitySpecificationNode = value["TargetCapacitySpecification"]; - if(!targetCapacitySpecificationNode["TotalTargetCapacity"].isNull()) - autoProvisioningGroupsObject.targetCapacitySpecification.totalTargetCapacity = std::stof(targetCapacitySpecificationNode["TotalTargetCapacity"].asString()); - if(!targetCapacitySpecificationNode["PayAsYouGoTargetCapacity"].isNull()) - autoProvisioningGroupsObject.targetCapacitySpecification.payAsYouGoTargetCapacity = std::stof(targetCapacitySpecificationNode["PayAsYouGoTargetCapacity"].asString()); if(!targetCapacitySpecificationNode["SpotTargetCapacity"].isNull()) autoProvisioningGroupsObject.targetCapacitySpecification.spotTargetCapacity = std::stof(targetCapacitySpecificationNode["SpotTargetCapacity"].asString()); + if(!targetCapacitySpecificationNode["PayAsYouGoTargetCapacity"].isNull()) + autoProvisioningGroupsObject.targetCapacitySpecification.payAsYouGoTargetCapacity = std::stof(targetCapacitySpecificationNode["PayAsYouGoTargetCapacity"].asString()); if(!targetCapacitySpecificationNode["DefaultTargetCapacityType"].isNull()) autoProvisioningGroupsObject.targetCapacitySpecification.defaultTargetCapacityType = targetCapacitySpecificationNode["DefaultTargetCapacityType"].asString(); + if(!targetCapacitySpecificationNode["TotalTargetCapacity"].isNull()) + autoProvisioningGroupsObject.targetCapacitySpecification.totalTargetCapacity = std::stof(targetCapacitySpecificationNode["TotalTargetCapacity"].asString()); autoProvisioningGroups_.push_back(autoProvisioningGroupsObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/ecs/src/model/DescribeAutoSnapshotPolicyExRequest.cc b/ecs/src/model/DescribeAutoSnapshotPolicyExRequest.cc index 4461434f7..4c3f6af46 100644 --- a/ecs/src/model/DescribeAutoSnapshotPolicyExRequest.cc +++ b/ecs/src/model/DescribeAutoSnapshotPolicyExRequest.cc @@ -1,144 +1,122 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeAutoSnapshotPolicyExRequest; - -DescribeAutoSnapshotPolicyExRequest::DescribeAutoSnapshotPolicyExRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeAutoSnapshotPolicyEx") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeAutoSnapshotPolicyExRequest::~DescribeAutoSnapshotPolicyExRequest() -{} - -long DescribeAutoSnapshotPolicyExRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeAutoSnapshotPolicyExRequest; + +DescribeAutoSnapshotPolicyExRequest::DescribeAutoSnapshotPolicyExRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeAutoSnapshotPolicyEx") { + setMethod(HttpRequest::Method::Post); } -void DescribeAutoSnapshotPolicyExRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeAutoSnapshotPolicyExRequest::~DescribeAutoSnapshotPolicyExRequest() {} + +long DescribeAutoSnapshotPolicyExRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeAutoSnapshotPolicyExRequest::getAutoSnapshotPolicyId()const -{ - return autoSnapshotPolicyId_; +void DescribeAutoSnapshotPolicyExRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeAutoSnapshotPolicyExRequest::setAutoSnapshotPolicyId(const std::string& autoSnapshotPolicyId) -{ - autoSnapshotPolicyId_ = autoSnapshotPolicyId; - setParameter("AutoSnapshotPolicyId", autoSnapshotPolicyId); +std::string DescribeAutoSnapshotPolicyExRequest::getAutoSnapshotPolicyId() const { + return autoSnapshotPolicyId_; } -int DescribeAutoSnapshotPolicyExRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeAutoSnapshotPolicyExRequest::setAutoSnapshotPolicyId(const std::string &autoSnapshotPolicyId) { + autoSnapshotPolicyId_ = autoSnapshotPolicyId; + setParameter(std::string("AutoSnapshotPolicyId"), autoSnapshotPolicyId); } -void DescribeAutoSnapshotPolicyExRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeAutoSnapshotPolicyExRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeAutoSnapshotPolicyExRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void DescribeAutoSnapshotPolicyExRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeAutoSnapshotPolicyExRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string DescribeAutoSnapshotPolicyExRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string DescribeAutoSnapshotPolicyExRequest::getRegionId()const -{ - return regionId_; +void DescribeAutoSnapshotPolicyExRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void DescribeAutoSnapshotPolicyExRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeAutoSnapshotPolicyExRequest::getRegionId() const { + return regionId_; } -int DescribeAutoSnapshotPolicyExRequest::getPageSize()const -{ - return pageSize_; +void DescribeAutoSnapshotPolicyExRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeAutoSnapshotPolicyExRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeAutoSnapshotPolicyExRequest::getPageSize() const { + return pageSize_; } -std::vector DescribeAutoSnapshotPolicyExRequest::getTag()const -{ - return tag_; +void DescribeAutoSnapshotPolicyExRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeAutoSnapshotPolicyExRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Value", tagObj.value); - setParameter(tagObjStr + ".Key", tagObj.key); - } +std::vector DescribeAutoSnapshotPolicyExRequest::getTag() const { + return tag_; } -std::string DescribeAutoSnapshotPolicyExRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeAutoSnapshotPolicyExRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } -void DescribeAutoSnapshotPolicyExRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeAutoSnapshotPolicyExRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeAutoSnapshotPolicyExRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeAutoSnapshotPolicyExRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeAutoSnapshotPolicyExRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeAutoSnapshotPolicyExRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeAutoSnapshotPolicyExRequest::getOwnerId()const -{ - return ownerId_; +void DescribeAutoSnapshotPolicyExRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeAutoSnapshotPolicyExRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeAutoSnapshotPolicyExRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeAutoSnapshotPolicyExRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/DescribeAvailableResourceRequest.cc b/ecs/src/model/DescribeAvailableResourceRequest.cc index 434ebb57e..7dde1a7ac 100644 --- a/ecs/src/model/DescribeAvailableResourceRequest.cc +++ b/ecs/src/model/DescribeAvailableResourceRequest.cc @@ -1,249 +1,207 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeAvailableResourceRequest; - -DescribeAvailableResourceRequest::DescribeAvailableResourceRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeAvailableResource") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeAvailableResourceRequest::~DescribeAvailableResourceRequest() -{} - -long DescribeAvailableResourceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeAvailableResourceRequest; + +DescribeAvailableResourceRequest::DescribeAvailableResourceRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeAvailableResource") { + setMethod(HttpRequest::Method::Post); } -void DescribeAvailableResourceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeAvailableResourceRequest::~DescribeAvailableResourceRequest() {} + +long DescribeAvailableResourceRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -float DescribeAvailableResourceRequest::getMemory()const -{ - return memory_; +void DescribeAvailableResourceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeAvailableResourceRequest::setMemory(float memory) -{ - memory_ = memory; - setParameter("Memory", std::to_string(memory)); +float DescribeAvailableResourceRequest::getMemory() const { + return memory_; } -std::string DescribeAvailableResourceRequest::getIoOptimized()const -{ - return ioOptimized_; +void DescribeAvailableResourceRequest::setMemory(float memory) { + memory_ = memory; + setParameter(std::string("Memory"), std::to_string(memory)); } -void DescribeAvailableResourceRequest::setIoOptimized(const std::string& ioOptimized) -{ - ioOptimized_ = ioOptimized; - setParameter("IoOptimized", ioOptimized); +std::string DescribeAvailableResourceRequest::getIoOptimized() const { + return ioOptimized_; } -std::string DescribeAvailableResourceRequest::getDataDiskCategory()const -{ - return dataDiskCategory_; +void DescribeAvailableResourceRequest::setIoOptimized(const std::string &ioOptimized) { + ioOptimized_ = ioOptimized; + setParameter(std::string("IoOptimized"), ioOptimized); } -void DescribeAvailableResourceRequest::setDataDiskCategory(const std::string& dataDiskCategory) -{ - dataDiskCategory_ = dataDiskCategory; - setParameter("DataDiskCategory", dataDiskCategory); +std::string DescribeAvailableResourceRequest::getDataDiskCategory() const { + return dataDiskCategory_; } -int DescribeAvailableResourceRequest::getCores()const -{ - return cores_; +void DescribeAvailableResourceRequest::setDataDiskCategory(const std::string &dataDiskCategory) { + dataDiskCategory_ = dataDiskCategory; + setParameter(std::string("DataDiskCategory"), dataDiskCategory); } -void DescribeAvailableResourceRequest::setCores(int cores) -{ - cores_ = cores; - setParameter("Cores", std::to_string(cores)); +int DescribeAvailableResourceRequest::getCores() const { + return cores_; } -std::string DescribeAvailableResourceRequest::getRegionId()const -{ - return regionId_; +void DescribeAvailableResourceRequest::setCores(int cores) { + cores_ = cores; + setParameter(std::string("Cores"), std::to_string(cores)); } -void DescribeAvailableResourceRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeAvailableResourceRequest::getRegionId() const { + return regionId_; } -std::string DescribeAvailableResourceRequest::getSystemDiskCategory()const -{ - return systemDiskCategory_; +void DescribeAvailableResourceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeAvailableResourceRequest::setSystemDiskCategory(const std::string& systemDiskCategory) -{ - systemDiskCategory_ = systemDiskCategory; - setParameter("SystemDiskCategory", systemDiskCategory); +std::string DescribeAvailableResourceRequest::getSystemDiskCategory() const { + return systemDiskCategory_; } -std::string DescribeAvailableResourceRequest::getScope()const -{ - return scope_; +void DescribeAvailableResourceRequest::setSystemDiskCategory(const std::string &systemDiskCategory) { + systemDiskCategory_ = systemDiskCategory; + setParameter(std::string("SystemDiskCategory"), systemDiskCategory); } -void DescribeAvailableResourceRequest::setScope(const std::string& scope) -{ - scope_ = scope; - setParameter("Scope", scope); +std::string DescribeAvailableResourceRequest::getScope() const { + return scope_; } -std::string DescribeAvailableResourceRequest::getInstanceType()const -{ - return instanceType_; +void DescribeAvailableResourceRequest::setScope(const std::string &scope) { + scope_ = scope; + setParameter(std::string("Scope"), scope); } -void DescribeAvailableResourceRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +std::string DescribeAvailableResourceRequest::getInstanceType() const { + return instanceType_; } -std::string DescribeAvailableResourceRequest::getNetworkCategory()const -{ - return networkCategory_; +void DescribeAvailableResourceRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } -void DescribeAvailableResourceRequest::setNetworkCategory(const std::string& networkCategory) -{ - networkCategory_ = networkCategory; - setParameter("NetworkCategory", networkCategory); +std::string DescribeAvailableResourceRequest::getNetworkCategory() const { + return networkCategory_; } -std::string DescribeAvailableResourceRequest::getInstanceChargeType()const -{ - return instanceChargeType_; +void DescribeAvailableResourceRequest::setNetworkCategory(const std::string &networkCategory) { + networkCategory_ = networkCategory; + setParameter(std::string("NetworkCategory"), networkCategory); } -void DescribeAvailableResourceRequest::setInstanceChargeType(const std::string& instanceChargeType) -{ - instanceChargeType_ = instanceChargeType; - setParameter("InstanceChargeType", instanceChargeType); +std::string DescribeAvailableResourceRequest::getInstanceChargeType() const { + return instanceChargeType_; } -std::string DescribeAvailableResourceRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeAvailableResourceRequest::setInstanceChargeType(const std::string &instanceChargeType) { + instanceChargeType_ = instanceChargeType; + setParameter(std::string("InstanceChargeType"), instanceChargeType); } -void DescribeAvailableResourceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeAvailableResourceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeAvailableResourceRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeAvailableResourceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeAvailableResourceRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeAvailableResourceRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeAvailableResourceRequest::getDedicatedHostId()const -{ - return dedicatedHostId_; +void DescribeAvailableResourceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeAvailableResourceRequest::setDedicatedHostId(const std::string& dedicatedHostId) -{ - dedicatedHostId_ = dedicatedHostId; - setParameter("DedicatedHostId", dedicatedHostId); +std::string DescribeAvailableResourceRequest::getDedicatedHostId() const { + return dedicatedHostId_; } -long DescribeAvailableResourceRequest::getOwnerId()const -{ - return ownerId_; +void DescribeAvailableResourceRequest::setDedicatedHostId(const std::string &dedicatedHostId) { + dedicatedHostId_ = dedicatedHostId; + setParameter(std::string("DedicatedHostId"), dedicatedHostId); } -void DescribeAvailableResourceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeAvailableResourceRequest::getOwnerId() const { + return ownerId_; } -int DescribeAvailableResourceRequest::getSpotDuration()const -{ - return spotDuration_; +void DescribeAvailableResourceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeAvailableResourceRequest::setSpotDuration(int spotDuration) -{ - spotDuration_ = spotDuration; - setParameter("SpotDuration", std::to_string(spotDuration)); +int DescribeAvailableResourceRequest::getSpotDuration() const { + return spotDuration_; } -std::string DescribeAvailableResourceRequest::getResourceType()const -{ - return resourceType_; +void DescribeAvailableResourceRequest::setSpotDuration(int spotDuration) { + spotDuration_ = spotDuration; + setParameter(std::string("SpotDuration"), std::to_string(spotDuration)); } -void DescribeAvailableResourceRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +std::string DescribeAvailableResourceRequest::getResourceType() const { + return resourceType_; } -std::string DescribeAvailableResourceRequest::getSpotStrategy()const -{ - return spotStrategy_; +void DescribeAvailableResourceRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); } -void DescribeAvailableResourceRequest::setSpotStrategy(const std::string& spotStrategy) -{ - spotStrategy_ = spotStrategy; - setParameter("SpotStrategy", spotStrategy); +std::string DescribeAvailableResourceRequest::getSpotStrategy() const { + return spotStrategy_; } -std::string DescribeAvailableResourceRequest::getDestinationResource()const -{ - return destinationResource_; +void DescribeAvailableResourceRequest::setSpotStrategy(const std::string &spotStrategy) { + spotStrategy_ = spotStrategy; + setParameter(std::string("SpotStrategy"), spotStrategy); } -void DescribeAvailableResourceRequest::setDestinationResource(const std::string& destinationResource) -{ - destinationResource_ = destinationResource; - setParameter("DestinationResource", destinationResource); +std::string DescribeAvailableResourceRequest::getDestinationResource() const { + return destinationResource_; } -std::string DescribeAvailableResourceRequest::getZoneId()const -{ - return zoneId_; +void DescribeAvailableResourceRequest::setDestinationResource(const std::string &destinationResource) { + destinationResource_ = destinationResource; + setParameter(std::string("DestinationResource"), destinationResource); } -void DescribeAvailableResourceRequest::setZoneId(const std::string& zoneId) -{ - zoneId_ = zoneId; - setParameter("ZoneId", zoneId); +std::string DescribeAvailableResourceRequest::getZoneId() const { + return zoneId_; +} + +void DescribeAvailableResourceRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); } diff --git a/ecs/src/model/DescribeAvailableResourceResult.cc b/ecs/src/model/DescribeAvailableResourceResult.cc index 263da67f3..ce58b6ee8 100644 --- a/ecs/src/model/DescribeAvailableResourceResult.cc +++ b/ecs/src/model/DescribeAvailableResourceResult.cc @@ -43,14 +43,14 @@ void DescribeAvailableResourceResult::parse(const std::string &payload) for (auto valueAvailableZonesAvailableZone : allAvailableZonesNode) { AvailableZone availableZonesObject; - if(!valueAvailableZonesAvailableZone["RegionId"].isNull()) - availableZonesObject.regionId = valueAvailableZonesAvailableZone["RegionId"].asString(); if(!valueAvailableZonesAvailableZone["ZoneId"].isNull()) availableZonesObject.zoneId = valueAvailableZonesAvailableZone["ZoneId"].asString(); if(!valueAvailableZonesAvailableZone["Status"].isNull()) availableZonesObject.status = valueAvailableZonesAvailableZone["Status"].asString(); if(!valueAvailableZonesAvailableZone["StatusCategory"].isNull()) availableZonesObject.statusCategory = valueAvailableZonesAvailableZone["StatusCategory"].asString(); + if(!valueAvailableZonesAvailableZone["RegionId"].isNull()) + availableZonesObject.regionId = valueAvailableZonesAvailableZone["RegionId"].asString(); auto allAvailableResourcesNode = valueAvailableZonesAvailableZone["AvailableResources"]["AvailableResource"]; for (auto valueAvailableZonesAvailableZoneAvailableResourcesAvailableResource : allAvailableResourcesNode) { @@ -61,18 +61,18 @@ void DescribeAvailableResourceResult::parse(const std::string &payload) for (auto valueAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource : allSupportedResourcesNode) { AvailableZone::AvailableResource::SupportedResource supportedResourcesObject; - if(!valueAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource["Value"].isNull()) - supportedResourcesObject.value = valueAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource["Value"].asString(); if(!valueAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource["Status"].isNull()) supportedResourcesObject.status = valueAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource["Status"].asString(); - if(!valueAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource["StatusCategory"].isNull()) - supportedResourcesObject.statusCategory = valueAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource["StatusCategory"].asString(); - if(!valueAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource["Min"].isNull()) - supportedResourcesObject.min = std::stoi(valueAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource["Min"].asString()); + if(!valueAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource["Value"].isNull()) + supportedResourcesObject.value = valueAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource["Value"].asString(); if(!valueAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource["Max"].isNull()) supportedResourcesObject.max = std::stoi(valueAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource["Max"].asString()); if(!valueAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource["Unit"].isNull()) supportedResourcesObject.unit = valueAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource["Unit"].asString(); + if(!valueAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource["StatusCategory"].isNull()) + supportedResourcesObject.statusCategory = valueAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource["StatusCategory"].asString(); + if(!valueAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource["Min"].isNull()) + supportedResourcesObject.min = std::stoi(valueAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource["Min"].asString()); availableResourcesObject.supportedResources.push_back(supportedResourcesObject); } availableZonesObject.availableResources.push_back(availableResourcesObject); diff --git a/ecs/src/model/DescribeBandwidthLimitationRequest.cc b/ecs/src/model/DescribeBandwidthLimitationRequest.cc index b83c19d1b..aac359b04 100644 --- a/ecs/src/model/DescribeBandwidthLimitationRequest.cc +++ b/ecs/src/model/DescribeBandwidthLimitationRequest.cc @@ -1,139 +1,117 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeBandwidthLimitationRequest; - -DescribeBandwidthLimitationRequest::DescribeBandwidthLimitationRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeBandwidthLimitation") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeBandwidthLimitationRequest::~DescribeBandwidthLimitationRequest() -{} - -long DescribeBandwidthLimitationRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeBandwidthLimitationRequest; + +DescribeBandwidthLimitationRequest::DescribeBandwidthLimitationRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeBandwidthLimitation") { + setMethod(HttpRequest::Method::Post); } -void DescribeBandwidthLimitationRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeBandwidthLimitationRequest::~DescribeBandwidthLimitationRequest() {} + +long DescribeBandwidthLimitationRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeBandwidthLimitationRequest::getRegionId()const -{ - return regionId_; +void DescribeBandwidthLimitationRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeBandwidthLimitationRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeBandwidthLimitationRequest::getRegionId() const { + return regionId_; } -std::string DescribeBandwidthLimitationRequest::getInstanceType()const -{ - return instanceType_; +void DescribeBandwidthLimitationRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeBandwidthLimitationRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +std::string DescribeBandwidthLimitationRequest::getInstanceType() const { + return instanceType_; } -std::string DescribeBandwidthLimitationRequest::getInstanceChargeType()const -{ - return instanceChargeType_; +void DescribeBandwidthLimitationRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } -void DescribeBandwidthLimitationRequest::setInstanceChargeType(const std::string& instanceChargeType) -{ - instanceChargeType_ = instanceChargeType; - setParameter("InstanceChargeType", instanceChargeType); +std::string DescribeBandwidthLimitationRequest::getInstanceChargeType() const { + return instanceChargeType_; } -std::string DescribeBandwidthLimitationRequest::getResourceId()const -{ - return resourceId_; +void DescribeBandwidthLimitationRequest::setInstanceChargeType(const std::string &instanceChargeType) { + instanceChargeType_ = instanceChargeType; + setParameter(std::string("InstanceChargeType"), instanceChargeType); } -void DescribeBandwidthLimitationRequest::setResourceId(const std::string& resourceId) -{ - resourceId_ = resourceId; - setParameter("ResourceId", resourceId); +std::string DescribeBandwidthLimitationRequest::getResourceId() const { + return resourceId_; } -std::string DescribeBandwidthLimitationRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeBandwidthLimitationRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); } -void DescribeBandwidthLimitationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeBandwidthLimitationRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeBandwidthLimitationRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeBandwidthLimitationRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeBandwidthLimitationRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeBandwidthLimitationRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeBandwidthLimitationRequest::getOperationType()const -{ - return operationType_; +void DescribeBandwidthLimitationRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeBandwidthLimitationRequest::setOperationType(const std::string& operationType) -{ - operationType_ = operationType; - setParameter("OperationType", operationType); +std::string DescribeBandwidthLimitationRequest::getOperationType() const { + return operationType_; } -long DescribeBandwidthLimitationRequest::getOwnerId()const -{ - return ownerId_; +void DescribeBandwidthLimitationRequest::setOperationType(const std::string &operationType) { + operationType_ = operationType; + setParameter(std::string("OperationType"), operationType); } -void DescribeBandwidthLimitationRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeBandwidthLimitationRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeBandwidthLimitationRequest::getSpotStrategy()const -{ - return spotStrategy_; +void DescribeBandwidthLimitationRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeBandwidthLimitationRequest::setSpotStrategy(const std::string& spotStrategy) -{ - spotStrategy_ = spotStrategy; - setParameter("SpotStrategy", spotStrategy); +std::string DescribeBandwidthLimitationRequest::getSpotStrategy() const { + return spotStrategy_; +} + +void DescribeBandwidthLimitationRequest::setSpotStrategy(const std::string &spotStrategy) { + spotStrategy_ = spotStrategy; + setParameter(std::string("SpotStrategy"), spotStrategy); } diff --git a/ecs/src/model/DescribeBandwidthLimitationResult.cc b/ecs/src/model/DescribeBandwidthLimitationResult.cc index 5a2e348da..7b700c007 100644 --- a/ecs/src/model/DescribeBandwidthLimitationResult.cc +++ b/ecs/src/model/DescribeBandwidthLimitationResult.cc @@ -45,10 +45,10 @@ void DescribeBandwidthLimitationResult::parse(const std::string &payload) Bandwidth bandwidthsObject; if(!valueBandwidthsBandwidth["InternetChargeType"].isNull()) bandwidthsObject.internetChargeType = valueBandwidthsBandwidth["InternetChargeType"].asString(); - if(!valueBandwidthsBandwidth["Min"].isNull()) - bandwidthsObject.min = std::stoi(valueBandwidthsBandwidth["Min"].asString()); if(!valueBandwidthsBandwidth["Max"].isNull()) bandwidthsObject.max = std::stoi(valueBandwidthsBandwidth["Max"].asString()); + if(!valueBandwidthsBandwidth["Min"].isNull()) + bandwidthsObject.min = std::stoi(valueBandwidthsBandwidth["Min"].asString()); if(!valueBandwidthsBandwidth["Unit"].isNull()) bandwidthsObject.unit = valueBandwidthsBandwidth["Unit"].asString(); bandwidths_.push_back(bandwidthsObject); diff --git a/ecs/src/model/DescribeBandwidthPackagesRequest.cc b/ecs/src/model/DescribeBandwidthPackagesRequest.cc index 089018298..038d116d6 100644 --- a/ecs/src/model/DescribeBandwidthPackagesRequest.cc +++ b/ecs/src/model/DescribeBandwidthPackagesRequest.cc @@ -1,128 +1,108 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeBandwidthPackagesRequest; - -DescribeBandwidthPackagesRequest::DescribeBandwidthPackagesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeBandwidthPackages") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeBandwidthPackagesRequest::~DescribeBandwidthPackagesRequest() -{} - -long DescribeBandwidthPackagesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeBandwidthPackagesRequest; + +DescribeBandwidthPackagesRequest::DescribeBandwidthPackagesRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeBandwidthPackages") { + setMethod(HttpRequest::Method::Post); } -void DescribeBandwidthPackagesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeBandwidthPackagesRequest::~DescribeBandwidthPackagesRequest() {} + +long DescribeBandwidthPackagesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeBandwidthPackagesRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeBandwidthPackagesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeBandwidthPackagesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeBandwidthPackagesRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeBandwidthPackagesRequest::getRegionId()const -{ - return regionId_; +void DescribeBandwidthPackagesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeBandwidthPackagesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeBandwidthPackagesRequest::getRegionId() const { + return regionId_; } -int DescribeBandwidthPackagesRequest::getPageSize()const -{ - return pageSize_; +void DescribeBandwidthPackagesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeBandwidthPackagesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeBandwidthPackagesRequest::getPageSize() const { + return pageSize_; } -std::string DescribeBandwidthPackagesRequest::getNatGatewayId()const -{ - return natGatewayId_; +void DescribeBandwidthPackagesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeBandwidthPackagesRequest::setNatGatewayId(const std::string& natGatewayId) -{ - natGatewayId_ = natGatewayId; - setParameter("NatGatewayId", natGatewayId); +std::string DescribeBandwidthPackagesRequest::getNatGatewayId() const { + return natGatewayId_; } -std::string DescribeBandwidthPackagesRequest::getBandwidthPackageId()const -{ - return bandwidthPackageId_; +void DescribeBandwidthPackagesRequest::setNatGatewayId(const std::string &natGatewayId) { + natGatewayId_ = natGatewayId; + setParameter(std::string("NatGatewayId"), natGatewayId); } -void DescribeBandwidthPackagesRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) -{ - bandwidthPackageId_ = bandwidthPackageId; - setParameter("BandwidthPackageId", bandwidthPackageId); +std::string DescribeBandwidthPackagesRequest::getBandwidthPackageId() const { + return bandwidthPackageId_; } -std::string DescribeBandwidthPackagesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeBandwidthPackagesRequest::setBandwidthPackageId(const std::string &bandwidthPackageId) { + bandwidthPackageId_ = bandwidthPackageId; + setParameter(std::string("BandwidthPackageId"), bandwidthPackageId); } -void DescribeBandwidthPackagesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeBandwidthPackagesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeBandwidthPackagesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeBandwidthPackagesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeBandwidthPackagesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeBandwidthPackagesRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeBandwidthPackagesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeBandwidthPackagesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeBandwidthPackagesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeBandwidthPackagesRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeBandwidthPackagesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/DescribeBandwidthPackagesResult.cc b/ecs/src/model/DescribeBandwidthPackagesResult.cc index 84b545cd6..8e4846cbb 100644 --- a/ecs/src/model/DescribeBandwidthPackagesResult.cc +++ b/ecs/src/model/DescribeBandwidthPackagesResult.cc @@ -43,52 +43,52 @@ void DescribeBandwidthPackagesResult::parse(const std::string &payload) for (auto valueBandwidthPackagesBandwidthPackage : allBandwidthPackagesNode) { BandwidthPackage bandwidthPackagesObject; - if(!valueBandwidthPackagesBandwidthPackage["BandwidthPackageId"].isNull()) - bandwidthPackagesObject.bandwidthPackageId = valueBandwidthPackagesBandwidthPackage["BandwidthPackageId"].asString(); + if(!valueBandwidthPackagesBandwidthPackage["Status"].isNull()) + bandwidthPackagesObject.status = valueBandwidthPackagesBandwidthPackage["Status"].asString(); + if(!valueBandwidthPackagesBandwidthPackage["CreationTime"].isNull()) + bandwidthPackagesObject.creationTime = valueBandwidthPackagesBandwidthPackage["CreationTime"].asString(); + if(!valueBandwidthPackagesBandwidthPackage["IpCount"].isNull()) + bandwidthPackagesObject.ipCount = valueBandwidthPackagesBandwidthPackage["IpCount"].asString(); if(!valueBandwidthPackagesBandwidthPackage["RegionId"].isNull()) bandwidthPackagesObject.regionId = valueBandwidthPackagesBandwidthPackage["RegionId"].asString(); - if(!valueBandwidthPackagesBandwidthPackage["Name"].isNull()) - bandwidthPackagesObject.name = valueBandwidthPackagesBandwidthPackage["Name"].asString(); - if(!valueBandwidthPackagesBandwidthPackage["Description"].isNull()) - bandwidthPackagesObject.description = valueBandwidthPackagesBandwidthPackage["Description"].asString(); - if(!valueBandwidthPackagesBandwidthPackage["ZoneId"].isNull()) - bandwidthPackagesObject.zoneId = valueBandwidthPackagesBandwidthPackage["ZoneId"].asString(); - if(!valueBandwidthPackagesBandwidthPackage["NatGatewayId"].isNull()) - bandwidthPackagesObject.natGatewayId = valueBandwidthPackagesBandwidthPackage["NatGatewayId"].asString(); - if(!valueBandwidthPackagesBandwidthPackage["Bandwidth"].isNull()) - bandwidthPackagesObject.bandwidth = valueBandwidthPackagesBandwidthPackage["Bandwidth"].asString(); if(!valueBandwidthPackagesBandwidthPackage["InstanceChargeType"].isNull()) bandwidthPackagesObject.instanceChargeType = valueBandwidthPackagesBandwidthPackage["InstanceChargeType"].asString(); + if(!valueBandwidthPackagesBandwidthPackage["BandwidthPackageId"].isNull()) + bandwidthPackagesObject.bandwidthPackageId = valueBandwidthPackagesBandwidthPackage["BandwidthPackageId"].asString(); + if(!valueBandwidthPackagesBandwidthPackage["Description"].isNull()) + bandwidthPackagesObject.description = valueBandwidthPackagesBandwidthPackage["Description"].asString(); + if(!valueBandwidthPackagesBandwidthPackage["Bandwidth"].isNull()) + bandwidthPackagesObject.bandwidth = valueBandwidthPackagesBandwidthPackage["Bandwidth"].asString(); + if(!valueBandwidthPackagesBandwidthPackage["NatGatewayId"].isNull()) + bandwidthPackagesObject.natGatewayId = valueBandwidthPackagesBandwidthPackage["NatGatewayId"].asString(); + if(!valueBandwidthPackagesBandwidthPackage["ZoneId"].isNull()) + bandwidthPackagesObject.zoneId = valueBandwidthPackagesBandwidthPackage["ZoneId"].asString(); if(!valueBandwidthPackagesBandwidthPackage["InternetChargeType"].isNull()) bandwidthPackagesObject.internetChargeType = valueBandwidthPackagesBandwidthPackage["InternetChargeType"].asString(); if(!valueBandwidthPackagesBandwidthPackage["BusinessStatus"].isNull()) bandwidthPackagesObject.businessStatus = valueBandwidthPackagesBandwidthPackage["BusinessStatus"].asString(); - if(!valueBandwidthPackagesBandwidthPackage["IpCount"].isNull()) - bandwidthPackagesObject.ipCount = valueBandwidthPackagesBandwidthPackage["IpCount"].asString(); + if(!valueBandwidthPackagesBandwidthPackage["Name"].isNull()) + bandwidthPackagesObject.name = valueBandwidthPackagesBandwidthPackage["Name"].asString(); if(!valueBandwidthPackagesBandwidthPackage["ISP"].isNull()) bandwidthPackagesObject.iSP = valueBandwidthPackagesBandwidthPackage["ISP"].asString(); - if(!valueBandwidthPackagesBandwidthPackage["CreationTime"].isNull()) - bandwidthPackagesObject.creationTime = valueBandwidthPackagesBandwidthPackage["CreationTime"].asString(); - if(!valueBandwidthPackagesBandwidthPackage["Status"].isNull()) - bandwidthPackagesObject.status = valueBandwidthPackagesBandwidthPackage["Status"].asString(); auto allPublicIpAddressesNode = valueBandwidthPackagesBandwidthPackage["PublicIpAddresses"]["PublicIpAddresse"]; for (auto valueBandwidthPackagesBandwidthPackagePublicIpAddressesPublicIpAddresse : allPublicIpAddressesNode) { BandwidthPackage::PublicIpAddresse publicIpAddressesObject; - if(!valueBandwidthPackagesBandwidthPackagePublicIpAddressesPublicIpAddresse["AllocationId"].isNull()) - publicIpAddressesObject.allocationId = valueBandwidthPackagesBandwidthPackagePublicIpAddressesPublicIpAddresse["AllocationId"].asString(); if(!valueBandwidthPackagesBandwidthPackagePublicIpAddressesPublicIpAddresse["IpAddress"].isNull()) publicIpAddressesObject.ipAddress = valueBandwidthPackagesBandwidthPackagePublicIpAddressesPublicIpAddresse["IpAddress"].asString(); + if(!valueBandwidthPackagesBandwidthPackagePublicIpAddressesPublicIpAddresse["AllocationId"].isNull()) + publicIpAddressesObject.allocationId = valueBandwidthPackagesBandwidthPackagePublicIpAddressesPublicIpAddresse["AllocationId"].asString(); bandwidthPackagesObject.publicIpAddresses.push_back(publicIpAddressesObject); } bandwidthPackages_.push_back(bandwidthPackagesObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/ecs/src/model/DescribeCapacityReservationInstancesRequest.cc b/ecs/src/model/DescribeCapacityReservationInstancesRequest.cc index 93491050e..c33b306f2 100644 --- a/ecs/src/model/DescribeCapacityReservationInstancesRequest.cc +++ b/ecs/src/model/DescribeCapacityReservationInstancesRequest.cc @@ -1,128 +1,108 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeCapacityReservationInstancesRequest; - -DescribeCapacityReservationInstancesRequest::DescribeCapacityReservationInstancesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeCapacityReservationInstances") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeCapacityReservationInstancesRequest::~DescribeCapacityReservationInstancesRequest() -{} - -long DescribeCapacityReservationInstancesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeCapacityReservationInstancesRequest; + +DescribeCapacityReservationInstancesRequest::DescribeCapacityReservationInstancesRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeCapacityReservationInstances") { + setMethod(HttpRequest::Method::Post); } -void DescribeCapacityReservationInstancesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeCapacityReservationInstancesRequest::~DescribeCapacityReservationInstancesRequest() {} + +long DescribeCapacityReservationInstancesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeCapacityReservationInstancesRequest::getRegionId()const -{ - return regionId_; +void DescribeCapacityReservationInstancesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeCapacityReservationInstancesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeCapacityReservationInstancesRequest::getRegionId() const { + return regionId_; } -std::string DescribeCapacityReservationInstancesRequest::getNextToken()const -{ - return nextToken_; +void DescribeCapacityReservationInstancesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeCapacityReservationInstancesRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +std::string DescribeCapacityReservationInstancesRequest::getNextToken() const { + return nextToken_; } -std::string DescribeCapacityReservationInstancesRequest::getPrivatePoolOptionsId()const -{ - return privatePoolOptionsId_; +void DescribeCapacityReservationInstancesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } -void DescribeCapacityReservationInstancesRequest::setPrivatePoolOptionsId(const std::string& privatePoolOptionsId) -{ - privatePoolOptionsId_ = privatePoolOptionsId; - setParameter("PrivatePoolOptionsId", privatePoolOptionsId); +std::string DescribeCapacityReservationInstancesRequest::getPrivatePoolOptionsId() const { + return privatePoolOptionsId_; } -std::string DescribeCapacityReservationInstancesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeCapacityReservationInstancesRequest::setPrivatePoolOptionsId(const std::string &privatePoolOptionsId) { + privatePoolOptionsId_ = privatePoolOptionsId; + setParameter(std::string("PrivatePoolOptions.Id"), privatePoolOptionsId); } -void DescribeCapacityReservationInstancesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeCapacityReservationInstancesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeCapacityReservationInstancesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeCapacityReservationInstancesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeCapacityReservationInstancesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeCapacityReservationInstancesRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeCapacityReservationInstancesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeCapacityReservationInstancesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeCapacityReservationInstancesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeCapacityReservationInstancesRequest::getOwnerId() const { + return ownerId_; } -int DescribeCapacityReservationInstancesRequest::getMaxResults()const -{ - return maxResults_; +void DescribeCapacityReservationInstancesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeCapacityReservationInstancesRequest::setMaxResults(int maxResults) -{ - maxResults_ = maxResults; - setParameter("MaxResults", std::to_string(maxResults)); +int DescribeCapacityReservationInstancesRequest::getMaxResults() const { + return maxResults_; } -std::string DescribeCapacityReservationInstancesRequest::getPackageType()const -{ - return packageType_; +void DescribeCapacityReservationInstancesRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); } -void DescribeCapacityReservationInstancesRequest::setPackageType(const std::string& packageType) -{ - packageType_ = packageType; - setParameter("PackageType", packageType); +std::string DescribeCapacityReservationInstancesRequest::getPackageType() const { + return packageType_; +} + +void DescribeCapacityReservationInstancesRequest::setPackageType(const std::string &packageType) { + packageType_ = packageType; + setParameter(std::string("PackageType"), packageType); } diff --git a/ecs/src/model/DescribeCapacityReservationInstancesResult.cc b/ecs/src/model/DescribeCapacityReservationInstancesResult.cc index b3d4a5f17..1b69f64df 100644 --- a/ecs/src/model/DescribeCapacityReservationInstancesResult.cc +++ b/ecs/src/model/DescribeCapacityReservationInstancesResult.cc @@ -49,10 +49,10 @@ void DescribeCapacityReservationInstancesResult::parse(const std::string &payloa } if(!value["NextToken"].isNull()) nextToken_ = value["NextToken"].asString(); - if(!value["MaxResults"].isNull()) - maxResults_ = std::stoi(value["MaxResults"].asString()); if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); } diff --git a/ecs/src/model/DescribeCapacityReservationsRequest.cc b/ecs/src/model/DescribeCapacityReservationsRequest.cc index d05c6bb7e..1964d197f 100644 --- a/ecs/src/model/DescribeCapacityReservationsRequest.cc +++ b/ecs/src/model/DescribeCapacityReservationsRequest.cc @@ -1,210 +1,176 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeCapacityReservationsRequest; - -DescribeCapacityReservationsRequest::DescribeCapacityReservationsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeCapacityReservations") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeCapacityReservationsRequest::~DescribeCapacityReservationsRequest() -{} - -long DescribeCapacityReservationsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeCapacityReservationsRequest; + +DescribeCapacityReservationsRequest::DescribeCapacityReservationsRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeCapacityReservations") { + setMethod(HttpRequest::Method::Post); } -void DescribeCapacityReservationsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeCapacityReservationsRequest::~DescribeCapacityReservationsRequest() {} + +long DescribeCapacityReservationsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeCapacityReservationsRequest::getPlatform()const -{ - return platform_; +void DescribeCapacityReservationsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeCapacityReservationsRequest::setPlatform(const std::string& platform) -{ - platform_ = platform; - setParameter("Platform", platform); +std::string DescribeCapacityReservationsRequest::getPlatform() const { + return platform_; } -std::string DescribeCapacityReservationsRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void DescribeCapacityReservationsRequest::setPlatform(const std::string &platform) { + platform_ = platform; + setParameter(std::string("Platform"), platform); } -void DescribeCapacityReservationsRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string DescribeCapacityReservationsRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string DescribeCapacityReservationsRequest::getRegionId()const -{ - return regionId_; +void DescribeCapacityReservationsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void DescribeCapacityReservationsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeCapacityReservationsRequest::getRegionId() const { + return regionId_; } -std::string DescribeCapacityReservationsRequest::getNextToken()const -{ - return nextToken_; +void DescribeCapacityReservationsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeCapacityReservationsRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +std::string DescribeCapacityReservationsRequest::getNextToken() const { + return nextToken_; } -std::string DescribeCapacityReservationsRequest::getInstanceType()const -{ - return instanceType_; +void DescribeCapacityReservationsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } -void DescribeCapacityReservationsRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +std::string DescribeCapacityReservationsRequest::getInstanceType() const { + return instanceType_; } -std::vector DescribeCapacityReservationsRequest::getTag()const -{ - return tag_; +void DescribeCapacityReservationsRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } -void DescribeCapacityReservationsRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Key", tagObj.key); - setParameter(tagObjStr + ".Value", tagObj.value); - } +std::vector DescribeCapacityReservationsRequest::getTag() const { + return tag_; } -std::string DescribeCapacityReservationsRequest::getInstanceChargeType()const -{ - return instanceChargeType_; +void DescribeCapacityReservationsRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } } -void DescribeCapacityReservationsRequest::setInstanceChargeType(const std::string& instanceChargeType) -{ - instanceChargeType_ = instanceChargeType; - setParameter("InstanceChargeType", instanceChargeType); +std::string DescribeCapacityReservationsRequest::getInstanceChargeType() const { + return instanceChargeType_; } -std::string DescribeCapacityReservationsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeCapacityReservationsRequest::setInstanceChargeType(const std::string &instanceChargeType) { + instanceChargeType_ = instanceChargeType; + setParameter(std::string("InstanceChargeType"), instanceChargeType); } -void DescribeCapacityReservationsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeCapacityReservationsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeCapacityReservationsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeCapacityReservationsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeCapacityReservationsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeCapacityReservationsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeCapacityReservationsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeCapacityReservationsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeCapacityReservationsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeCapacityReservationsRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeCapacityReservationsRequest::getPrivatePoolOptionsIds()const -{ - return privatePoolOptionsIds_; +void DescribeCapacityReservationsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeCapacityReservationsRequest::setPrivatePoolOptionsIds(const std::string& privatePoolOptionsIds) -{ - privatePoolOptionsIds_ = privatePoolOptionsIds; - setParameter("PrivatePoolOptionsIds", privatePoolOptionsIds); +std::string DescribeCapacityReservationsRequest::getPrivatePoolOptionsIds() const { + return privatePoolOptionsIds_; } -int DescribeCapacityReservationsRequest::getMaxResults()const -{ - return maxResults_; +void DescribeCapacityReservationsRequest::setPrivatePoolOptionsIds(const std::string &privatePoolOptionsIds) { + privatePoolOptionsIds_ = privatePoolOptionsIds; + setParameter(std::string("PrivatePoolOptions.Ids"), privatePoolOptionsIds); } -void DescribeCapacityReservationsRequest::setMaxResults(int maxResults) -{ - maxResults_ = maxResults; - setParameter("MaxResults", std::to_string(maxResults)); +int DescribeCapacityReservationsRequest::getMaxResults() const { + return maxResults_; } -std::string DescribeCapacityReservationsRequest::getZoneId()const -{ - return zoneId_; +void DescribeCapacityReservationsRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); } -void DescribeCapacityReservationsRequest::setZoneId(const std::string& zoneId) -{ - zoneId_ = zoneId; - setParameter("ZoneId", zoneId); +std::string DescribeCapacityReservationsRequest::getZoneId() const { + return zoneId_; } -std::string DescribeCapacityReservationsRequest::getPackageType()const -{ - return packageType_; +void DescribeCapacityReservationsRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); } -void DescribeCapacityReservationsRequest::setPackageType(const std::string& packageType) -{ - packageType_ = packageType; - setParameter("PackageType", packageType); +std::string DescribeCapacityReservationsRequest::getPackageType() const { + return packageType_; } -std::string DescribeCapacityReservationsRequest::getStatus()const -{ - return status_; +void DescribeCapacityReservationsRequest::setPackageType(const std::string &packageType) { + packageType_ = packageType; + setParameter(std::string("PackageType"), packageType); } -void DescribeCapacityReservationsRequest::setStatus(const std::string& status) -{ - status_ = status; - setParameter("Status", status); +std::string DescribeCapacityReservationsRequest::getStatus() const { + return status_; +} + +void DescribeCapacityReservationsRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); } diff --git a/ecs/src/model/DescribeClassicLinkInstancesRequest.cc b/ecs/src/model/DescribeClassicLinkInstancesRequest.cc index 84da9ac0e..b7f9d2048 100644 --- a/ecs/src/model/DescribeClassicLinkInstancesRequest.cc +++ b/ecs/src/model/DescribeClassicLinkInstancesRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeClassicLinkInstancesRequest; - -DescribeClassicLinkInstancesRequest::DescribeClassicLinkInstancesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeClassicLinkInstances") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeClassicLinkInstancesRequest::~DescribeClassicLinkInstancesRequest() -{} - -long DescribeClassicLinkInstancesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeClassicLinkInstancesRequest; + +DescribeClassicLinkInstancesRequest::DescribeClassicLinkInstancesRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeClassicLinkInstances") { + setMethod(HttpRequest::Method::Post); } -void DescribeClassicLinkInstancesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeClassicLinkInstancesRequest::~DescribeClassicLinkInstancesRequest() {} + +long DescribeClassicLinkInstancesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeClassicLinkInstancesRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeClassicLinkInstancesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeClassicLinkInstancesRequest::setPageNumber(const std::string& pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", pageNumber); +std::string DescribeClassicLinkInstancesRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeClassicLinkInstancesRequest::getRegionId()const -{ - return regionId_; +void DescribeClassicLinkInstancesRequest::setPageNumber(const std::string &pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), pageNumber); } -void DescribeClassicLinkInstancesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeClassicLinkInstancesRequest::getRegionId() const { + return regionId_; } -std::string DescribeClassicLinkInstancesRequest::getPageSize()const -{ - return pageSize_; +void DescribeClassicLinkInstancesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeClassicLinkInstancesRequest::setPageSize(const std::string& pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", pageSize); +std::string DescribeClassicLinkInstancesRequest::getPageSize() const { + return pageSize_; } -std::string DescribeClassicLinkInstancesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeClassicLinkInstancesRequest::setPageSize(const std::string &pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), pageSize); } -void DescribeClassicLinkInstancesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeClassicLinkInstancesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long DescribeClassicLinkInstancesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeClassicLinkInstancesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeClassicLinkInstancesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeClassicLinkInstancesRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeClassicLinkInstancesRequest::getInstanceId()const -{ - return instanceId_; +void DescribeClassicLinkInstancesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeClassicLinkInstancesRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DescribeClassicLinkInstancesRequest::getInstanceId() const { + return instanceId_; } -std::string DescribeClassicLinkInstancesRequest::getVpcId()const -{ - return vpcId_; +void DescribeClassicLinkInstancesRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DescribeClassicLinkInstancesRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +std::string DescribeClassicLinkInstancesRequest::getVpcId() const { + return vpcId_; +} + +void DescribeClassicLinkInstancesRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); } diff --git a/ecs/src/model/DescribeClassicLinkInstancesResult.cc b/ecs/src/model/DescribeClassicLinkInstancesResult.cc index f73ffd18d..c310ff526 100644 --- a/ecs/src/model/DescribeClassicLinkInstancesResult.cc +++ b/ecs/src/model/DescribeClassicLinkInstancesResult.cc @@ -43,18 +43,18 @@ void DescribeClassicLinkInstancesResult::parse(const std::string &payload) for (auto valueLinksLink : allLinksNode) { Link linksObject; - if(!valueLinksLink["InstanceId"].isNull()) - linksObject.instanceId = valueLinksLink["InstanceId"].asString(); if(!valueLinksLink["VpcId"].isNull()) linksObject.vpcId = valueLinksLink["VpcId"].asString(); + if(!valueLinksLink["InstanceId"].isNull()) + linksObject.instanceId = valueLinksLink["InstanceId"].asString(); links_.push_back(linksObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/ecs/src/model/DescribeCloudAssistantStatusRequest.cc b/ecs/src/model/DescribeCloudAssistantStatusRequest.cc index fe691e07f..6b4ea7b0a 100644 --- a/ecs/src/model/DescribeCloudAssistantStatusRequest.cc +++ b/ecs/src/model/DescribeCloudAssistantStatusRequest.cc @@ -1,130 +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 - -using AlibabaCloud::Ecs::Model::DescribeCloudAssistantStatusRequest; - -DescribeCloudAssistantStatusRequest::DescribeCloudAssistantStatusRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeCloudAssistantStatus") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeCloudAssistantStatusRequest::~DescribeCloudAssistantStatusRequest() -{} - -long DescribeCloudAssistantStatusRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeCloudAssistantStatusRequest; + +DescribeCloudAssistantStatusRequest::DescribeCloudAssistantStatusRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeCloudAssistantStatus") { + setMethod(HttpRequest::Method::Post); } -void DescribeCloudAssistantStatusRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeCloudAssistantStatusRequest::~DescribeCloudAssistantStatusRequest() {} + +long DescribeCloudAssistantStatusRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -long DescribeCloudAssistantStatusRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeCloudAssistantStatusRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeCloudAssistantStatusRequest::setPageNumber(long pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +long DescribeCloudAssistantStatusRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeCloudAssistantStatusRequest::getRegionId()const -{ - return regionId_; +void DescribeCloudAssistantStatusRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeCloudAssistantStatusRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeCloudAssistantStatusRequest::getRegionId() const { + return regionId_; } -long DescribeCloudAssistantStatusRequest::getPageSize()const -{ - return pageSize_; +void DescribeCloudAssistantStatusRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeCloudAssistantStatusRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +long DescribeCloudAssistantStatusRequest::getPageSize() const { + return pageSize_; } -std::string DescribeCloudAssistantStatusRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeCloudAssistantStatusRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeCloudAssistantStatusRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeCloudAssistantStatusRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeCloudAssistantStatusRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeCloudAssistantStatusRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeCloudAssistantStatusRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeCloudAssistantStatusRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeCloudAssistantStatusRequest::getOSType()const -{ - return oSType_; +void DescribeCloudAssistantStatusRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeCloudAssistantStatusRequest::setOSType(const std::string& oSType) -{ - oSType_ = oSType; - setParameter("OSType", oSType); +std::string DescribeCloudAssistantStatusRequest::getOSType() const { + return oSType_; } -long DescribeCloudAssistantStatusRequest::getOwnerId()const -{ - return ownerId_; +void DescribeCloudAssistantStatusRequest::setOSType(const std::string &oSType) { + oSType_ = oSType; + setParameter(std::string("OSType"), oSType); } -void DescribeCloudAssistantStatusRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeCloudAssistantStatusRequest::getOwnerId() const { + return ownerId_; } -std::vector DescribeCloudAssistantStatusRequest::getInstanceId()const -{ - return instanceId_; +void DescribeCloudAssistantStatusRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeCloudAssistantStatusRequest::setInstanceId(const std::vector& instanceId) -{ - instanceId_ = instanceId; - for(int dep1 = 0; dep1!= instanceId.size(); dep1++) { - setParameter("InstanceId."+ std::to_string(dep1), instanceId.at(dep1)); - } +std::vector DescribeCloudAssistantStatusRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeCloudAssistantStatusRequest::setInstanceId(const std::vector &instanceId) { + instanceId_ = instanceId; } diff --git a/ecs/src/model/DescribeClustersRequest.cc b/ecs/src/model/DescribeClustersRequest.cc index a8ef839bd..72f7942fc 100644 --- a/ecs/src/model/DescribeClustersRequest.cc +++ b/ecs/src/model/DescribeClustersRequest.cc @@ -1,84 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeClustersRequest; - -DescribeClustersRequest::DescribeClustersRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeClusters") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeClustersRequest::~DescribeClustersRequest() -{} - -long DescribeClustersRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeClustersRequest; + +DescribeClustersRequest::DescribeClustersRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeClusters") { + setMethod(HttpRequest::Method::Post); } -void DescribeClustersRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeClustersRequest::~DescribeClustersRequest() {} + +long DescribeClustersRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeClustersRequest::getRegionId()const -{ - return regionId_; +void DescribeClustersRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeClustersRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeClustersRequest::getRegionId() const { + return regionId_; } -std::string DescribeClustersRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeClustersRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeClustersRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeClustersRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeClustersRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeClustersRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeClustersRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeClustersRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeClustersRequest::getOwnerId()const -{ - return ownerId_; +void DescribeClustersRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeClustersRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeClustersRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeClustersRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/DescribeCommandsRequest.cc b/ecs/src/model/DescribeCommandsRequest.cc index 4eb1082ec..ce7e1f141 100644 --- a/ecs/src/model/DescribeCommandsRequest.cc +++ b/ecs/src/model/DescribeCommandsRequest.cc @@ -1,172 +1,144 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeCommandsRequest; - -DescribeCommandsRequest::DescribeCommandsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeCommands") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeCommandsRequest::~DescribeCommandsRequest() -{} - -long DescribeCommandsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeCommandsRequest; + +DescribeCommandsRequest::DescribeCommandsRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeCommands") { + setMethod(HttpRequest::Method::Post); } -void DescribeCommandsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeCommandsRequest::~DescribeCommandsRequest() {} + +long DescribeCommandsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeCommandsRequest::getDescription()const -{ - return description_; +void DescribeCommandsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeCommandsRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string DescribeCommandsRequest::getDescription() const { + return description_; } -std::string DescribeCommandsRequest::getType()const -{ - return type_; +void DescribeCommandsRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void DescribeCommandsRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +std::string DescribeCommandsRequest::getType() const { + return type_; } -std::string DescribeCommandsRequest::getCommandId()const -{ - return commandId_; +void DescribeCommandsRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void DescribeCommandsRequest::setCommandId(const std::string& commandId) -{ - commandId_ = commandId; - setParameter("CommandId", commandId); +std::string DescribeCommandsRequest::getCommandId() const { + return commandId_; } -long DescribeCommandsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeCommandsRequest::setCommandId(const std::string &commandId) { + commandId_ = commandId; + setParameter(std::string("CommandId"), commandId); } -void DescribeCommandsRequest::setPageNumber(long pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +long DescribeCommandsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeCommandsRequest::getRegionId()const -{ - return regionId_; +void DescribeCommandsRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeCommandsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeCommandsRequest::getRegionId() const { + return regionId_; } -std::string DescribeCommandsRequest::getProvider()const -{ - return provider_; +void DescribeCommandsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeCommandsRequest::setProvider(const std::string& provider) -{ - provider_ = provider; - setParameter("Provider", provider); +std::string DescribeCommandsRequest::getProvider() const { + return provider_; } -std::string DescribeCommandsRequest::getContentEncoding()const -{ - return contentEncoding_; +void DescribeCommandsRequest::setProvider(const std::string &provider) { + provider_ = provider; + setParameter(std::string("Provider"), provider); } -void DescribeCommandsRequest::setContentEncoding(const std::string& contentEncoding) -{ - contentEncoding_ = contentEncoding; - setParameter("ContentEncoding", contentEncoding); +std::string DescribeCommandsRequest::getContentEncoding() const { + return contentEncoding_; } -long DescribeCommandsRequest::getPageSize()const -{ - return pageSize_; +void DescribeCommandsRequest::setContentEncoding(const std::string &contentEncoding) { + contentEncoding_ = contentEncoding; + setParameter(std::string("ContentEncoding"), contentEncoding); } -void DescribeCommandsRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +long DescribeCommandsRequest::getPageSize() const { + return pageSize_; } -std::string DescribeCommandsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeCommandsRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeCommandsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeCommandsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeCommandsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeCommandsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeCommandsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeCommandsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeCommandsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeCommandsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeCommandsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeCommandsRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeCommandsRequest::getName()const -{ - return name_; +void DescribeCommandsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeCommandsRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string DescribeCommandsRequest::getName() const { + return name_; +} + +void DescribeCommandsRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/ecs/src/model/DescribeCommandsResult.cc b/ecs/src/model/DescribeCommandsResult.cc index ea8e4c476..3c1a58486 100644 --- a/ecs/src/model/DescribeCommandsResult.cc +++ b/ecs/src/model/DescribeCommandsResult.cc @@ -43,32 +43,32 @@ void DescribeCommandsResult::parse(const std::string &payload) for (auto valueCommandsCommand : allCommandsNode) { Command commandsObject; - if(!valueCommandsCommand["CommandId"].isNull()) - commandsObject.commandId = valueCommandsCommand["CommandId"].asString(); - if(!valueCommandsCommand["Name"].isNull()) - commandsObject.name = valueCommandsCommand["Name"].asString(); + if(!valueCommandsCommand["CreationTime"].isNull()) + commandsObject.creationTime = valueCommandsCommand["CreationTime"].asString(); if(!valueCommandsCommand["Type"].isNull()) commandsObject.type = valueCommandsCommand["Type"].asString(); - if(!valueCommandsCommand["Version"].isNull()) - commandsObject.version = std::stoi(valueCommandsCommand["Version"].asString()); - if(!valueCommandsCommand["Latest"].isNull()) - commandsObject.latest = valueCommandsCommand["Latest"].asString() == "true"; - if(!valueCommandsCommand["Provider"].isNull()) - commandsObject.provider = valueCommandsCommand["Provider"].asString(); - if(!valueCommandsCommand["Category"].isNull()) - commandsObject.category = valueCommandsCommand["Category"].asString(); - if(!valueCommandsCommand["Description"].isNull()) - commandsObject.description = valueCommandsCommand["Description"].asString(); - if(!valueCommandsCommand["CommandContent"].isNull()) - commandsObject.commandContent = valueCommandsCommand["CommandContent"].asString(); - if(!valueCommandsCommand["WorkingDir"].isNull()) - commandsObject.workingDir = valueCommandsCommand["WorkingDir"].asString(); if(!valueCommandsCommand["Timeout"].isNull()) commandsObject.timeout = std::stol(valueCommandsCommand["Timeout"].asString()); if(!valueCommandsCommand["InvokeTimes"].isNull()) commandsObject.invokeTimes = std::stoi(valueCommandsCommand["InvokeTimes"].asString()); - if(!valueCommandsCommand["CreationTime"].isNull()) - commandsObject.creationTime = valueCommandsCommand["CreationTime"].asString(); + if(!valueCommandsCommand["CommandId"].isNull()) + commandsObject.commandId = valueCommandsCommand["CommandId"].asString(); + if(!valueCommandsCommand["WorkingDir"].isNull()) + commandsObject.workingDir = valueCommandsCommand["WorkingDir"].asString(); + if(!valueCommandsCommand["Description"].isNull()) + commandsObject.description = valueCommandsCommand["Description"].asString(); + if(!valueCommandsCommand["Version"].isNull()) + commandsObject.version = std::stoi(valueCommandsCommand["Version"].asString()); + if(!valueCommandsCommand["Provider"].isNull()) + commandsObject.provider = valueCommandsCommand["Provider"].asString(); + if(!valueCommandsCommand["CommandContent"].isNull()) + commandsObject.commandContent = valueCommandsCommand["CommandContent"].asString(); + if(!valueCommandsCommand["Category"].isNull()) + commandsObject.category = valueCommandsCommand["Category"].asString(); + if(!valueCommandsCommand["Latest"].isNull()) + commandsObject.latest = valueCommandsCommand["Latest"].asString() == "true"; + if(!valueCommandsCommand["Name"].isNull()) + commandsObject.name = valueCommandsCommand["Name"].asString(); if(!valueCommandsCommand["EnableParameter"].isNull()) commandsObject.enableParameter = valueCommandsCommand["EnableParameter"].asString() == "true"; auto allParameterNames = value["ParameterNames"]["ParameterName"]; @@ -76,12 +76,12 @@ void DescribeCommandsResult::parse(const std::string &payload) commandsObject.parameterNames.push_back(value.asString()); commands_.push_back(commandsObject); } - if(!value["TotalCount"].isNull()) - totalCount_ = std::stol(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stol(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stol(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); } diff --git a/ecs/src/model/DescribeDedicatedBlockStorageClustersRequest.cc b/ecs/src/model/DescribeDedicatedBlockStorageClustersRequest.cc index 189068609..3df441542 100644 --- a/ecs/src/model/DescribeDedicatedBlockStorageClustersRequest.cc +++ b/ecs/src/model/DescribeDedicatedBlockStorageClustersRequest.cc @@ -1,154 +1,124 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeDedicatedBlockStorageClustersRequest; - -DescribeDedicatedBlockStorageClustersRequest::DescribeDedicatedBlockStorageClustersRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeDedicatedBlockStorageClusters") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDedicatedBlockStorageClustersRequest::~DescribeDedicatedBlockStorageClustersRequest() -{} - -long DescribeDedicatedBlockStorageClustersRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeDedicatedBlockStorageClustersRequest; + +DescribeDedicatedBlockStorageClustersRequest::DescribeDedicatedBlockStorageClustersRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeDedicatedBlockStorageClusters") { + setMethod(HttpRequest::Method::Post); } -void DescribeDedicatedBlockStorageClustersRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeDedicatedBlockStorageClustersRequest::~DescribeDedicatedBlockStorageClustersRequest() {} + +long DescribeDedicatedBlockStorageClustersRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeDedicatedBlockStorageClustersRequest::getRegionId()const -{ - return regionId_; +void DescribeDedicatedBlockStorageClustersRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeDedicatedBlockStorageClustersRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeDedicatedBlockStorageClustersRequest::getRegionId() const { + return regionId_; } -std::string DescribeDedicatedBlockStorageClustersRequest::getNextToken()const -{ - return nextToken_; +void DescribeDedicatedBlockStorageClustersRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeDedicatedBlockStorageClustersRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +std::string DescribeDedicatedBlockStorageClustersRequest::getNextToken() const { + return nextToken_; } -std::vector DescribeDedicatedBlockStorageClustersRequest::getDedicatedBlockStorageClusterId()const -{ - return dedicatedBlockStorageClusterId_; +void DescribeDedicatedBlockStorageClustersRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } -void DescribeDedicatedBlockStorageClustersRequest::setDedicatedBlockStorageClusterId(const std::vector& dedicatedBlockStorageClusterId) -{ - dedicatedBlockStorageClusterId_ = dedicatedBlockStorageClusterId; - for(int dep1 = 0; dep1!= dedicatedBlockStorageClusterId.size(); dep1++) { - setParameter("DedicatedBlockStorageClusterId."+ std::to_string(dep1), dedicatedBlockStorageClusterId.at(dep1)); - } +std::vector DescribeDedicatedBlockStorageClustersRequest::getDedicatedBlockStorageClusterId() const { + return dedicatedBlockStorageClusterId_; } -std::string DescribeDedicatedBlockStorageClustersRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeDedicatedBlockStorageClustersRequest::setDedicatedBlockStorageClusterId(const std::vector &dedicatedBlockStorageClusterId) { + dedicatedBlockStorageClusterId_ = dedicatedBlockStorageClusterId; } -void DescribeDedicatedBlockStorageClustersRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeDedicatedBlockStorageClustersRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeDedicatedBlockStorageClustersRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeDedicatedBlockStorageClustersRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeDedicatedBlockStorageClustersRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeDedicatedBlockStorageClustersRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeDedicatedBlockStorageClustersRequest::getOwnerId()const -{ - return ownerId_; +void DescribeDedicatedBlockStorageClustersRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeDedicatedBlockStorageClustersRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeDedicatedBlockStorageClustersRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeDedicatedBlockStorageClustersRequest::getZoneId()const -{ - return zoneId_; +void DescribeDedicatedBlockStorageClustersRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeDedicatedBlockStorageClustersRequest::setZoneId(const std::string& zoneId) -{ - zoneId_ = zoneId; - setParameter("ZoneId", zoneId); +std::string DescribeDedicatedBlockStorageClustersRequest::getZoneId() const { + return zoneId_; } -int DescribeDedicatedBlockStorageClustersRequest::getMaxResults()const -{ - return maxResults_; +void DescribeDedicatedBlockStorageClustersRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); } -void DescribeDedicatedBlockStorageClustersRequest::setMaxResults(int maxResults) -{ - maxResults_ = maxResults; - setParameter("MaxResults", std::to_string(maxResults)); +int DescribeDedicatedBlockStorageClustersRequest::getMaxResults() const { + return maxResults_; } -std::string DescribeDedicatedBlockStorageClustersRequest::getCategory()const -{ - return category_; +void DescribeDedicatedBlockStorageClustersRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); } -void DescribeDedicatedBlockStorageClustersRequest::setCategory(const std::string& category) -{ - category_ = category; - setParameter("Category", category); +std::string DescribeDedicatedBlockStorageClustersRequest::getCategory() const { + return category_; } -std::vector DescribeDedicatedBlockStorageClustersRequest::getStatus()const -{ - return status_; +void DescribeDedicatedBlockStorageClustersRequest::setCategory(const std::string &category) { + category_ = category; + setParameter(std::string("Category"), category); } -void DescribeDedicatedBlockStorageClustersRequest::setStatus(const std::vector& status) -{ - status_ = status; - for(int dep1 = 0; dep1!= status.size(); dep1++) { - setParameter("Status."+ std::to_string(dep1), status.at(dep1)); - } +std::vector DescribeDedicatedBlockStorageClustersRequest::getStatus() const { + return status_; +} + +void DescribeDedicatedBlockStorageClustersRequest::setStatus(const std::vector &status) { + status_ = status; } diff --git a/ecs/src/model/DescribeDedicatedHostAutoRenewRequest.cc b/ecs/src/model/DescribeDedicatedHostAutoRenewRequest.cc index d8167f945..61debc2eb 100644 --- a/ecs/src/model/DescribeDedicatedHostAutoRenewRequest.cc +++ b/ecs/src/model/DescribeDedicatedHostAutoRenewRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeDedicatedHostAutoRenewRequest; - -DescribeDedicatedHostAutoRenewRequest::DescribeDedicatedHostAutoRenewRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeDedicatedHostAutoRenew") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDedicatedHostAutoRenewRequest::~DescribeDedicatedHostAutoRenewRequest() -{} - -std::string DescribeDedicatedHostAutoRenewRequest::getDedicatedHostIds()const -{ - return dedicatedHostIds_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeDedicatedHostAutoRenewRequest; + +DescribeDedicatedHostAutoRenewRequest::DescribeDedicatedHostAutoRenewRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeDedicatedHostAutoRenew") { + setMethod(HttpRequest::Method::Post); } -void DescribeDedicatedHostAutoRenewRequest::setDedicatedHostIds(const std::string& dedicatedHostIds) -{ - dedicatedHostIds_ = dedicatedHostIds; - setParameter("DedicatedHostIds", dedicatedHostIds); +DescribeDedicatedHostAutoRenewRequest::~DescribeDedicatedHostAutoRenewRequest() {} + +std::string DescribeDedicatedHostAutoRenewRequest::getDedicatedHostIds() const { + return dedicatedHostIds_; } -long DescribeDedicatedHostAutoRenewRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void DescribeDedicatedHostAutoRenewRequest::setDedicatedHostIds(const std::string &dedicatedHostIds) { + dedicatedHostIds_ = dedicatedHostIds; + setParameter(std::string("DedicatedHostIds"), dedicatedHostIds); } -void DescribeDedicatedHostAutoRenewRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long DescribeDedicatedHostAutoRenewRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeDedicatedHostAutoRenewRequest::getRegionId()const -{ - return regionId_; +void DescribeDedicatedHostAutoRenewRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeDedicatedHostAutoRenewRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeDedicatedHostAutoRenewRequest::getRegionId() const { + return regionId_; } -std::string DescribeDedicatedHostAutoRenewRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeDedicatedHostAutoRenewRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeDedicatedHostAutoRenewRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeDedicatedHostAutoRenewRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeDedicatedHostAutoRenewRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeDedicatedHostAutoRenewRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeDedicatedHostAutoRenewRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeDedicatedHostAutoRenewRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeDedicatedHostAutoRenewRequest::getOwnerId()const -{ - return ownerId_; +void DescribeDedicatedHostAutoRenewRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeDedicatedHostAutoRenewRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeDedicatedHostAutoRenewRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeDedicatedHostAutoRenewRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/DescribeDedicatedHostClustersRequest.cc b/ecs/src/model/DescribeDedicatedHostClustersRequest.cc index 1b7793488..1cac48437 100644 --- a/ecs/src/model/DescribeDedicatedHostClustersRequest.cc +++ b/ecs/src/model/DescribeDedicatedHostClustersRequest.cc @@ -1,188 +1,158 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeDedicatedHostClustersRequest; - -DescribeDedicatedHostClustersRequest::DescribeDedicatedHostClustersRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeDedicatedHostClusters") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDedicatedHostClustersRequest::~DescribeDedicatedHostClustersRequest() -{} - -std::string DescribeDedicatedHostClustersRequest::getDedicatedHostClusterName()const -{ - return dedicatedHostClusterName_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeDedicatedHostClustersRequest; + +DescribeDedicatedHostClustersRequest::DescribeDedicatedHostClustersRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeDedicatedHostClusters") { + setMethod(HttpRequest::Method::Post); } -void DescribeDedicatedHostClustersRequest::setDedicatedHostClusterName(const std::string& dedicatedHostClusterName) -{ - dedicatedHostClusterName_ = dedicatedHostClusterName; - setParameter("DedicatedHostClusterName", dedicatedHostClusterName); +DescribeDedicatedHostClustersRequest::~DescribeDedicatedHostClustersRequest() {} + +std::string DescribeDedicatedHostClustersRequest::getDedicatedHostClusterName() const { + return dedicatedHostClusterName_; } -long DescribeDedicatedHostClustersRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void DescribeDedicatedHostClustersRequest::setDedicatedHostClusterName(const std::string &dedicatedHostClusterName) { + dedicatedHostClusterName_ = dedicatedHostClusterName; + setParameter(std::string("DedicatedHostClusterName"), dedicatedHostClusterName); } -void DescribeDedicatedHostClustersRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long DescribeDedicatedHostClustersRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeDedicatedHostClustersRequest::getDedicatedHostClusterIds()const -{ - return dedicatedHostClusterIds_; +void DescribeDedicatedHostClustersRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeDedicatedHostClustersRequest::setDedicatedHostClusterIds(const std::string& dedicatedHostClusterIds) -{ - dedicatedHostClusterIds_ = dedicatedHostClusterIds; - setParameter("DedicatedHostClusterIds", dedicatedHostClusterIds); +std::string DescribeDedicatedHostClustersRequest::getDedicatedHostClusterIds() const { + return dedicatedHostClusterIds_; } -int DescribeDedicatedHostClustersRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeDedicatedHostClustersRequest::setDedicatedHostClusterIds(const std::string &dedicatedHostClusterIds) { + dedicatedHostClusterIds_ = dedicatedHostClusterIds; + setParameter(std::string("DedicatedHostClusterIds"), dedicatedHostClusterIds); } -void DescribeDedicatedHostClustersRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeDedicatedHostClustersRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeDedicatedHostClustersRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void DescribeDedicatedHostClustersRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeDedicatedHostClustersRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string DescribeDedicatedHostClustersRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string DescribeDedicatedHostClustersRequest::getLockReason()const -{ - return lockReason_; +void DescribeDedicatedHostClustersRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void DescribeDedicatedHostClustersRequest::setLockReason(const std::string& lockReason) -{ - lockReason_ = lockReason; - setParameter("LockReason", lockReason); +std::string DescribeDedicatedHostClustersRequest::getLockReason() const { + return lockReason_; } -std::string DescribeDedicatedHostClustersRequest::getRegionId()const -{ - return regionId_; +void DescribeDedicatedHostClustersRequest::setLockReason(const std::string &lockReason) { + lockReason_ = lockReason; + setParameter(std::string("LockReason"), lockReason); } -void DescribeDedicatedHostClustersRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeDedicatedHostClustersRequest::getRegionId() const { + return regionId_; } -int DescribeDedicatedHostClustersRequest::getPageSize()const -{ - return pageSize_; +void DescribeDedicatedHostClustersRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeDedicatedHostClustersRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeDedicatedHostClustersRequest::getPageSize() const { + return pageSize_; } -std::vector DescribeDedicatedHostClustersRequest::getTag()const -{ - return tag_; +void DescribeDedicatedHostClustersRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeDedicatedHostClustersRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Key", tagObj.key); - setParameter(tagObjStr + ".Value", tagObj.value); - } +std::vector DescribeDedicatedHostClustersRequest::getTag() const { + return tag_; } -std::string DescribeDedicatedHostClustersRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeDedicatedHostClustersRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } } -void DescribeDedicatedHostClustersRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeDedicatedHostClustersRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeDedicatedHostClustersRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeDedicatedHostClustersRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeDedicatedHostClustersRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeDedicatedHostClustersRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeDedicatedHostClustersRequest::getOwnerId()const -{ - return ownerId_; +void DescribeDedicatedHostClustersRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeDedicatedHostClustersRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeDedicatedHostClustersRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeDedicatedHostClustersRequest::getZoneId()const -{ - return zoneId_; +void DescribeDedicatedHostClustersRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeDedicatedHostClustersRequest::setZoneId(const std::string& zoneId) -{ - zoneId_ = zoneId; - setParameter("ZoneId", zoneId); +std::string DescribeDedicatedHostClustersRequest::getZoneId() const { + return zoneId_; } -std::string DescribeDedicatedHostClustersRequest::getStatus()const -{ - return status_; +void DescribeDedicatedHostClustersRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); } -void DescribeDedicatedHostClustersRequest::setStatus(const std::string& status) -{ - status_ = status; - setParameter("Status", status); +std::string DescribeDedicatedHostClustersRequest::getStatus() const { + return status_; +} + +void DescribeDedicatedHostClustersRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); } diff --git a/ecs/src/model/DescribeDedicatedHostClustersResult.cc b/ecs/src/model/DescribeDedicatedHostClustersResult.cc index 5de1eaf24..27c89ff9a 100644 --- a/ecs/src/model/DescribeDedicatedHostClustersResult.cc +++ b/ecs/src/model/DescribeDedicatedHostClustersResult.cc @@ -43,47 +43,47 @@ void DescribeDedicatedHostClustersResult::parse(const std::string &payload) for (auto valueDedicatedHostClustersDedicatedHostCluster : allDedicatedHostClustersNode) { DedicatedHostCluster dedicatedHostClustersObject; - if(!valueDedicatedHostClustersDedicatedHostCluster["DedicatedHostClusterId"].isNull()) - dedicatedHostClustersObject.dedicatedHostClusterId = valueDedicatedHostClustersDedicatedHostCluster["DedicatedHostClusterId"].asString(); - if(!valueDedicatedHostClustersDedicatedHostCluster["RegionId"].isNull()) - dedicatedHostClustersObject.regionId = valueDedicatedHostClustersDedicatedHostCluster["RegionId"].asString(); - if(!valueDedicatedHostClustersDedicatedHostCluster["ZoneId"].isNull()) - dedicatedHostClustersObject.zoneId = valueDedicatedHostClustersDedicatedHostCluster["ZoneId"].asString(); - if(!valueDedicatedHostClustersDedicatedHostCluster["DedicatedHostClusterName"].isNull()) - dedicatedHostClustersObject.dedicatedHostClusterName = valueDedicatedHostClustersDedicatedHostCluster["DedicatedHostClusterName"].asString(); if(!valueDedicatedHostClustersDedicatedHostCluster["Description"].isNull()) dedicatedHostClustersObject.description = valueDedicatedHostClustersDedicatedHostCluster["Description"].asString(); + if(!valueDedicatedHostClustersDedicatedHostCluster["DedicatedHostClusterId"].isNull()) + dedicatedHostClustersObject.dedicatedHostClusterId = valueDedicatedHostClustersDedicatedHostCluster["DedicatedHostClusterId"].asString(); if(!valueDedicatedHostClustersDedicatedHostCluster["ResourceGroupId"].isNull()) dedicatedHostClustersObject.resourceGroupId = valueDedicatedHostClustersDedicatedHostCluster["ResourceGroupId"].asString(); + if(!valueDedicatedHostClustersDedicatedHostCluster["ZoneId"].isNull()) + dedicatedHostClustersObject.zoneId = valueDedicatedHostClustersDedicatedHostCluster["ZoneId"].asString(); + if(!valueDedicatedHostClustersDedicatedHostCluster["RegionId"].isNull()) + dedicatedHostClustersObject.regionId = valueDedicatedHostClustersDedicatedHostCluster["RegionId"].asString(); + if(!valueDedicatedHostClustersDedicatedHostCluster["DedicatedHostClusterName"].isNull()) + dedicatedHostClustersObject.dedicatedHostClusterName = valueDedicatedHostClustersDedicatedHostCluster["DedicatedHostClusterName"].asString(); auto allTagsNode = valueDedicatedHostClustersDedicatedHostCluster["Tags"]["Tag"]; for (auto valueDedicatedHostClustersDedicatedHostClusterTagsTag : allTagsNode) { DedicatedHostCluster::Tag tagsObject; - if(!valueDedicatedHostClustersDedicatedHostClusterTagsTag["TagKey"].isNull()) - tagsObject.tagKey = valueDedicatedHostClustersDedicatedHostClusterTagsTag["TagKey"].asString(); if(!valueDedicatedHostClustersDedicatedHostClusterTagsTag["TagValue"].isNull()) tagsObject.tagValue = valueDedicatedHostClustersDedicatedHostClusterTagsTag["TagValue"].asString(); + if(!valueDedicatedHostClustersDedicatedHostClusterTagsTag["TagKey"].isNull()) + tagsObject.tagKey = valueDedicatedHostClustersDedicatedHostClusterTagsTag["TagKey"].asString(); dedicatedHostClustersObject.tags.push_back(tagsObject); } auto dedicatedHostClusterCapacityNode = value["DedicatedHostClusterCapacity"]; - if(!dedicatedHostClusterCapacityNode["TotalVcpus"].isNull()) - dedicatedHostClustersObject.dedicatedHostClusterCapacity.totalVcpus = std::stoi(dedicatedHostClusterCapacityNode["TotalVcpus"].asString()); if(!dedicatedHostClusterCapacityNode["AvailableVcpus"].isNull()) dedicatedHostClustersObject.dedicatedHostClusterCapacity.availableVcpus = std::stoi(dedicatedHostClusterCapacityNode["AvailableVcpus"].asString()); - if(!dedicatedHostClusterCapacityNode["TotalMemory"].isNull()) - dedicatedHostClustersObject.dedicatedHostClusterCapacity.totalMemory = std::stoi(dedicatedHostClusterCapacityNode["TotalMemory"].asString()); if(!dedicatedHostClusterCapacityNode["AvailableMemory"].isNull()) dedicatedHostClustersObject.dedicatedHostClusterCapacity.availableMemory = std::stoi(dedicatedHostClusterCapacityNode["AvailableMemory"].asString()); + if(!dedicatedHostClusterCapacityNode["TotalMemory"].isNull()) + dedicatedHostClustersObject.dedicatedHostClusterCapacity.totalMemory = std::stoi(dedicatedHostClusterCapacityNode["TotalMemory"].asString()); + if(!dedicatedHostClusterCapacityNode["TotalVcpus"].isNull()) + dedicatedHostClustersObject.dedicatedHostClusterCapacity.totalVcpus = std::stoi(dedicatedHostClusterCapacityNode["TotalVcpus"].asString()); auto allLocalStorageCapacitiesNode = dedicatedHostClusterCapacityNode["LocalStorageCapacities"]["LocalStorageCapacity"]; for (auto dedicatedHostClusterCapacityNodeLocalStorageCapacitiesLocalStorageCapacity : allLocalStorageCapacitiesNode) { DedicatedHostCluster::DedicatedHostClusterCapacity::LocalStorageCapacity localStorageCapacityObject; - if(!dedicatedHostClusterCapacityNodeLocalStorageCapacitiesLocalStorageCapacity["TotalDisk"].isNull()) - localStorageCapacityObject.totalDisk = std::stoi(dedicatedHostClusterCapacityNodeLocalStorageCapacitiesLocalStorageCapacity["TotalDisk"].asString()); - if(!dedicatedHostClusterCapacityNodeLocalStorageCapacitiesLocalStorageCapacity["AvailableDisk"].isNull()) - localStorageCapacityObject.availableDisk = std::stoi(dedicatedHostClusterCapacityNodeLocalStorageCapacitiesLocalStorageCapacity["AvailableDisk"].asString()); if(!dedicatedHostClusterCapacityNodeLocalStorageCapacitiesLocalStorageCapacity["DataDiskCategory"].isNull()) localStorageCapacityObject.dataDiskCategory = dedicatedHostClusterCapacityNodeLocalStorageCapacitiesLocalStorageCapacity["DataDiskCategory"].asString(); + if(!dedicatedHostClusterCapacityNodeLocalStorageCapacitiesLocalStorageCapacity["AvailableDisk"].isNull()) + localStorageCapacityObject.availableDisk = std::stoi(dedicatedHostClusterCapacityNodeLocalStorageCapacitiesLocalStorageCapacity["AvailableDisk"].asString()); + if(!dedicatedHostClusterCapacityNodeLocalStorageCapacitiesLocalStorageCapacity["TotalDisk"].isNull()) + localStorageCapacityObject.totalDisk = std::stoi(dedicatedHostClusterCapacityNodeLocalStorageCapacitiesLocalStorageCapacity["TotalDisk"].asString()); dedicatedHostClustersObject.dedicatedHostClusterCapacity.localStorageCapacities.push_back(localStorageCapacityObject); } auto allAvailableInstanceTypesNode = dedicatedHostClusterCapacityNode["AvailableInstanceTypes"]["AvailableInstanceType"]; @@ -101,12 +101,12 @@ void DescribeDedicatedHostClustersResult::parse(const std::string &payload) dedicatedHostClustersObject.dedicatedHostIds.push_back(value.asString()); dedicatedHostClusters_.push_back(dedicatedHostClustersObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/ecs/src/model/DescribeDedicatedHostTypesRequest.cc b/ecs/src/model/DescribeDedicatedHostTypesRequest.cc index ded9ab3a3..ad57244d7 100644 --- a/ecs/src/model/DescribeDedicatedHostTypesRequest.cc +++ b/ecs/src/model/DescribeDedicatedHostTypesRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeDedicatedHostTypesRequest; - -DescribeDedicatedHostTypesRequest::DescribeDedicatedHostTypesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeDedicatedHostTypes") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDedicatedHostTypesRequest::~DescribeDedicatedHostTypesRequest() -{} - -long DescribeDedicatedHostTypesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeDedicatedHostTypesRequest; + +DescribeDedicatedHostTypesRequest::DescribeDedicatedHostTypesRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeDedicatedHostTypes") { + setMethod(HttpRequest::Method::Post); } -void DescribeDedicatedHostTypesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeDedicatedHostTypesRequest::~DescribeDedicatedHostTypesRequest() {} + +long DescribeDedicatedHostTypesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeDedicatedHostTypesRequest::getSupportedInstanceTypeFamily()const -{ - return supportedInstanceTypeFamily_; +void DescribeDedicatedHostTypesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeDedicatedHostTypesRequest::setSupportedInstanceTypeFamily(const std::string& supportedInstanceTypeFamily) -{ - supportedInstanceTypeFamily_ = supportedInstanceTypeFamily; - setParameter("SupportedInstanceTypeFamily", supportedInstanceTypeFamily); +std::string DescribeDedicatedHostTypesRequest::getSupportedInstanceTypeFamily() const { + return supportedInstanceTypeFamily_; } -std::string DescribeDedicatedHostTypesRequest::getRegionId()const -{ - return regionId_; +void DescribeDedicatedHostTypesRequest::setSupportedInstanceTypeFamily(const std::string &supportedInstanceTypeFamily) { + supportedInstanceTypeFamily_ = supportedInstanceTypeFamily; + setParameter(std::string("SupportedInstanceTypeFamily"), supportedInstanceTypeFamily); } -void DescribeDedicatedHostTypesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeDedicatedHostTypesRequest::getRegionId() const { + return regionId_; } -std::string DescribeDedicatedHostTypesRequest::getDedicatedHostType()const -{ - return dedicatedHostType_; +void DescribeDedicatedHostTypesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeDedicatedHostTypesRequest::setDedicatedHostType(const std::string& dedicatedHostType) -{ - dedicatedHostType_ = dedicatedHostType; - setParameter("DedicatedHostType", dedicatedHostType); +std::string DescribeDedicatedHostTypesRequest::getDedicatedHostType() const { + return dedicatedHostType_; } -std::string DescribeDedicatedHostTypesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeDedicatedHostTypesRequest::setDedicatedHostType(const std::string &dedicatedHostType) { + dedicatedHostType_ = dedicatedHostType; + setParameter(std::string("DedicatedHostType"), dedicatedHostType); } -void DescribeDedicatedHostTypesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeDedicatedHostTypesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeDedicatedHostTypesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeDedicatedHostTypesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeDedicatedHostTypesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeDedicatedHostTypesRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeDedicatedHostTypesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeDedicatedHostTypesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeDedicatedHostTypesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeDedicatedHostTypesRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeDedicatedHostTypesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/DescribeDedicatedHostTypesResult.cc b/ecs/src/model/DescribeDedicatedHostTypesResult.cc index 321e7124e..fafb11440 100644 --- a/ecs/src/model/DescribeDedicatedHostTypesResult.cc +++ b/ecs/src/model/DescribeDedicatedHostTypesResult.cc @@ -43,32 +43,32 @@ void DescribeDedicatedHostTypesResult::parse(const std::string &payload) for (auto valueDedicatedHostTypesDedicatedHostType : allDedicatedHostTypesNode) { DedicatedHostType dedicatedHostTypesObject; - if(!valueDedicatedHostTypesDedicatedHostType["DedicatedHostType"].isNull()) - dedicatedHostTypesObject.dedicatedHostType = valueDedicatedHostTypesDedicatedHostType["DedicatedHostType"].asString(); - if(!valueDedicatedHostTypesDedicatedHostType["Sockets"].isNull()) - dedicatedHostTypesObject.sockets = std::stoi(valueDedicatedHostTypesDedicatedHostType["Sockets"].asString()); - if(!valueDedicatedHostTypesDedicatedHostType["TotalVcpus"].isNull()) - dedicatedHostTypesObject.totalVcpus = std::stoi(valueDedicatedHostTypesDedicatedHostType["TotalVcpus"].asString()); - if(!valueDedicatedHostTypesDedicatedHostType["TotalVgpus"].isNull()) - dedicatedHostTypesObject.totalVgpus = std::stoi(valueDedicatedHostTypesDedicatedHostType["TotalVgpus"].asString()); if(!valueDedicatedHostTypesDedicatedHostType["Cores"].isNull()) dedicatedHostTypesObject.cores = std::stoi(valueDedicatedHostTypesDedicatedHostType["Cores"].asString()); - if(!valueDedicatedHostTypesDedicatedHostType["PhysicalGpus"].isNull()) - dedicatedHostTypesObject.physicalGpus = std::stoi(valueDedicatedHostTypesDedicatedHostType["PhysicalGpus"].asString()); - if(!valueDedicatedHostTypesDedicatedHostType["MemorySize"].isNull()) - dedicatedHostTypesObject.memorySize = std::stof(valueDedicatedHostTypesDedicatedHostType["MemorySize"].asString()); - if(!valueDedicatedHostTypesDedicatedHostType["LocalStorageCapacity"].isNull()) - dedicatedHostTypesObject.localStorageCapacity = std::stol(valueDedicatedHostTypesDedicatedHostType["LocalStorageCapacity"].asString()); - if(!valueDedicatedHostTypesDedicatedHostType["LocalStorageAmount"].isNull()) - dedicatedHostTypesObject.localStorageAmount = std::stoi(valueDedicatedHostTypesDedicatedHostType["LocalStorageAmount"].asString()); if(!valueDedicatedHostTypesDedicatedHostType["LocalStorageCategory"].isNull()) dedicatedHostTypesObject.localStorageCategory = valueDedicatedHostTypesDedicatedHostType["LocalStorageCategory"].asString(); if(!valueDedicatedHostTypesDedicatedHostType["GPUSpec"].isNull()) dedicatedHostTypesObject.gPUSpec = valueDedicatedHostTypesDedicatedHostType["GPUSpec"].asString(); - if(!valueDedicatedHostTypesDedicatedHostType["SupportCpuOverCommitRatio"].isNull()) - dedicatedHostTypesObject.supportCpuOverCommitRatio = valueDedicatedHostTypesDedicatedHostType["SupportCpuOverCommitRatio"].asString() == "true"; + if(!valueDedicatedHostTypesDedicatedHostType["TotalVcpus"].isNull()) + dedicatedHostTypesObject.totalVcpus = std::stoi(valueDedicatedHostTypesDedicatedHostType["TotalVcpus"].asString()); if(!valueDedicatedHostTypesDedicatedHostType["CpuOverCommitRatioRange"].isNull()) dedicatedHostTypesObject.cpuOverCommitRatioRange = valueDedicatedHostTypesDedicatedHostType["CpuOverCommitRatioRange"].asString(); + if(!valueDedicatedHostTypesDedicatedHostType["PhysicalGpus"].isNull()) + dedicatedHostTypesObject.physicalGpus = std::stoi(valueDedicatedHostTypesDedicatedHostType["PhysicalGpus"].asString()); + if(!valueDedicatedHostTypesDedicatedHostType["MemorySize"].isNull()) + dedicatedHostTypesObject.memorySize = std::stof(valueDedicatedHostTypesDedicatedHostType["MemorySize"].asString()); + if(!valueDedicatedHostTypesDedicatedHostType["SupportCpuOverCommitRatio"].isNull()) + dedicatedHostTypesObject.supportCpuOverCommitRatio = valueDedicatedHostTypesDedicatedHostType["SupportCpuOverCommitRatio"].asString() == "true"; + if(!valueDedicatedHostTypesDedicatedHostType["LocalStorageCapacity"].isNull()) + dedicatedHostTypesObject.localStorageCapacity = std::stol(valueDedicatedHostTypesDedicatedHostType["LocalStorageCapacity"].asString()); + if(!valueDedicatedHostTypesDedicatedHostType["DedicatedHostType"].isNull()) + dedicatedHostTypesObject.dedicatedHostType = valueDedicatedHostTypesDedicatedHostType["DedicatedHostType"].asString(); + if(!valueDedicatedHostTypesDedicatedHostType["LocalStorageAmount"].isNull()) + dedicatedHostTypesObject.localStorageAmount = std::stoi(valueDedicatedHostTypesDedicatedHostType["LocalStorageAmount"].asString()); + if(!valueDedicatedHostTypesDedicatedHostType["TotalVgpus"].isNull()) + dedicatedHostTypesObject.totalVgpus = std::stoi(valueDedicatedHostTypesDedicatedHostType["TotalVgpus"].asString()); + if(!valueDedicatedHostTypesDedicatedHostType["Sockets"].isNull()) + dedicatedHostTypesObject.sockets = std::stoi(valueDedicatedHostTypesDedicatedHostType["Sockets"].asString()); auto allSupportedInstanceTypeFamilies = value["SupportedInstanceTypeFamilies"]["SupportedInstanceTypeFamily"]; for (auto value : allSupportedInstanceTypeFamilies) dedicatedHostTypesObject.supportedInstanceTypeFamilies.push_back(value.asString()); diff --git a/ecs/src/model/DescribeDedicatedHostsRequest.cc b/ecs/src/model/DescribeDedicatedHostsRequest.cc index 9de67c2f0..16072077e 100644 --- a/ecs/src/model/DescribeDedicatedHostsRequest.cc +++ b/ecs/src/model/DescribeDedicatedHostsRequest.cc @@ -1,221 +1,185 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeDedicatedHostsRequest; - -DescribeDedicatedHostsRequest::DescribeDedicatedHostsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeDedicatedHosts") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDedicatedHostsRequest::~DescribeDedicatedHostsRequest() -{} - -std::string DescribeDedicatedHostsRequest::getDedicatedHostIds()const -{ - return dedicatedHostIds_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeDedicatedHostsRequest; + +DescribeDedicatedHostsRequest::DescribeDedicatedHostsRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeDedicatedHosts") { + setMethod(HttpRequest::Method::Post); } -void DescribeDedicatedHostsRequest::setDedicatedHostIds(const std::string& dedicatedHostIds) -{ - dedicatedHostIds_ = dedicatedHostIds; - setParameter("DedicatedHostIds", dedicatedHostIds); +DescribeDedicatedHostsRequest::~DescribeDedicatedHostsRequest() {} + +std::string DescribeDedicatedHostsRequest::getDedicatedHostIds() const { + return dedicatedHostIds_; } -long DescribeDedicatedHostsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void DescribeDedicatedHostsRequest::setDedicatedHostIds(const std::string &dedicatedHostIds) { + dedicatedHostIds_ = dedicatedHostIds; + setParameter(std::string("DedicatedHostIds"), dedicatedHostIds); } -void DescribeDedicatedHostsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long DescribeDedicatedHostsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeDedicatedHostsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeDedicatedHostsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeDedicatedHostsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeDedicatedHostsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeDedicatedHostsRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void DescribeDedicatedHostsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeDedicatedHostsRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string DescribeDedicatedHostsRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string DescribeDedicatedHostsRequest::getLockReason()const -{ - return lockReason_; +void DescribeDedicatedHostsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void DescribeDedicatedHostsRequest::setLockReason(const std::string& lockReason) -{ - lockReason_ = lockReason; - setParameter("LockReason", lockReason); +std::string DescribeDedicatedHostsRequest::getLockReason() const { + return lockReason_; } -std::string DescribeDedicatedHostsRequest::getRegionId()const -{ - return regionId_; +void DescribeDedicatedHostsRequest::setLockReason(const std::string &lockReason) { + lockReason_ = lockReason; + setParameter(std::string("LockReason"), lockReason); } -void DescribeDedicatedHostsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeDedicatedHostsRequest::getRegionId() const { + return regionId_; } -int DescribeDedicatedHostsRequest::getPageSize()const -{ - return pageSize_; +void DescribeDedicatedHostsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeDedicatedHostsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeDedicatedHostsRequest::getPageSize() const { + return pageSize_; } -std::string DescribeDedicatedHostsRequest::getDedicatedHostClusterId()const -{ - return dedicatedHostClusterId_; +void DescribeDedicatedHostsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeDedicatedHostsRequest::setDedicatedHostClusterId(const std::string& dedicatedHostClusterId) -{ - dedicatedHostClusterId_ = dedicatedHostClusterId; - setParameter("DedicatedHostClusterId", dedicatedHostClusterId); +std::string DescribeDedicatedHostsRequest::getDedicatedHostClusterId() const { + return dedicatedHostClusterId_; } -std::string DescribeDedicatedHostsRequest::getDedicatedHostType()const -{ - return dedicatedHostType_; +void DescribeDedicatedHostsRequest::setDedicatedHostClusterId(const std::string &dedicatedHostClusterId) { + dedicatedHostClusterId_ = dedicatedHostClusterId; + setParameter(std::string("DedicatedHostClusterId"), dedicatedHostClusterId); } -void DescribeDedicatedHostsRequest::setDedicatedHostType(const std::string& dedicatedHostType) -{ - dedicatedHostType_ = dedicatedHostType; - setParameter("DedicatedHostType", dedicatedHostType); +std::string DescribeDedicatedHostsRequest::getDedicatedHostType() const { + return dedicatedHostType_; } -std::vector DescribeDedicatedHostsRequest::getTag()const -{ - return tag_; +void DescribeDedicatedHostsRequest::setDedicatedHostType(const std::string &dedicatedHostType) { + dedicatedHostType_ = dedicatedHostType; + setParameter(std::string("DedicatedHostType"), dedicatedHostType); } -void DescribeDedicatedHostsRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Value", tagObj.value); - setParameter(tagObjStr + ".Key", tagObj.key); - } +std::vector DescribeDedicatedHostsRequest::getTag() const { + return tag_; } -std::string DescribeDedicatedHostsRequest::getNeedHostDetail()const -{ - return needHostDetail_; +void DescribeDedicatedHostsRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } -void DescribeDedicatedHostsRequest::setNeedHostDetail(const std::string& needHostDetail) -{ - needHostDetail_ = needHostDetail; - setParameter("NeedHostDetail", needHostDetail); +std::string DescribeDedicatedHostsRequest::getNeedHostDetail() const { + return needHostDetail_; } -std::string DescribeDedicatedHostsRequest::getDedicatedHostName()const -{ - return dedicatedHostName_; +void DescribeDedicatedHostsRequest::setNeedHostDetail(const std::string &needHostDetail) { + needHostDetail_ = needHostDetail; + setParameter(std::string("NeedHostDetail"), needHostDetail); } -void DescribeDedicatedHostsRequest::setDedicatedHostName(const std::string& dedicatedHostName) -{ - dedicatedHostName_ = dedicatedHostName; - setParameter("DedicatedHostName", dedicatedHostName); +std::string DescribeDedicatedHostsRequest::getDedicatedHostName() const { + return dedicatedHostName_; } -std::string DescribeDedicatedHostsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeDedicatedHostsRequest::setDedicatedHostName(const std::string &dedicatedHostName) { + dedicatedHostName_ = dedicatedHostName; + setParameter(std::string("DedicatedHostName"), dedicatedHostName); } -void DescribeDedicatedHostsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeDedicatedHostsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeDedicatedHostsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeDedicatedHostsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeDedicatedHostsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeDedicatedHostsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeDedicatedHostsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeDedicatedHostsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeDedicatedHostsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeDedicatedHostsRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeDedicatedHostsRequest::getZoneId()const -{ - return zoneId_; +void DescribeDedicatedHostsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeDedicatedHostsRequest::setZoneId(const std::string& zoneId) -{ - zoneId_ = zoneId; - setParameter("ZoneId", zoneId); +std::string DescribeDedicatedHostsRequest::getZoneId() const { + return zoneId_; } -std::string DescribeDedicatedHostsRequest::getStatus()const -{ - return status_; +void DescribeDedicatedHostsRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); } -void DescribeDedicatedHostsRequest::setStatus(const std::string& status) -{ - status_ = status; - setParameter("Status", status); +std::string DescribeDedicatedHostsRequest::getStatus() const { + return status_; +} + +void DescribeDedicatedHostsRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); } diff --git a/ecs/src/model/DescribeDemandsRequest.cc b/ecs/src/model/DescribeDemandsRequest.cc index e4015968f..52e66f3a1 100644 --- a/ecs/src/model/DescribeDemandsRequest.cc +++ b/ecs/src/model/DescribeDemandsRequest.cc @@ -1,212 +1,175 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeDemandsRequest; - -DescribeDemandsRequest::DescribeDemandsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeDemands") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDemandsRequest::~DescribeDemandsRequest() -{} - -long DescribeDemandsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeDemandsRequest; + +DescribeDemandsRequest::DescribeDemandsRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeDemands") { + setMethod(HttpRequest::Method::Post); } -void DescribeDemandsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeDemandsRequest::~DescribeDemandsRequest() {} + +long DescribeDemandsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeDemandsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeDemandsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeDemandsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeDemandsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeDemandsRequest::getRegionId()const -{ - return regionId_; +void DescribeDemandsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeDemandsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeDemandsRequest::getRegionId() const { + return regionId_; } -int DescribeDemandsRequest::getPageSize()const -{ - return pageSize_; +void DescribeDemandsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeDemandsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeDemandsRequest::getPageSize() const { + return pageSize_; } -std::string DescribeDemandsRequest::getInstanceType()const -{ - return instanceType_; +void DescribeDemandsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeDemandsRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +std::string DescribeDemandsRequest::getInstanceType() const { + return instanceType_; } -std::vector DescribeDemandsRequest::getTag()const -{ - return tag_; +void DescribeDemandsRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } -void DescribeDemandsRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Key", tagObj.key); - setParameter(tagObjStr + ".Value", tagObj.value); - } +std::vector DescribeDemandsRequest::getTag() const { + return tag_; } -std::string DescribeDemandsRequest::getInstanceChargeType()const -{ - return instanceChargeType_; +void DescribeDemandsRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } } -void DescribeDemandsRequest::setInstanceChargeType(const std::string& instanceChargeType) -{ - instanceChargeType_ = instanceChargeType; - setParameter("InstanceChargeType", instanceChargeType); +std::string DescribeDemandsRequest::getInstanceChargeType() const { + return instanceChargeType_; } -bool DescribeDemandsRequest::getDryRun()const -{ - return dryRun_; +void DescribeDemandsRequest::setInstanceChargeType(const std::string &instanceChargeType) { + instanceChargeType_ = instanceChargeType; + setParameter(std::string("InstanceChargeType"), instanceChargeType); } -void DescribeDemandsRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool DescribeDemandsRequest::getDryRun() const { + return dryRun_; } -std::string DescribeDemandsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeDemandsRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void DescribeDemandsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeDemandsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeDemandsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeDemandsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeDemandsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeDemandsRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeDemandsRequest::getInstanceTypeFamily()const -{ - return instanceTypeFamily_; +void DescribeDemandsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeDemandsRequest::setInstanceTypeFamily(const std::string& instanceTypeFamily) -{ - instanceTypeFamily_ = instanceTypeFamily; - setParameter("InstanceTypeFamily", instanceTypeFamily); +std::string DescribeDemandsRequest::getInstanceTypeFamily() const { + return instanceTypeFamily_; } -long DescribeDemandsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeDemandsRequest::setInstanceTypeFamily(const std::string &instanceTypeFamily) { + instanceTypeFamily_ = instanceTypeFamily; + setParameter(std::string("InstanceTypeFamily"), instanceTypeFamily); } -void DescribeDemandsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeDemandsRequest::getOwnerId() const { + return ownerId_; } -std::vector DescribeDemandsRequest::getDemandStatus()const -{ - return demandStatus_; +void DescribeDemandsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeDemandsRequest::setDemandStatus(const std::vector& demandStatus) -{ - demandStatus_ = demandStatus; - for(int dep1 = 0; dep1!= demandStatus.size(); dep1++) { - setParameter("DemandStatus."+ std::to_string(dep1), demandStatus.at(dep1)); - } +std::vector DescribeDemandsRequest::getDemandStatus() const { + return demandStatus_; } -std::string DescribeDemandsRequest::getDemandId()const -{ - return demandId_; +void DescribeDemandsRequest::setDemandStatus(const std::vector &demandStatus) { + demandStatus_ = demandStatus; } -void DescribeDemandsRequest::setDemandId(const std::string& demandId) -{ - demandId_ = demandId; - setParameter("DemandId", demandId); +std::string DescribeDemandsRequest::getDemandId() const { + return demandId_; } -std::string DescribeDemandsRequest::getZoneId()const -{ - return zoneId_; +void DescribeDemandsRequest::setDemandId(const std::string &demandId) { + demandId_ = demandId; + setParameter(std::string("DemandId"), demandId); } -void DescribeDemandsRequest::setZoneId(const std::string& zoneId) -{ - zoneId_ = zoneId; - setParameter("ZoneId", zoneId); +std::string DescribeDemandsRequest::getZoneId() const { + return zoneId_; } -std::string DescribeDemandsRequest::getDemandType()const -{ - return demandType_; +void DescribeDemandsRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); } -void DescribeDemandsRequest::setDemandType(const std::string& demandType) -{ - demandType_ = demandType; - setParameter("DemandType", demandType); +std::string DescribeDemandsRequest::getDemandType() const { + return demandType_; +} + +void DescribeDemandsRequest::setDemandType(const std::string &demandType) { + demandType_ = demandType; + setParameter(std::string("DemandType"), demandType); } diff --git a/ecs/src/model/DescribeDemandsResult.cc b/ecs/src/model/DescribeDemandsResult.cc index ad744313c..c933b9159 100644 --- a/ecs/src/model/DescribeDemandsResult.cc +++ b/ecs/src/model/DescribeDemandsResult.cc @@ -43,42 +43,42 @@ void DescribeDemandsResult::parse(const std::string &payload) for (auto valueDemandsDemand : allDemandsNode) { Demand demandsObject; - if(!valueDemandsDemand["ZoneId"].isNull()) - demandsObject.zoneId = valueDemandsDemand["ZoneId"].asString(); - if(!valueDemandsDemand["DemandTime"].isNull()) - demandsObject.demandTime = valueDemandsDemand["DemandTime"].asString(); - if(!valueDemandsDemand["InstanceTypeFamily"].isNull()) - demandsObject.instanceTypeFamily = valueDemandsDemand["InstanceTypeFamily"].asString(); - if(!valueDemandsDemand["DemandId"].isNull()) - demandsObject.demandId = valueDemandsDemand["DemandId"].asString(); - if(!valueDemandsDemand["DemandName"].isNull()) - demandsObject.demandName = valueDemandsDemand["DemandName"].asString(); if(!valueDemandsDemand["Comment"].isNull()) demandsObject.comment = valueDemandsDemand["Comment"].asString(); if(!valueDemandsDemand["DemandDescription"].isNull()) demandsObject.demandDescription = valueDemandsDemand["DemandDescription"].asString(); + if(!valueDemandsDemand["DemandId"].isNull()) + demandsObject.demandId = valueDemandsDemand["DemandId"].asString(); + if(!valueDemandsDemand["DemandTime"].isNull()) + demandsObject.demandTime = valueDemandsDemand["DemandTime"].asString(); if(!valueDemandsDemand["InstanceType"].isNull()) demandsObject.instanceType = valueDemandsDemand["InstanceType"].asString(); - if(!valueDemandsDemand["InstanceChargeType"].isNull()) - demandsObject.instanceChargeType = valueDemandsDemand["InstanceChargeType"].asString(); + if(!valueDemandsDemand["DemandName"].isNull()) + demandsObject.demandName = valueDemandsDemand["DemandName"].asString(); if(!valueDemandsDemand["Period"].isNull()) demandsObject.period = std::stoi(valueDemandsDemand["Period"].asString()); - if(!valueDemandsDemand["PeriodUnit"].isNull()) - demandsObject.periodUnit = valueDemandsDemand["PeriodUnit"].asString(); - if(!valueDemandsDemand["StartTime"].isNull()) - demandsObject.startTime = valueDemandsDemand["StartTime"].asString(); - if(!valueDemandsDemand["EndTime"].isNull()) - demandsObject.endTime = valueDemandsDemand["EndTime"].asString(); - if(!valueDemandsDemand["DemandStatus"].isNull()) - demandsObject.demandStatus = valueDemandsDemand["DemandStatus"].asString(); - if(!valueDemandsDemand["TotalAmount"].isNull()) - demandsObject.totalAmount = std::stoi(valueDemandsDemand["TotalAmount"].asString()); + if(!valueDemandsDemand["InstanceChargeType"].isNull()) + demandsObject.instanceChargeType = valueDemandsDemand["InstanceChargeType"].asString(); if(!valueDemandsDemand["AvailableAmount"].isNull()) demandsObject.availableAmount = std::stoi(valueDemandsDemand["AvailableAmount"].asString()); + if(!valueDemandsDemand["EndTime"].isNull()) + demandsObject.endTime = valueDemandsDemand["EndTime"].asString(); + if(!valueDemandsDemand["StartTime"].isNull()) + demandsObject.startTime = valueDemandsDemand["StartTime"].asString(); + if(!valueDemandsDemand["PeriodUnit"].isNull()) + demandsObject.periodUnit = valueDemandsDemand["PeriodUnit"].asString(); + if(!valueDemandsDemand["ZoneId"].isNull()) + demandsObject.zoneId = valueDemandsDemand["ZoneId"].asString(); if(!valueDemandsDemand["UsedAmount"].isNull()) demandsObject.usedAmount = std::stoi(valueDemandsDemand["UsedAmount"].asString()); + if(!valueDemandsDemand["TotalAmount"].isNull()) + demandsObject.totalAmount = std::stoi(valueDemandsDemand["TotalAmount"].asString()); if(!valueDemandsDemand["DeliveringAmount"].isNull()) demandsObject.deliveringAmount = std::stoi(valueDemandsDemand["DeliveringAmount"].asString()); + if(!valueDemandsDemand["InstanceTypeFamily"].isNull()) + demandsObject.instanceTypeFamily = valueDemandsDemand["InstanceTypeFamily"].asString(); + if(!valueDemandsDemand["DemandStatus"].isNull()) + demandsObject.demandStatus = valueDemandsDemand["DemandStatus"].asString(); auto allSupplyInfosNode = valueDemandsDemand["SupplyInfos"]["SupplyInfo"]; for (auto valueDemandsDemandSupplyInfosSupplyInfo : allSupplyInfosNode) { @@ -95,12 +95,12 @@ void DescribeDemandsResult::parse(const std::string &payload) } demands_.push_back(demandsObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); if(!value["RegionId"].isNull()) regionId_ = value["RegionId"].asString(); diff --git a/ecs/src/model/DescribeDeploymentSetSupportedInstanceTypeFamilyRequest.cc b/ecs/src/model/DescribeDeploymentSetSupportedInstanceTypeFamilyRequest.cc index 1f43ce9f2..b675b52d0 100644 --- a/ecs/src/model/DescribeDeploymentSetSupportedInstanceTypeFamilyRequest.cc +++ b/ecs/src/model/DescribeDeploymentSetSupportedInstanceTypeFamilyRequest.cc @@ -1,84 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeDeploymentSetSupportedInstanceTypeFamilyRequest; - -DescribeDeploymentSetSupportedInstanceTypeFamilyRequest::DescribeDeploymentSetSupportedInstanceTypeFamilyRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeDeploymentSetSupportedInstanceTypeFamily") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDeploymentSetSupportedInstanceTypeFamilyRequest::~DescribeDeploymentSetSupportedInstanceTypeFamilyRequest() -{} - -long DescribeDeploymentSetSupportedInstanceTypeFamilyRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeDeploymentSetSupportedInstanceTypeFamilyRequest; + +DescribeDeploymentSetSupportedInstanceTypeFamilyRequest::DescribeDeploymentSetSupportedInstanceTypeFamilyRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeDeploymentSetSupportedInstanceTypeFamily") { + setMethod(HttpRequest::Method::Post); } -void DescribeDeploymentSetSupportedInstanceTypeFamilyRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeDeploymentSetSupportedInstanceTypeFamilyRequest::~DescribeDeploymentSetSupportedInstanceTypeFamilyRequest() {} + +long DescribeDeploymentSetSupportedInstanceTypeFamilyRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeDeploymentSetSupportedInstanceTypeFamilyRequest::getRegionId()const -{ - return regionId_; +void DescribeDeploymentSetSupportedInstanceTypeFamilyRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeDeploymentSetSupportedInstanceTypeFamilyRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeDeploymentSetSupportedInstanceTypeFamilyRequest::getRegionId() const { + return regionId_; } -std::string DescribeDeploymentSetSupportedInstanceTypeFamilyRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeDeploymentSetSupportedInstanceTypeFamilyRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeDeploymentSetSupportedInstanceTypeFamilyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeDeploymentSetSupportedInstanceTypeFamilyRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeDeploymentSetSupportedInstanceTypeFamilyRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeDeploymentSetSupportedInstanceTypeFamilyRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeDeploymentSetSupportedInstanceTypeFamilyRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeDeploymentSetSupportedInstanceTypeFamilyRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeDeploymentSetSupportedInstanceTypeFamilyRequest::getOwnerId()const -{ - return ownerId_; +void DescribeDeploymentSetSupportedInstanceTypeFamilyRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeDeploymentSetSupportedInstanceTypeFamilyRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeDeploymentSetSupportedInstanceTypeFamilyRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeDeploymentSetSupportedInstanceTypeFamilyRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/DescribeDeploymentSetsRequest.cc b/ecs/src/model/DescribeDeploymentSetsRequest.cc index cd01a7491..07fcacea9 100644 --- a/ecs/src/model/DescribeDeploymentSetsRequest.cc +++ b/ecs/src/model/DescribeDeploymentSetsRequest.cc @@ -1,172 +1,144 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeDeploymentSetsRequest; - -DescribeDeploymentSetsRequest::DescribeDeploymentSetsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeDeploymentSets") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDeploymentSetsRequest::~DescribeDeploymentSetsRequest() -{} - -long DescribeDeploymentSetsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeDeploymentSetsRequest; + +DescribeDeploymentSetsRequest::DescribeDeploymentSetsRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeDeploymentSets") { + setMethod(HttpRequest::Method::Post); } -void DescribeDeploymentSetsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeDeploymentSetsRequest::~DescribeDeploymentSetsRequest() {} + +long DescribeDeploymentSetsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeDeploymentSetsRequest::getNetworkType()const -{ - return networkType_; +void DescribeDeploymentSetsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeDeploymentSetsRequest::setNetworkType(const std::string& networkType) -{ - networkType_ = networkType; - setParameter("NetworkType", networkType); +std::string DescribeDeploymentSetsRequest::getNetworkType() const { + return networkType_; } -int DescribeDeploymentSetsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeDeploymentSetsRequest::setNetworkType(const std::string &networkType) { + networkType_ = networkType; + setParameter(std::string("NetworkType"), networkType); } -void DescribeDeploymentSetsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeDeploymentSetsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeDeploymentSetsRequest::getDeploymentSetIds()const -{ - return deploymentSetIds_; +void DescribeDeploymentSetsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeDeploymentSetsRequest::setDeploymentSetIds(const std::string& deploymentSetIds) -{ - deploymentSetIds_ = deploymentSetIds; - setParameter("DeploymentSetIds", deploymentSetIds); +std::string DescribeDeploymentSetsRequest::getDeploymentSetIds() const { + return deploymentSetIds_; } -std::string DescribeDeploymentSetsRequest::getRegionId()const -{ - return regionId_; +void DescribeDeploymentSetsRequest::setDeploymentSetIds(const std::string &deploymentSetIds) { + deploymentSetIds_ = deploymentSetIds; + setParameter(std::string("DeploymentSetIds"), deploymentSetIds); } -void DescribeDeploymentSetsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeDeploymentSetsRequest::getRegionId() const { + return regionId_; } -int DescribeDeploymentSetsRequest::getPageSize()const -{ - return pageSize_; +void DescribeDeploymentSetsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeDeploymentSetsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeDeploymentSetsRequest::getPageSize() const { + return pageSize_; } -std::string DescribeDeploymentSetsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeDeploymentSetsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeDeploymentSetsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeDeploymentSetsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeDeploymentSetsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeDeploymentSetsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeDeploymentSetsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeDeploymentSetsRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeDeploymentSetsRequest::getDeploymentSetName()const -{ - return deploymentSetName_; +void DescribeDeploymentSetsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeDeploymentSetsRequest::setDeploymentSetName(const std::string& deploymentSetName) -{ - deploymentSetName_ = deploymentSetName; - setParameter("DeploymentSetName", deploymentSetName); +std::string DescribeDeploymentSetsRequest::getDeploymentSetName() const { + return deploymentSetName_; } -long DescribeDeploymentSetsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeDeploymentSetsRequest::setDeploymentSetName(const std::string &deploymentSetName) { + deploymentSetName_ = deploymentSetName; + setParameter(std::string("DeploymentSetName"), deploymentSetName); } -void DescribeDeploymentSetsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeDeploymentSetsRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeDeploymentSetsRequest::getGranularity()const -{ - return granularity_; +void DescribeDeploymentSetsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeDeploymentSetsRequest::setGranularity(const std::string& granularity) -{ - granularity_ = granularity; - setParameter("Granularity", granularity); +std::string DescribeDeploymentSetsRequest::getGranularity() const { + return granularity_; } -std::string DescribeDeploymentSetsRequest::getDomain()const -{ - return domain_; +void DescribeDeploymentSetsRequest::setGranularity(const std::string &granularity) { + granularity_ = granularity; + setParameter(std::string("Granularity"), granularity); } -void DescribeDeploymentSetsRequest::setDomain(const std::string& domain) -{ - domain_ = domain; - setParameter("Domain", domain); +std::string DescribeDeploymentSetsRequest::getDomain() const { + return domain_; } -std::string DescribeDeploymentSetsRequest::getStrategy()const -{ - return strategy_; +void DescribeDeploymentSetsRequest::setDomain(const std::string &domain) { + domain_ = domain; + setParameter(std::string("Domain"), domain); } -void DescribeDeploymentSetsRequest::setStrategy(const std::string& strategy) -{ - strategy_ = strategy; - setParameter("Strategy", strategy); +std::string DescribeDeploymentSetsRequest::getStrategy() const { + return strategy_; +} + +void DescribeDeploymentSetsRequest::setStrategy(const std::string &strategy) { + strategy_ = strategy; + setParameter(std::string("Strategy"), strategy); } diff --git a/ecs/src/model/DescribeDeploymentSetsResult.cc b/ecs/src/model/DescribeDeploymentSetsResult.cc index 24476168e..a618130ac 100644 --- a/ecs/src/model/DescribeDeploymentSetsResult.cc +++ b/ecs/src/model/DescribeDeploymentSetsResult.cc @@ -43,39 +43,39 @@ void DescribeDeploymentSetsResult::parse(const std::string &payload) for (auto valueDeploymentSetsDeploymentSet : allDeploymentSetsNode) { DeploymentSet deploymentSetsObject; - if(!valueDeploymentSetsDeploymentSet["DeploymentSetId"].isNull()) - deploymentSetsObject.deploymentSetId = valueDeploymentSetsDeploymentSet["DeploymentSetId"].asString(); - if(!valueDeploymentSetsDeploymentSet["DeploymentSetDescription"].isNull()) - deploymentSetsObject.deploymentSetDescription = valueDeploymentSetsDeploymentSet["DeploymentSetDescription"].asString(); - if(!valueDeploymentSetsDeploymentSet["DeploymentSetName"].isNull()) - deploymentSetsObject.deploymentSetName = valueDeploymentSetsDeploymentSet["DeploymentSetName"].asString(); - if(!valueDeploymentSetsDeploymentSet["Strategy"].isNull()) - deploymentSetsObject.strategy = valueDeploymentSetsDeploymentSet["Strategy"].asString(); - if(!valueDeploymentSetsDeploymentSet["DeploymentStrategy"].isNull()) - deploymentSetsObject.deploymentStrategy = valueDeploymentSetsDeploymentSet["DeploymentStrategy"].asString(); - if(!valueDeploymentSetsDeploymentSet["Domain"].isNull()) - deploymentSetsObject.domain = valueDeploymentSetsDeploymentSet["Domain"].asString(); - if(!valueDeploymentSetsDeploymentSet["Granularity"].isNull()) - deploymentSetsObject.granularity = valueDeploymentSetsDeploymentSet["Granularity"].asString(); - if(!valueDeploymentSetsDeploymentSet["GroupCount"].isNull()) - deploymentSetsObject.groupCount = std::stoi(valueDeploymentSetsDeploymentSet["GroupCount"].asString()); - if(!valueDeploymentSetsDeploymentSet["InstanceAmount"].isNull()) - deploymentSetsObject.instanceAmount = std::stoi(valueDeploymentSetsDeploymentSet["InstanceAmount"].asString()); if(!valueDeploymentSetsDeploymentSet["CreationTime"].isNull()) deploymentSetsObject.creationTime = valueDeploymentSetsDeploymentSet["CreationTime"].asString(); + if(!valueDeploymentSetsDeploymentSet["Strategy"].isNull()) + deploymentSetsObject.strategy = valueDeploymentSetsDeploymentSet["Strategy"].asString(); + if(!valueDeploymentSetsDeploymentSet["DeploymentSetId"].isNull()) + deploymentSetsObject.deploymentSetId = valueDeploymentSetsDeploymentSet["DeploymentSetId"].asString(); + if(!valueDeploymentSetsDeploymentSet["DeploymentStrategy"].isNull()) + deploymentSetsObject.deploymentStrategy = valueDeploymentSetsDeploymentSet["DeploymentStrategy"].asString(); + if(!valueDeploymentSetsDeploymentSet["DeploymentSetDescription"].isNull()) + deploymentSetsObject.deploymentSetDescription = valueDeploymentSetsDeploymentSet["DeploymentSetDescription"].asString(); + if(!valueDeploymentSetsDeploymentSet["Domain"].isNull()) + deploymentSetsObject.domain = valueDeploymentSetsDeploymentSet["Domain"].asString(); + if(!valueDeploymentSetsDeploymentSet["GroupCount"].isNull()) + deploymentSetsObject.groupCount = std::stoi(valueDeploymentSetsDeploymentSet["GroupCount"].asString()); + if(!valueDeploymentSetsDeploymentSet["Granularity"].isNull()) + deploymentSetsObject.granularity = valueDeploymentSetsDeploymentSet["Granularity"].asString(); + if(!valueDeploymentSetsDeploymentSet["DeploymentSetName"].isNull()) + deploymentSetsObject.deploymentSetName = valueDeploymentSetsDeploymentSet["DeploymentSetName"].asString(); + if(!valueDeploymentSetsDeploymentSet["InstanceAmount"].isNull()) + deploymentSetsObject.instanceAmount = std::stoi(valueDeploymentSetsDeploymentSet["InstanceAmount"].asString()); auto allInstanceIds = value["InstanceIds"]["InstanceId"]; for (auto value : allInstanceIds) deploymentSetsObject.instanceIds.push_back(value.asString()); deploymentSets_.push_back(deploymentSetsObject); } - if(!value["RegionId"].isNull()) - regionId_ = value["RegionId"].asString(); - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); } diff --git a/ecs/src/model/DescribeDiskMonitorDataRequest.cc b/ecs/src/model/DescribeDiskMonitorDataRequest.cc index 027bb391c..59df4a531 100644 --- a/ecs/src/model/DescribeDiskMonitorDataRequest.cc +++ b/ecs/src/model/DescribeDiskMonitorDataRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeDiskMonitorDataRequest; - -DescribeDiskMonitorDataRequest::DescribeDiskMonitorDataRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeDiskMonitorData") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDiskMonitorDataRequest::~DescribeDiskMonitorDataRequest() -{} - -long DescribeDiskMonitorDataRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeDiskMonitorDataRequest; + +DescribeDiskMonitorDataRequest::DescribeDiskMonitorDataRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeDiskMonitorData") { + setMethod(HttpRequest::Method::Post); } -void DescribeDiskMonitorDataRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeDiskMonitorDataRequest::~DescribeDiskMonitorDataRequest() {} + +long DescribeDiskMonitorDataRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeDiskMonitorDataRequest::getStartTime()const -{ - return startTime_; +void DescribeDiskMonitorDataRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeDiskMonitorDataRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string DescribeDiskMonitorDataRequest::getStartTime() const { + return startTime_; } -std::string DescribeDiskMonitorDataRequest::getDiskId()const -{ - return diskId_; +void DescribeDiskMonitorDataRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void DescribeDiskMonitorDataRequest::setDiskId(const std::string& diskId) -{ - diskId_ = diskId; - setParameter("DiskId", diskId); +std::string DescribeDiskMonitorDataRequest::getDiskId() const { + return diskId_; } -int DescribeDiskMonitorDataRequest::getPeriod()const -{ - return period_; +void DescribeDiskMonitorDataRequest::setDiskId(const std::string &diskId) { + diskId_ = diskId; + setParameter(std::string("DiskId"), diskId); } -void DescribeDiskMonitorDataRequest::setPeriod(int period) -{ - period_ = period; - setParameter("Period", std::to_string(period)); +int DescribeDiskMonitorDataRequest::getPeriod() const { + return period_; } -std::string DescribeDiskMonitorDataRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeDiskMonitorDataRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); } -void DescribeDiskMonitorDataRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeDiskMonitorDataRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeDiskMonitorDataRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeDiskMonitorDataRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeDiskMonitorDataRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeDiskMonitorDataRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeDiskMonitorDataRequest::getEndTime()const -{ - return endTime_; +void DescribeDiskMonitorDataRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeDiskMonitorDataRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +std::string DescribeDiskMonitorDataRequest::getEndTime() const { + return endTime_; } -long DescribeDiskMonitorDataRequest::getOwnerId()const -{ - return ownerId_; +void DescribeDiskMonitorDataRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void DescribeDiskMonitorDataRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeDiskMonitorDataRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeDiskMonitorDataRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/DescribeDiskMonitorDataResult.cc b/ecs/src/model/DescribeDiskMonitorDataResult.cc index 0d3e08c34..4ed5cd317 100644 --- a/ecs/src/model/DescribeDiskMonitorDataResult.cc +++ b/ecs/src/model/DescribeDiskMonitorDataResult.cc @@ -43,26 +43,26 @@ void DescribeDiskMonitorDataResult::parse(const std::string &payload) for (auto valueMonitorDataDiskMonitorData : allMonitorDataNode) { DiskMonitorData monitorDataObject; - if(!valueMonitorDataDiskMonitorData["DiskId"].isNull()) - monitorDataObject.diskId = valueMonitorDataDiskMonitorData["DiskId"].asString(); - if(!valueMonitorDataDiskMonitorData["IOPSRead"].isNull()) - monitorDataObject.iOPSRead = std::stoi(valueMonitorDataDiskMonitorData["IOPSRead"].asString()); - if(!valueMonitorDataDiskMonitorData["IOPSWrite"].isNull()) - monitorDataObject.iOPSWrite = std::stoi(valueMonitorDataDiskMonitorData["IOPSWrite"].asString()); - if(!valueMonitorDataDiskMonitorData["IOPSTotal"].isNull()) - monitorDataObject.iOPSTotal = std::stoi(valueMonitorDataDiskMonitorData["IOPSTotal"].asString()); if(!valueMonitorDataDiskMonitorData["BPSRead"].isNull()) monitorDataObject.bPSRead = std::stoi(valueMonitorDataDiskMonitorData["BPSRead"].asString()); - if(!valueMonitorDataDiskMonitorData["BPSWrite"].isNull()) - monitorDataObject.bPSWrite = std::stoi(valueMonitorDataDiskMonitorData["BPSWrite"].asString()); - if(!valueMonitorDataDiskMonitorData["BPSTotal"].isNull()) - monitorDataObject.bPSTotal = std::stoi(valueMonitorDataDiskMonitorData["BPSTotal"].asString()); + if(!valueMonitorDataDiskMonitorData["IOPSRead"].isNull()) + monitorDataObject.iOPSRead = std::stoi(valueMonitorDataDiskMonitorData["IOPSRead"].asString()); if(!valueMonitorDataDiskMonitorData["LatencyRead"].isNull()) monitorDataObject.latencyRead = std::stoi(valueMonitorDataDiskMonitorData["LatencyRead"].asString()); - if(!valueMonitorDataDiskMonitorData["LatencyWrite"].isNull()) - monitorDataObject.latencyWrite = std::stoi(valueMonitorDataDiskMonitorData["LatencyWrite"].asString()); + if(!valueMonitorDataDiskMonitorData["BPSTotal"].isNull()) + monitorDataObject.bPSTotal = std::stoi(valueMonitorDataDiskMonitorData["BPSTotal"].asString()); + if(!valueMonitorDataDiskMonitorData["IOPSTotal"].isNull()) + monitorDataObject.iOPSTotal = std::stoi(valueMonitorDataDiskMonitorData["IOPSTotal"].asString()); if(!valueMonitorDataDiskMonitorData["TimeStamp"].isNull()) monitorDataObject.timeStamp = valueMonitorDataDiskMonitorData["TimeStamp"].asString(); + if(!valueMonitorDataDiskMonitorData["LatencyWrite"].isNull()) + monitorDataObject.latencyWrite = std::stoi(valueMonitorDataDiskMonitorData["LatencyWrite"].asString()); + if(!valueMonitorDataDiskMonitorData["IOPSWrite"].isNull()) + monitorDataObject.iOPSWrite = std::stoi(valueMonitorDataDiskMonitorData["IOPSWrite"].asString()); + if(!valueMonitorDataDiskMonitorData["DiskId"].isNull()) + monitorDataObject.diskId = valueMonitorDataDiskMonitorData["DiskId"].asString(); + if(!valueMonitorDataDiskMonitorData["BPSWrite"].isNull()) + monitorDataObject.bPSWrite = std::stoi(valueMonitorDataDiskMonitorData["BPSWrite"].asString()); monitorData_.push_back(monitorDataObject); } if(!value["TotalCount"].isNull()) diff --git a/ecs/src/model/DescribeDiskReplicaPairsRequest.cc b/ecs/src/model/DescribeDiskReplicaPairsRequest.cc index 53b0d3a56..8ae12bd2f 100644 --- a/ecs/src/model/DescribeDiskReplicaPairsRequest.cc +++ b/ecs/src/model/DescribeDiskReplicaPairsRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeDiskReplicaPairsRequest; - -DescribeDiskReplicaPairsRequest::DescribeDiskReplicaPairsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeDiskReplicaPairs") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDiskReplicaPairsRequest::~DescribeDiskReplicaPairsRequest() -{} - -long DescribeDiskReplicaPairsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeDiskReplicaPairsRequest; + +DescribeDiskReplicaPairsRequest::DescribeDiskReplicaPairsRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeDiskReplicaPairs") { + setMethod(HttpRequest::Method::Post); } -void DescribeDiskReplicaPairsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeDiskReplicaPairsRequest::~DescribeDiskReplicaPairsRequest() {} + +long DescribeDiskReplicaPairsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeDiskReplicaPairsRequest::getRegionId()const -{ - return regionId_; +void DescribeDiskReplicaPairsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeDiskReplicaPairsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeDiskReplicaPairsRequest::getRegionId() const { + return regionId_; } -std::string DescribeDiskReplicaPairsRequest::getNextToken()const -{ - return nextToken_; +void DescribeDiskReplicaPairsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeDiskReplicaPairsRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +std::string DescribeDiskReplicaPairsRequest::getNextToken() const { + return nextToken_; } -std::string DescribeDiskReplicaPairsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeDiskReplicaPairsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } -void DescribeDiskReplicaPairsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeDiskReplicaPairsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeDiskReplicaPairsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeDiskReplicaPairsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeDiskReplicaPairsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeDiskReplicaPairsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeDiskReplicaPairsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeDiskReplicaPairsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeDiskReplicaPairsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeDiskReplicaPairsRequest::getOwnerId() const { + return ownerId_; } -int DescribeDiskReplicaPairsRequest::getMaxResults()const -{ - return maxResults_; +void DescribeDiskReplicaPairsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeDiskReplicaPairsRequest::setMaxResults(int maxResults) -{ - maxResults_ = maxResults; - setParameter("MaxResults", std::to_string(maxResults)); +int DescribeDiskReplicaPairsRequest::getMaxResults() const { + return maxResults_; +} + +void DescribeDiskReplicaPairsRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); } diff --git a/ecs/src/model/DescribeDiskReplicaPairsResult.cc b/ecs/src/model/DescribeDiskReplicaPairsResult.cc index ff94623aa..d7d0dfa3e 100644 --- a/ecs/src/model/DescribeDiskReplicaPairsResult.cc +++ b/ecs/src/model/DescribeDiskReplicaPairsResult.cc @@ -43,22 +43,22 @@ void DescribeDiskReplicaPairsResult::parse(const std::string &payload) for (auto valueDiskReplicaPairsDiskReplicaPair : allDiskReplicaPairsNode) { DiskReplicaPair diskReplicaPairsObject; - if(!valueDiskReplicaPairsDiskReplicaPair["ReplicaPairId"].isNull()) - diskReplicaPairsObject.replicaPairId = valueDiskReplicaPairsDiskReplicaPair["ReplicaPairId"].asString(); - if(!valueDiskReplicaPairsDiskReplicaPair["SourceRegion"].isNull()) - diskReplicaPairsObject.sourceRegion = valueDiskReplicaPairsDiskReplicaPair["SourceRegion"].asString(); - if(!valueDiskReplicaPairsDiskReplicaPair["SourceDiskId"].isNull()) - diskReplicaPairsObject.sourceDiskId = valueDiskReplicaPairsDiskReplicaPair["SourceDiskId"].asString(); - if(!valueDiskReplicaPairsDiskReplicaPair["DestinationRegion"].isNull()) - diskReplicaPairsObject.destinationRegion = valueDiskReplicaPairsDiskReplicaPair["DestinationRegion"].asString(); - if(!valueDiskReplicaPairsDiskReplicaPair["DestinationDiskId"].isNull()) - diskReplicaPairsObject.destinationDiskId = valueDiskReplicaPairsDiskReplicaPair["DestinationDiskId"].asString(); - if(!valueDiskReplicaPairsDiskReplicaPair["PairName"].isNull()) - diskReplicaPairsObject.pairName = valueDiskReplicaPairsDiskReplicaPair["PairName"].asString(); - if(!valueDiskReplicaPairsDiskReplicaPair["Description"].isNull()) - diskReplicaPairsObject.description = valueDiskReplicaPairsDiskReplicaPair["Description"].asString(); if(!valueDiskReplicaPairsDiskReplicaPair["Status"].isNull()) diskReplicaPairsObject.status = valueDiskReplicaPairsDiskReplicaPair["Status"].asString(); + if(!valueDiskReplicaPairsDiskReplicaPair["SourceDiskId"].isNull()) + diskReplicaPairsObject.sourceDiskId = valueDiskReplicaPairsDiskReplicaPair["SourceDiskId"].asString(); + if(!valueDiskReplicaPairsDiskReplicaPair["ReplicaPairId"].isNull()) + diskReplicaPairsObject.replicaPairId = valueDiskReplicaPairsDiskReplicaPair["ReplicaPairId"].asString(); + if(!valueDiskReplicaPairsDiskReplicaPair["Description"].isNull()) + diskReplicaPairsObject.description = valueDiskReplicaPairsDiskReplicaPair["Description"].asString(); + if(!valueDiskReplicaPairsDiskReplicaPair["DestinationRegion"].isNull()) + diskReplicaPairsObject.destinationRegion = valueDiskReplicaPairsDiskReplicaPair["DestinationRegion"].asString(); + if(!valueDiskReplicaPairsDiskReplicaPair["PairName"].isNull()) + diskReplicaPairsObject.pairName = valueDiskReplicaPairsDiskReplicaPair["PairName"].asString(); + if(!valueDiskReplicaPairsDiskReplicaPair["SourceRegion"].isNull()) + diskReplicaPairsObject.sourceRegion = valueDiskReplicaPairsDiskReplicaPair["SourceRegion"].asString(); + if(!valueDiskReplicaPairsDiskReplicaPair["DestinationDiskId"].isNull()) + diskReplicaPairsObject.destinationDiskId = valueDiskReplicaPairsDiskReplicaPair["DestinationDiskId"].asString(); diskReplicaPairs_.push_back(diskReplicaPairsObject); } if(!value["NextToken"].isNull()) diff --git a/ecs/src/model/DescribeDisksFullStatusRequest.cc b/ecs/src/model/DescribeDisksFullStatusRequest.cc index 2d297cb81..68197693d 100644 --- a/ecs/src/model/DescribeDisksFullStatusRequest.cc +++ b/ecs/src/model/DescribeDisksFullStatusRequest.cc @@ -1,187 +1,151 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeDisksFullStatusRequest; - -DescribeDisksFullStatusRequest::DescribeDisksFullStatusRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeDisksFullStatus") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDisksFullStatusRequest::~DescribeDisksFullStatusRequest() -{} - -std::vector DescribeDisksFullStatusRequest::getEventId()const -{ - return eventId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeDisksFullStatusRequest; + +DescribeDisksFullStatusRequest::DescribeDisksFullStatusRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeDisksFullStatus") { + setMethod(HttpRequest::Method::Post); } -void DescribeDisksFullStatusRequest::setEventId(const std::vector& eventId) -{ - eventId_ = eventId; - for(int dep1 = 0; dep1!= eventId.size(); dep1++) { - setParameter("EventId."+ std::to_string(dep1), eventId.at(dep1)); - } +DescribeDisksFullStatusRequest::~DescribeDisksFullStatusRequest() {} + +std::vector DescribeDisksFullStatusRequest::getEventId() const { + return eventId_; } -long DescribeDisksFullStatusRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void DescribeDisksFullStatusRequest::setEventId(const std::vector &eventId) { + eventId_ = eventId; } -void DescribeDisksFullStatusRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long DescribeDisksFullStatusRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeDisksFullStatusRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeDisksFullStatusRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeDisksFullStatusRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeDisksFullStatusRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeDisksFullStatusRequest::getEventTimeStart()const -{ - return eventTimeStart_; +void DescribeDisksFullStatusRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeDisksFullStatusRequest::setEventTimeStart(const std::string& eventTimeStart) -{ - eventTimeStart_ = eventTimeStart; - setParameter("EventTimeStart", eventTimeStart); +std::string DescribeDisksFullStatusRequest::getEventTimeStart() const { + return eventTimeStart_; } -std::string DescribeDisksFullStatusRequest::getRegionId()const -{ - return regionId_; +void DescribeDisksFullStatusRequest::setEventTimeStart(const std::string &eventTimeStart) { + eventTimeStart_ = eventTimeStart; + setParameter(std::string("EventTime.Start"), eventTimeStart); } -void DescribeDisksFullStatusRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeDisksFullStatusRequest::getRegionId() const { + return regionId_; } -int DescribeDisksFullStatusRequest::getPageSize()const -{ - return pageSize_; +void DescribeDisksFullStatusRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeDisksFullStatusRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeDisksFullStatusRequest::getPageSize() const { + return pageSize_; } -std::vector DescribeDisksFullStatusRequest::getDiskId()const -{ - return diskId_; +void DescribeDisksFullStatusRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeDisksFullStatusRequest::setDiskId(const std::vector& diskId) -{ - diskId_ = diskId; - for(int dep1 = 0; dep1!= diskId.size(); dep1++) { - setParameter("DiskId."+ std::to_string(dep1), diskId.at(dep1)); - } +std::vector DescribeDisksFullStatusRequest::getDiskId() const { + return diskId_; } -std::string DescribeDisksFullStatusRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeDisksFullStatusRequest::setDiskId(const std::vector &diskId) { + diskId_ = diskId; } -void DescribeDisksFullStatusRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeDisksFullStatusRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeDisksFullStatusRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeDisksFullStatusRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeDisksFullStatusRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeDisksFullStatusRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeDisksFullStatusRequest::getOwnerId()const -{ - return ownerId_; +void DescribeDisksFullStatusRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeDisksFullStatusRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeDisksFullStatusRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeDisksFullStatusRequest::getEventTimeEnd()const -{ - return eventTimeEnd_; +void DescribeDisksFullStatusRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeDisksFullStatusRequest::setEventTimeEnd(const std::string& eventTimeEnd) -{ - eventTimeEnd_ = eventTimeEnd; - setParameter("EventTimeEnd", eventTimeEnd); +std::string DescribeDisksFullStatusRequest::getEventTimeEnd() const { + return eventTimeEnd_; } -std::string DescribeDisksFullStatusRequest::getHealthStatus()const -{ - return healthStatus_; +void DescribeDisksFullStatusRequest::setEventTimeEnd(const std::string &eventTimeEnd) { + eventTimeEnd_ = eventTimeEnd; + setParameter(std::string("EventTime.End"), eventTimeEnd); } -void DescribeDisksFullStatusRequest::setHealthStatus(const std::string& healthStatus) -{ - healthStatus_ = healthStatus; - setParameter("HealthStatus", healthStatus); +std::string DescribeDisksFullStatusRequest::getHealthStatus() const { + return healthStatus_; } -std::string DescribeDisksFullStatusRequest::getEventType()const -{ - return eventType_; +void DescribeDisksFullStatusRequest::setHealthStatus(const std::string &healthStatus) { + healthStatus_ = healthStatus; + setParameter(std::string("HealthStatus"), healthStatus); } -void DescribeDisksFullStatusRequest::setEventType(const std::string& eventType) -{ - eventType_ = eventType; - setParameter("EventType", eventType); +std::string DescribeDisksFullStatusRequest::getEventType() const { + return eventType_; } -std::string DescribeDisksFullStatusRequest::getStatus()const -{ - return status_; +void DescribeDisksFullStatusRequest::setEventType(const std::string &eventType) { + eventType_ = eventType; + setParameter(std::string("EventType"), eventType); } -void DescribeDisksFullStatusRequest::setStatus(const std::string& status) -{ - status_ = status; - setParameter("Status", status); +std::string DescribeDisksFullStatusRequest::getStatus() const { + return status_; +} + +void DescribeDisksFullStatusRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); } diff --git a/ecs/src/model/DescribeDisksFullStatusResult.cc b/ecs/src/model/DescribeDisksFullStatusResult.cc index 8ce64015e..635dc5dd3 100644 --- a/ecs/src/model/DescribeDisksFullStatusResult.cc +++ b/ecs/src/model/DescribeDisksFullStatusResult.cc @@ -55,37 +55,37 @@ void DescribeDisksFullStatusResult::parse(const std::string &payload) DiskFullStatusType::DiskEventType diskEventSetObject; if(!valueDiskFullStatusSetDiskFullStatusTypeDiskEventSetDiskEventType["EventId"].isNull()) diskEventSetObject.eventId = valueDiskFullStatusSetDiskFullStatusTypeDiskEventSetDiskEventType["EventId"].asString(); - if(!valueDiskFullStatusSetDiskFullStatusTypeDiskEventSetDiskEventType["EventTime"].isNull()) - diskEventSetObject.eventTime = valueDiskFullStatusSetDiskFullStatusTypeDiskEventSetDiskEventType["EventTime"].asString(); if(!valueDiskFullStatusSetDiskFullStatusTypeDiskEventSetDiskEventType["EventEndTime"].isNull()) diskEventSetObject.eventEndTime = valueDiskFullStatusSetDiskFullStatusTypeDiskEventSetDiskEventType["EventEndTime"].asString(); + if(!valueDiskFullStatusSetDiskFullStatusTypeDiskEventSetDiskEventType["EventTime"].isNull()) + diskEventSetObject.eventTime = valueDiskFullStatusSetDiskFullStatusTypeDiskEventSetDiskEventType["EventTime"].asString(); if(!valueDiskFullStatusSetDiskFullStatusTypeDiskEventSetDiskEventType["ImpactLevel"].isNull()) diskEventSetObject.impactLevel = valueDiskFullStatusSetDiskFullStatusTypeDiskEventSetDiskEventType["ImpactLevel"].asString(); auto eventTypeNode = value["EventType"]; - if(!eventTypeNode["Code"].isNull()) - diskEventSetObject.eventType.code = std::stoi(eventTypeNode["Code"].asString()); if(!eventTypeNode["Name"].isNull()) diskEventSetObject.eventType.name = eventTypeNode["Name"].asString(); + if(!eventTypeNode["Code"].isNull()) + diskEventSetObject.eventType.code = std::stoi(eventTypeNode["Code"].asString()); diskFullStatusSetObject.diskEventSet.push_back(diskEventSetObject); } auto statusNode = value["Status"]; - if(!statusNode["Code"].isNull()) - diskFullStatusSetObject.status.code = std::stoi(statusNode["Code"].asString()); if(!statusNode["Name"].isNull()) diskFullStatusSetObject.status.name = statusNode["Name"].asString(); + if(!statusNode["Code"].isNull()) + diskFullStatusSetObject.status.code = std::stoi(statusNode["Code"].asString()); auto healthStatusNode = value["HealthStatus"]; - if(!healthStatusNode["Code"].isNull()) - diskFullStatusSetObject.healthStatus.code = std::stoi(healthStatusNode["Code"].asString()); if(!healthStatusNode["Name"].isNull()) diskFullStatusSetObject.healthStatus.name = healthStatusNode["Name"].asString(); + if(!healthStatusNode["Code"].isNull()) + diskFullStatusSetObject.healthStatus.code = std::stoi(healthStatusNode["Code"].asString()); diskFullStatusSet_.push_back(diskFullStatusSetObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/ecs/src/model/DescribeDisksRequest.cc b/ecs/src/model/DescribeDisksRequest.cc index bbed6bb9c..125de0104 100644 --- a/ecs/src/model/DescribeDisksRequest.cc +++ b/ecs/src/model/DescribeDisksRequest.cc @@ -1,443 +1,364 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeDisksRequest; - -DescribeDisksRequest::DescribeDisksRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeDisks") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDisksRequest::~DescribeDisksRequest() -{} - -long DescribeDisksRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeDisksRequest; + +DescribeDisksRequest::DescribeDisksRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeDisks") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDisksRequest::~DescribeDisksRequest() {} + +long DescribeDisksRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -void DescribeDisksRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +void DescribeDisksRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -std::string DescribeDisksRequest::getFilter2Value()const -{ - return filter2Value_; +std::string DescribeDisksRequest::getFilter2Value() const { + return filter2Value_; } -void DescribeDisksRequest::setFilter2Value(const std::string& filter2Value) -{ - filter2Value_ = filter2Value; - setParameter("Filter2Value", filter2Value); +void DescribeDisksRequest::setFilter2Value(const std::string &filter2Value) { + filter2Value_ = filter2Value; + setParameter(std::string("Filter.2.Value"), filter2Value); } -std::string DescribeDisksRequest::getAutoSnapshotPolicyId()const -{ - return autoSnapshotPolicyId_; +std::string DescribeDisksRequest::getAutoSnapshotPolicyId() const { + return autoSnapshotPolicyId_; } -void DescribeDisksRequest::setAutoSnapshotPolicyId(const std::string& autoSnapshotPolicyId) -{ - autoSnapshotPolicyId_ = autoSnapshotPolicyId; - setParameter("AutoSnapshotPolicyId", autoSnapshotPolicyId); +void DescribeDisksRequest::setAutoSnapshotPolicyId(const std::string &autoSnapshotPolicyId) { + autoSnapshotPolicyId_ = autoSnapshotPolicyId; + setParameter(std::string("AutoSnapshotPolicyId"), autoSnapshotPolicyId); } -std::string DescribeDisksRequest::getDiskName()const -{ - return diskName_; +std::string DescribeDisksRequest::getDiskName() const { + return diskName_; } -void DescribeDisksRequest::setDiskName(const std::string& diskName) -{ - diskName_ = diskName; - setParameter("DiskName", diskName); +void DescribeDisksRequest::setDiskName(const std::string &diskName) { + diskName_ = diskName; + setParameter(std::string("DiskName"), diskName); } -bool DescribeDisksRequest::getDeleteAutoSnapshot()const -{ - return deleteAutoSnapshot_; +bool DescribeDisksRequest::getDeleteAutoSnapshot() const { + return deleteAutoSnapshot_; } -void DescribeDisksRequest::setDeleteAutoSnapshot(bool deleteAutoSnapshot) -{ - deleteAutoSnapshot_ = deleteAutoSnapshot; - setParameter("DeleteAutoSnapshot", deleteAutoSnapshot ? "true" : "false"); +void DescribeDisksRequest::setDeleteAutoSnapshot(bool deleteAutoSnapshot) { + deleteAutoSnapshot_ = deleteAutoSnapshot; + setParameter(std::string("DeleteAutoSnapshot"), deleteAutoSnapshot ? "true" : "false"); } -std::string DescribeDisksRequest::getResourceGroupId()const -{ - return resourceGroupId_; +std::string DescribeDisksRequest::getResourceGroupId() const { + return resourceGroupId_; } -void DescribeDisksRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +void DescribeDisksRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -std::string DescribeDisksRequest::getDiskChargeType()const -{ - return diskChargeType_; +std::string DescribeDisksRequest::getDiskChargeType() const { + return diskChargeType_; } -void DescribeDisksRequest::setDiskChargeType(const std::string& diskChargeType) -{ - diskChargeType_ = diskChargeType; - setParameter("DiskChargeType", diskChargeType); +void DescribeDisksRequest::setDiskChargeType(const std::string &diskChargeType) { + diskChargeType_ = diskChargeType; + setParameter(std::string("DiskChargeType"), diskChargeType); } -std::string DescribeDisksRequest::getLockReason()const -{ - return lockReason_; +std::string DescribeDisksRequest::getLockReason() const { + return lockReason_; } -void DescribeDisksRequest::setLockReason(const std::string& lockReason) -{ - lockReason_ = lockReason; - setParameter("LockReason", lockReason); +void DescribeDisksRequest::setLockReason(const std::string &lockReason) { + lockReason_ = lockReason; + setParameter(std::string("LockReason"), lockReason); } -std::string DescribeDisksRequest::getFilter1Key()const -{ - return filter1Key_; +std::string DescribeDisksRequest::getFilter1Key() const { + return filter1Key_; } -void DescribeDisksRequest::setFilter1Key(const std::string& filter1Key) -{ - filter1Key_ = filter1Key; - setParameter("Filter1Key", filter1Key); +void DescribeDisksRequest::setFilter1Key(const std::string &filter1Key) { + filter1Key_ = filter1Key; + setParameter(std::string("Filter.1.Key"), filter1Key); } -std::vector DescribeDisksRequest::getTag()const -{ - return tag_; +std::vector DescribeDisksRequest::getTag() const { + return tag_; } -void DescribeDisksRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Value", tagObj.value); - setParameter(tagObjStr + ".Key", tagObj.key); - } +void DescribeDisksRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } -bool DescribeDisksRequest::getEnableAutoSnapshot()const -{ - return enableAutoSnapshot_; +bool DescribeDisksRequest::getEnableAutoSnapshot() const { + return enableAutoSnapshot_; } -void DescribeDisksRequest::setEnableAutoSnapshot(bool enableAutoSnapshot) -{ - enableAutoSnapshot_ = enableAutoSnapshot; - setParameter("EnableAutoSnapshot", enableAutoSnapshot ? "true" : "false"); +void DescribeDisksRequest::setEnableAutoSnapshot(bool enableAutoSnapshot) { + enableAutoSnapshot_ = enableAutoSnapshot; + setParameter(std::string("EnableAutoSnapshot"), enableAutoSnapshot ? "true" : "false"); } -bool DescribeDisksRequest::getDryRun()const -{ - return dryRun_; +bool DescribeDisksRequest::getDryRun() const { + return dryRun_; } -void DescribeDisksRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +void DescribeDisksRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -std::string DescribeDisksRequest::getFilter1Value()const -{ - return filter1Value_; +std::string DescribeDisksRequest::getFilter1Value() const { + return filter1Value_; } -void DescribeDisksRequest::setFilter1Value(const std::string& filter1Value) -{ - filter1Value_ = filter1Value; - setParameter("Filter1Value", filter1Value); +void DescribeDisksRequest::setFilter1Value(const std::string &filter1Value) { + filter1Value_ = filter1Value; + setParameter(std::string("Filter.1.Value"), filter1Value); } -bool DescribeDisksRequest::getPortable()const -{ - return portable_; +bool DescribeDisksRequest::getPortable() const { + return portable_; } -void DescribeDisksRequest::setPortable(bool portable) -{ - portable_ = portable; - setParameter("Portable", portable ? "true" : "false"); +void DescribeDisksRequest::setPortable(bool portable) { + portable_ = portable; + setParameter(std::string("Portable"), portable ? "true" : "false"); } -long DescribeDisksRequest::getOwnerId()const -{ - return ownerId_; +long DescribeDisksRequest::getOwnerId() const { + return ownerId_; } -void DescribeDisksRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +void DescribeDisksRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -std::vector DescribeDisksRequest::getAdditionalAttributes()const -{ - return additionalAttributes_; +std::vector DescribeDisksRequest::getAdditionalAttributes() const { + return additionalAttributes_; } -void DescribeDisksRequest::setAdditionalAttributes(const std::vector& additionalAttributes) -{ - additionalAttributes_ = additionalAttributes; - for(int dep1 = 0; dep1!= additionalAttributes.size(); dep1++) { - setParameter("AdditionalAttributes."+ std::to_string(dep1), additionalAttributes.at(dep1)); - } +void DescribeDisksRequest::setAdditionalAttributes(const std::vector &additionalAttributes) { + additionalAttributes_ = additionalAttributes; } -std::string DescribeDisksRequest::getInstanceId()const -{ - return instanceId_; +std::string DescribeDisksRequest::getInstanceId() const { + return instanceId_; } -void DescribeDisksRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +void DescribeDisksRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -std::string DescribeDisksRequest::getZoneId()const -{ - return zoneId_; +std::string DescribeDisksRequest::getZoneId() const { + return zoneId_; } -void DescribeDisksRequest::setZoneId(const std::string& zoneId) -{ - zoneId_ = zoneId; - setParameter("ZoneId", zoneId); +void DescribeDisksRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); } -int DescribeDisksRequest::getMaxResults()const -{ - return maxResults_; +int DescribeDisksRequest::getMaxResults() const { + return maxResults_; } -void DescribeDisksRequest::setMaxResults(int maxResults) -{ - maxResults_ = maxResults; - setParameter("MaxResults", std::to_string(maxResults)); +void DescribeDisksRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); } -std::string DescribeDisksRequest::getStatus()const -{ - return status_; +std::string DescribeDisksRequest::getStatus() const { + return status_; } -void DescribeDisksRequest::setStatus(const std::string& status) -{ - status_ = status; - setParameter("Status", status); +void DescribeDisksRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); } -std::string DescribeDisksRequest::getSnapshotId()const -{ - return snapshotId_; +std::string DescribeDisksRequest::getSnapshotId() const { + return snapshotId_; } -void DescribeDisksRequest::setSnapshotId(const std::string& snapshotId) -{ - snapshotId_ = snapshotId; - setParameter("SnapshotId", snapshotId); +void DescribeDisksRequest::setSnapshotId(const std::string &snapshotId) { + snapshotId_ = snapshotId; + setParameter(std::string("SnapshotId"), snapshotId); } -int DescribeDisksRequest::getPageNumber()const -{ - return pageNumber_; +int DescribeDisksRequest::getPageNumber() const { + return pageNumber_; } -void DescribeDisksRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +void DescribeDisksRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -std::string DescribeDisksRequest::getRegionId()const -{ - return regionId_; +std::string DescribeDisksRequest::getRegionId() const { + return regionId_; } -void DescribeDisksRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +void DescribeDisksRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -std::string DescribeDisksRequest::getNextToken()const -{ - return nextToken_; +std::string DescribeDisksRequest::getNextToken() const { + return nextToken_; } -void DescribeDisksRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +void DescribeDisksRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } -int DescribeDisksRequest::getPageSize()const -{ - return pageSize_; +int DescribeDisksRequest::getPageSize() const { + return pageSize_; } -void DescribeDisksRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +void DescribeDisksRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -std::string DescribeDisksRequest::getDiskIds()const -{ - return diskIds_; +std::string DescribeDisksRequest::getDiskIds() const { + return diskIds_; } -void DescribeDisksRequest::setDiskIds(const std::string& diskIds) -{ - diskIds_ = diskIds; - setParameter("DiskIds", diskIds); +void DescribeDisksRequest::setDiskIds(const std::string &diskIds) { + diskIds_ = diskIds; + setParameter(std::string("DiskIds"), diskIds); } -std::string DescribeDisksRequest::getMultiAttach()const -{ - return multiAttach_; +std::string DescribeDisksRequest::getMultiAttach() const { + return multiAttach_; } -void DescribeDisksRequest::setMultiAttach(const std::string& multiAttach) -{ - multiAttach_ = multiAttach; - setParameter("MultiAttach", multiAttach); +void DescribeDisksRequest::setMultiAttach(const std::string &multiAttach) { + multiAttach_ = multiAttach; + setParameter(std::string("MultiAttach"), multiAttach); } -bool DescribeDisksRequest::getDeleteWithInstance()const -{ - return deleteWithInstance_; +bool DescribeDisksRequest::getDeleteWithInstance() const { + return deleteWithInstance_; } -void DescribeDisksRequest::setDeleteWithInstance(bool deleteWithInstance) -{ - deleteWithInstance_ = deleteWithInstance; - setParameter("DeleteWithInstance", deleteWithInstance ? "true" : "false"); +void DescribeDisksRequest::setDeleteWithInstance(bool deleteWithInstance) { + deleteWithInstance_ = deleteWithInstance; + setParameter(std::string("DeleteWithInstance"), deleteWithInstance ? "true" : "false"); } -std::string DescribeDisksRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +std::string DescribeDisksRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -void DescribeDisksRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +void DescribeDisksRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -std::string DescribeDisksRequest::getOwnerAccount()const -{ - return ownerAccount_; +std::string DescribeDisksRequest::getOwnerAccount() const { + return ownerAccount_; } -void DescribeDisksRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +void DescribeDisksRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -bool DescribeDisksRequest::getEnableAutomatedSnapshotPolicy()const -{ - return enableAutomatedSnapshotPolicy_; +bool DescribeDisksRequest::getEnableAutomatedSnapshotPolicy() const { + return enableAutomatedSnapshotPolicy_; } -void DescribeDisksRequest::setEnableAutomatedSnapshotPolicy(bool enableAutomatedSnapshotPolicy) -{ - enableAutomatedSnapshotPolicy_ = enableAutomatedSnapshotPolicy; - setParameter("EnableAutomatedSnapshotPolicy", enableAutomatedSnapshotPolicy ? "true" : "false"); +void DescribeDisksRequest::setEnableAutomatedSnapshotPolicy(bool enableAutomatedSnapshotPolicy) { + enableAutomatedSnapshotPolicy_ = enableAutomatedSnapshotPolicy; + setParameter(std::string("EnableAutomatedSnapshotPolicy"), enableAutomatedSnapshotPolicy ? "true" : "false"); } -std::string DescribeDisksRequest::getFilter2Key()const -{ - return filter2Key_; +std::string DescribeDisksRequest::getFilter2Key() const { + return filter2Key_; } -void DescribeDisksRequest::setFilter2Key(const std::string& filter2Key) -{ - filter2Key_ = filter2Key; - setParameter("Filter2Key", filter2Key); +void DescribeDisksRequest::setFilter2Key(const std::string &filter2Key) { + filter2Key_ = filter2Key; + setParameter(std::string("Filter.2.Key"), filter2Key); } -std::string DescribeDisksRequest::getDiskType()const -{ - return diskType_; +std::string DescribeDisksRequest::getDiskType() const { + return diskType_; } -void DescribeDisksRequest::setDiskType(const std::string& diskType) -{ - diskType_ = diskType; - setParameter("DiskType", diskType); +void DescribeDisksRequest::setDiskType(const std::string &diskType) { + diskType_ = diskType; + setParameter(std::string("DiskType"), diskType); } -bool DescribeDisksRequest::getEnableShared()const -{ - return enableShared_; +bool DescribeDisksRequest::getEnableShared() const { + return enableShared_; } -void DescribeDisksRequest::setEnableShared(bool enableShared) -{ - enableShared_ = enableShared; - setParameter("EnableShared", enableShared ? "true" : "false"); +void DescribeDisksRequest::setEnableShared(bool enableShared) { + enableShared_ = enableShared; + setParameter(std::string("EnableShared"), enableShared ? "true" : "false"); } -bool DescribeDisksRequest::getEncrypted()const -{ - return encrypted_; +bool DescribeDisksRequest::getEncrypted() const { + return encrypted_; } -void DescribeDisksRequest::setEncrypted(bool encrypted) -{ - encrypted_ = encrypted; - setParameter("Encrypted", encrypted ? "true" : "false"); +void DescribeDisksRequest::setEncrypted(bool encrypted) { + encrypted_ = encrypted; + setParameter(std::string("Encrypted"), encrypted ? "true" : "false"); } -std::string DescribeDisksRequest::getCategory()const -{ - return category_; +std::string DescribeDisksRequest::getCategory() const { + return category_; } -void DescribeDisksRequest::setCategory(const std::string& category) -{ - category_ = category; - setParameter("Category", category); +void DescribeDisksRequest::setCategory(const std::string &category) { + category_ = category; + setParameter(std::string("Category"), category); } -std::string DescribeDisksRequest::getKMSKeyId()const -{ - return kMSKeyId_; +std::string DescribeDisksRequest::getKMSKeyId() const { + return kMSKeyId_; } -void DescribeDisksRequest::setKMSKeyId(const std::string& kMSKeyId) -{ - kMSKeyId_ = kMSKeyId; - setParameter("KMSKeyId", kMSKeyId); +void DescribeDisksRequest::setKMSKeyId(const std::string &kMSKeyId) { + kMSKeyId_ = kMSKeyId; + setParameter(std::string("KMSKeyId"), kMSKeyId); } diff --git a/ecs/src/model/DescribeEipAddressesRequest.cc b/ecs/src/model/DescribeEipAddressesRequest.cc index 9a264bad1..9d23c7c2c 100644 --- a/ecs/src/model/DescribeEipAddressesRequest.cc +++ b/ecs/src/model/DescribeEipAddressesRequest.cc @@ -1,238 +1,198 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeEipAddressesRequest; - -DescribeEipAddressesRequest::DescribeEipAddressesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeEipAddresses") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeEipAddressesRequest::~DescribeEipAddressesRequest() -{} - -long DescribeEipAddressesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeEipAddressesRequest; + +DescribeEipAddressesRequest::DescribeEipAddressesRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeEipAddresses") { + setMethod(HttpRequest::Method::Post); } -void DescribeEipAddressesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeEipAddressesRequest::~DescribeEipAddressesRequest() {} + +long DescribeEipAddressesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeEipAddressesRequest::getFilter2Value()const -{ - return filter2Value_; +void DescribeEipAddressesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeEipAddressesRequest::setFilter2Value(const std::string& filter2Value) -{ - filter2Value_ = filter2Value; - setParameter("Filter2Value", filter2Value); +std::string DescribeEipAddressesRequest::getFilter2Value() const { + return filter2Value_; } -std::string DescribeEipAddressesRequest::getISP()const -{ - return iSP_; +void DescribeEipAddressesRequest::setFilter2Value(const std::string &filter2Value) { + filter2Value_ = filter2Value; + setParameter(std::string("Filter.2.Value"), filter2Value); } -void DescribeEipAddressesRequest::setISP(const std::string& iSP) -{ - iSP_ = iSP; - setParameter("ISP", iSP); +std::string DescribeEipAddressesRequest::getISP() const { + return iSP_; } -std::string DescribeEipAddressesRequest::getAllocationId()const -{ - return allocationId_; +void DescribeEipAddressesRequest::setISP(const std::string &iSP) { + iSP_ = iSP; + setParameter(std::string("ISP"), iSP); } -void DescribeEipAddressesRequest::setAllocationId(const std::string& allocationId) -{ - allocationId_ = allocationId; - setParameter("AllocationId", allocationId); +std::string DescribeEipAddressesRequest::getAllocationId() const { + return allocationId_; } -std::string DescribeEipAddressesRequest::getEipAddress()const -{ - return eipAddress_; +void DescribeEipAddressesRequest::setAllocationId(const std::string &allocationId) { + allocationId_ = allocationId; + setParameter(std::string("AllocationId"), allocationId); } -void DescribeEipAddressesRequest::setEipAddress(const std::string& eipAddress) -{ - eipAddress_ = eipAddress; - setParameter("EipAddress", eipAddress); +std::string DescribeEipAddressesRequest::getEipAddress() const { + return eipAddress_; } -int DescribeEipAddressesRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeEipAddressesRequest::setEipAddress(const std::string &eipAddress) { + eipAddress_ = eipAddress; + setParameter(std::string("EipAddress"), eipAddress); } -void DescribeEipAddressesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeEipAddressesRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeEipAddressesRequest::getLockReason()const -{ - return lockReason_; +void DescribeEipAddressesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeEipAddressesRequest::setLockReason(const std::string& lockReason) -{ - lockReason_ = lockReason; - setParameter("LockReason", lockReason); +std::string DescribeEipAddressesRequest::getLockReason() const { + return lockReason_; } -std::string DescribeEipAddressesRequest::getFilter1Key()const -{ - return filter1Key_; +void DescribeEipAddressesRequest::setLockReason(const std::string &lockReason) { + lockReason_ = lockReason; + setParameter(std::string("LockReason"), lockReason); } -void DescribeEipAddressesRequest::setFilter1Key(const std::string& filter1Key) -{ - filter1Key_ = filter1Key; - setParameter("Filter1Key", filter1Key); +std::string DescribeEipAddressesRequest::getFilter1Key() const { + return filter1Key_; } -std::string DescribeEipAddressesRequest::getRegionId()const -{ - return regionId_; +void DescribeEipAddressesRequest::setFilter1Key(const std::string &filter1Key) { + filter1Key_ = filter1Key; + setParameter(std::string("Filter.1.Key"), filter1Key); } -void DescribeEipAddressesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeEipAddressesRequest::getRegionId() const { + return regionId_; } -std::string DescribeEipAddressesRequest::getAssociatedInstanceType()const -{ - return associatedInstanceType_; +void DescribeEipAddressesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeEipAddressesRequest::setAssociatedInstanceType(const std::string& associatedInstanceType) -{ - associatedInstanceType_ = associatedInstanceType; - setParameter("AssociatedInstanceType", associatedInstanceType); +std::string DescribeEipAddressesRequest::getAssociatedInstanceType() const { + return associatedInstanceType_; } -int DescribeEipAddressesRequest::getPageSize()const -{ - return pageSize_; +void DescribeEipAddressesRequest::setAssociatedInstanceType(const std::string &associatedInstanceType) { + associatedInstanceType_ = associatedInstanceType; + setParameter(std::string("AssociatedInstanceType"), associatedInstanceType); } -void DescribeEipAddressesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeEipAddressesRequest::getPageSize() const { + return pageSize_; } -std::string DescribeEipAddressesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeEipAddressesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeEipAddressesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeEipAddressesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeEipAddressesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeEipAddressesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeEipAddressesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeEipAddressesRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeEipAddressesRequest::getFilter1Value()const -{ - return filter1Value_; +void DescribeEipAddressesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeEipAddressesRequest::setFilter1Value(const std::string& filter1Value) -{ - filter1Value_ = filter1Value; - setParameter("Filter1Value", filter1Value); +std::string DescribeEipAddressesRequest::getFilter1Value() const { + return filter1Value_; } -std::string DescribeEipAddressesRequest::getFilter2Key()const -{ - return filter2Key_; +void DescribeEipAddressesRequest::setFilter1Value(const std::string &filter1Value) { + filter1Value_ = filter1Value; + setParameter(std::string("Filter.1.Value"), filter1Value); } -void DescribeEipAddressesRequest::setFilter2Key(const std::string& filter2Key) -{ - filter2Key_ = filter2Key; - setParameter("Filter2Key", filter2Key); +std::string DescribeEipAddressesRequest::getFilter2Key() const { + return filter2Key_; } -long DescribeEipAddressesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeEipAddressesRequest::setFilter2Key(const std::string &filter2Key) { + filter2Key_ = filter2Key; + setParameter(std::string("Filter.2.Key"), filter2Key); } -void DescribeEipAddressesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeEipAddressesRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeEipAddressesRequest::getChargeType()const -{ - return chargeType_; +void DescribeEipAddressesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeEipAddressesRequest::setChargeType(const std::string& chargeType) -{ - chargeType_ = chargeType; - setParameter("ChargeType", chargeType); +std::string DescribeEipAddressesRequest::getChargeType() const { + return chargeType_; } -std::string DescribeEipAddressesRequest::getAssociatedInstanceId()const -{ - return associatedInstanceId_; +void DescribeEipAddressesRequest::setChargeType(const std::string &chargeType) { + chargeType_ = chargeType; + setParameter(std::string("ChargeType"), chargeType); } -void DescribeEipAddressesRequest::setAssociatedInstanceId(const std::string& associatedInstanceId) -{ - associatedInstanceId_ = associatedInstanceId; - setParameter("AssociatedInstanceId", associatedInstanceId); +std::string DescribeEipAddressesRequest::getAssociatedInstanceId() const { + return associatedInstanceId_; } -std::string DescribeEipAddressesRequest::getStatus()const -{ - return status_; +void DescribeEipAddressesRequest::setAssociatedInstanceId(const std::string &associatedInstanceId) { + associatedInstanceId_ = associatedInstanceId; + setParameter(std::string("AssociatedInstanceId"), associatedInstanceId); } -void DescribeEipAddressesRequest::setStatus(const std::string& status) -{ - status_ = status; - setParameter("Status", status); +std::string DescribeEipAddressesRequest::getStatus() const { + return status_; +} + +void DescribeEipAddressesRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); } diff --git a/ecs/src/model/DescribeEipAddressesResult.cc b/ecs/src/model/DescribeEipAddressesResult.cc index dca643974..5afbe59a5 100644 --- a/ecs/src/model/DescribeEipAddressesResult.cc +++ b/ecs/src/model/DescribeEipAddressesResult.cc @@ -43,30 +43,30 @@ void DescribeEipAddressesResult::parse(const std::string &payload) for (auto valueEipAddressesEipAddress : allEipAddressesNode) { EipAddress eipAddressesObject; + if(!valueEipAddressesEipAddress["Status"].isNull()) + eipAddressesObject.status = valueEipAddressesEipAddress["Status"].asString(); + if(!valueEipAddressesEipAddress["AllocationTime"].isNull()) + eipAddressesObject.allocationTime = valueEipAddressesEipAddress["AllocationTime"].asString(); + if(!valueEipAddressesEipAddress["ChargeType"].isNull()) + eipAddressesObject.chargeType = valueEipAddressesEipAddress["ChargeType"].asString(); + if(!valueEipAddressesEipAddress["InstanceId"].isNull()) + eipAddressesObject.instanceId = valueEipAddressesEipAddress["InstanceId"].asString(); + if(!valueEipAddressesEipAddress["InstanceType"].isNull()) + eipAddressesObject.instanceType = valueEipAddressesEipAddress["InstanceType"].asString(); if(!valueEipAddressesEipAddress["RegionId"].isNull()) eipAddressesObject.regionId = valueEipAddressesEipAddress["RegionId"].asString(); if(!valueEipAddressesEipAddress["IpAddress"].isNull()) eipAddressesObject.ipAddress = valueEipAddressesEipAddress["IpAddress"].asString(); - if(!valueEipAddressesEipAddress["AllocationId"].isNull()) - eipAddressesObject.allocationId = valueEipAddressesEipAddress["AllocationId"].asString(); - if(!valueEipAddressesEipAddress["Status"].isNull()) - eipAddressesObject.status = valueEipAddressesEipAddress["Status"].asString(); - if(!valueEipAddressesEipAddress["InstanceId"].isNull()) - eipAddressesObject.instanceId = valueEipAddressesEipAddress["InstanceId"].asString(); if(!valueEipAddressesEipAddress["Bandwidth"].isNull()) eipAddressesObject.bandwidth = valueEipAddressesEipAddress["Bandwidth"].asString(); - if(!valueEipAddressesEipAddress["EipBandwidth"].isNull()) - eipAddressesObject.eipBandwidth = valueEipAddressesEipAddress["EipBandwidth"].asString(); - if(!valueEipAddressesEipAddress["InternetChargeType"].isNull()) - eipAddressesObject.internetChargeType = valueEipAddressesEipAddress["InternetChargeType"].asString(); - if(!valueEipAddressesEipAddress["AllocationTime"].isNull()) - eipAddressesObject.allocationTime = valueEipAddressesEipAddress["AllocationTime"].asString(); - if(!valueEipAddressesEipAddress["InstanceType"].isNull()) - eipAddressesObject.instanceType = valueEipAddressesEipAddress["InstanceType"].asString(); - if(!valueEipAddressesEipAddress["ChargeType"].isNull()) - eipAddressesObject.chargeType = valueEipAddressesEipAddress["ChargeType"].asString(); if(!valueEipAddressesEipAddress["ExpiredTime"].isNull()) eipAddressesObject.expiredTime = valueEipAddressesEipAddress["ExpiredTime"].asString(); + if(!valueEipAddressesEipAddress["AllocationId"].isNull()) + eipAddressesObject.allocationId = valueEipAddressesEipAddress["AllocationId"].asString(); + if(!valueEipAddressesEipAddress["InternetChargeType"].isNull()) + eipAddressesObject.internetChargeType = valueEipAddressesEipAddress["InternetChargeType"].asString(); + if(!valueEipAddressesEipAddress["EipBandwidth"].isNull()) + eipAddressesObject.eipBandwidth = valueEipAddressesEipAddress["EipBandwidth"].asString(); auto allOperationLocksNode = valueEipAddressesEipAddress["OperationLocks"]["LockReason"]; for (auto valueEipAddressesEipAddressOperationLocksLockReason : allOperationLocksNode) { @@ -77,12 +77,12 @@ void DescribeEipAddressesResult::parse(const std::string &payload) } eipAddresses_.push_back(eipAddressesObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/ecs/src/model/DescribeEipMonitorDataRequest.cc b/ecs/src/model/DescribeEipMonitorDataRequest.cc index 9dec43eca..b0a5eb656 100644 --- a/ecs/src/model/DescribeEipMonitorDataRequest.cc +++ b/ecs/src/model/DescribeEipMonitorDataRequest.cc @@ -1,128 +1,108 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeEipMonitorDataRequest; - -DescribeEipMonitorDataRequest::DescribeEipMonitorDataRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeEipMonitorData") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeEipMonitorDataRequest::~DescribeEipMonitorDataRequest() -{} - -long DescribeEipMonitorDataRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeEipMonitorDataRequest; + +DescribeEipMonitorDataRequest::DescribeEipMonitorDataRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeEipMonitorData") { + setMethod(HttpRequest::Method::Post); } -void DescribeEipMonitorDataRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeEipMonitorDataRequest::~DescribeEipMonitorDataRequest() {} + +long DescribeEipMonitorDataRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeEipMonitorDataRequest::getAllocationId()const -{ - return allocationId_; +void DescribeEipMonitorDataRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeEipMonitorDataRequest::setAllocationId(const std::string& allocationId) -{ - allocationId_ = allocationId; - setParameter("AllocationId", allocationId); +std::string DescribeEipMonitorDataRequest::getAllocationId() const { + return allocationId_; } -std::string DescribeEipMonitorDataRequest::getStartTime()const -{ - return startTime_; +void DescribeEipMonitorDataRequest::setAllocationId(const std::string &allocationId) { + allocationId_ = allocationId; + setParameter(std::string("AllocationId"), allocationId); } -void DescribeEipMonitorDataRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string DescribeEipMonitorDataRequest::getStartTime() const { + return startTime_; } -std::string DescribeEipMonitorDataRequest::getRegionId()const -{ - return regionId_; +void DescribeEipMonitorDataRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void DescribeEipMonitorDataRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeEipMonitorDataRequest::getRegionId() const { + return regionId_; } -int DescribeEipMonitorDataRequest::getPeriod()const -{ - return period_; +void DescribeEipMonitorDataRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeEipMonitorDataRequest::setPeriod(int period) -{ - period_ = period; - setParameter("Period", std::to_string(period)); +int DescribeEipMonitorDataRequest::getPeriod() const { + return period_; } -std::string DescribeEipMonitorDataRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeEipMonitorDataRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); } -void DescribeEipMonitorDataRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeEipMonitorDataRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeEipMonitorDataRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeEipMonitorDataRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeEipMonitorDataRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeEipMonitorDataRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeEipMonitorDataRequest::getEndTime()const -{ - return endTime_; +void DescribeEipMonitorDataRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeEipMonitorDataRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +std::string DescribeEipMonitorDataRequest::getEndTime() const { + return endTime_; } -long DescribeEipMonitorDataRequest::getOwnerId()const -{ - return ownerId_; +void DescribeEipMonitorDataRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void DescribeEipMonitorDataRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeEipMonitorDataRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeEipMonitorDataRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/DescribeEipMonitorDataResult.cc b/ecs/src/model/DescribeEipMonitorDataResult.cc index 4c68646c7..712e1dc42 100644 --- a/ecs/src/model/DescribeEipMonitorDataResult.cc +++ b/ecs/src/model/DescribeEipMonitorDataResult.cc @@ -43,18 +43,18 @@ void DescribeEipMonitorDataResult::parse(const std::string &payload) for (auto valueEipMonitorDatasEipMonitorData : allEipMonitorDatasNode) { EipMonitorData eipMonitorDatasObject; - if(!valueEipMonitorDatasEipMonitorData["EipRX"].isNull()) - eipMonitorDatasObject.eipRX = std::stoi(valueEipMonitorDatasEipMonitorData["EipRX"].asString()); if(!valueEipMonitorDatasEipMonitorData["EipTX"].isNull()) eipMonitorDatasObject.eipTX = std::stoi(valueEipMonitorDatasEipMonitorData["EipTX"].asString()); - if(!valueEipMonitorDatasEipMonitorData["EipFlow"].isNull()) - eipMonitorDatasObject.eipFlow = std::stoi(valueEipMonitorDatasEipMonitorData["EipFlow"].asString()); - if(!valueEipMonitorDatasEipMonitorData["EipBandwidth"].isNull()) - eipMonitorDatasObject.eipBandwidth = std::stoi(valueEipMonitorDatasEipMonitorData["EipBandwidth"].asString()); if(!valueEipMonitorDatasEipMonitorData["EipPackets"].isNull()) eipMonitorDatasObject.eipPackets = std::stoi(valueEipMonitorDatasEipMonitorData["EipPackets"].asString()); + if(!valueEipMonitorDatasEipMonitorData["EipBandwidth"].isNull()) + eipMonitorDatasObject.eipBandwidth = std::stoi(valueEipMonitorDatasEipMonitorData["EipBandwidth"].asString()); if(!valueEipMonitorDatasEipMonitorData["TimeStamp"].isNull()) eipMonitorDatasObject.timeStamp = valueEipMonitorDatasEipMonitorData["TimeStamp"].asString(); + if(!valueEipMonitorDatasEipMonitorData["EipFlow"].isNull()) + eipMonitorDatasObject.eipFlow = std::stoi(valueEipMonitorDatasEipMonitorData["EipFlow"].asString()); + if(!valueEipMonitorDatasEipMonitorData["EipRX"].isNull()) + eipMonitorDatasObject.eipRX = std::stoi(valueEipMonitorDatasEipMonitorData["EipRX"].asString()); eipMonitorDatas_.push_back(eipMonitorDatasObject); } diff --git a/ecs/src/model/DescribeElasticityAssuranceInstancesRequest.cc b/ecs/src/model/DescribeElasticityAssuranceInstancesRequest.cc index e68afacf4..661b256b8 100644 --- a/ecs/src/model/DescribeElasticityAssuranceInstancesRequest.cc +++ b/ecs/src/model/DescribeElasticityAssuranceInstancesRequest.cc @@ -1,128 +1,108 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeElasticityAssuranceInstancesRequest; - -DescribeElasticityAssuranceInstancesRequest::DescribeElasticityAssuranceInstancesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeElasticityAssuranceInstances") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeElasticityAssuranceInstancesRequest::~DescribeElasticityAssuranceInstancesRequest() -{} - -long DescribeElasticityAssuranceInstancesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeElasticityAssuranceInstancesRequest; + +DescribeElasticityAssuranceInstancesRequest::DescribeElasticityAssuranceInstancesRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeElasticityAssuranceInstances") { + setMethod(HttpRequest::Method::Post); } -void DescribeElasticityAssuranceInstancesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeElasticityAssuranceInstancesRequest::~DescribeElasticityAssuranceInstancesRequest() {} + +long DescribeElasticityAssuranceInstancesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeElasticityAssuranceInstancesRequest::getRegionId()const -{ - return regionId_; +void DescribeElasticityAssuranceInstancesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeElasticityAssuranceInstancesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeElasticityAssuranceInstancesRequest::getRegionId() const { + return regionId_; } -std::string DescribeElasticityAssuranceInstancesRequest::getNextToken()const -{ - return nextToken_; +void DescribeElasticityAssuranceInstancesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeElasticityAssuranceInstancesRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +std::string DescribeElasticityAssuranceInstancesRequest::getNextToken() const { + return nextToken_; } -std::string DescribeElasticityAssuranceInstancesRequest::getPrivatePoolOptionsId()const -{ - return privatePoolOptionsId_; +void DescribeElasticityAssuranceInstancesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } -void DescribeElasticityAssuranceInstancesRequest::setPrivatePoolOptionsId(const std::string& privatePoolOptionsId) -{ - privatePoolOptionsId_ = privatePoolOptionsId; - setParameter("PrivatePoolOptionsId", privatePoolOptionsId); +std::string DescribeElasticityAssuranceInstancesRequest::getPrivatePoolOptionsId() const { + return privatePoolOptionsId_; } -std::string DescribeElasticityAssuranceInstancesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeElasticityAssuranceInstancesRequest::setPrivatePoolOptionsId(const std::string &privatePoolOptionsId) { + privatePoolOptionsId_ = privatePoolOptionsId; + setParameter(std::string("PrivatePoolOptions.Id"), privatePoolOptionsId); } -void DescribeElasticityAssuranceInstancesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeElasticityAssuranceInstancesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeElasticityAssuranceInstancesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeElasticityAssuranceInstancesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeElasticityAssuranceInstancesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeElasticityAssuranceInstancesRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeElasticityAssuranceInstancesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeElasticityAssuranceInstancesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeElasticityAssuranceInstancesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeElasticityAssuranceInstancesRequest::getOwnerId() const { + return ownerId_; } -int DescribeElasticityAssuranceInstancesRequest::getMaxResults()const -{ - return maxResults_; +void DescribeElasticityAssuranceInstancesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeElasticityAssuranceInstancesRequest::setMaxResults(int maxResults) -{ - maxResults_ = maxResults; - setParameter("MaxResults", std::to_string(maxResults)); +int DescribeElasticityAssuranceInstancesRequest::getMaxResults() const { + return maxResults_; } -std::string DescribeElasticityAssuranceInstancesRequest::getPackageType()const -{ - return packageType_; +void DescribeElasticityAssuranceInstancesRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); } -void DescribeElasticityAssuranceInstancesRequest::setPackageType(const std::string& packageType) -{ - packageType_ = packageType; - setParameter("PackageType", packageType); +std::string DescribeElasticityAssuranceInstancesRequest::getPackageType() const { + return packageType_; +} + +void DescribeElasticityAssuranceInstancesRequest::setPackageType(const std::string &packageType) { + packageType_ = packageType; + setParameter(std::string("PackageType"), packageType); } diff --git a/ecs/src/model/DescribeElasticityAssuranceInstancesResult.cc b/ecs/src/model/DescribeElasticityAssuranceInstancesResult.cc index 891a7ae57..9e129634d 100644 --- a/ecs/src/model/DescribeElasticityAssuranceInstancesResult.cc +++ b/ecs/src/model/DescribeElasticityAssuranceInstancesResult.cc @@ -49,10 +49,10 @@ void DescribeElasticityAssuranceInstancesResult::parse(const std::string &payloa } if(!value["NextToken"].isNull()) nextToken_ = value["NextToken"].asString(); - if(!value["MaxResults"].isNull()) - maxResults_ = std::stoi(value["MaxResults"].asString()); if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); } diff --git a/ecs/src/model/DescribeElasticityAssurancesRequest.cc b/ecs/src/model/DescribeElasticityAssurancesRequest.cc index 8e02a0420..b6bcdafb3 100644 --- a/ecs/src/model/DescribeElasticityAssurancesRequest.cc +++ b/ecs/src/model/DescribeElasticityAssurancesRequest.cc @@ -1,210 +1,176 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeElasticityAssurancesRequest; - -DescribeElasticityAssurancesRequest::DescribeElasticityAssurancesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeElasticityAssurances") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeElasticityAssurancesRequest::~DescribeElasticityAssurancesRequest() -{} - -long DescribeElasticityAssurancesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeElasticityAssurancesRequest; + +DescribeElasticityAssurancesRequest::DescribeElasticityAssurancesRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeElasticityAssurances") { + setMethod(HttpRequest::Method::Post); } -void DescribeElasticityAssurancesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeElasticityAssurancesRequest::~DescribeElasticityAssurancesRequest() {} + +long DescribeElasticityAssurancesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeElasticityAssurancesRequest::getPlatform()const -{ - return platform_; +void DescribeElasticityAssurancesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeElasticityAssurancesRequest::setPlatform(const std::string& platform) -{ - platform_ = platform; - setParameter("Platform", platform); +std::string DescribeElasticityAssurancesRequest::getPlatform() const { + return platform_; } -std::string DescribeElasticityAssurancesRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void DescribeElasticityAssurancesRequest::setPlatform(const std::string &platform) { + platform_ = platform; + setParameter(std::string("Platform"), platform); } -void DescribeElasticityAssurancesRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string DescribeElasticityAssurancesRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string DescribeElasticityAssurancesRequest::getRegionId()const -{ - return regionId_; +void DescribeElasticityAssurancesRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void DescribeElasticityAssurancesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeElasticityAssurancesRequest::getRegionId() const { + return regionId_; } -std::string DescribeElasticityAssurancesRequest::getNextToken()const -{ - return nextToken_; +void DescribeElasticityAssurancesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeElasticityAssurancesRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +std::string DescribeElasticityAssurancesRequest::getNextToken() const { + return nextToken_; } -std::string DescribeElasticityAssurancesRequest::getInstanceType()const -{ - return instanceType_; +void DescribeElasticityAssurancesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } -void DescribeElasticityAssurancesRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +std::string DescribeElasticityAssurancesRequest::getInstanceType() const { + return instanceType_; } -std::vector DescribeElasticityAssurancesRequest::getTag()const -{ - return tag_; +void DescribeElasticityAssurancesRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } -void DescribeElasticityAssurancesRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Key", tagObj.key); - setParameter(tagObjStr + ".Value", tagObj.value); - } +std::vector DescribeElasticityAssurancesRequest::getTag() const { + return tag_; } -std::string DescribeElasticityAssurancesRequest::getInstanceChargeType()const -{ - return instanceChargeType_; +void DescribeElasticityAssurancesRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } } -void DescribeElasticityAssurancesRequest::setInstanceChargeType(const std::string& instanceChargeType) -{ - instanceChargeType_ = instanceChargeType; - setParameter("InstanceChargeType", instanceChargeType); +std::string DescribeElasticityAssurancesRequest::getInstanceChargeType() const { + return instanceChargeType_; } -std::string DescribeElasticityAssurancesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeElasticityAssurancesRequest::setInstanceChargeType(const std::string &instanceChargeType) { + instanceChargeType_ = instanceChargeType; + setParameter(std::string("InstanceChargeType"), instanceChargeType); } -void DescribeElasticityAssurancesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeElasticityAssurancesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeElasticityAssurancesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeElasticityAssurancesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeElasticityAssurancesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeElasticityAssurancesRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeElasticityAssurancesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeElasticityAssurancesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeElasticityAssurancesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeElasticityAssurancesRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeElasticityAssurancesRequest::getPrivatePoolOptionsIds()const -{ - return privatePoolOptionsIds_; +void DescribeElasticityAssurancesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeElasticityAssurancesRequest::setPrivatePoolOptionsIds(const std::string& privatePoolOptionsIds) -{ - privatePoolOptionsIds_ = privatePoolOptionsIds; - setParameter("PrivatePoolOptionsIds", privatePoolOptionsIds); +std::string DescribeElasticityAssurancesRequest::getPrivatePoolOptionsIds() const { + return privatePoolOptionsIds_; } -int DescribeElasticityAssurancesRequest::getMaxResults()const -{ - return maxResults_; +void DescribeElasticityAssurancesRequest::setPrivatePoolOptionsIds(const std::string &privatePoolOptionsIds) { + privatePoolOptionsIds_ = privatePoolOptionsIds; + setParameter(std::string("PrivatePoolOptions.Ids"), privatePoolOptionsIds); } -void DescribeElasticityAssurancesRequest::setMaxResults(int maxResults) -{ - maxResults_ = maxResults; - setParameter("MaxResults", std::to_string(maxResults)); +int DescribeElasticityAssurancesRequest::getMaxResults() const { + return maxResults_; } -std::string DescribeElasticityAssurancesRequest::getZoneId()const -{ - return zoneId_; +void DescribeElasticityAssurancesRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); } -void DescribeElasticityAssurancesRequest::setZoneId(const std::string& zoneId) -{ - zoneId_ = zoneId; - setParameter("ZoneId", zoneId); +std::string DescribeElasticityAssurancesRequest::getZoneId() const { + return zoneId_; } -std::string DescribeElasticityAssurancesRequest::getPackageType()const -{ - return packageType_; +void DescribeElasticityAssurancesRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); } -void DescribeElasticityAssurancesRequest::setPackageType(const std::string& packageType) -{ - packageType_ = packageType; - setParameter("PackageType", packageType); +std::string DescribeElasticityAssurancesRequest::getPackageType() const { + return packageType_; } -std::string DescribeElasticityAssurancesRequest::getStatus()const -{ - return status_; +void DescribeElasticityAssurancesRequest::setPackageType(const std::string &packageType) { + packageType_ = packageType; + setParameter(std::string("PackageType"), packageType); } -void DescribeElasticityAssurancesRequest::setStatus(const std::string& status) -{ - status_ = status; - setParameter("Status", status); +std::string DescribeElasticityAssurancesRequest::getStatus() const { + return status_; +} + +void DescribeElasticityAssurancesRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); } diff --git a/ecs/src/model/DescribeElasticityAssurancesResult.cc b/ecs/src/model/DescribeElasticityAssurancesResult.cc index 06828b96e..7abe51d39 100644 --- a/ecs/src/model/DescribeElasticityAssurancesResult.cc +++ b/ecs/src/model/DescribeElasticityAssurancesResult.cc @@ -43,62 +43,62 @@ void DescribeElasticityAssurancesResult::parse(const std::string &payload) for (auto valueElasticityAssuranceSetElasticityAssuranceItem : allElasticityAssuranceSetNode) { ElasticityAssuranceItem elasticityAssuranceSetObject; - if(!valueElasticityAssuranceSetElasticityAssuranceItem["PrivatePoolOptionsId"].isNull()) - elasticityAssuranceSetObject.privatePoolOptionsId = valueElasticityAssuranceSetElasticityAssuranceItem["PrivatePoolOptionsId"].asString(); - if(!valueElasticityAssuranceSetElasticityAssuranceItem["PrivatePoolOptionsName"].isNull()) - elasticityAssuranceSetObject.privatePoolOptionsName = valueElasticityAssuranceSetElasticityAssuranceItem["PrivatePoolOptionsName"].asString(); - if(!valueElasticityAssuranceSetElasticityAssuranceItem["Description"].isNull()) - elasticityAssuranceSetObject.description = valueElasticityAssuranceSetElasticityAssuranceItem["Description"].asString(); - if(!valueElasticityAssuranceSetElasticityAssuranceItem["RegionId"].isNull()) - elasticityAssuranceSetObject.regionId = valueElasticityAssuranceSetElasticityAssuranceItem["RegionId"].asString(); - if(!valueElasticityAssuranceSetElasticityAssuranceItem["PrivatePoolOptionsMatchCriteria"].isNull()) - elasticityAssuranceSetObject.privatePoolOptionsMatchCriteria = valueElasticityAssuranceSetElasticityAssuranceItem["PrivatePoolOptionsMatchCriteria"].asString(); - if(!valueElasticityAssuranceSetElasticityAssuranceItem["UsedAssuranceTimes"].isNull()) - elasticityAssuranceSetObject.usedAssuranceTimes = std::stoi(valueElasticityAssuranceSetElasticityAssuranceItem["UsedAssuranceTimes"].asString()); - if(!valueElasticityAssuranceSetElasticityAssuranceItem["TotalAssuranceTimes"].isNull()) - elasticityAssuranceSetObject.totalAssuranceTimes = valueElasticityAssuranceSetElasticityAssuranceItem["TotalAssuranceTimes"].asString(); if(!valueElasticityAssuranceSetElasticityAssuranceItem["Status"].isNull()) elasticityAssuranceSetObject.status = valueElasticityAssuranceSetElasticityAssuranceItem["Status"].asString(); - if(!valueElasticityAssuranceSetElasticityAssuranceItem["StartTime"].isNull()) - elasticityAssuranceSetObject.startTime = valueElasticityAssuranceSetElasticityAssuranceItem["StartTime"].asString(); - if(!valueElasticityAssuranceSetElasticityAssuranceItem["EndTime"].isNull()) - elasticityAssuranceSetObject.endTime = valueElasticityAssuranceSetElasticityAssuranceItem["EndTime"].asString(); + if(!valueElasticityAssuranceSetElasticityAssuranceItem["PrivatePoolOptionsMatchCriteria"].isNull()) + elasticityAssuranceSetObject.privatePoolOptionsMatchCriteria = valueElasticityAssuranceSetElasticityAssuranceItem["PrivatePoolOptionsMatchCriteria"].asString(); + if(!valueElasticityAssuranceSetElasticityAssuranceItem["PrivatePoolOptionsId"].isNull()) + elasticityAssuranceSetObject.privatePoolOptionsId = valueElasticityAssuranceSetElasticityAssuranceItem["PrivatePoolOptionsId"].asString(); + if(!valueElasticityAssuranceSetElasticityAssuranceItem["UsedAssuranceTimes"].isNull()) + elasticityAssuranceSetObject.usedAssuranceTimes = std::stoi(valueElasticityAssuranceSetElasticityAssuranceItem["UsedAssuranceTimes"].asString()); if(!valueElasticityAssuranceSetElasticityAssuranceItem["LatestStartTime"].isNull()) elasticityAssuranceSetObject.latestStartTime = valueElasticityAssuranceSetElasticityAssuranceItem["LatestStartTime"].asString(); + if(!valueElasticityAssuranceSetElasticityAssuranceItem["PrivatePoolOptionsName"].isNull()) + elasticityAssuranceSetObject.privatePoolOptionsName = valueElasticityAssuranceSetElasticityAssuranceItem["PrivatePoolOptionsName"].asString(); + if(!valueElasticityAssuranceSetElasticityAssuranceItem["RegionId"].isNull()) + elasticityAssuranceSetObject.regionId = valueElasticityAssuranceSetElasticityAssuranceItem["RegionId"].asString(); + if(!valueElasticityAssuranceSetElasticityAssuranceItem["EndTime"].isNull()) + elasticityAssuranceSetObject.endTime = valueElasticityAssuranceSetElasticityAssuranceItem["EndTime"].asString(); + if(!valueElasticityAssuranceSetElasticityAssuranceItem["StartTime"].isNull()) + elasticityAssuranceSetObject.startTime = valueElasticityAssuranceSetElasticityAssuranceItem["StartTime"].asString(); + if(!valueElasticityAssuranceSetElasticityAssuranceItem["Description"].isNull()) + elasticityAssuranceSetObject.description = valueElasticityAssuranceSetElasticityAssuranceItem["Description"].asString(); if(!valueElasticityAssuranceSetElasticityAssuranceItem["ResourceGroupId"].isNull()) elasticityAssuranceSetObject.resourceGroupId = valueElasticityAssuranceSetElasticityAssuranceItem["ResourceGroupId"].asString(); + if(!valueElasticityAssuranceSetElasticityAssuranceItem["TotalAssuranceTimes"].isNull()) + elasticityAssuranceSetObject.totalAssuranceTimes = valueElasticityAssuranceSetElasticityAssuranceItem["TotalAssuranceTimes"].asString(); auto allAllocatedResourcesNode = valueElasticityAssuranceSetElasticityAssuranceItem["AllocatedResources"]["AllocatedResource"]; for (auto valueElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResource : allAllocatedResourcesNode) { ElasticityAssuranceItem::AllocatedResource allocatedResourcesObject; + if(!valueElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResource["UsedAmount"].isNull()) + allocatedResourcesObject.usedAmount = std::stoi(valueElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResource["UsedAmount"].asString()); + if(!valueElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResource["TotalAmount"].isNull()) + allocatedResourcesObject.totalAmount = std::stoi(valueElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResource["TotalAmount"].asString()); if(!valueElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResource["zoneId"].isNull()) allocatedResourcesObject.zoneId = valueElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResource["zoneId"].asString(); if(!valueElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResource["InstanceType"].isNull()) allocatedResourcesObject.instanceType = valueElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResource["InstanceType"].asString(); - if(!valueElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResource["TotalAmount"].isNull()) - allocatedResourcesObject.totalAmount = std::stoi(valueElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResource["TotalAmount"].asString()); - if(!valueElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResource["UsedAmount"].isNull()) - allocatedResourcesObject.usedAmount = std::stoi(valueElasticityAssuranceSetElasticityAssuranceItemAllocatedResourcesAllocatedResource["UsedAmount"].asString()); elasticityAssuranceSetObject.allocatedResources.push_back(allocatedResourcesObject); } auto allTagsNode = valueElasticityAssuranceSetElasticityAssuranceItem["Tags"]["Tag"]; for (auto valueElasticityAssuranceSetElasticityAssuranceItemTagsTag : allTagsNode) { ElasticityAssuranceItem::Tag tagsObject; - if(!valueElasticityAssuranceSetElasticityAssuranceItemTagsTag["TagKey"].isNull()) - tagsObject.tagKey = valueElasticityAssuranceSetElasticityAssuranceItemTagsTag["TagKey"].asString(); if(!valueElasticityAssuranceSetElasticityAssuranceItemTagsTag["TagValue"].isNull()) tagsObject.tagValue = valueElasticityAssuranceSetElasticityAssuranceItemTagsTag["TagValue"].asString(); + if(!valueElasticityAssuranceSetElasticityAssuranceItemTagsTag["TagKey"].isNull()) + tagsObject.tagKey = valueElasticityAssuranceSetElasticityAssuranceItemTagsTag["TagKey"].asString(); elasticityAssuranceSetObject.tags.push_back(tagsObject); } elasticityAssuranceSet_.push_back(elasticityAssuranceSetObject); } if(!value["NextToken"].isNull()) nextToken_ = value["NextToken"].asString(); - if(!value["MaxResults"].isNull()) - maxResults_ = std::stoi(value["MaxResults"].asString()); if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); } diff --git a/ecs/src/model/DescribeEniMonitorDataRequest.cc b/ecs/src/model/DescribeEniMonitorDataRequest.cc index 35b34412e..26d258f15 100644 --- a/ecs/src/model/DescribeEniMonitorDataRequest.cc +++ b/ecs/src/model/DescribeEniMonitorDataRequest.cc @@ -1,139 +1,117 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeEniMonitorDataRequest; - -DescribeEniMonitorDataRequest::DescribeEniMonitorDataRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeEniMonitorData") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeEniMonitorDataRequest::~DescribeEniMonitorDataRequest() -{} - -long DescribeEniMonitorDataRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeEniMonitorDataRequest; + +DescribeEniMonitorDataRequest::DescribeEniMonitorDataRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeEniMonitorData") { + setMethod(HttpRequest::Method::Post); } -void DescribeEniMonitorDataRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeEniMonitorDataRequest::~DescribeEniMonitorDataRequest() {} + +long DescribeEniMonitorDataRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeEniMonitorDataRequest::getStartTime()const -{ - return startTime_; +void DescribeEniMonitorDataRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeEniMonitorDataRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string DescribeEniMonitorDataRequest::getStartTime() const { + return startTime_; } -std::string DescribeEniMonitorDataRequest::getRegionId()const -{ - return regionId_; +void DescribeEniMonitorDataRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void DescribeEniMonitorDataRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeEniMonitorDataRequest::getRegionId() const { + return regionId_; } -int DescribeEniMonitorDataRequest::getPeriod()const -{ - return period_; +void DescribeEniMonitorDataRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeEniMonitorDataRequest::setPeriod(int period) -{ - period_ = period; - setParameter("Period", std::to_string(period)); +int DescribeEniMonitorDataRequest::getPeriod() const { + return period_; } -std::string DescribeEniMonitorDataRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeEniMonitorDataRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); } -void DescribeEniMonitorDataRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeEniMonitorDataRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeEniMonitorDataRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeEniMonitorDataRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeEniMonitorDataRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeEniMonitorDataRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeEniMonitorDataRequest::getEndTime()const -{ - return endTime_; +void DescribeEniMonitorDataRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeEniMonitorDataRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +std::string DescribeEniMonitorDataRequest::getEndTime() const { + return endTime_; } -long DescribeEniMonitorDataRequest::getOwnerId()const -{ - return ownerId_; +void DescribeEniMonitorDataRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void DescribeEniMonitorDataRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeEniMonitorDataRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeEniMonitorDataRequest::getInstanceId()const -{ - return instanceId_; +void DescribeEniMonitorDataRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeEniMonitorDataRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DescribeEniMonitorDataRequest::getInstanceId() const { + return instanceId_; } -std::string DescribeEniMonitorDataRequest::getEniId()const -{ - return eniId_; +void DescribeEniMonitorDataRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DescribeEniMonitorDataRequest::setEniId(const std::string& eniId) -{ - eniId_ = eniId; - setParameter("EniId", eniId); +std::string DescribeEniMonitorDataRequest::getEniId() const { + return eniId_; +} + +void DescribeEniMonitorDataRequest::setEniId(const std::string &eniId) { + eniId_ = eniId; + setParameter(std::string("EniId"), eniId); } diff --git a/ecs/src/model/DescribeEniMonitorDataResult.cc b/ecs/src/model/DescribeEniMonitorDataResult.cc index 64998f040..6e84a41e5 100644 --- a/ecs/src/model/DescribeEniMonitorDataResult.cc +++ b/ecs/src/model/DescribeEniMonitorDataResult.cc @@ -43,22 +43,22 @@ void DescribeEniMonitorDataResult::parse(const std::string &payload) for (auto valueMonitorDataEniMonitorData : allMonitorDataNode) { EniMonitorData monitorDataObject; - if(!valueMonitorDataEniMonitorData["EniId"].isNull()) - monitorDataObject.eniId = valueMonitorDataEniMonitorData["EniId"].asString(); - if(!valueMonitorDataEniMonitorData["TimeStamp"].isNull()) - monitorDataObject.timeStamp = valueMonitorDataEniMonitorData["TimeStamp"].asString(); - if(!valueMonitorDataEniMonitorData["PacketTx"].isNull()) - monitorDataObject.packetTx = valueMonitorDataEniMonitorData["PacketTx"].asString(); if(!valueMonitorDataEniMonitorData["PacketRx"].isNull()) monitorDataObject.packetRx = valueMonitorDataEniMonitorData["PacketRx"].asString(); + if(!valueMonitorDataEniMonitorData["TimeStamp"].isNull()) + monitorDataObject.timeStamp = valueMonitorDataEniMonitorData["TimeStamp"].asString(); + if(!valueMonitorDataEniMonitorData["DropPacketRx"].isNull()) + monitorDataObject.dropPacketRx = valueMonitorDataEniMonitorData["DropPacketRx"].asString(); + if(!valueMonitorDataEniMonitorData["EniId"].isNull()) + monitorDataObject.eniId = valueMonitorDataEniMonitorData["EniId"].asString(); + if(!valueMonitorDataEniMonitorData["DropPacketTx"].isNull()) + monitorDataObject.dropPacketTx = valueMonitorDataEniMonitorData["DropPacketTx"].asString(); + if(!valueMonitorDataEniMonitorData["PacketTx"].isNull()) + monitorDataObject.packetTx = valueMonitorDataEniMonitorData["PacketTx"].asString(); if(!valueMonitorDataEniMonitorData["IntranetTx"].isNull()) monitorDataObject.intranetTx = valueMonitorDataEniMonitorData["IntranetTx"].asString(); if(!valueMonitorDataEniMonitorData["IntranetRx"].isNull()) monitorDataObject.intranetRx = valueMonitorDataEniMonitorData["IntranetRx"].asString(); - if(!valueMonitorDataEniMonitorData["DropPacketTx"].isNull()) - monitorDataObject.dropPacketTx = valueMonitorDataEniMonitorData["DropPacketTx"].asString(); - if(!valueMonitorDataEniMonitorData["DropPacketRx"].isNull()) - monitorDataObject.dropPacketRx = valueMonitorDataEniMonitorData["DropPacketRx"].asString(); monitorData_.push_back(monitorDataObject); } if(!value["TotalCount"].isNull()) diff --git a/ecs/src/model/DescribeForwardTableEntriesRequest.cc b/ecs/src/model/DescribeForwardTableEntriesRequest.cc index 859b5628a..37f2c718b 100644 --- a/ecs/src/model/DescribeForwardTableEntriesRequest.cc +++ b/ecs/src/model/DescribeForwardTableEntriesRequest.cc @@ -1,128 +1,108 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeForwardTableEntriesRequest; - -DescribeForwardTableEntriesRequest::DescribeForwardTableEntriesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeForwardTableEntries") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeForwardTableEntriesRequest::~DescribeForwardTableEntriesRequest() -{} - -long DescribeForwardTableEntriesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeForwardTableEntriesRequest; + +DescribeForwardTableEntriesRequest::DescribeForwardTableEntriesRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeForwardTableEntries") { + setMethod(HttpRequest::Method::Post); } -void DescribeForwardTableEntriesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeForwardTableEntriesRequest::~DescribeForwardTableEntriesRequest() {} + +long DescribeForwardTableEntriesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeForwardTableEntriesRequest::getForwardTableId()const -{ - return forwardTableId_; +void DescribeForwardTableEntriesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeForwardTableEntriesRequest::setForwardTableId(const std::string& forwardTableId) -{ - forwardTableId_ = forwardTableId; - setParameter("ForwardTableId", forwardTableId); +std::string DescribeForwardTableEntriesRequest::getForwardTableId() const { + return forwardTableId_; } -int DescribeForwardTableEntriesRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeForwardTableEntriesRequest::setForwardTableId(const std::string &forwardTableId) { + forwardTableId_ = forwardTableId; + setParameter(std::string("ForwardTableId"), forwardTableId); } -void DescribeForwardTableEntriesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeForwardTableEntriesRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeForwardTableEntriesRequest::getRegionId()const -{ - return regionId_; +void DescribeForwardTableEntriesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeForwardTableEntriesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeForwardTableEntriesRequest::getRegionId() const { + return regionId_; } -std::string DescribeForwardTableEntriesRequest::getForwardEntryId()const -{ - return forwardEntryId_; +void DescribeForwardTableEntriesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeForwardTableEntriesRequest::setForwardEntryId(const std::string& forwardEntryId) -{ - forwardEntryId_ = forwardEntryId; - setParameter("ForwardEntryId", forwardEntryId); +std::string DescribeForwardTableEntriesRequest::getForwardEntryId() const { + return forwardEntryId_; } -int DescribeForwardTableEntriesRequest::getPageSize()const -{ - return pageSize_; +void DescribeForwardTableEntriesRequest::setForwardEntryId(const std::string &forwardEntryId) { + forwardEntryId_ = forwardEntryId; + setParameter(std::string("ForwardEntryId"), forwardEntryId); } -void DescribeForwardTableEntriesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeForwardTableEntriesRequest::getPageSize() const { + return pageSize_; } -std::string DescribeForwardTableEntriesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeForwardTableEntriesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeForwardTableEntriesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeForwardTableEntriesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeForwardTableEntriesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeForwardTableEntriesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeForwardTableEntriesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeForwardTableEntriesRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeForwardTableEntriesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeForwardTableEntriesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeForwardTableEntriesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeForwardTableEntriesRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeForwardTableEntriesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/DescribeForwardTableEntriesResult.cc b/ecs/src/model/DescribeForwardTableEntriesResult.cc index c1e27f3cc..34aa322d5 100644 --- a/ecs/src/model/DescribeForwardTableEntriesResult.cc +++ b/ecs/src/model/DescribeForwardTableEntriesResult.cc @@ -43,30 +43,30 @@ void DescribeForwardTableEntriesResult::parse(const std::string &payload) for (auto valueForwardTableEntriesForwardTableEntry : allForwardTableEntriesNode) { ForwardTableEntry forwardTableEntriesObject; - if(!valueForwardTableEntriesForwardTableEntry["ForwardTableId"].isNull()) - forwardTableEntriesObject.forwardTableId = valueForwardTableEntriesForwardTableEntry["ForwardTableId"].asString(); + if(!valueForwardTableEntriesForwardTableEntry["Status"].isNull()) + forwardTableEntriesObject.status = valueForwardTableEntriesForwardTableEntry["Status"].asString(); if(!valueForwardTableEntriesForwardTableEntry["ForwardEntryId"].isNull()) forwardTableEntriesObject.forwardEntryId = valueForwardTableEntriesForwardTableEntry["ForwardEntryId"].asString(); - if(!valueForwardTableEntriesForwardTableEntry["ExternalIp"].isNull()) - forwardTableEntriesObject.externalIp = valueForwardTableEntriesForwardTableEntry["ExternalIp"].asString(); - if(!valueForwardTableEntriesForwardTableEntry["ExternalPort"].isNull()) - forwardTableEntriesObject.externalPort = valueForwardTableEntriesForwardTableEntry["ExternalPort"].asString(); - if(!valueForwardTableEntriesForwardTableEntry["IpProtocol"].isNull()) - forwardTableEntriesObject.ipProtocol = valueForwardTableEntriesForwardTableEntry["IpProtocol"].asString(); if(!valueForwardTableEntriesForwardTableEntry["InternalIp"].isNull()) forwardTableEntriesObject.internalIp = valueForwardTableEntriesForwardTableEntry["InternalIp"].asString(); if(!valueForwardTableEntriesForwardTableEntry["InternalPort"].isNull()) forwardTableEntriesObject.internalPort = valueForwardTableEntriesForwardTableEntry["InternalPort"].asString(); - if(!valueForwardTableEntriesForwardTableEntry["Status"].isNull()) - forwardTableEntriesObject.status = valueForwardTableEntriesForwardTableEntry["Status"].asString(); + if(!valueForwardTableEntriesForwardTableEntry["ForwardTableId"].isNull()) + forwardTableEntriesObject.forwardTableId = valueForwardTableEntriesForwardTableEntry["ForwardTableId"].asString(); + if(!valueForwardTableEntriesForwardTableEntry["ExternalPort"].isNull()) + forwardTableEntriesObject.externalPort = valueForwardTableEntriesForwardTableEntry["ExternalPort"].asString(); + if(!valueForwardTableEntriesForwardTableEntry["IpProtocol"].isNull()) + forwardTableEntriesObject.ipProtocol = valueForwardTableEntriesForwardTableEntry["IpProtocol"].asString(); + if(!valueForwardTableEntriesForwardTableEntry["ExternalIp"].isNull()) + forwardTableEntriesObject.externalIp = valueForwardTableEntriesForwardTableEntry["ExternalIp"].asString(); forwardTableEntries_.push_back(forwardTableEntriesObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/ecs/src/model/DescribeHaVipsRequest.cc b/ecs/src/model/DescribeHaVipsRequest.cc index 6e4e41c1e..961080fce 100644 --- a/ecs/src/model/DescribeHaVipsRequest.cc +++ b/ecs/src/model/DescribeHaVipsRequest.cc @@ -1,124 +1,103 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeHaVipsRequest; - -DescribeHaVipsRequest::DescribeHaVipsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeHaVips") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeHaVipsRequest::~DescribeHaVipsRequest() -{} - -long DescribeHaVipsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeHaVipsRequest; + +DescribeHaVipsRequest::DescribeHaVipsRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeHaVips") { + setMethod(HttpRequest::Method::Post); } -void DescribeHaVipsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeHaVipsRequest::~DescribeHaVipsRequest() {} + +long DescribeHaVipsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeHaVipsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeHaVipsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeHaVipsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeHaVipsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeHaVipsRequest::getRegionId()const -{ - return regionId_; +void DescribeHaVipsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeHaVipsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeHaVipsRequest::getRegionId() const { + return regionId_; } -int DescribeHaVipsRequest::getPageSize()const -{ - return pageSize_; +void DescribeHaVipsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeHaVipsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeHaVipsRequest::getPageSize() const { + return pageSize_; } -std::string DescribeHaVipsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeHaVipsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeHaVipsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeHaVipsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeHaVipsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeHaVipsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeHaVipsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeHaVipsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeHaVipsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeHaVipsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeHaVipsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeHaVipsRequest::getOwnerId() const { + return ownerId_; } -std::vector DescribeHaVipsRequest::getFilter()const -{ - return filter_; +void DescribeHaVipsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeHaVipsRequest::setFilter(const std::vector& filter) -{ - filter_ = filter; - for(int dep1 = 0; dep1!= filter.size(); dep1++) { - auto filterObj = filter.at(dep1); - std::string filterObjStr = "Filter." + std::to_string(dep1 + 1); - for(int dep2 = 0; dep2!= filterObj.value.size(); dep2++) { - setParameter(filterObjStr + ".Value."+ std::to_string(dep2), filterObj.value.at(dep2)); - } - setParameter(filterObjStr + ".Key", filterObj.key); - } +std::vector DescribeHaVipsRequest::getFilter() const { + return filter_; +} + +void DescribeHaVipsRequest::setFilter(const std::vector &filter) { + filter_ = filter; + for(int dep1 = 0; dep1 != filter.size(); dep1++) { + auto filterObj = filter.at(dep1); + std::string filterObjStr = std::string("Filter") + "." + std::to_string(dep1 + 1); + setParameter(filterObjStr + ".Key", filterObj.key); + } } diff --git a/ecs/src/model/DescribeHaVipsResult.cc b/ecs/src/model/DescribeHaVipsResult.cc index 932b34e42..1e98656f5 100644 --- a/ecs/src/model/DescribeHaVipsResult.cc +++ b/ecs/src/model/DescribeHaVipsResult.cc @@ -43,38 +43,38 @@ void DescribeHaVipsResult::parse(const std::string &payload) for (auto valueHaVipsHaVip : allHaVipsNode) { HaVip haVipsObject; - if(!valueHaVipsHaVip["HaVipId"].isNull()) - haVipsObject.haVipId = valueHaVipsHaVip["HaVipId"].asString(); - if(!valueHaVipsHaVip["RegionId"].isNull()) - haVipsObject.regionId = valueHaVipsHaVip["RegionId"].asString(); + if(!valueHaVipsHaVip["Status"].isNull()) + haVipsObject.status = valueHaVipsHaVip["Status"].asString(); if(!valueHaVipsHaVip["VpcId"].isNull()) haVipsObject.vpcId = valueHaVipsHaVip["VpcId"].asString(); if(!valueHaVipsHaVip["VSwitchId"].isNull()) haVipsObject.vSwitchId = valueHaVipsHaVip["VSwitchId"].asString(); if(!valueHaVipsHaVip["IpAddress"].isNull()) haVipsObject.ipAddress = valueHaVipsHaVip["IpAddress"].asString(); - if(!valueHaVipsHaVip["Status"].isNull()) - haVipsObject.status = valueHaVipsHaVip["Status"].asString(); - if(!valueHaVipsHaVip["MasterInstanceId"].isNull()) - haVipsObject.masterInstanceId = valueHaVipsHaVip["MasterInstanceId"].asString(); if(!valueHaVipsHaVip["Description"].isNull()) haVipsObject.description = valueHaVipsHaVip["Description"].asString(); + if(!valueHaVipsHaVip["HaVipId"].isNull()) + haVipsObject.haVipId = valueHaVipsHaVip["HaVipId"].asString(); if(!valueHaVipsHaVip["CreateTime"].isNull()) haVipsObject.createTime = valueHaVipsHaVip["CreateTime"].asString(); - auto allAssociatedInstances = value["AssociatedInstances"]["associatedInstance"]; - for (auto value : allAssociatedInstances) - haVipsObject.associatedInstances.push_back(value.asString()); + if(!valueHaVipsHaVip["MasterInstanceId"].isNull()) + haVipsObject.masterInstanceId = valueHaVipsHaVip["MasterInstanceId"].asString(); + if(!valueHaVipsHaVip["RegionId"].isNull()) + haVipsObject.regionId = valueHaVipsHaVip["RegionId"].asString(); auto allAssociatedEipAddresses = value["AssociatedEipAddresses"]["associatedEipAddresse"]; for (auto value : allAssociatedEipAddresses) haVipsObject.associatedEipAddresses.push_back(value.asString()); + auto allAssociatedInstances = value["AssociatedInstances"]["associatedInstance"]; + for (auto value : allAssociatedInstances) + haVipsObject.associatedInstances.push_back(value.asString()); haVips_.push_back(haVipsObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/ecs/src/model/DescribeHpcClustersRequest.cc b/ecs/src/model/DescribeHpcClustersRequest.cc index ba1f90c4e..458e2d1d5 100644 --- a/ecs/src/model/DescribeHpcClustersRequest.cc +++ b/ecs/src/model/DescribeHpcClustersRequest.cc @@ -1,128 +1,108 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeHpcClustersRequest; - -DescribeHpcClustersRequest::DescribeHpcClustersRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeHpcClusters") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeHpcClustersRequest::~DescribeHpcClustersRequest() -{} - -long DescribeHpcClustersRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeHpcClustersRequest; + +DescribeHpcClustersRequest::DescribeHpcClustersRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeHpcClusters") { + setMethod(HttpRequest::Method::Post); } -void DescribeHpcClustersRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeHpcClustersRequest::~DescribeHpcClustersRequest() {} + +long DescribeHpcClustersRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeHpcClustersRequest::getClientToken()const -{ - return clientToken_; +void DescribeHpcClustersRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeHpcClustersRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DescribeHpcClustersRequest::getClientToken() const { + return clientToken_; } -int DescribeHpcClustersRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeHpcClustersRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DescribeHpcClustersRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeHpcClustersRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeHpcClustersRequest::getRegionId()const -{ - return regionId_; +void DescribeHpcClustersRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeHpcClustersRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeHpcClustersRequest::getRegionId() const { + return regionId_; } -int DescribeHpcClustersRequest::getPageSize()const -{ - return pageSize_; +void DescribeHpcClustersRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeHpcClustersRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeHpcClustersRequest::getPageSize() const { + return pageSize_; } -std::string DescribeHpcClustersRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeHpcClustersRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeHpcClustersRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeHpcClustersRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeHpcClustersRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeHpcClustersRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeHpcClustersRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeHpcClustersRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeHpcClustersRequest::getOwnerId()const -{ - return ownerId_; +void DescribeHpcClustersRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeHpcClustersRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeHpcClustersRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeHpcClustersRequest::getHpcClusterIds()const -{ - return hpcClusterIds_; +void DescribeHpcClustersRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeHpcClustersRequest::setHpcClusterIds(const std::string& hpcClusterIds) -{ - hpcClusterIds_ = hpcClusterIds; - setParameter("HpcClusterIds", hpcClusterIds); +std::string DescribeHpcClustersRequest::getHpcClusterIds() const { + return hpcClusterIds_; +} + +void DescribeHpcClustersRequest::setHpcClusterIds(const std::string &hpcClusterIds) { + hpcClusterIds_ = hpcClusterIds; + setParameter(std::string("HpcClusterIds"), hpcClusterIds); } diff --git a/ecs/src/model/DescribeHpcClustersResult.cc b/ecs/src/model/DescribeHpcClustersResult.cc index c3b3c412b..f30275077 100644 --- a/ecs/src/model/DescribeHpcClustersResult.cc +++ b/ecs/src/model/DescribeHpcClustersResult.cc @@ -51,12 +51,12 @@ void DescribeHpcClustersResult::parse(const std::string &payload) hpcClustersObject.description = valueHpcClustersHpcCluster["Description"].asString(); hpcClusters_.push_back(hpcClustersObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/ecs/src/model/DescribeImageComponentsRequest.cc b/ecs/src/model/DescribeImageComponentsRequest.cc index b422774ef..6173f663a 100644 --- a/ecs/src/model/DescribeImageComponentsRequest.cc +++ b/ecs/src/model/DescribeImageComponentsRequest.cc @@ -1,168 +1,139 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeImageComponentsRequest; - -DescribeImageComponentsRequest::DescribeImageComponentsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeImageComponents") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeImageComponentsRequest::~DescribeImageComponentsRequest() -{} - -long DescribeImageComponentsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeImageComponentsRequest; + +DescribeImageComponentsRequest::DescribeImageComponentsRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeImageComponents") { + setMethod(HttpRequest::Method::Post); } -void DescribeImageComponentsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeImageComponentsRequest::~DescribeImageComponentsRequest() {} + +long DescribeImageComponentsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::vector DescribeImageComponentsRequest::getImageComponentId()const -{ - return imageComponentId_; +void DescribeImageComponentsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeImageComponentsRequest::setImageComponentId(const std::vector& imageComponentId) -{ - imageComponentId_ = imageComponentId; - for(int dep1 = 0; dep1!= imageComponentId.size(); dep1++) { - setParameter("ImageComponentId."+ std::to_string(dep1), imageComponentId.at(dep1)); - } +std::vector DescribeImageComponentsRequest::getImageComponentId() const { + return imageComponentId_; } -std::string DescribeImageComponentsRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void DescribeImageComponentsRequest::setImageComponentId(const std::vector &imageComponentId) { + imageComponentId_ = imageComponentId; } -void DescribeImageComponentsRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string DescribeImageComponentsRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string DescribeImageComponentsRequest::getRegionId()const -{ - return regionId_; +void DescribeImageComponentsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void DescribeImageComponentsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeImageComponentsRequest::getRegionId() const { + return regionId_; } -std::string DescribeImageComponentsRequest::getNextToken()const -{ - return nextToken_; +void DescribeImageComponentsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeImageComponentsRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +std::string DescribeImageComponentsRequest::getNextToken() const { + return nextToken_; } -std::vector DescribeImageComponentsRequest::getTag()const -{ - return tag_; +void DescribeImageComponentsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } -void DescribeImageComponentsRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Key", tagObj.key); - setParameter(tagObjStr + ".Value", tagObj.value); - } +std::vector DescribeImageComponentsRequest::getTag() const { + return tag_; } -std::string DescribeImageComponentsRequest::getOwner()const -{ - return owner_; +void DescribeImageComponentsRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } } -void DescribeImageComponentsRequest::setOwner(const std::string& owner) -{ - owner_ = owner; - setParameter("Owner", owner); +std::string DescribeImageComponentsRequest::getOwner() const { + return owner_; } -std::string DescribeImageComponentsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeImageComponentsRequest::setOwner(const std::string &owner) { + owner_ = owner; + setParameter(std::string("Owner"), owner); } -void DescribeImageComponentsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeImageComponentsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeImageComponentsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeImageComponentsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeImageComponentsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeImageComponentsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeImageComponentsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeImageComponentsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeImageComponentsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeImageComponentsRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeImageComponentsRequest::getName()const -{ - return name_; +void DescribeImageComponentsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeImageComponentsRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string DescribeImageComponentsRequest::getName() const { + return name_; } -int DescribeImageComponentsRequest::getMaxResults()const -{ - return maxResults_; +void DescribeImageComponentsRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void DescribeImageComponentsRequest::setMaxResults(int maxResults) -{ - maxResults_ = maxResults; - setParameter("MaxResults", std::to_string(maxResults)); +int DescribeImageComponentsRequest::getMaxResults() const { + return maxResults_; +} + +void DescribeImageComponentsRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); } diff --git a/ecs/src/model/DescribeImageFromFamilyRequest.cc b/ecs/src/model/DescribeImageFromFamilyRequest.cc index 731e8d4ce..202b44666 100644 --- a/ecs/src/model/DescribeImageFromFamilyRequest.cc +++ b/ecs/src/model/DescribeImageFromFamilyRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeImageFromFamilyRequest; - -DescribeImageFromFamilyRequest::DescribeImageFromFamilyRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeImageFromFamily") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeImageFromFamilyRequest::~DescribeImageFromFamilyRequest() -{} - -long DescribeImageFromFamilyRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeImageFromFamilyRequest; + +DescribeImageFromFamilyRequest::DescribeImageFromFamilyRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeImageFromFamily") { + setMethod(HttpRequest::Method::Post); } -void DescribeImageFromFamilyRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeImageFromFamilyRequest::~DescribeImageFromFamilyRequest() {} + +long DescribeImageFromFamilyRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeImageFromFamilyRequest::getRegionId()const -{ - return regionId_; +void DescribeImageFromFamilyRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeImageFromFamilyRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeImageFromFamilyRequest::getRegionId() const { + return regionId_; } -std::string DescribeImageFromFamilyRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeImageFromFamilyRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeImageFromFamilyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeImageFromFamilyRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeImageFromFamilyRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeImageFromFamilyRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeImageFromFamilyRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeImageFromFamilyRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeImageFromFamilyRequest::getOwnerId()const -{ - return ownerId_; +void DescribeImageFromFamilyRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeImageFromFamilyRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeImageFromFamilyRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeImageFromFamilyRequest::getImageFamily()const -{ - return imageFamily_; +void DescribeImageFromFamilyRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeImageFromFamilyRequest::setImageFamily(const std::string& imageFamily) -{ - imageFamily_ = imageFamily; - setParameter("ImageFamily", imageFamily); +std::string DescribeImageFromFamilyRequest::getImageFamily() const { + return imageFamily_; +} + +void DescribeImageFromFamilyRequest::setImageFamily(const std::string &imageFamily) { + imageFamily_ = imageFamily; + setParameter(std::string("ImageFamily"), imageFamily); } diff --git a/ecs/src/model/DescribeImageFromFamilyResult.cc b/ecs/src/model/DescribeImageFromFamilyResult.cc index a4b3c132e..7dd17e5f3 100644 --- a/ecs/src/model/DescribeImageFromFamilyResult.cc +++ b/ecs/src/model/DescribeImageFromFamilyResult.cc @@ -40,76 +40,76 @@ void DescribeImageFromFamilyResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto imageNode = value["Image"]; - if(!imageNode["Progress"].isNull()) - image_.progress = imageNode["Progress"].asString(); - if(!imageNode["ImageId"].isNull()) - image_.imageId = imageNode["ImageId"].asString(); - if(!imageNode["ImageName"].isNull()) - image_.imageName = imageNode["ImageName"].asString(); + if(!imageNode["CreationTime"].isNull()) + image_.creationTime = imageNode["CreationTime"].asString(); + if(!imageNode["Status"].isNull()) + image_.status = imageNode["Status"].asString(); if(!imageNode["ImageFamily"].isNull()) image_.imageFamily = imageNode["ImageFamily"].asString(); + if(!imageNode["Progress"].isNull()) + image_.progress = imageNode["Progress"].asString(); + if(!imageNode["IsCopied"].isNull()) + image_.isCopied = imageNode["IsCopied"].asString() == "true"; + if(!imageNode["IsSupportIoOptimized"].isNull()) + image_.isSupportIoOptimized = imageNode["IsSupportIoOptimized"].asString() == "true"; + if(!imageNode["ImageOwnerAlias"].isNull()) + image_.imageOwnerAlias = imageNode["ImageOwnerAlias"].asString(); + if(!imageNode["IsSupportCloudinit"].isNull()) + image_.isSupportCloudinit = imageNode["IsSupportCloudinit"].asString() == "true"; if(!imageNode["ImageVersion"].isNull()) image_.imageVersion = imageNode["ImageVersion"].asString(); + if(!imageNode["Usage"].isNull()) + image_.usage = imageNode["Usage"].asString(); + if(!imageNode["IsSelfShared"].isNull()) + image_.isSelfShared = imageNode["IsSelfShared"].asString(); if(!imageNode["Description"].isNull()) image_.description = imageNode["Description"].asString(); if(!imageNode["Size"].isNull()) image_.size = std::stoi(imageNode["Size"].asString()); - if(!imageNode["ImageOwnerAlias"].isNull()) - image_.imageOwnerAlias = imageNode["ImageOwnerAlias"].asString(); - if(!imageNode["IsSupportIoOptimized"].isNull()) - image_.isSupportIoOptimized = imageNode["IsSupportIoOptimized"].asString() == "true"; - if(!imageNode["IsSupportCloudinit"].isNull()) - image_.isSupportCloudinit = imageNode["IsSupportCloudinit"].asString() == "true"; - if(!imageNode["OSName"].isNull()) - image_.oSName = imageNode["OSName"].asString(); - if(!imageNode["Architecture"].isNull()) - image_.architecture = imageNode["Architecture"].asString(); - if(!imageNode["Status"].isNull()) - image_.status = imageNode["Status"].asString(); - if(!imageNode["ProductCode"].isNull()) - image_.productCode = imageNode["ProductCode"].asString(); - if(!imageNode["IsSubscribed"].isNull()) - image_.isSubscribed = imageNode["IsSubscribed"].asString() == "true"; - if(!imageNode["CreationTime"].isNull()) - image_.creationTime = imageNode["CreationTime"].asString(); - if(!imageNode["IsSelfShared"].isNull()) - image_.isSelfShared = imageNode["IsSelfShared"].asString(); - if(!imageNode["OSType"].isNull()) - image_.oSType = imageNode["OSType"].asString(); if(!imageNode["Platform"].isNull()) image_.platform = imageNode["Platform"].asString(); - if(!imageNode["Usage"].isNull()) - image_.usage = imageNode["Usage"].asString(); - if(!imageNode["IsCopied"].isNull()) - image_.isCopied = imageNode["IsCopied"].asString() == "true"; + if(!imageNode["ImageName"].isNull()) + image_.imageName = imageNode["ImageName"].asString(); + if(!imageNode["OSName"].isNull()) + image_.oSName = imageNode["OSName"].asString(); + if(!imageNode["ImageId"].isNull()) + image_.imageId = imageNode["ImageId"].asString(); + if(!imageNode["OSType"].isNull()) + image_.oSType = imageNode["OSType"].asString(); + if(!imageNode["IsSubscribed"].isNull()) + image_.isSubscribed = imageNode["IsSubscribed"].asString() == "true"; + if(!imageNode["ProductCode"].isNull()) + image_.productCode = imageNode["ProductCode"].asString(); + if(!imageNode["Architecture"].isNull()) + image_.architecture = imageNode["Architecture"].asString(); auto allDiskDeviceMappingsNode = imageNode["DiskDeviceMappings"]["DiskDeviceMapping"]; for (auto imageNodeDiskDeviceMappingsDiskDeviceMapping : allDiskDeviceMappingsNode) { Image::DiskDeviceMapping diskDeviceMappingObject; + if(!imageNodeDiskDeviceMappingsDiskDeviceMapping["Type"].isNull()) + diskDeviceMappingObject.type = imageNodeDiskDeviceMappingsDiskDeviceMapping["Type"].asString(); + if(!imageNodeDiskDeviceMappingsDiskDeviceMapping["ImportOSSBucket"].isNull()) + diskDeviceMappingObject.importOSSBucket = imageNodeDiskDeviceMappingsDiskDeviceMapping["ImportOSSBucket"].asString(); if(!imageNodeDiskDeviceMappingsDiskDeviceMapping["SnapshotId"].isNull()) diskDeviceMappingObject.snapshotId = imageNodeDiskDeviceMappingsDiskDeviceMapping["SnapshotId"].asString(); + if(!imageNodeDiskDeviceMappingsDiskDeviceMapping["ImportOSSObject"].isNull()) + diskDeviceMappingObject.importOSSObject = imageNodeDiskDeviceMappingsDiskDeviceMapping["ImportOSSObject"].asString(); if(!imageNodeDiskDeviceMappingsDiskDeviceMapping["Size"].isNull()) diskDeviceMappingObject.size = imageNodeDiskDeviceMappingsDiskDeviceMapping["Size"].asString(); if(!imageNodeDiskDeviceMappingsDiskDeviceMapping["Device"].isNull()) diskDeviceMappingObject.device = imageNodeDiskDeviceMappingsDiskDeviceMapping["Device"].asString(); - if(!imageNodeDiskDeviceMappingsDiskDeviceMapping["Type"].isNull()) - diskDeviceMappingObject.type = imageNodeDiskDeviceMappingsDiskDeviceMapping["Type"].asString(); if(!imageNodeDiskDeviceMappingsDiskDeviceMapping["Format"].isNull()) diskDeviceMappingObject.format = imageNodeDiskDeviceMappingsDiskDeviceMapping["Format"].asString(); - if(!imageNodeDiskDeviceMappingsDiskDeviceMapping["ImportOSSBucket"].isNull()) - diskDeviceMappingObject.importOSSBucket = imageNodeDiskDeviceMappingsDiskDeviceMapping["ImportOSSBucket"].asString(); - if(!imageNodeDiskDeviceMappingsDiskDeviceMapping["ImportOSSObject"].isNull()) - diskDeviceMappingObject.importOSSObject = imageNodeDiskDeviceMappingsDiskDeviceMapping["ImportOSSObject"].asString(); image_.diskDeviceMappings.push_back(diskDeviceMappingObject); } auto allTagsNode = imageNode["Tags"]["Tag"]; for (auto imageNodeTagsTag : allTagsNode) { Image::Tag tagObject; - if(!imageNodeTagsTag["TagKey"].isNull()) - tagObject.tagKey = imageNodeTagsTag["TagKey"].asString(); if(!imageNodeTagsTag["TagValue"].isNull()) tagObject.tagValue = imageNodeTagsTag["TagValue"].asString(); + if(!imageNodeTagsTag["TagKey"].isNull()) + tagObject.tagKey = imageNodeTagsTag["TagKey"].asString(); image_.tags.push_back(tagObject); } diff --git a/ecs/src/model/DescribeImagePipelineExecutionsRequest.cc b/ecs/src/model/DescribeImagePipelineExecutionsRequest.cc index e1659d68d..562571510 100644 --- a/ecs/src/model/DescribeImagePipelineExecutionsRequest.cc +++ b/ecs/src/model/DescribeImagePipelineExecutionsRequest.cc @@ -1,155 +1,131 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeImagePipelineExecutionsRequest; - -DescribeImagePipelineExecutionsRequest::DescribeImagePipelineExecutionsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeImagePipelineExecutions") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeImagePipelineExecutionsRequest::~DescribeImagePipelineExecutionsRequest() -{} - -std::string DescribeImagePipelineExecutionsRequest::getImagePipelineId()const -{ - return imagePipelineId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeImagePipelineExecutionsRequest; + +DescribeImagePipelineExecutionsRequest::DescribeImagePipelineExecutionsRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeImagePipelineExecutions") { + setMethod(HttpRequest::Method::Post); } -void DescribeImagePipelineExecutionsRequest::setImagePipelineId(const std::string& imagePipelineId) -{ - imagePipelineId_ = imagePipelineId; - setParameter("ImagePipelineId", imagePipelineId); +DescribeImagePipelineExecutionsRequest::~DescribeImagePipelineExecutionsRequest() {} + +std::string DescribeImagePipelineExecutionsRequest::getImagePipelineId() const { + return imagePipelineId_; } -long DescribeImagePipelineExecutionsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void DescribeImagePipelineExecutionsRequest::setImagePipelineId(const std::string &imagePipelineId) { + imagePipelineId_ = imagePipelineId; + setParameter(std::string("ImagePipelineId"), imagePipelineId); } -void DescribeImagePipelineExecutionsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long DescribeImagePipelineExecutionsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeImagePipelineExecutionsRequest::getExecutionId()const -{ - return executionId_; +void DescribeImagePipelineExecutionsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeImagePipelineExecutionsRequest::setExecutionId(const std::string& executionId) -{ - executionId_ = executionId; - setParameter("ExecutionId", executionId); +std::string DescribeImagePipelineExecutionsRequest::getExecutionId() const { + return executionId_; } -std::string DescribeImagePipelineExecutionsRequest::getRegionId()const -{ - return regionId_; +void DescribeImagePipelineExecutionsRequest::setExecutionId(const std::string &executionId) { + executionId_ = executionId; + setParameter(std::string("ExecutionId"), executionId); } -void DescribeImagePipelineExecutionsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeImagePipelineExecutionsRequest::getRegionId() const { + return regionId_; } -std::string DescribeImagePipelineExecutionsRequest::getNextToken()const -{ - return nextToken_; +void DescribeImagePipelineExecutionsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeImagePipelineExecutionsRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +std::string DescribeImagePipelineExecutionsRequest::getNextToken() const { + return nextToken_; } -std::vector DescribeImagePipelineExecutionsRequest::getTag()const -{ - return tag_; +void DescribeImagePipelineExecutionsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } -void DescribeImagePipelineExecutionsRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Key", tagObj.key); - setParameter(tagObjStr + ".Value", tagObj.value); - } +std::vector DescribeImagePipelineExecutionsRequest::getTag() const { + return tag_; } -std::string DescribeImagePipelineExecutionsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeImagePipelineExecutionsRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } } -void DescribeImagePipelineExecutionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeImagePipelineExecutionsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeImagePipelineExecutionsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeImagePipelineExecutionsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeImagePipelineExecutionsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeImagePipelineExecutionsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeImagePipelineExecutionsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeImagePipelineExecutionsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeImagePipelineExecutionsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeImagePipelineExecutionsRequest::getOwnerId() const { + return ownerId_; } -int DescribeImagePipelineExecutionsRequest::getMaxResults()const -{ - return maxResults_; +void DescribeImagePipelineExecutionsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeImagePipelineExecutionsRequest::setMaxResults(int maxResults) -{ - maxResults_ = maxResults; - setParameter("MaxResults", std::to_string(maxResults)); +int DescribeImagePipelineExecutionsRequest::getMaxResults() const { + return maxResults_; } -std::string DescribeImagePipelineExecutionsRequest::getStatus()const -{ - return status_; +void DescribeImagePipelineExecutionsRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); } -void DescribeImagePipelineExecutionsRequest::setStatus(const std::string& status) -{ - status_ = status; - setParameter("Status", status); +std::string DescribeImagePipelineExecutionsRequest::getStatus() const { + return status_; +} + +void DescribeImagePipelineExecutionsRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); } diff --git a/ecs/src/model/DescribeImagePipelinesRequest.cc b/ecs/src/model/DescribeImagePipelinesRequest.cc index ceedef34a..4993597bf 100644 --- a/ecs/src/model/DescribeImagePipelinesRequest.cc +++ b/ecs/src/model/DescribeImagePipelinesRequest.cc @@ -1,157 +1,130 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeImagePipelinesRequest; - -DescribeImagePipelinesRequest::DescribeImagePipelinesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeImagePipelines") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeImagePipelinesRequest::~DescribeImagePipelinesRequest() -{} - -std::vector DescribeImagePipelinesRequest::getImagePipelineId()const -{ - return imagePipelineId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeImagePipelinesRequest; + +DescribeImagePipelinesRequest::DescribeImagePipelinesRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeImagePipelines") { + setMethod(HttpRequest::Method::Post); } -void DescribeImagePipelinesRequest::setImagePipelineId(const std::vector& imagePipelineId) -{ - imagePipelineId_ = imagePipelineId; - for(int dep1 = 0; dep1!= imagePipelineId.size(); dep1++) { - setParameter("ImagePipelineId."+ std::to_string(dep1), imagePipelineId.at(dep1)); - } +DescribeImagePipelinesRequest::~DescribeImagePipelinesRequest() {} + +std::vector DescribeImagePipelinesRequest::getImagePipelineId() const { + return imagePipelineId_; } -long DescribeImagePipelinesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void DescribeImagePipelinesRequest::setImagePipelineId(const std::vector &imagePipelineId) { + imagePipelineId_ = imagePipelineId; } -void DescribeImagePipelinesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long DescribeImagePipelinesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeImagePipelinesRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void DescribeImagePipelinesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeImagePipelinesRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string DescribeImagePipelinesRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string DescribeImagePipelinesRequest::getRegionId()const -{ - return regionId_; +void DescribeImagePipelinesRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void DescribeImagePipelinesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeImagePipelinesRequest::getRegionId() const { + return regionId_; } -std::string DescribeImagePipelinesRequest::getNextToken()const -{ - return nextToken_; +void DescribeImagePipelinesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeImagePipelinesRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +std::string DescribeImagePipelinesRequest::getNextToken() const { + return nextToken_; } -std::vector DescribeImagePipelinesRequest::getTag()const -{ - return tag_; +void DescribeImagePipelinesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } -void DescribeImagePipelinesRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Key", tagObj.key); - setParameter(tagObjStr + ".Value", tagObj.value); - } +std::vector DescribeImagePipelinesRequest::getTag() const { + return tag_; } -std::string DescribeImagePipelinesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeImagePipelinesRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } } -void DescribeImagePipelinesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeImagePipelinesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeImagePipelinesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeImagePipelinesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeImagePipelinesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeImagePipelinesRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeImagePipelinesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeImagePipelinesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeImagePipelinesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeImagePipelinesRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeImagePipelinesRequest::getName()const -{ - return name_; +void DescribeImagePipelinesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeImagePipelinesRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string DescribeImagePipelinesRequest::getName() const { + return name_; } -int DescribeImagePipelinesRequest::getMaxResults()const -{ - return maxResults_; +void DescribeImagePipelinesRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void DescribeImagePipelinesRequest::setMaxResults(int maxResults) -{ - maxResults_ = maxResults; - setParameter("MaxResults", std::to_string(maxResults)); +int DescribeImagePipelinesRequest::getMaxResults() const { + return maxResults_; +} + +void DescribeImagePipelinesRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); } diff --git a/ecs/src/model/DescribeImageSharePermissionRequest.cc b/ecs/src/model/DescribeImageSharePermissionRequest.cc index d5210bd10..71a7bb425 100644 --- a/ecs/src/model/DescribeImageSharePermissionRequest.cc +++ b/ecs/src/model/DescribeImageSharePermissionRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeImageSharePermissionRequest; - -DescribeImageSharePermissionRequest::DescribeImageSharePermissionRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeImageSharePermission") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeImageSharePermissionRequest::~DescribeImageSharePermissionRequest() -{} - -long DescribeImageSharePermissionRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeImageSharePermissionRequest; + +DescribeImageSharePermissionRequest::DescribeImageSharePermissionRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeImageSharePermission") { + setMethod(HttpRequest::Method::Post); } -void DescribeImageSharePermissionRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeImageSharePermissionRequest::~DescribeImageSharePermissionRequest() {} + +long DescribeImageSharePermissionRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeImageSharePermissionRequest::getImageId()const -{ - return imageId_; +void DescribeImageSharePermissionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeImageSharePermissionRequest::setImageId(const std::string& imageId) -{ - imageId_ = imageId; - setParameter("ImageId", imageId); +std::string DescribeImageSharePermissionRequest::getImageId() const { + return imageId_; } -int DescribeImageSharePermissionRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeImageSharePermissionRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("ImageId"), imageId); } -void DescribeImageSharePermissionRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeImageSharePermissionRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeImageSharePermissionRequest::getRegionId()const -{ - return regionId_; +void DescribeImageSharePermissionRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeImageSharePermissionRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeImageSharePermissionRequest::getRegionId() const { + return regionId_; } -int DescribeImageSharePermissionRequest::getPageSize()const -{ - return pageSize_; +void DescribeImageSharePermissionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeImageSharePermissionRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeImageSharePermissionRequest::getPageSize() const { + return pageSize_; } -std::string DescribeImageSharePermissionRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeImageSharePermissionRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeImageSharePermissionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeImageSharePermissionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeImageSharePermissionRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeImageSharePermissionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeImageSharePermissionRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeImageSharePermissionRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeImageSharePermissionRequest::getOwnerId()const -{ - return ownerId_; +void DescribeImageSharePermissionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeImageSharePermissionRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeImageSharePermissionRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeImageSharePermissionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/DescribeImageSharePermissionResult.cc b/ecs/src/model/DescribeImageSharePermissionResult.cc index d2884a260..79ec6b923 100644 --- a/ecs/src/model/DescribeImageSharePermissionResult.cc +++ b/ecs/src/model/DescribeImageSharePermissionResult.cc @@ -55,16 +55,16 @@ void DescribeImageSharePermissionResult::parse(const std::string &payload) accountsObject.aliyunId = valueAccountsAccount["AliyunId"].asString(); accounts_.push_back(accountsObject); } - if(!value["RegionId"].isNull()) - regionId_ = value["RegionId"].asString(); - 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()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); if(!value["ImageId"].isNull()) imageId_ = value["ImageId"].asString(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); } diff --git a/ecs/src/model/DescribeImageSupportInstanceTypesRequest.cc b/ecs/src/model/DescribeImageSupportInstanceTypesRequest.cc index 7d93f9f01..cb209440a 100644 --- a/ecs/src/model/DescribeImageSupportInstanceTypesRequest.cc +++ b/ecs/src/model/DescribeImageSupportInstanceTypesRequest.cc @@ -1,111 +1,95 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeImageSupportInstanceTypesRequest; - -DescribeImageSupportInstanceTypesRequest::DescribeImageSupportInstanceTypesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeImageSupportInstanceTypes") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeImageSupportInstanceTypesRequest::~DescribeImageSupportInstanceTypesRequest() -{} - -std::string DescribeImageSupportInstanceTypesRequest::getActionType()const -{ - return actionType_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeImageSupportInstanceTypesRequest; + +DescribeImageSupportInstanceTypesRequest::DescribeImageSupportInstanceTypesRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeImageSupportInstanceTypes") { + setMethod(HttpRequest::Method::Post); } -void DescribeImageSupportInstanceTypesRequest::setActionType(const std::string& actionType) -{ - actionType_ = actionType; - setParameter("ActionType", actionType); +DescribeImageSupportInstanceTypesRequest::~DescribeImageSupportInstanceTypesRequest() {} + +std::string DescribeImageSupportInstanceTypesRequest::getActionType() const { + return actionType_; } -long DescribeImageSupportInstanceTypesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void DescribeImageSupportInstanceTypesRequest::setActionType(const std::string &actionType) { + actionType_ = actionType; + setParameter(std::string("ActionType"), actionType); } -void DescribeImageSupportInstanceTypesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long DescribeImageSupportInstanceTypesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeImageSupportInstanceTypesRequest::getImageId()const -{ - return imageId_; +void DescribeImageSupportInstanceTypesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeImageSupportInstanceTypesRequest::setImageId(const std::string& imageId) -{ - imageId_ = imageId; - setParameter("ImageId", imageId); +std::string DescribeImageSupportInstanceTypesRequest::getImageId() const { + return imageId_; } -std::string DescribeImageSupportInstanceTypesRequest::getRegionId()const -{ - return regionId_; +void DescribeImageSupportInstanceTypesRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("ImageId"), imageId); } -void DescribeImageSupportInstanceTypesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeImageSupportInstanceTypesRequest::getRegionId() const { + return regionId_; } -std::string DescribeImageSupportInstanceTypesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeImageSupportInstanceTypesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeImageSupportInstanceTypesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeImageSupportInstanceTypesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long DescribeImageSupportInstanceTypesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeImageSupportInstanceTypesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeImageSupportInstanceTypesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeImageSupportInstanceTypesRequest::getOwnerId() const { + return ownerId_; } -std::vector DescribeImageSupportInstanceTypesRequest::getFilter()const -{ - return filter_; +void DescribeImageSupportInstanceTypesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeImageSupportInstanceTypesRequest::setFilter(const std::vector& filter) -{ - filter_ = filter; - for(int dep1 = 0; dep1!= filter.size(); dep1++) { - auto filterObj = filter.at(dep1); - std::string filterObjStr = "Filter." + std::to_string(dep1 + 1); - setParameter(filterObjStr + ".Value", filterObj.value); - setParameter(filterObjStr + ".Key", filterObj.key); - } +std::vector DescribeImageSupportInstanceTypesRequest::getFilter() const { + return filter_; +} + +void DescribeImageSupportInstanceTypesRequest::setFilter(const std::vector &filter) { + filter_ = filter; + for(int dep1 = 0; dep1 != filter.size(); dep1++) { + auto filterObj = filter.at(dep1); + std::string filterObjStr = std::string("Filter") + "." + std::to_string(dep1 + 1); + setParameter(filterObjStr + ".Value", filterObj.value); + setParameter(filterObjStr + ".Key", filterObj.key); + } } diff --git a/ecs/src/model/DescribeImageSupportInstanceTypesResult.cc b/ecs/src/model/DescribeImageSupportInstanceTypesResult.cc index 4da93716f..1f1562ad1 100644 --- a/ecs/src/model/DescribeImageSupportInstanceTypesResult.cc +++ b/ecs/src/model/DescribeImageSupportInstanceTypesResult.cc @@ -45,18 +45,18 @@ void DescribeImageSupportInstanceTypesResult::parse(const std::string &payload) InstanceType instanceTypesObject; if(!valueInstanceTypesInstanceType["InstanceTypeId"].isNull()) instanceTypesObject.instanceTypeId = valueInstanceTypesInstanceType["InstanceTypeId"].asString(); + if(!valueInstanceTypesInstanceType["InstanceTypeFamily"].isNull()) + instanceTypesObject.instanceTypeFamily = valueInstanceTypesInstanceType["InstanceTypeFamily"].asString(); if(!valueInstanceTypesInstanceType["CpuCoreCount"].isNull()) instanceTypesObject.cpuCoreCount = std::stoi(valueInstanceTypesInstanceType["CpuCoreCount"].asString()); if(!valueInstanceTypesInstanceType["MemorySize"].isNull()) instanceTypesObject.memorySize = std::stof(valueInstanceTypesInstanceType["MemorySize"].asString()); - if(!valueInstanceTypesInstanceType["InstanceTypeFamily"].isNull()) - instanceTypesObject.instanceTypeFamily = valueInstanceTypesInstanceType["InstanceTypeFamily"].asString(); instanceTypes_.push_back(instanceTypesObject); } - if(!value["RegionId"].isNull()) - regionId_ = value["RegionId"].asString(); if(!value["ImageId"].isNull()) imageId_ = value["ImageId"].asString(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); } diff --git a/ecs/src/model/DescribeImagesRequest.cc b/ecs/src/model/DescribeImagesRequest.cc index 66727f019..987296346 100644 --- a/ecs/src/model/DescribeImagesRequest.cc +++ b/ecs/src/model/DescribeImagesRequest.cc @@ -1,336 +1,280 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeImagesRequest; - -DescribeImagesRequest::DescribeImagesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeImages") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeImagesRequest::~DescribeImagesRequest() -{} - -std::string DescribeImagesRequest::getActionType()const -{ - return actionType_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeImagesRequest; + +DescribeImagesRequest::DescribeImagesRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeImages") { + setMethod(HttpRequest::Method::Post); } -void DescribeImagesRequest::setActionType(const std::string& actionType) -{ - actionType_ = actionType; - setParameter("ActionType", actionType); +DescribeImagesRequest::~DescribeImagesRequest() {} + +std::string DescribeImagesRequest::getActionType() const { + return actionType_; } -long DescribeImagesRequest::getImageOwnerId()const -{ - return imageOwnerId_; +void DescribeImagesRequest::setActionType(const std::string &actionType) { + actionType_ = actionType; + setParameter(std::string("ActionType"), actionType); } -void DescribeImagesRequest::setImageOwnerId(long imageOwnerId) -{ - imageOwnerId_ = imageOwnerId; - setParameter("ImageOwnerId", std::to_string(imageOwnerId)); +long DescribeImagesRequest::getImageOwnerId() const { + return imageOwnerId_; } -long DescribeImagesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void DescribeImagesRequest::setImageOwnerId(long imageOwnerId) { + imageOwnerId_ = imageOwnerId; + setParameter(std::string("ImageOwnerId"), std::to_string(imageOwnerId)); } -void DescribeImagesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long DescribeImagesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeImagesRequest::getImageId()const -{ - return imageId_; +void DescribeImagesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeImagesRequest::setImageId(const std::string& imageId) -{ - imageId_ = imageId; - setParameter("ImageId", imageId); +std::string DescribeImagesRequest::getImageId() const { + return imageId_; } -std::string DescribeImagesRequest::getSnapshotId()const -{ - return snapshotId_; +void DescribeImagesRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("ImageId"), imageId); } -void DescribeImagesRequest::setSnapshotId(const std::string& snapshotId) -{ - snapshotId_ = snapshotId; - setParameter("SnapshotId", snapshotId); +std::string DescribeImagesRequest::getSnapshotId() const { + return snapshotId_; } -std::string DescribeImagesRequest::getUsage()const -{ - return usage_; +void DescribeImagesRequest::setSnapshotId(const std::string &snapshotId) { + snapshotId_ = snapshotId; + setParameter(std::string("SnapshotId"), snapshotId); } -void DescribeImagesRequest::setUsage(const std::string& usage) -{ - usage_ = usage; - setParameter("Usage", usage); +std::string DescribeImagesRequest::getUsage() const { + return usage_; } -int DescribeImagesRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeImagesRequest::setUsage(const std::string &usage) { + usage_ = usage; + setParameter(std::string("Usage"), usage); } -void DescribeImagesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeImagesRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeImagesRequest::getImageOwnerAlias()const -{ - return imageOwnerAlias_; +void DescribeImagesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeImagesRequest::setImageOwnerAlias(const std::string& imageOwnerAlias) -{ - imageOwnerAlias_ = imageOwnerAlias; - setParameter("ImageOwnerAlias", imageOwnerAlias); +std::string DescribeImagesRequest::getImageOwnerAlias() const { + return imageOwnerAlias_; } -std::string DescribeImagesRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void DescribeImagesRequest::setImageOwnerAlias(const std::string &imageOwnerAlias) { + imageOwnerAlias_ = imageOwnerAlias; + setParameter(std::string("ImageOwnerAlias"), imageOwnerAlias); } -void DescribeImagesRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string DescribeImagesRequest::getResourceGroupId() const { + return resourceGroupId_; } -bool DescribeImagesRequest::getIsSupportIoOptimized()const -{ - return isSupportIoOptimized_; +void DescribeImagesRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void DescribeImagesRequest::setIsSupportIoOptimized(bool isSupportIoOptimized) -{ - isSupportIoOptimized_ = isSupportIoOptimized; - setParameter("IsSupportIoOptimized", isSupportIoOptimized ? "true" : "false"); +bool DescribeImagesRequest::getIsSupportIoOptimized() const { + return isSupportIoOptimized_; } -std::string DescribeImagesRequest::getRegionId()const -{ - return regionId_; +void DescribeImagesRequest::setIsSupportIoOptimized(bool isSupportIoOptimized) { + isSupportIoOptimized_ = isSupportIoOptimized; + setParameter(std::string("IsSupportIoOptimized"), isSupportIoOptimized ? "true" : "false"); } -void DescribeImagesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeImagesRequest::getRegionId() const { + return regionId_; } -std::string DescribeImagesRequest::getImageName()const -{ - return imageName_; +void DescribeImagesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeImagesRequest::setImageName(const std::string& imageName) -{ - imageName_ = imageName; - setParameter("ImageName", imageName); +std::string DescribeImagesRequest::getImageName() const { + return imageName_; } -bool DescribeImagesRequest::getIsSupportCloudinit()const -{ - return isSupportCloudinit_; +void DescribeImagesRequest::setImageName(const std::string &imageName) { + imageName_ = imageName; + setParameter(std::string("ImageName"), imageName); } -void DescribeImagesRequest::setIsSupportCloudinit(bool isSupportCloudinit) -{ - isSupportCloudinit_ = isSupportCloudinit; - setParameter("IsSupportCloudinit", isSupportCloudinit ? "true" : "false"); +bool DescribeImagesRequest::getIsSupportCloudinit() const { + return isSupportCloudinit_; } -bool DescribeImagesRequest::getIsPublic()const -{ - return isPublic_; +void DescribeImagesRequest::setIsSupportCloudinit(bool isSupportCloudinit) { + isSupportCloudinit_ = isSupportCloudinit; + setParameter(std::string("IsSupportCloudinit"), isSupportCloudinit ? "true" : "false"); } -void DescribeImagesRequest::setIsPublic(bool isPublic) -{ - isPublic_ = isPublic; - setParameter("IsPublic", isPublic ? "true" : "false"); +bool DescribeImagesRequest::getIsPublic() const { + return isPublic_; } -int DescribeImagesRequest::getPageSize()const -{ - return pageSize_; +void DescribeImagesRequest::setIsPublic(bool isPublic) { + isPublic_ = isPublic; + setParameter(std::string("IsPublic"), isPublic ? "true" : "false"); } -void DescribeImagesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeImagesRequest::getPageSize() const { + return pageSize_; } -std::string DescribeImagesRequest::getInstanceType()const -{ - return instanceType_; +void DescribeImagesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeImagesRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +std::string DescribeImagesRequest::getInstanceType() const { + return instanceType_; } -std::vector DescribeImagesRequest::getTag()const -{ - return tag_; +void DescribeImagesRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } -void DescribeImagesRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Value", tagObj.value); - setParameter(tagObjStr + ".Key", tagObj.key); - } +std::vector DescribeImagesRequest::getTag() const { + return tag_; } -std::string DescribeImagesRequest::getArchitecture()const -{ - return architecture_; +void DescribeImagesRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } -void DescribeImagesRequest::setArchitecture(const std::string& architecture) -{ - architecture_ = architecture; - setParameter("Architecture", architecture); +std::string DescribeImagesRequest::getArchitecture() const { + return architecture_; } -bool DescribeImagesRequest::getDryRun()const -{ - return dryRun_; +void DescribeImagesRequest::setArchitecture(const std::string &architecture) { + architecture_ = architecture; + setParameter(std::string("Architecture"), architecture); } -void DescribeImagesRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool DescribeImagesRequest::getDryRun() const { + return dryRun_; } -std::string DescribeImagesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeImagesRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void DescribeImagesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeImagesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeImagesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeImagesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeImagesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeImagesRequest::getOwnerAccount() const { + return ownerAccount_; } -bool DescribeImagesRequest::getShowExpired()const -{ - return showExpired_; +void DescribeImagesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeImagesRequest::setShowExpired(bool showExpired) -{ - showExpired_ = showExpired; - setParameter("ShowExpired", showExpired ? "true" : "false"); +bool DescribeImagesRequest::getShowExpired() const { + return showExpired_; } -std::string DescribeImagesRequest::getOSType()const -{ - return oSType_; +void DescribeImagesRequest::setShowExpired(bool showExpired) { + showExpired_ = showExpired; + setParameter(std::string("ShowExpired"), showExpired ? "true" : "false"); } -void DescribeImagesRequest::setOSType(const std::string& oSType) -{ - oSType_ = oSType; - setParameter("OSType", oSType); +std::string DescribeImagesRequest::getOSType() const { + return oSType_; } -long DescribeImagesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeImagesRequest::setOSType(const std::string &oSType) { + oSType_ = oSType; + setParameter(std::string("OSType"), oSType); } -void DescribeImagesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeImagesRequest::getOwnerId() const { + return ownerId_; } -std::vector DescribeImagesRequest::getFilter()const -{ - return filter_; +void DescribeImagesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeImagesRequest::setFilter(const std::vector& filter) -{ - filter_ = filter; - for(int dep1 = 0; dep1!= filter.size(); dep1++) { - auto filterObj = filter.at(dep1); - std::string filterObjStr = "Filter." + std::to_string(dep1 + 1); - setParameter(filterObjStr + ".Value", filterObj.value); - setParameter(filterObjStr + ".Key", filterObj.key); - } +std::vector DescribeImagesRequest::getFilter() const { + return filter_; } -std::string DescribeImagesRequest::getImageFamily()const -{ - return imageFamily_; +void DescribeImagesRequest::setFilter(const std::vector &filter) { + filter_ = filter; + for(int dep1 = 0; dep1 != filter.size(); dep1++) { + auto filterObj = filter.at(dep1); + std::string filterObjStr = std::string("Filter") + "." + std::to_string(dep1 + 1); + setParameter(filterObjStr + ".Value", filterObj.value); + setParameter(filterObjStr + ".Key", filterObj.key); + } } -void DescribeImagesRequest::setImageFamily(const std::string& imageFamily) -{ - imageFamily_ = imageFamily; - setParameter("ImageFamily", imageFamily); +std::string DescribeImagesRequest::getImageFamily() const { + return imageFamily_; } -std::string DescribeImagesRequest::getStatus()const -{ - return status_; +void DescribeImagesRequest::setImageFamily(const std::string &imageFamily) { + imageFamily_ = imageFamily; + setParameter(std::string("ImageFamily"), imageFamily); } -void DescribeImagesRequest::setStatus(const std::string& status) -{ - status_ = status; - setParameter("Status", status); +std::string DescribeImagesRequest::getStatus() const { + return status_; +} + +void DescribeImagesRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); } diff --git a/ecs/src/model/DescribeInstanceAttachmentAttributesRequest.cc b/ecs/src/model/DescribeInstanceAttachmentAttributesRequest.cc index 5429dee12..4716f8ba7 100644 --- a/ecs/src/model/DescribeInstanceAttachmentAttributesRequest.cc +++ b/ecs/src/model/DescribeInstanceAttachmentAttributesRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeInstanceAttachmentAttributesRequest; - -DescribeInstanceAttachmentAttributesRequest::DescribeInstanceAttachmentAttributesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceAttachmentAttributes") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeInstanceAttachmentAttributesRequest::~DescribeInstanceAttachmentAttributesRequest() -{} - -long DescribeInstanceAttachmentAttributesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeInstanceAttachmentAttributesRequest; + +DescribeInstanceAttachmentAttributesRequest::DescribeInstanceAttachmentAttributesRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceAttachmentAttributes") { + setMethod(HttpRequest::Method::Post); } -void DescribeInstanceAttachmentAttributesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeInstanceAttachmentAttributesRequest::~DescribeInstanceAttachmentAttributesRequest() {} + +long DescribeInstanceAttachmentAttributesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeInstanceAttachmentAttributesRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeInstanceAttachmentAttributesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeInstanceAttachmentAttributesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeInstanceAttachmentAttributesRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeInstanceAttachmentAttributesRequest::getRegionId()const -{ - return regionId_; +void DescribeInstanceAttachmentAttributesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeInstanceAttachmentAttributesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeInstanceAttachmentAttributesRequest::getRegionId() const { + return regionId_; } -int DescribeInstanceAttachmentAttributesRequest::getPageSize()const -{ - return pageSize_; +void DescribeInstanceAttachmentAttributesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeInstanceAttachmentAttributesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeInstanceAttachmentAttributesRequest::getPageSize() const { + return pageSize_; } -std::string DescribeInstanceAttachmentAttributesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeInstanceAttachmentAttributesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeInstanceAttachmentAttributesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeInstanceAttachmentAttributesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeInstanceAttachmentAttributesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeInstanceAttachmentAttributesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeInstanceAttachmentAttributesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeInstanceAttachmentAttributesRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeInstanceAttachmentAttributesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeInstanceAttachmentAttributesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeInstanceAttachmentAttributesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeInstanceAttachmentAttributesRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeInstanceAttachmentAttributesRequest::getInstanceIds()const -{ - return instanceIds_; +void DescribeInstanceAttachmentAttributesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeInstanceAttachmentAttributesRequest::setInstanceIds(const std::string& instanceIds) -{ - instanceIds_ = instanceIds; - setParameter("InstanceIds", instanceIds); +std::string DescribeInstanceAttachmentAttributesRequest::getInstanceIds() const { + return instanceIds_; +} + +void DescribeInstanceAttachmentAttributesRequest::setInstanceIds(const std::string &instanceIds) { + instanceIds_ = instanceIds; + setParameter(std::string("InstanceIds"), instanceIds); } diff --git a/ecs/src/model/DescribeInstanceAttachmentAttributesResult.cc b/ecs/src/model/DescribeInstanceAttachmentAttributesResult.cc index 3a52c064d..701b84b88 100644 --- a/ecs/src/model/DescribeInstanceAttachmentAttributesResult.cc +++ b/ecs/src/model/DescribeInstanceAttachmentAttributesResult.cc @@ -45,18 +45,18 @@ void DescribeInstanceAttachmentAttributesResult::parse(const std::string &payloa Instance instancesObject; if(!valueInstancesInstance["InstanceId"].isNull()) instancesObject.instanceId = valueInstancesInstance["InstanceId"].asString(); - if(!valueInstancesInstance["PrivatePoolOptionsId"].isNull()) - instancesObject.privatePoolOptionsId = valueInstancesInstance["PrivatePoolOptionsId"].asString(); if(!valueInstancesInstance["PrivatePoolOptionsMatchCriteria"].isNull()) instancesObject.privatePoolOptionsMatchCriteria = valueInstancesInstance["PrivatePoolOptionsMatchCriteria"].asString(); + if(!valueInstancesInstance["PrivatePoolOptionsId"].isNull()) + instancesObject.privatePoolOptionsId = valueInstancesInstance["PrivatePoolOptionsId"].asString(); instances_.push_back(instancesObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/ecs/src/model/DescribeInstanceAttributeRequest.cc b/ecs/src/model/DescribeInstanceAttributeRequest.cc index 43048a0d8..9983ec8bb 100644 --- a/ecs/src/model/DescribeInstanceAttributeRequest.cc +++ b/ecs/src/model/DescribeInstanceAttributeRequest.cc @@ -1,84 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeInstanceAttributeRequest; - -DescribeInstanceAttributeRequest::DescribeInstanceAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeInstanceAttributeRequest::~DescribeInstanceAttributeRequest() -{} - -long DescribeInstanceAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeInstanceAttributeRequest; + +DescribeInstanceAttributeRequest::DescribeInstanceAttributeRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceAttribute") { + setMethod(HttpRequest::Method::Post); } -void DescribeInstanceAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeInstanceAttributeRequest::~DescribeInstanceAttributeRequest() {} + +long DescribeInstanceAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeInstanceAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeInstanceAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeInstanceAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeInstanceAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeInstanceAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeInstanceAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeInstanceAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeInstanceAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeInstanceAttributeRequest::getOwnerId()const -{ - return ownerId_; +void DescribeInstanceAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeInstanceAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeInstanceAttributeRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeInstanceAttributeRequest::getInstanceId()const -{ - return instanceId_; +void DescribeInstanceAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeInstanceAttributeRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DescribeInstanceAttributeRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeInstanceAttributeRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/ecs/src/model/DescribeInstanceAttributeResult.cc b/ecs/src/model/DescribeInstanceAttributeResult.cc index a36afe23a..2dae30b4e 100644 --- a/ecs/src/model/DescribeInstanceAttributeResult.cc +++ b/ecs/src/model/DescribeInstanceAttributeResult.cc @@ -50,27 +50,27 @@ void DescribeInstanceAttributeResult::parse(const std::string &payload) auto vpcAttributesNode = value["VpcAttributes"]; if(!vpcAttributesNode["VpcId"].isNull()) vpcAttributes_.vpcId = vpcAttributesNode["VpcId"].asString(); - if(!vpcAttributesNode["VSwitchId"].isNull()) - vpcAttributes_.vSwitchId = vpcAttributesNode["VSwitchId"].asString(); if(!vpcAttributesNode["NatIpAddress"].isNull()) vpcAttributes_.natIpAddress = vpcAttributesNode["NatIpAddress"].asString(); + if(!vpcAttributesNode["VSwitchId"].isNull()) + vpcAttributes_.vSwitchId = vpcAttributesNode["VSwitchId"].asString(); auto allPrivateIpAddress = vpcAttributesNode["PrivateIpAddress"]["IpAddress"]; for (auto value : allPrivateIpAddress) vpcAttributes_.privateIpAddress.push_back(value.asString()); auto eipAddressNode = value["EipAddress"]; - if(!eipAddressNode["AllocationId"].isNull()) - eipAddress_.allocationId = eipAddressNode["AllocationId"].asString(); + if(!eipAddressNode["InternetChargeType"].isNull()) + eipAddress_.internetChargeType = eipAddressNode["InternetChargeType"].asString(); if(!eipAddressNode["IpAddress"].isNull()) eipAddress_.ipAddress = eipAddressNode["IpAddress"].asString(); if(!eipAddressNode["Bandwidth"].isNull()) eipAddress_.bandwidth = std::stoi(eipAddressNode["Bandwidth"].asString()); - if(!eipAddressNode["InternetChargeType"].isNull()) - eipAddress_.internetChargeType = eipAddressNode["InternetChargeType"].asString(); + if(!eipAddressNode["AllocationId"].isNull()) + eipAddress_.allocationId = eipAddressNode["AllocationId"].asString(); auto dedicatedHostAttributeNode = value["DedicatedHostAttribute"]; - if(!dedicatedHostAttributeNode["DedicatedHostId"].isNull()) - dedicatedHostAttribute_.dedicatedHostId = dedicatedHostAttributeNode["DedicatedHostId"].asString(); if(!dedicatedHostAttributeNode["DedicatedHostName"].isNull()) dedicatedHostAttribute_.dedicatedHostName = dedicatedHostAttributeNode["DedicatedHostName"].asString(); + if(!dedicatedHostAttributeNode["DedicatedHostId"].isNull()) + dedicatedHostAttribute_.dedicatedHostId = dedicatedHostAttributeNode["DedicatedHostId"].asString(); auto allSecurityGroupIds = value["SecurityGroupIds"]["SecurityGroupId"]; for (const auto &item : allSecurityGroupIds) securityGroupIds_.push_back(item.asString()); @@ -80,52 +80,52 @@ void DescribeInstanceAttributeResult::parse(const std::string &payload) auto allInnerIpAddress = value["InnerIpAddress"]["IpAddress"]; for (const auto &item : allInnerIpAddress) innerIpAddress_.push_back(item.asString()); - if(!value["InstanceId"].isNull()) - instanceId_ = value["InstanceId"].asString(); - if(!value["InstanceName"].isNull()) - instanceName_ = value["InstanceName"].asString(); - if(!value["ImageId"].isNull()) - imageId_ = value["ImageId"].asString(); - if(!value["RegionId"].isNull()) - regionId_ = value["RegionId"].asString(); - if(!value["ZoneId"].isNull()) - zoneId_ = value["ZoneId"].asString(); - if(!value["ClusterId"].isNull()) - clusterId_ = value["ClusterId"].asString(); - if(!value["InstanceType"].isNull()) - instanceType_ = value["InstanceType"].asString(); - if(!value["Cpu"].isNull()) - cpu_ = std::stoi(value["Cpu"].asString()); - if(!value["Memory"].isNull()) - memory_ = std::stoi(value["Memory"].asString()); - if(!value["HostName"].isNull()) - hostName_ = value["HostName"].asString(); if(!value["Status"].isNull()) status_ = value["Status"].asString(); - if(!value["InternetChargeType"].isNull()) - internetChargeType_ = value["InternetChargeType"].asString(); - if(!value["InternetMaxBandwidthIn"].isNull()) - internetMaxBandwidthIn_ = std::stoi(value["InternetMaxBandwidthIn"].asString()); - if(!value["InternetMaxBandwidthOut"].isNull()) - internetMaxBandwidthOut_ = std::stoi(value["InternetMaxBandwidthOut"].asString()); - if(!value["VlanId"].isNull()) - vlanId_ = value["VlanId"].asString(); if(!value["SerialNumber"].isNull()) serialNumber_ = value["SerialNumber"].asString(); if(!value["CreationTime"].isNull()) creationTime_ = value["CreationTime"].asString(); if(!value["Description"].isNull()) description_ = value["Description"].asString(); + if(!value["InstanceName"].isNull()) + instanceName_ = value["InstanceName"].asString(); if(!value["InstanceNetworkType"].isNull()) instanceNetworkType_ = value["InstanceNetworkType"].asString(); - if(!value["IoOptimized"].isNull()) - ioOptimized_ = value["IoOptimized"].asString(); - if(!value["InstanceChargeType"].isNull()) - instanceChargeType_ = value["InstanceChargeType"].asString(); - if(!value["ExpiredTime"].isNull()) - expiredTime_ = value["ExpiredTime"].asString(); + if(!value["Memory"].isNull()) + memory_ = std::stoi(value["Memory"].asString()); + if(!value["ImageId"].isNull()) + imageId_ = value["ImageId"].asString(); + if(!value["ClusterId"].isNull()) + clusterId_ = value["ClusterId"].asString(); + if(!value["VlanId"].isNull()) + vlanId_ = value["VlanId"].asString(); if(!value["StoppedMode"].isNull()) stoppedMode_ = value["StoppedMode"].asString(); + if(!value["HostName"].isNull()) + hostName_ = value["HostName"].asString(); + if(!value["InstanceId"].isNull()) + instanceId_ = value["InstanceId"].asString(); + if(!value["InstanceType"].isNull()) + instanceType_ = value["InstanceType"].asString(); + if(!value["InternetMaxBandwidthIn"].isNull()) + internetMaxBandwidthIn_ = std::stoi(value["InternetMaxBandwidthIn"].asString()); + if(!value["InternetMaxBandwidthOut"].isNull()) + internetMaxBandwidthOut_ = std::stoi(value["InternetMaxBandwidthOut"].asString()); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["InstanceChargeType"].isNull()) + instanceChargeType_ = value["InstanceChargeType"].asString(); + if(!value["IoOptimized"].isNull()) + ioOptimized_ = value["IoOptimized"].asString(); + if(!value["Cpu"].isNull()) + cpu_ = std::stoi(value["Cpu"].asString()); + if(!value["ExpiredTime"].isNull()) + expiredTime_ = value["ExpiredTime"].asString(); + if(!value["ZoneId"].isNull()) + zoneId_ = value["ZoneId"].asString(); + if(!value["InternetChargeType"].isNull()) + internetChargeType_ = value["InternetChargeType"].asString(); if(!value["CreditSpecification"].isNull()) creditSpecification_ = value["CreditSpecification"].asString(); @@ -186,16 +186,16 @@ std::string DescribeInstanceAttributeResult::getInstanceType()const return instanceType_; } -std::string DescribeInstanceAttributeResult::getHostName()const -{ - return hostName_; -} - std::string DescribeInstanceAttributeResult::getVlanId()const { return vlanId_; } +std::string DescribeInstanceAttributeResult::getHostName()const +{ + return hostName_; +} + std::string DescribeInstanceAttributeResult::getStatus()const { return status_; @@ -211,16 +211,16 @@ std::string DescribeInstanceAttributeResult::getZoneId()const return zoneId_; } -std::string DescribeInstanceAttributeResult::getInstanceId()const -{ - return instanceId_; -} - std::string DescribeInstanceAttributeResult::getClusterId()const { return clusterId_; } +std::string DescribeInstanceAttributeResult::getInstanceId()const +{ + return instanceId_; +} + std::string DescribeInstanceAttributeResult::getStoppedMode()const { return stoppedMode_; @@ -261,16 +261,16 @@ int DescribeInstanceAttributeResult::getInternetMaxBandwidthOut()const return internetMaxBandwidthOut_; } -int DescribeInstanceAttributeResult::getInternetMaxBandwidthIn()const -{ - return internetMaxBandwidthIn_; -} - std::string DescribeInstanceAttributeResult::getSerialNumber()const { return serialNumber_; } +int DescribeInstanceAttributeResult::getInternetMaxBandwidthIn()const +{ + return internetMaxBandwidthIn_; +} + std::string DescribeInstanceAttributeResult::getCreationTime()const { return creationTime_; diff --git a/ecs/src/model/DescribeInstanceAutoRenewAttributeRequest.cc b/ecs/src/model/DescribeInstanceAutoRenewAttributeRequest.cc index 03043e97b..94d667db6 100644 --- a/ecs/src/model/DescribeInstanceAutoRenewAttributeRequest.cc +++ b/ecs/src/model/DescribeInstanceAutoRenewAttributeRequest.cc @@ -1,128 +1,108 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeInstanceAutoRenewAttributeRequest; - -DescribeInstanceAutoRenewAttributeRequest::DescribeInstanceAutoRenewAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceAutoRenewAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeInstanceAutoRenewAttributeRequest::~DescribeInstanceAutoRenewAttributeRequest() -{} - -long DescribeInstanceAutoRenewAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeInstanceAutoRenewAttributeRequest; + +DescribeInstanceAutoRenewAttributeRequest::DescribeInstanceAutoRenewAttributeRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceAutoRenewAttribute") { + setMethod(HttpRequest::Method::Post); } -void DescribeInstanceAutoRenewAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeInstanceAutoRenewAttributeRequest::~DescribeInstanceAutoRenewAttributeRequest() {} + +long DescribeInstanceAutoRenewAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeInstanceAutoRenewAttributeRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeInstanceAutoRenewAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeInstanceAutoRenewAttributeRequest::setPageNumber(const std::string& pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", pageNumber); +std::string DescribeInstanceAutoRenewAttributeRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeInstanceAutoRenewAttributeRequest::getRegionId()const -{ - return regionId_; +void DescribeInstanceAutoRenewAttributeRequest::setPageNumber(const std::string &pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), pageNumber); } -void DescribeInstanceAutoRenewAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeInstanceAutoRenewAttributeRequest::getRegionId() const { + return regionId_; } -std::string DescribeInstanceAutoRenewAttributeRequest::getRenewalStatus()const -{ - return renewalStatus_; +void DescribeInstanceAutoRenewAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeInstanceAutoRenewAttributeRequest::setRenewalStatus(const std::string& renewalStatus) -{ - renewalStatus_ = renewalStatus; - setParameter("RenewalStatus", renewalStatus); +std::string DescribeInstanceAutoRenewAttributeRequest::getRenewalStatus() const { + return renewalStatus_; } -std::string DescribeInstanceAutoRenewAttributeRequest::getPageSize()const -{ - return pageSize_; +void DescribeInstanceAutoRenewAttributeRequest::setRenewalStatus(const std::string &renewalStatus) { + renewalStatus_ = renewalStatus; + setParameter(std::string("RenewalStatus"), renewalStatus); } -void DescribeInstanceAutoRenewAttributeRequest::setPageSize(const std::string& pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", pageSize); +std::string DescribeInstanceAutoRenewAttributeRequest::getPageSize() const { + return pageSize_; } -std::string DescribeInstanceAutoRenewAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeInstanceAutoRenewAttributeRequest::setPageSize(const std::string &pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), pageSize); } -void DescribeInstanceAutoRenewAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeInstanceAutoRenewAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeInstanceAutoRenewAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeInstanceAutoRenewAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeInstanceAutoRenewAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeInstanceAutoRenewAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeInstanceAutoRenewAttributeRequest::getOwnerId()const -{ - return ownerId_; +void DescribeInstanceAutoRenewAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeInstanceAutoRenewAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeInstanceAutoRenewAttributeRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeInstanceAutoRenewAttributeRequest::getInstanceId()const -{ - return instanceId_; +void DescribeInstanceAutoRenewAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeInstanceAutoRenewAttributeRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DescribeInstanceAutoRenewAttributeRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeInstanceAutoRenewAttributeRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/ecs/src/model/DescribeInstanceAutoRenewAttributeResult.cc b/ecs/src/model/DescribeInstanceAutoRenewAttributeResult.cc index 592f4ef8b..04ef4e422 100644 --- a/ecs/src/model/DescribeInstanceAutoRenewAttributeResult.cc +++ b/ecs/src/model/DescribeInstanceAutoRenewAttributeResult.cc @@ -43,16 +43,16 @@ void DescribeInstanceAutoRenewAttributeResult::parse(const std::string &payload) for (auto valueInstanceRenewAttributesInstanceRenewAttribute : allInstanceRenewAttributesNode) { InstanceRenewAttribute instanceRenewAttributesObject; + if(!valueInstanceRenewAttributesInstanceRenewAttribute["PeriodUnit"].isNull()) + instanceRenewAttributesObject.periodUnit = valueInstanceRenewAttributesInstanceRenewAttribute["PeriodUnit"].asString(); + if(!valueInstanceRenewAttributesInstanceRenewAttribute["Duration"].isNull()) + instanceRenewAttributesObject.duration = std::stoi(valueInstanceRenewAttributesInstanceRenewAttribute["Duration"].asString()); + if(!valueInstanceRenewAttributesInstanceRenewAttribute["RenewalStatus"].isNull()) + instanceRenewAttributesObject.renewalStatus = valueInstanceRenewAttributesInstanceRenewAttribute["RenewalStatus"].asString(); if(!valueInstanceRenewAttributesInstanceRenewAttribute["InstanceId"].isNull()) instanceRenewAttributesObject.instanceId = valueInstanceRenewAttributesInstanceRenewAttribute["InstanceId"].asString(); if(!valueInstanceRenewAttributesInstanceRenewAttribute["AutoRenewEnabled"].isNull()) instanceRenewAttributesObject.autoRenewEnabled = valueInstanceRenewAttributesInstanceRenewAttribute["AutoRenewEnabled"].asString() == "true"; - if(!valueInstanceRenewAttributesInstanceRenewAttribute["Duration"].isNull()) - instanceRenewAttributesObject.duration = std::stoi(valueInstanceRenewAttributesInstanceRenewAttribute["Duration"].asString()); - if(!valueInstanceRenewAttributesInstanceRenewAttribute["PeriodUnit"].isNull()) - instanceRenewAttributesObject.periodUnit = valueInstanceRenewAttributesInstanceRenewAttribute["PeriodUnit"].asString(); - if(!valueInstanceRenewAttributesInstanceRenewAttribute["RenewalStatus"].isNull()) - instanceRenewAttributesObject.renewalStatus = valueInstanceRenewAttributesInstanceRenewAttribute["RenewalStatus"].asString(); instanceRenewAttributes_.push_back(instanceRenewAttributesObject); } if(!value["PageNumber"].isNull()) diff --git a/ecs/src/model/DescribeInstanceHistoryEventsRequest.cc b/ecs/src/model/DescribeInstanceHistoryEventsRequest.cc index 65c577e7a..ef5691af6 100644 --- a/ecs/src/model/DescribeInstanceHistoryEventsRequest.cc +++ b/ecs/src/model/DescribeInstanceHistoryEventsRequest.cc @@ -1,284 +1,226 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeInstanceHistoryEventsRequest; - -DescribeInstanceHistoryEventsRequest::DescribeInstanceHistoryEventsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceHistoryEvents") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeInstanceHistoryEventsRequest::~DescribeInstanceHistoryEventsRequest() -{} - -std::vector DescribeInstanceHistoryEventsRequest::getEventId()const -{ - return eventId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeInstanceHistoryEventsRequest; + +DescribeInstanceHistoryEventsRequest::DescribeInstanceHistoryEventsRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceHistoryEvents") { + setMethod(HttpRequest::Method::Post); } -void DescribeInstanceHistoryEventsRequest::setEventId(const std::vector& eventId) -{ - eventId_ = eventId; - for(int dep1 = 0; dep1!= eventId.size(); dep1++) { - setParameter("EventId."+ std::to_string(dep1), eventId.at(dep1)); - } +DescribeInstanceHistoryEventsRequest::~DescribeInstanceHistoryEventsRequest() {} + +std::vector DescribeInstanceHistoryEventsRequest::getEventId() const { + return eventId_; } -long DescribeInstanceHistoryEventsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void DescribeInstanceHistoryEventsRequest::setEventId(const std::vector &eventId) { + eventId_ = eventId; } -void DescribeInstanceHistoryEventsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long DescribeInstanceHistoryEventsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeInstanceHistoryEventsRequest::getEventCycleStatus()const -{ - return eventCycleStatus_; +void DescribeInstanceHistoryEventsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeInstanceHistoryEventsRequest::setEventCycleStatus(const std::string& eventCycleStatus) -{ - eventCycleStatus_ = eventCycleStatus; - setParameter("EventCycleStatus", eventCycleStatus); +std::string DescribeInstanceHistoryEventsRequest::getEventCycleStatus() const { + return eventCycleStatus_; } -int DescribeInstanceHistoryEventsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeInstanceHistoryEventsRequest::setEventCycleStatus(const std::string &eventCycleStatus) { + eventCycleStatus_ = eventCycleStatus; + setParameter(std::string("EventCycleStatus"), eventCycleStatus); } -void DescribeInstanceHistoryEventsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeInstanceHistoryEventsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeInstanceHistoryEventsRequest::getImpactLevel()const -{ - return impactLevel_; +void DescribeInstanceHistoryEventsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeInstanceHistoryEventsRequest::setImpactLevel(const std::string& impactLevel) -{ - impactLevel_ = impactLevel; - setParameter("ImpactLevel", impactLevel); +std::string DescribeInstanceHistoryEventsRequest::getImpactLevel() const { + return impactLevel_; } -std::string DescribeInstanceHistoryEventsRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void DescribeInstanceHistoryEventsRequest::setImpactLevel(const std::string &impactLevel) { + impactLevel_ = impactLevel; + setParameter(std::string("ImpactLevel"), impactLevel); } -void DescribeInstanceHistoryEventsRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string DescribeInstanceHistoryEventsRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string DescribeInstanceHistoryEventsRequest::getRegionId()const -{ - return regionId_; +void DescribeInstanceHistoryEventsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void DescribeInstanceHistoryEventsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeInstanceHistoryEventsRequest::getRegionId() const { + return regionId_; } -int DescribeInstanceHistoryEventsRequest::getPageSize()const -{ - return pageSize_; +void DescribeInstanceHistoryEventsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeInstanceHistoryEventsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeInstanceHistoryEventsRequest::getPageSize() const { + return pageSize_; } -std::vector DescribeInstanceHistoryEventsRequest::getInstanceEventCycleStatus()const -{ - return instanceEventCycleStatus_; +void DescribeInstanceHistoryEventsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeInstanceHistoryEventsRequest::setInstanceEventCycleStatus(const std::vector& instanceEventCycleStatus) -{ - instanceEventCycleStatus_ = instanceEventCycleStatus; - for(int dep1 = 0; dep1!= instanceEventCycleStatus.size(); dep1++) { - setParameter("InstanceEventCycleStatus."+ std::to_string(dep1), instanceEventCycleStatus.at(dep1)); - } +std::vector DescribeInstanceHistoryEventsRequest::getInstanceEventCycleStatus() const { + return instanceEventCycleStatus_; } -std::vector DescribeInstanceHistoryEventsRequest::getTag()const -{ - return tag_; +void DescribeInstanceHistoryEventsRequest::setInstanceEventCycleStatus(const std::vector &instanceEventCycleStatus) { + instanceEventCycleStatus_ = instanceEventCycleStatus; } -void DescribeInstanceHistoryEventsRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Key", tagObj.key); - setParameter(tagObjStr + ".Value", tagObj.value); - } +std::vector DescribeInstanceHistoryEventsRequest::getTag() const { + return tag_; } -std::string DescribeInstanceHistoryEventsRequest::getEventPublishTimeEnd()const -{ - return eventPublishTimeEnd_; +void DescribeInstanceHistoryEventsRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } } -void DescribeInstanceHistoryEventsRequest::setEventPublishTimeEnd(const std::string& eventPublishTimeEnd) -{ - eventPublishTimeEnd_ = eventPublishTimeEnd; - setParameter("EventPublishTimeEnd", eventPublishTimeEnd); +std::string DescribeInstanceHistoryEventsRequest::getEventPublishTimeEnd() const { + return eventPublishTimeEnd_; } -std::vector DescribeInstanceHistoryEventsRequest::getResourceId()const -{ - return resourceId_; +void DescribeInstanceHistoryEventsRequest::setEventPublishTimeEnd(const std::string &eventPublishTimeEnd) { + eventPublishTimeEnd_ = eventPublishTimeEnd; + setParameter(std::string("EventPublishTime.End"), eventPublishTimeEnd); } -void DescribeInstanceHistoryEventsRequest::setResourceId(const std::vector& resourceId) -{ - resourceId_ = resourceId; - for(int dep1 = 0; dep1!= resourceId.size(); dep1++) { - setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1)); - } +std::vector DescribeInstanceHistoryEventsRequest::getResourceId() const { + return resourceId_; } -std::vector DescribeInstanceHistoryEventsRequest::getInstanceEventType()const -{ - return instanceEventType_; +void DescribeInstanceHistoryEventsRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; } -void DescribeInstanceHistoryEventsRequest::setInstanceEventType(const std::vector& instanceEventType) -{ - instanceEventType_ = instanceEventType; - for(int dep1 = 0; dep1!= instanceEventType.size(); dep1++) { - setParameter("InstanceEventType."+ std::to_string(dep1), instanceEventType.at(dep1)); - } +std::vector DescribeInstanceHistoryEventsRequest::getInstanceEventType() const { + return instanceEventType_; } -std::string DescribeInstanceHistoryEventsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeInstanceHistoryEventsRequest::setInstanceEventType(const std::vector &instanceEventType) { + instanceEventType_ = instanceEventType; } -void DescribeInstanceHistoryEventsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeInstanceHistoryEventsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeInstanceHistoryEventsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeInstanceHistoryEventsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeInstanceHistoryEventsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeInstanceHistoryEventsRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeInstanceHistoryEventsRequest::getNotBeforeStart()const -{ - return notBeforeStart_; +void DescribeInstanceHistoryEventsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeInstanceHistoryEventsRequest::setNotBeforeStart(const std::string& notBeforeStart) -{ - notBeforeStart_ = notBeforeStart; - setParameter("NotBeforeStart", notBeforeStart); +std::string DescribeInstanceHistoryEventsRequest::getNotBeforeStart() const { + return notBeforeStart_; } -long DescribeInstanceHistoryEventsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeInstanceHistoryEventsRequest::setNotBeforeStart(const std::string ¬BeforeStart) { + notBeforeStart_ = notBeforeStart; + setParameter(std::string("NotBefore.Start"), notBeforeStart); } -void DescribeInstanceHistoryEventsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeInstanceHistoryEventsRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeInstanceHistoryEventsRequest::getResourceType()const -{ - return resourceType_; +void DescribeInstanceHistoryEventsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeInstanceHistoryEventsRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +std::string DescribeInstanceHistoryEventsRequest::getResourceType() const { + return resourceType_; } -std::string DescribeInstanceHistoryEventsRequest::getEventPublishTimeStart()const -{ - return eventPublishTimeStart_; +void DescribeInstanceHistoryEventsRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); } -void DescribeInstanceHistoryEventsRequest::setEventPublishTimeStart(const std::string& eventPublishTimeStart) -{ - eventPublishTimeStart_ = eventPublishTimeStart; - setParameter("EventPublishTimeStart", eventPublishTimeStart); +std::string DescribeInstanceHistoryEventsRequest::getEventPublishTimeStart() const { + return eventPublishTimeStart_; } -std::string DescribeInstanceHistoryEventsRequest::getInstanceId()const -{ - return instanceId_; +void DescribeInstanceHistoryEventsRequest::setEventPublishTimeStart(const std::string &eventPublishTimeStart) { + eventPublishTimeStart_ = eventPublishTimeStart; + setParameter(std::string("EventPublishTime.Start"), eventPublishTimeStart); } -void DescribeInstanceHistoryEventsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DescribeInstanceHistoryEventsRequest::getInstanceId() const { + return instanceId_; } -std::string DescribeInstanceHistoryEventsRequest::getNotBeforeEnd()const -{ - return notBeforeEnd_; +void DescribeInstanceHistoryEventsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DescribeInstanceHistoryEventsRequest::setNotBeforeEnd(const std::string& notBeforeEnd) -{ - notBeforeEnd_ = notBeforeEnd; - setParameter("NotBeforeEnd", notBeforeEnd); +std::string DescribeInstanceHistoryEventsRequest::getNotBeforeEnd() const { + return notBeforeEnd_; } -std::string DescribeInstanceHistoryEventsRequest::getEventType()const -{ - return eventType_; +void DescribeInstanceHistoryEventsRequest::setNotBeforeEnd(const std::string ¬BeforeEnd) { + notBeforeEnd_ = notBeforeEnd; + setParameter(std::string("NotBefore.End"), notBeforeEnd); } -void DescribeInstanceHistoryEventsRequest::setEventType(const std::string& eventType) -{ - eventType_ = eventType; - setParameter("EventType", eventType); +std::string DescribeInstanceHistoryEventsRequest::getEventType() const { + return eventType_; +} + +void DescribeInstanceHistoryEventsRequest::setEventType(const std::string &eventType) { + eventType_ = eventType; + setParameter(std::string("EventType"), eventType); } diff --git a/ecs/src/model/DescribeInstanceMaintenanceAttributesRequest.cc b/ecs/src/model/DescribeInstanceMaintenanceAttributesRequest.cc index b1bbf9b17..9e155ce84 100644 --- a/ecs/src/model/DescribeInstanceMaintenanceAttributesRequest.cc +++ b/ecs/src/model/DescribeInstanceMaintenanceAttributesRequest.cc @@ -1,119 +1,98 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeInstanceMaintenanceAttributesRequest; - -DescribeInstanceMaintenanceAttributesRequest::DescribeInstanceMaintenanceAttributesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceMaintenanceAttributes") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeInstanceMaintenanceAttributesRequest::~DescribeInstanceMaintenanceAttributesRequest() -{} - -long DescribeInstanceMaintenanceAttributesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeInstanceMaintenanceAttributesRequest; + +DescribeInstanceMaintenanceAttributesRequest::DescribeInstanceMaintenanceAttributesRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceMaintenanceAttributes") { + setMethod(HttpRequest::Method::Post); } -void DescribeInstanceMaintenanceAttributesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeInstanceMaintenanceAttributesRequest::~DescribeInstanceMaintenanceAttributesRequest() {} + +long DescribeInstanceMaintenanceAttributesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -long DescribeInstanceMaintenanceAttributesRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeInstanceMaintenanceAttributesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeInstanceMaintenanceAttributesRequest::setPageNumber(long pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +long DescribeInstanceMaintenanceAttributesRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeInstanceMaintenanceAttributesRequest::getRegionId()const -{ - return regionId_; +void DescribeInstanceMaintenanceAttributesRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeInstanceMaintenanceAttributesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeInstanceMaintenanceAttributesRequest::getRegionId() const { + return regionId_; } -long DescribeInstanceMaintenanceAttributesRequest::getPageSize()const -{ - return pageSize_; +void DescribeInstanceMaintenanceAttributesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeInstanceMaintenanceAttributesRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +long DescribeInstanceMaintenanceAttributesRequest::getPageSize() const { + return pageSize_; } -std::string DescribeInstanceMaintenanceAttributesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeInstanceMaintenanceAttributesRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeInstanceMaintenanceAttributesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeInstanceMaintenanceAttributesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeInstanceMaintenanceAttributesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeInstanceMaintenanceAttributesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeInstanceMaintenanceAttributesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeInstanceMaintenanceAttributesRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeInstanceMaintenanceAttributesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeInstanceMaintenanceAttributesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeInstanceMaintenanceAttributesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeInstanceMaintenanceAttributesRequest::getOwnerId() const { + return ownerId_; } -std::vector DescribeInstanceMaintenanceAttributesRequest::getInstanceId()const -{ - return instanceId_; +void DescribeInstanceMaintenanceAttributesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeInstanceMaintenanceAttributesRequest::setInstanceId(const std::vector& instanceId) -{ - instanceId_ = instanceId; - for(int dep1 = 0; dep1!= instanceId.size(); dep1++) { - setParameter("InstanceId."+ std::to_string(dep1), instanceId.at(dep1)); - } +std::vector DescribeInstanceMaintenanceAttributesRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeInstanceMaintenanceAttributesRequest::setInstanceId(const std::vector &instanceId) { + instanceId_ = instanceId; } diff --git a/ecs/src/model/DescribeInstanceMaintenanceAttributesResult.cc b/ecs/src/model/DescribeInstanceMaintenanceAttributesResult.cc index 2d5620040..1d6cab5b6 100644 --- a/ecs/src/model/DescribeInstanceMaintenanceAttributesResult.cc +++ b/ecs/src/model/DescribeInstanceMaintenanceAttributesResult.cc @@ -43,36 +43,36 @@ void DescribeInstanceMaintenanceAttributesResult::parse(const std::string &paylo for (auto valueMaintenanceAttributesMaintenanceAttribute : allMaintenanceAttributesNode) { MaintenanceAttribute maintenanceAttributesObject; - if(!valueMaintenanceAttributesMaintenanceAttribute["InstanceId"].isNull()) - maintenanceAttributesObject.instanceId = valueMaintenanceAttributesMaintenanceAttribute["InstanceId"].asString(); if(!valueMaintenanceAttributesMaintenanceAttribute["NotifyOnMaintenance"].isNull()) maintenanceAttributesObject.notifyOnMaintenance = valueMaintenanceAttributesMaintenanceAttribute["NotifyOnMaintenance"].asString() == "true"; + if(!valueMaintenanceAttributesMaintenanceAttribute["InstanceId"].isNull()) + maintenanceAttributesObject.instanceId = valueMaintenanceAttributesMaintenanceAttribute["InstanceId"].asString(); auto allMaintenanceWindowsNode = valueMaintenanceAttributesMaintenanceAttribute["MaintenanceWindows"]["MaintenanceWindow"]; for (auto valueMaintenanceAttributesMaintenanceAttributeMaintenanceWindowsMaintenanceWindow : allMaintenanceWindowsNode) { MaintenanceAttribute::MaintenanceWindow maintenanceWindowsObject; - if(!valueMaintenanceAttributesMaintenanceAttributeMaintenanceWindowsMaintenanceWindow["StartTime"].isNull()) - maintenanceWindowsObject.startTime = valueMaintenanceAttributesMaintenanceAttributeMaintenanceWindowsMaintenanceWindow["StartTime"].asString(); if(!valueMaintenanceAttributesMaintenanceAttributeMaintenanceWindowsMaintenanceWindow["EndTime"].isNull()) maintenanceWindowsObject.endTime = valueMaintenanceAttributesMaintenanceAttributeMaintenanceWindowsMaintenanceWindow["EndTime"].asString(); + if(!valueMaintenanceAttributesMaintenanceAttributeMaintenanceWindowsMaintenanceWindow["StartTime"].isNull()) + maintenanceWindowsObject.startTime = valueMaintenanceAttributesMaintenanceAttributeMaintenanceWindowsMaintenanceWindow["StartTime"].asString(); maintenanceAttributesObject.maintenanceWindows.push_back(maintenanceWindowsObject); } auto actionOnMaintenanceNode = value["ActionOnMaintenance"]; - if(!actionOnMaintenanceNode["Value"].isNull()) - maintenanceAttributesObject.actionOnMaintenance.value = actionOnMaintenanceNode["Value"].asString(); if(!actionOnMaintenanceNode["DefaultValue"].isNull()) maintenanceAttributesObject.actionOnMaintenance.defaultValue = actionOnMaintenanceNode["DefaultValue"].asString(); + if(!actionOnMaintenanceNode["Value"].isNull()) + maintenanceAttributesObject.actionOnMaintenance.value = actionOnMaintenanceNode["Value"].asString(); auto allSupportedValues = actionOnMaintenanceNode["SupportedValues"]["SupportedValue"]; for (auto value : allSupportedValues) maintenanceAttributesObject.actionOnMaintenance.supportedValues.push_back(value.asString()); maintenanceAttributes_.push_back(maintenanceAttributesObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/ecs/src/model/DescribeInstanceModificationPriceRequest.cc b/ecs/src/model/DescribeInstanceModificationPriceRequest.cc index b3ae978a1..654577c68 100644 --- a/ecs/src/model/DescribeInstanceModificationPriceRequest.cc +++ b/ecs/src/model/DescribeInstanceModificationPriceRequest.cc @@ -1,134 +1,114 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeInstanceModificationPriceRequest; - -DescribeInstanceModificationPriceRequest::DescribeInstanceModificationPriceRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceModificationPrice") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeInstanceModificationPriceRequest::~DescribeInstanceModificationPriceRequest() -{} - -long DescribeInstanceModificationPriceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeInstanceModificationPriceRequest; + +DescribeInstanceModificationPriceRequest::DescribeInstanceModificationPriceRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceModificationPrice") { + setMethod(HttpRequest::Method::Post); } -void DescribeInstanceModificationPriceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeInstanceModificationPriceRequest::~DescribeInstanceModificationPriceRequest() {} + +long DescribeInstanceModificationPriceRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeInstanceModificationPriceRequest::getSystemDiskCategory()const -{ - return systemDiskCategory_; +void DescribeInstanceModificationPriceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeInstanceModificationPriceRequest::setSystemDiskCategory(const std::string& systemDiskCategory) -{ - systemDiskCategory_ = systemDiskCategory; - setParameter("SystemDiskCategory", systemDiskCategory); +std::string DescribeInstanceModificationPriceRequest::getSystemDiskCategory() const { + return systemDiskCategory_; } -std::string DescribeInstanceModificationPriceRequest::getRegionId()const -{ - return regionId_; +void DescribeInstanceModificationPriceRequest::setSystemDiskCategory(const std::string &systemDiskCategory) { + systemDiskCategory_ = systemDiskCategory; + setParameter(std::string("SystemDisk.Category"), systemDiskCategory); } -void DescribeInstanceModificationPriceRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeInstanceModificationPriceRequest::getRegionId() const { + return regionId_; } -std::string DescribeInstanceModificationPriceRequest::getInstanceType()const -{ - return instanceType_; +void DescribeInstanceModificationPriceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeInstanceModificationPriceRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +std::string DescribeInstanceModificationPriceRequest::getInstanceType() const { + return instanceType_; } -std::string DescribeInstanceModificationPriceRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeInstanceModificationPriceRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } -void DescribeInstanceModificationPriceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeInstanceModificationPriceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeInstanceModificationPriceRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeInstanceModificationPriceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeInstanceModificationPriceRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeInstanceModificationPriceRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeInstanceModificationPriceRequest::getOwnerId()const -{ - return ownerId_; +void DescribeInstanceModificationPriceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeInstanceModificationPriceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeInstanceModificationPriceRequest::getOwnerId() const { + return ownerId_; } -std::vector DescribeInstanceModificationPriceRequest::getDataDisk()const -{ - return dataDisk_; +void DescribeInstanceModificationPriceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeInstanceModificationPriceRequest::setDataDisk(const std::vector& dataDisk) -{ - dataDisk_ = dataDisk; - for(int dep1 = 0; dep1!= dataDisk.size(); dep1++) { - auto dataDiskObj = dataDisk.at(dep1); - std::string dataDiskObjStr = "DataDisk." + std::to_string(dep1 + 1); - setParameter(dataDiskObjStr + ".PerformanceLevel", dataDiskObj.performanceLevel); - setParameter(dataDiskObjStr + ".Size", std::to_string(dataDiskObj.size)); - setParameter(dataDiskObjStr + ".Category", dataDiskObj.category); - } +std::vector DescribeInstanceModificationPriceRequest::getDataDisk() const { + return dataDisk_; } -std::string DescribeInstanceModificationPriceRequest::getInstanceId()const -{ - return instanceId_; +void DescribeInstanceModificationPriceRequest::setDataDisk(const std::vector &dataDisk) { + dataDisk_ = dataDisk; + for(int dep1 = 0; dep1 != dataDisk.size(); dep1++) { + auto dataDiskObj = dataDisk.at(dep1); + std::string dataDiskObjStr = std::string("DataDisk") + "." + std::to_string(dep1 + 1); + setParameter(dataDiskObjStr + ".PerformanceLevel", dataDiskObj.performanceLevel); + setParameter(dataDiskObjStr + ".Size", std::to_string(dataDiskObj.size)); + setParameter(dataDiskObjStr + ".Category", dataDiskObj.category); + } } -void DescribeInstanceModificationPriceRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DescribeInstanceModificationPriceRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeInstanceModificationPriceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/ecs/src/model/DescribeInstanceMonitorDataRequest.cc b/ecs/src/model/DescribeInstanceMonitorDataRequest.cc index a3ac1a9f1..2e86c9567 100644 --- a/ecs/src/model/DescribeInstanceMonitorDataRequest.cc +++ b/ecs/src/model/DescribeInstanceMonitorDataRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeInstanceMonitorDataRequest; - -DescribeInstanceMonitorDataRequest::DescribeInstanceMonitorDataRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceMonitorData") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeInstanceMonitorDataRequest::~DescribeInstanceMonitorDataRequest() -{} - -long DescribeInstanceMonitorDataRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeInstanceMonitorDataRequest; + +DescribeInstanceMonitorDataRequest::DescribeInstanceMonitorDataRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceMonitorData") { + setMethod(HttpRequest::Method::Post); } -void DescribeInstanceMonitorDataRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeInstanceMonitorDataRequest::~DescribeInstanceMonitorDataRequest() {} + +long DescribeInstanceMonitorDataRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeInstanceMonitorDataRequest::getStartTime()const -{ - return startTime_; +void DescribeInstanceMonitorDataRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeInstanceMonitorDataRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string DescribeInstanceMonitorDataRequest::getStartTime() const { + return startTime_; } -int DescribeInstanceMonitorDataRequest::getPeriod()const -{ - return period_; +void DescribeInstanceMonitorDataRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void DescribeInstanceMonitorDataRequest::setPeriod(int period) -{ - period_ = period; - setParameter("Period", std::to_string(period)); +int DescribeInstanceMonitorDataRequest::getPeriod() const { + return period_; } -std::string DescribeInstanceMonitorDataRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeInstanceMonitorDataRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); } -void DescribeInstanceMonitorDataRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeInstanceMonitorDataRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeInstanceMonitorDataRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeInstanceMonitorDataRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeInstanceMonitorDataRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeInstanceMonitorDataRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeInstanceMonitorDataRequest::getEndTime()const -{ - return endTime_; +void DescribeInstanceMonitorDataRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeInstanceMonitorDataRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +std::string DescribeInstanceMonitorDataRequest::getEndTime() const { + return endTime_; } -long DescribeInstanceMonitorDataRequest::getOwnerId()const -{ - return ownerId_; +void DescribeInstanceMonitorDataRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void DescribeInstanceMonitorDataRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeInstanceMonitorDataRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeInstanceMonitorDataRequest::getInstanceId()const -{ - return instanceId_; +void DescribeInstanceMonitorDataRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeInstanceMonitorDataRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DescribeInstanceMonitorDataRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeInstanceMonitorDataRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/ecs/src/model/DescribeInstanceMonitorDataResult.cc b/ecs/src/model/DescribeInstanceMonitorDataResult.cc index 4fb20a188..22c5597e3 100644 --- a/ecs/src/model/DescribeInstanceMonitorDataResult.cc +++ b/ecs/src/model/DescribeInstanceMonitorDataResult.cc @@ -43,40 +43,40 @@ void DescribeInstanceMonitorDataResult::parse(const std::string &payload) for (auto valueMonitorDataInstanceMonitorData : allMonitorDataNode) { InstanceMonitorData monitorDataObject; - if(!valueMonitorDataInstanceMonitorData["InstanceId"].isNull()) - monitorDataObject.instanceId = valueMonitorDataInstanceMonitorData["InstanceId"].asString(); - if(!valueMonitorDataInstanceMonitorData["CPU"].isNull()) - monitorDataObject.cPU = std::stoi(valueMonitorDataInstanceMonitorData["CPU"].asString()); - if(!valueMonitorDataInstanceMonitorData["IntranetRX"].isNull()) - monitorDataObject.intranetRX = std::stoi(valueMonitorDataInstanceMonitorData["IntranetRX"].asString()); - if(!valueMonitorDataInstanceMonitorData["IntranetTX"].isNull()) - monitorDataObject.intranetTX = std::stoi(valueMonitorDataInstanceMonitorData["IntranetTX"].asString()); - if(!valueMonitorDataInstanceMonitorData["IntranetBandwidth"].isNull()) - monitorDataObject.intranetBandwidth = std::stoi(valueMonitorDataInstanceMonitorData["IntranetBandwidth"].asString()); - if(!valueMonitorDataInstanceMonitorData["InternetRX"].isNull()) - monitorDataObject.internetRX = std::stoi(valueMonitorDataInstanceMonitorData["InternetRX"].asString()); - if(!valueMonitorDataInstanceMonitorData["InternetTX"].isNull()) - monitorDataObject.internetTX = std::stoi(valueMonitorDataInstanceMonitorData["InternetTX"].asString()); - if(!valueMonitorDataInstanceMonitorData["InternetBandwidth"].isNull()) - monitorDataObject.internetBandwidth = std::stoi(valueMonitorDataInstanceMonitorData["InternetBandwidth"].asString()); - if(!valueMonitorDataInstanceMonitorData["IOPSRead"].isNull()) - monitorDataObject.iOPSRead = std::stoi(valueMonitorDataInstanceMonitorData["IOPSRead"].asString()); - if(!valueMonitorDataInstanceMonitorData["IOPSWrite"].isNull()) - monitorDataObject.iOPSWrite = std::stoi(valueMonitorDataInstanceMonitorData["IOPSWrite"].asString()); - if(!valueMonitorDataInstanceMonitorData["BPSRead"].isNull()) - monitorDataObject.bPSRead = std::stoi(valueMonitorDataInstanceMonitorData["BPSRead"].asString()); - if(!valueMonitorDataInstanceMonitorData["BPSWrite"].isNull()) - monitorDataObject.bPSWrite = std::stoi(valueMonitorDataInstanceMonitorData["BPSWrite"].asString()); - if(!valueMonitorDataInstanceMonitorData["CPUCreditUsage"].isNull()) - monitorDataObject.cPUCreditUsage = std::stof(valueMonitorDataInstanceMonitorData["CPUCreditUsage"].asString()); if(!valueMonitorDataInstanceMonitorData["CPUCreditBalance"].isNull()) monitorDataObject.cPUCreditBalance = std::stof(valueMonitorDataInstanceMonitorData["CPUCreditBalance"].asString()); - if(!valueMonitorDataInstanceMonitorData["CPUAdvanceCreditBalance"].isNull()) - monitorDataObject.cPUAdvanceCreditBalance = std::stof(valueMonitorDataInstanceMonitorData["CPUAdvanceCreditBalance"].asString()); + if(!valueMonitorDataInstanceMonitorData["BPSRead"].isNull()) + monitorDataObject.bPSRead = std::stoi(valueMonitorDataInstanceMonitorData["BPSRead"].asString()); + if(!valueMonitorDataInstanceMonitorData["InternetTX"].isNull()) + monitorDataObject.internetTX = std::stoi(valueMonitorDataInstanceMonitorData["InternetTX"].asString()); + if(!valueMonitorDataInstanceMonitorData["CPU"].isNull()) + monitorDataObject.cPU = std::stoi(valueMonitorDataInstanceMonitorData["CPU"].asString()); + if(!valueMonitorDataInstanceMonitorData["CPUCreditUsage"].isNull()) + monitorDataObject.cPUCreditUsage = std::stof(valueMonitorDataInstanceMonitorData["CPUCreditUsage"].asString()); + if(!valueMonitorDataInstanceMonitorData["IOPSWrite"].isNull()) + monitorDataObject.iOPSWrite = std::stoi(valueMonitorDataInstanceMonitorData["IOPSWrite"].asString()); + if(!valueMonitorDataInstanceMonitorData["IntranetTX"].isNull()) + monitorDataObject.intranetTX = std::stoi(valueMonitorDataInstanceMonitorData["IntranetTX"].asString()); + if(!valueMonitorDataInstanceMonitorData["InstanceId"].isNull()) + monitorDataObject.instanceId = valueMonitorDataInstanceMonitorData["InstanceId"].asString(); + if(!valueMonitorDataInstanceMonitorData["BPSWrite"].isNull()) + monitorDataObject.bPSWrite = std::stoi(valueMonitorDataInstanceMonitorData["BPSWrite"].asString()); if(!valueMonitorDataInstanceMonitorData["CPUNotpaidSurplusCreditUsage"].isNull()) monitorDataObject.cPUNotpaidSurplusCreditUsage = std::stof(valueMonitorDataInstanceMonitorData["CPUNotpaidSurplusCreditUsage"].asString()); + if(!valueMonitorDataInstanceMonitorData["CPUAdvanceCreditBalance"].isNull()) + monitorDataObject.cPUAdvanceCreditBalance = std::stof(valueMonitorDataInstanceMonitorData["CPUAdvanceCreditBalance"].asString()); + if(!valueMonitorDataInstanceMonitorData["IOPSRead"].isNull()) + monitorDataObject.iOPSRead = std::stoi(valueMonitorDataInstanceMonitorData["IOPSRead"].asString()); + if(!valueMonitorDataInstanceMonitorData["InternetBandwidth"].isNull()) + monitorDataObject.internetBandwidth = std::stoi(valueMonitorDataInstanceMonitorData["InternetBandwidth"].asString()); + if(!valueMonitorDataInstanceMonitorData["InternetRX"].isNull()) + monitorDataObject.internetRX = std::stoi(valueMonitorDataInstanceMonitorData["InternetRX"].asString()); if(!valueMonitorDataInstanceMonitorData["TimeStamp"].isNull()) monitorDataObject.timeStamp = valueMonitorDataInstanceMonitorData["TimeStamp"].asString(); + if(!valueMonitorDataInstanceMonitorData["IntranetRX"].isNull()) + monitorDataObject.intranetRX = std::stoi(valueMonitorDataInstanceMonitorData["IntranetRX"].asString()); + if(!valueMonitorDataInstanceMonitorData["IntranetBandwidth"].isNull()) + monitorDataObject.intranetBandwidth = std::stoi(valueMonitorDataInstanceMonitorData["IntranetBandwidth"].asString()); monitorData_.push_back(monitorDataObject); } diff --git a/ecs/src/model/DescribeInstanceRamRoleRequest.cc b/ecs/src/model/DescribeInstanceRamRoleRequest.cc index 415cd2e5c..982363f84 100644 --- a/ecs/src/model/DescribeInstanceRamRoleRequest.cc +++ b/ecs/src/model/DescribeInstanceRamRoleRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeInstanceRamRoleRequest; - -DescribeInstanceRamRoleRequest::DescribeInstanceRamRoleRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceRamRole") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeInstanceRamRoleRequest::~DescribeInstanceRamRoleRequest() -{} - -long DescribeInstanceRamRoleRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeInstanceRamRoleRequest; + +DescribeInstanceRamRoleRequest::DescribeInstanceRamRoleRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceRamRole") { + setMethod(HttpRequest::Method::Post); } -void DescribeInstanceRamRoleRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeInstanceRamRoleRequest::~DescribeInstanceRamRoleRequest() {} + +long DescribeInstanceRamRoleRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeInstanceRamRoleRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeInstanceRamRoleRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeInstanceRamRoleRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeInstanceRamRoleRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeInstanceRamRoleRequest::getRegionId()const -{ - return regionId_; +void DescribeInstanceRamRoleRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeInstanceRamRoleRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeInstanceRamRoleRequest::getRegionId() const { + return regionId_; } -int DescribeInstanceRamRoleRequest::getPageSize()const -{ - return pageSize_; +void DescribeInstanceRamRoleRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeInstanceRamRoleRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeInstanceRamRoleRequest::getPageSize() const { + return pageSize_; } -std::string DescribeInstanceRamRoleRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeInstanceRamRoleRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeInstanceRamRoleRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeInstanceRamRoleRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeInstanceRamRoleRequest::getRamRoleName()const -{ - return ramRoleName_; +void DescribeInstanceRamRoleRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeInstanceRamRoleRequest::setRamRoleName(const std::string& ramRoleName) -{ - ramRoleName_ = ramRoleName; - setParameter("RamRoleName", ramRoleName); +std::string DescribeInstanceRamRoleRequest::getRamRoleName() const { + return ramRoleName_; } -long DescribeInstanceRamRoleRequest::getOwnerId()const -{ - return ownerId_; +void DescribeInstanceRamRoleRequest::setRamRoleName(const std::string &ramRoleName) { + ramRoleName_ = ramRoleName; + setParameter(std::string("RamRoleName"), ramRoleName); } -void DescribeInstanceRamRoleRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeInstanceRamRoleRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeInstanceRamRoleRequest::getInstanceIds()const -{ - return instanceIds_; +void DescribeInstanceRamRoleRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeInstanceRamRoleRequest::setInstanceIds(const std::string& instanceIds) -{ - instanceIds_ = instanceIds; - setParameter("InstanceIds", instanceIds); +std::string DescribeInstanceRamRoleRequest::getInstanceIds() const { + return instanceIds_; +} + +void DescribeInstanceRamRoleRequest::setInstanceIds(const std::string &instanceIds) { + instanceIds_ = instanceIds; + setParameter(std::string("InstanceIds"), instanceIds); } diff --git a/ecs/src/model/DescribeInstanceRamRoleResult.cc b/ecs/src/model/DescribeInstanceRamRoleResult.cc index 39f923455..f3e733b87 100644 --- a/ecs/src/model/DescribeInstanceRamRoleResult.cc +++ b/ecs/src/model/DescribeInstanceRamRoleResult.cc @@ -43,16 +43,16 @@ void DescribeInstanceRamRoleResult::parse(const std::string &payload) for (auto valueInstanceRamRoleSetsInstanceRamRoleSet : allInstanceRamRoleSetsNode) { InstanceRamRoleSet instanceRamRoleSetsObject; - if(!valueInstanceRamRoleSetsInstanceRamRoleSet["InstanceId"].isNull()) - instanceRamRoleSetsObject.instanceId = valueInstanceRamRoleSetsInstanceRamRoleSet["InstanceId"].asString(); if(!valueInstanceRamRoleSetsInstanceRamRoleSet["RamRoleName"].isNull()) instanceRamRoleSetsObject.ramRoleName = valueInstanceRamRoleSetsInstanceRamRoleSet["RamRoleName"].asString(); + if(!valueInstanceRamRoleSetsInstanceRamRoleSet["InstanceId"].isNull()) + instanceRamRoleSetsObject.instanceId = valueInstanceRamRoleSetsInstanceRamRoleSet["InstanceId"].asString(); instanceRamRoleSets_.push_back(instanceRamRoleSetsObject); } - if(!value["RegionId"].isNull()) - regionId_ = value["RegionId"].asString(); if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); } diff --git a/ecs/src/model/DescribeInstanceStatusRequest.cc b/ecs/src/model/DescribeInstanceStatusRequest.cc index c493c35a3..264e00c2a 100644 --- a/ecs/src/model/DescribeInstanceStatusRequest.cc +++ b/ecs/src/model/DescribeInstanceStatusRequest.cc @@ -1,141 +1,116 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeInstanceStatusRequest; - -DescribeInstanceStatusRequest::DescribeInstanceStatusRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceStatus") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeInstanceStatusRequest::~DescribeInstanceStatusRequest() -{} - -long DescribeInstanceStatusRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeInstanceStatusRequest; + +DescribeInstanceStatusRequest::DescribeInstanceStatusRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceStatus") { + setMethod(HttpRequest::Method::Post); } -void DescribeInstanceStatusRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeInstanceStatusRequest::~DescribeInstanceStatusRequest() {} + +long DescribeInstanceStatusRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeInstanceStatusRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeInstanceStatusRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeInstanceStatusRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeInstanceStatusRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeInstanceStatusRequest::getRegionId()const -{ - return regionId_; +void DescribeInstanceStatusRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeInstanceStatusRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeInstanceStatusRequest::getRegionId() const { + return regionId_; } -int DescribeInstanceStatusRequest::getPageSize()const -{ - return pageSize_; +void DescribeInstanceStatusRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeInstanceStatusRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeInstanceStatusRequest::getPageSize() const { + return pageSize_; } -std::string DescribeInstanceStatusRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeInstanceStatusRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeInstanceStatusRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeInstanceStatusRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeInstanceStatusRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeInstanceStatusRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeInstanceStatusRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeInstanceStatusRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeInstanceStatusRequest::getClusterId()const -{ - return clusterId_; +void DescribeInstanceStatusRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeInstanceStatusRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); +std::string DescribeInstanceStatusRequest::getClusterId() const { + return clusterId_; } -long DescribeInstanceStatusRequest::getOwnerId()const -{ - return ownerId_; +void DescribeInstanceStatusRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); } -void DescribeInstanceStatusRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeInstanceStatusRequest::getOwnerId() const { + return ownerId_; } -std::vector DescribeInstanceStatusRequest::getInstanceId()const -{ - return instanceId_; +void DescribeInstanceStatusRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeInstanceStatusRequest::setInstanceId(const std::vector& instanceId) -{ - instanceId_ = instanceId; - for(int dep1 = 0; dep1!= instanceId.size(); dep1++) { - setParameter("InstanceId."+ std::to_string(dep1), instanceId.at(dep1)); - } +std::vector DescribeInstanceStatusRequest::getInstanceId() const { + return instanceId_; } -std::string DescribeInstanceStatusRequest::getZoneId()const -{ - return zoneId_; +void DescribeInstanceStatusRequest::setInstanceId(const std::vector &instanceId) { + instanceId_ = instanceId; } -void DescribeInstanceStatusRequest::setZoneId(const std::string& zoneId) -{ - zoneId_ = zoneId; - setParameter("ZoneId", zoneId); +std::string DescribeInstanceStatusRequest::getZoneId() const { + return zoneId_; +} + +void DescribeInstanceStatusRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); } diff --git a/ecs/src/model/DescribeInstanceStatusResult.cc b/ecs/src/model/DescribeInstanceStatusResult.cc index 2467562dd..04ac63158 100644 --- a/ecs/src/model/DescribeInstanceStatusResult.cc +++ b/ecs/src/model/DescribeInstanceStatusResult.cc @@ -43,18 +43,18 @@ void DescribeInstanceStatusResult::parse(const std::string &payload) for (auto valueInstanceStatusesInstanceStatus : allInstanceStatusesNode) { InstanceStatus instanceStatusesObject; - if(!valueInstanceStatusesInstanceStatus["InstanceId"].isNull()) - instanceStatusesObject.instanceId = valueInstanceStatusesInstanceStatus["InstanceId"].asString(); if(!valueInstanceStatusesInstanceStatus["Status"].isNull()) instanceStatusesObject.status = valueInstanceStatusesInstanceStatus["Status"].asString(); + if(!valueInstanceStatusesInstanceStatus["InstanceId"].isNull()) + instanceStatusesObject.instanceId = valueInstanceStatusesInstanceStatus["InstanceId"].asString(); instanceStatuses_.push_back(instanceStatusesObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/ecs/src/model/DescribeInstanceTopologyRequest.cc b/ecs/src/model/DescribeInstanceTopologyRequest.cc index 5b7ff8e7d..38ec86e78 100644 --- a/ecs/src/model/DescribeInstanceTopologyRequest.cc +++ b/ecs/src/model/DescribeInstanceTopologyRequest.cc @@ -1,84 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeInstanceTopologyRequest; - -DescribeInstanceTopologyRequest::DescribeInstanceTopologyRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceTopology") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeInstanceTopologyRequest::~DescribeInstanceTopologyRequest() -{} - -long DescribeInstanceTopologyRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeInstanceTopologyRequest; + +DescribeInstanceTopologyRequest::DescribeInstanceTopologyRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceTopology") { + setMethod(HttpRequest::Method::Post); } -void DescribeInstanceTopologyRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeInstanceTopologyRequest::~DescribeInstanceTopologyRequest() {} + +long DescribeInstanceTopologyRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeInstanceTopologyRequest::getRegionId()const -{ - return regionId_; +void DescribeInstanceTopologyRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeInstanceTopologyRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeInstanceTopologyRequest::getRegionId() const { + return regionId_; } -std::string DescribeInstanceTopologyRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeInstanceTopologyRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeInstanceTopologyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeInstanceTopologyRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long DescribeInstanceTopologyRequest::getOwnerId()const -{ - return ownerId_; +void DescribeInstanceTopologyRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeInstanceTopologyRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeInstanceTopologyRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeInstanceTopologyRequest::getInstanceIds()const -{ - return instanceIds_; +void DescribeInstanceTopologyRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeInstanceTopologyRequest::setInstanceIds(const std::string& instanceIds) -{ - instanceIds_ = instanceIds; - setParameter("InstanceIds", instanceIds); +std::string DescribeInstanceTopologyRequest::getInstanceIds() const { + return instanceIds_; +} + +void DescribeInstanceTopologyRequest::setInstanceIds(const std::string &instanceIds) { + instanceIds_ = instanceIds; + setParameter(std::string("InstanceIds"), instanceIds); } diff --git a/ecs/src/model/DescribeInstanceTopologyResult.cc b/ecs/src/model/DescribeInstanceTopologyResult.cc index fd74bf80d..d99177fca 100644 --- a/ecs/src/model/DescribeInstanceTopologyResult.cc +++ b/ecs/src/model/DescribeInstanceTopologyResult.cc @@ -43,10 +43,10 @@ void DescribeInstanceTopologyResult::parse(const std::string &payload) for (auto valueTopologysTopology : allTopologysNode) { Topology topologysObject; - if(!valueTopologysTopology["InstanceId"].isNull()) - topologysObject.instanceId = valueTopologysTopology["InstanceId"].asString(); if(!valueTopologysTopology["HostId"].isNull()) topologysObject.hostId = valueTopologysTopology["HostId"].asString(); + if(!valueTopologysTopology["InstanceId"].isNull()) + topologysObject.instanceId = valueTopologysTopology["InstanceId"].asString(); topologys_.push_back(topologysObject); } diff --git a/ecs/src/model/DescribeInstanceTypeFamiliesRequest.cc b/ecs/src/model/DescribeInstanceTypeFamiliesRequest.cc index a4b5ff4ab..556488202 100644 --- a/ecs/src/model/DescribeInstanceTypeFamiliesRequest.cc +++ b/ecs/src/model/DescribeInstanceTypeFamiliesRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeInstanceTypeFamiliesRequest; - -DescribeInstanceTypeFamiliesRequest::DescribeInstanceTypeFamiliesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceTypeFamilies") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeInstanceTypeFamiliesRequest::~DescribeInstanceTypeFamiliesRequest() -{} - -long DescribeInstanceTypeFamiliesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeInstanceTypeFamiliesRequest; + +DescribeInstanceTypeFamiliesRequest::DescribeInstanceTypeFamiliesRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceTypeFamilies") { + setMethod(HttpRequest::Method::Post); } -void DescribeInstanceTypeFamiliesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeInstanceTypeFamiliesRequest::~DescribeInstanceTypeFamiliesRequest() {} + +long DescribeInstanceTypeFamiliesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeInstanceTypeFamiliesRequest::getRegionId()const -{ - return regionId_; +void DescribeInstanceTypeFamiliesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeInstanceTypeFamiliesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeInstanceTypeFamiliesRequest::getRegionId() const { + return regionId_; } -std::string DescribeInstanceTypeFamiliesRequest::getGeneration()const -{ - return generation_; +void DescribeInstanceTypeFamiliesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeInstanceTypeFamiliesRequest::setGeneration(const std::string& generation) -{ - generation_ = generation; - setParameter("Generation", generation); +std::string DescribeInstanceTypeFamiliesRequest::getGeneration() const { + return generation_; } -std::string DescribeInstanceTypeFamiliesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeInstanceTypeFamiliesRequest::setGeneration(const std::string &generation) { + generation_ = generation; + setParameter(std::string("Generation"), generation); } -void DescribeInstanceTypeFamiliesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeInstanceTypeFamiliesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeInstanceTypeFamiliesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeInstanceTypeFamiliesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeInstanceTypeFamiliesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeInstanceTypeFamiliesRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeInstanceTypeFamiliesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeInstanceTypeFamiliesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeInstanceTypeFamiliesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeInstanceTypeFamiliesRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeInstanceTypeFamiliesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/DescribeInstanceTypeFamiliesResult.cc b/ecs/src/model/DescribeInstanceTypeFamiliesResult.cc index 1280f7233..601bd9da4 100644 --- a/ecs/src/model/DescribeInstanceTypeFamiliesResult.cc +++ b/ecs/src/model/DescribeInstanceTypeFamiliesResult.cc @@ -43,10 +43,10 @@ void DescribeInstanceTypeFamiliesResult::parse(const std::string &payload) for (auto valueInstanceTypeFamiliesInstanceTypeFamily : allInstanceTypeFamiliesNode) { InstanceTypeFamily instanceTypeFamiliesObject; - if(!valueInstanceTypeFamiliesInstanceTypeFamily["InstanceTypeFamilyId"].isNull()) - instanceTypeFamiliesObject.instanceTypeFamilyId = valueInstanceTypeFamiliesInstanceTypeFamily["InstanceTypeFamilyId"].asString(); if(!valueInstanceTypeFamiliesInstanceTypeFamily["Generation"].isNull()) instanceTypeFamiliesObject.generation = valueInstanceTypeFamiliesInstanceTypeFamily["Generation"].asString(); + if(!valueInstanceTypeFamiliesInstanceTypeFamily["InstanceTypeFamilyId"].isNull()) + instanceTypeFamiliesObject.instanceTypeFamilyId = valueInstanceTypeFamiliesInstanceTypeFamily["InstanceTypeFamilyId"].asString(); instanceTypeFamilies_.push_back(instanceTypeFamiliesObject); } diff --git a/ecs/src/model/DescribeInstanceTypesRequest.cc b/ecs/src/model/DescribeInstanceTypesRequest.cc index 56532485b..dbe544cc6 100644 --- a/ecs/src/model/DescribeInstanceTypesRequest.cc +++ b/ecs/src/model/DescribeInstanceTypesRequest.cc @@ -1,119 +1,98 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeInstanceTypesRequest; - -DescribeInstanceTypesRequest::DescribeInstanceTypesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceTypes") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeInstanceTypesRequest::~DescribeInstanceTypesRequest() -{} - -long DescribeInstanceTypesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeInstanceTypesRequest; + +DescribeInstanceTypesRequest::DescribeInstanceTypesRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceTypes") { + setMethod(HttpRequest::Method::Post); } -void DescribeInstanceTypesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeInstanceTypesRequest::~DescribeInstanceTypesRequest() {} + +long DescribeInstanceTypesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::vector DescribeInstanceTypesRequest::getInstanceTypes()const -{ - return instanceTypes_; +void DescribeInstanceTypesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeInstanceTypesRequest::setInstanceTypes(const std::vector& instanceTypes) -{ - instanceTypes_ = instanceTypes; - for(int dep1 = 0; dep1!= instanceTypes.size(); dep1++) { - setParameter("InstanceTypes."+ std::to_string(dep1), instanceTypes.at(dep1)); - } +std::vector DescribeInstanceTypesRequest::getInstanceTypes() const { + return instanceTypes_; } -std::string DescribeInstanceTypesRequest::getNextToken()const -{ - return nextToken_; +void DescribeInstanceTypesRequest::setInstanceTypes(const std::vector &instanceTypes) { + instanceTypes_ = instanceTypes; } -void DescribeInstanceTypesRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +std::string DescribeInstanceTypesRequest::getNextToken() const { + return nextToken_; } -std::string DescribeInstanceTypesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeInstanceTypesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } -void DescribeInstanceTypesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeInstanceTypesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeInstanceTypesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeInstanceTypesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeInstanceTypesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeInstanceTypesRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeInstanceTypesRequest::getInstanceTypeFamily()const -{ - return instanceTypeFamily_; +void DescribeInstanceTypesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeInstanceTypesRequest::setInstanceTypeFamily(const std::string& instanceTypeFamily) -{ - instanceTypeFamily_ = instanceTypeFamily; - setParameter("InstanceTypeFamily", instanceTypeFamily); +std::string DescribeInstanceTypesRequest::getInstanceTypeFamily() const { + return instanceTypeFamily_; } -long DescribeInstanceTypesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeInstanceTypesRequest::setInstanceTypeFamily(const std::string &instanceTypeFamily) { + instanceTypeFamily_ = instanceTypeFamily; + setParameter(std::string("InstanceTypeFamily"), instanceTypeFamily); } -void DescribeInstanceTypesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeInstanceTypesRequest::getOwnerId() const { + return ownerId_; } -long DescribeInstanceTypesRequest::getMaxResults()const -{ - return maxResults_; +void DescribeInstanceTypesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeInstanceTypesRequest::setMaxResults(long maxResults) -{ - maxResults_ = maxResults; - setParameter("MaxResults", std::to_string(maxResults)); +long DescribeInstanceTypesRequest::getMaxResults() const { + return maxResults_; +} + +void DescribeInstanceTypesRequest::setMaxResults(long maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); } diff --git a/ecs/src/model/DescribeInstanceVncPasswdRequest.cc b/ecs/src/model/DescribeInstanceVncPasswdRequest.cc index 59d740296..c302710ab 100644 --- a/ecs/src/model/DescribeInstanceVncPasswdRequest.cc +++ b/ecs/src/model/DescribeInstanceVncPasswdRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeInstanceVncPasswdRequest; - -DescribeInstanceVncPasswdRequest::DescribeInstanceVncPasswdRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceVncPasswd") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeInstanceVncPasswdRequest::~DescribeInstanceVncPasswdRequest() -{} - -long DescribeInstanceVncPasswdRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeInstanceVncPasswdRequest; + +DescribeInstanceVncPasswdRequest::DescribeInstanceVncPasswdRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceVncPasswd") { + setMethod(HttpRequest::Method::Post); } -void DescribeInstanceVncPasswdRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeInstanceVncPasswdRequest::~DescribeInstanceVncPasswdRequest() {} + +long DescribeInstanceVncPasswdRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeInstanceVncPasswdRequest::getRegionId()const -{ - return regionId_; +void DescribeInstanceVncPasswdRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeInstanceVncPasswdRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeInstanceVncPasswdRequest::getRegionId() const { + return regionId_; } -std::string DescribeInstanceVncPasswdRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeInstanceVncPasswdRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeInstanceVncPasswdRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeInstanceVncPasswdRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeInstanceVncPasswdRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeInstanceVncPasswdRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeInstanceVncPasswdRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeInstanceVncPasswdRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeInstanceVncPasswdRequest::getOwnerId()const -{ - return ownerId_; +void DescribeInstanceVncPasswdRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeInstanceVncPasswdRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeInstanceVncPasswdRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeInstanceVncPasswdRequest::getInstanceId()const -{ - return instanceId_; +void DescribeInstanceVncPasswdRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeInstanceVncPasswdRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DescribeInstanceVncPasswdRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeInstanceVncPasswdRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/ecs/src/model/DescribeInstanceVncUrlRequest.cc b/ecs/src/model/DescribeInstanceVncUrlRequest.cc index bcd809055..6d8f810cd 100644 --- a/ecs/src/model/DescribeInstanceVncUrlRequest.cc +++ b/ecs/src/model/DescribeInstanceVncUrlRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeInstanceVncUrlRequest; - -DescribeInstanceVncUrlRequest::DescribeInstanceVncUrlRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceVncUrl") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeInstanceVncUrlRequest::~DescribeInstanceVncUrlRequest() -{} - -long DescribeInstanceVncUrlRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeInstanceVncUrlRequest; + +DescribeInstanceVncUrlRequest::DescribeInstanceVncUrlRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeInstanceVncUrl") { + setMethod(HttpRequest::Method::Post); } -void DescribeInstanceVncUrlRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeInstanceVncUrlRequest::~DescribeInstanceVncUrlRequest() {} + +long DescribeInstanceVncUrlRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeInstanceVncUrlRequest::getRegionId()const -{ - return regionId_; +void DescribeInstanceVncUrlRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeInstanceVncUrlRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeInstanceVncUrlRequest::getRegionId() const { + return regionId_; } -std::string DescribeInstanceVncUrlRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeInstanceVncUrlRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeInstanceVncUrlRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeInstanceVncUrlRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeInstanceVncUrlRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeInstanceVncUrlRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeInstanceVncUrlRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeInstanceVncUrlRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeInstanceVncUrlRequest::getOwnerId()const -{ - return ownerId_; +void DescribeInstanceVncUrlRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeInstanceVncUrlRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeInstanceVncUrlRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeInstanceVncUrlRequest::getInstanceId()const -{ - return instanceId_; +void DescribeInstanceVncUrlRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeInstanceVncUrlRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DescribeInstanceVncUrlRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeInstanceVncUrlRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/ecs/src/model/DescribeInstancesFullStatusRequest.cc b/ecs/src/model/DescribeInstancesFullStatusRequest.cc index 5ac0899c6..08767d6ae 100644 --- a/ecs/src/model/DescribeInstancesFullStatusRequest.cc +++ b/ecs/src/model/DescribeInstancesFullStatusRequest.cc @@ -1,222 +1,177 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeInstancesFullStatusRequest; - -DescribeInstancesFullStatusRequest::DescribeInstancesFullStatusRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeInstancesFullStatus") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeInstancesFullStatusRequest::~DescribeInstancesFullStatusRequest() -{} - -std::vector DescribeInstancesFullStatusRequest::getEventId()const -{ - return eventId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeInstancesFullStatusRequest; + +DescribeInstancesFullStatusRequest::DescribeInstancesFullStatusRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeInstancesFullStatus") { + setMethod(HttpRequest::Method::Post); } -void DescribeInstancesFullStatusRequest::setEventId(const std::vector& eventId) -{ - eventId_ = eventId; - for(int dep1 = 0; dep1!= eventId.size(); dep1++) { - setParameter("EventId."+ std::to_string(dep1), eventId.at(dep1)); - } +DescribeInstancesFullStatusRequest::~DescribeInstancesFullStatusRequest() {} + +std::vector DescribeInstancesFullStatusRequest::getEventId() const { + return eventId_; } -long DescribeInstancesFullStatusRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void DescribeInstancesFullStatusRequest::setEventId(const std::vector &eventId) { + eventId_ = eventId; } -void DescribeInstancesFullStatusRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long DescribeInstancesFullStatusRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeInstancesFullStatusRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeInstancesFullStatusRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeInstancesFullStatusRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeInstancesFullStatusRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeInstancesFullStatusRequest::getRegionId()const -{ - return regionId_; +void DescribeInstancesFullStatusRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeInstancesFullStatusRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeInstancesFullStatusRequest::getRegionId() const { + return regionId_; } -int DescribeInstancesFullStatusRequest::getPageSize()const -{ - return pageSize_; +void DescribeInstancesFullStatusRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeInstancesFullStatusRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeInstancesFullStatusRequest::getPageSize() const { + return pageSize_; } -std::string DescribeInstancesFullStatusRequest::getEventPublishTimeEnd()const -{ - return eventPublishTimeEnd_; +void DescribeInstancesFullStatusRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeInstancesFullStatusRequest::setEventPublishTimeEnd(const std::string& eventPublishTimeEnd) -{ - eventPublishTimeEnd_ = eventPublishTimeEnd; - setParameter("EventPublishTimeEnd", eventPublishTimeEnd); +std::string DescribeInstancesFullStatusRequest::getEventPublishTimeEnd() const { + return eventPublishTimeEnd_; } -std::vector DescribeInstancesFullStatusRequest::getInstanceEventType()const -{ - return instanceEventType_; +void DescribeInstancesFullStatusRequest::setEventPublishTimeEnd(const std::string &eventPublishTimeEnd) { + eventPublishTimeEnd_ = eventPublishTimeEnd; + setParameter(std::string("EventPublishTime.End"), eventPublishTimeEnd); } -void DescribeInstancesFullStatusRequest::setInstanceEventType(const std::vector& instanceEventType) -{ - instanceEventType_ = instanceEventType; - for(int dep1 = 0; dep1!= instanceEventType.size(); dep1++) { - setParameter("InstanceEventType."+ std::to_string(dep1), instanceEventType.at(dep1)); - } +std::vector DescribeInstancesFullStatusRequest::getInstanceEventType() const { + return instanceEventType_; } -std::string DescribeInstancesFullStatusRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeInstancesFullStatusRequest::setInstanceEventType(const std::vector &instanceEventType) { + instanceEventType_ = instanceEventType; } -void DescribeInstancesFullStatusRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeInstancesFullStatusRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeInstancesFullStatusRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeInstancesFullStatusRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeInstancesFullStatusRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeInstancesFullStatusRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeInstancesFullStatusRequest::getNotBeforeStart()const -{ - return notBeforeStart_; +void DescribeInstancesFullStatusRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeInstancesFullStatusRequest::setNotBeforeStart(const std::string& notBeforeStart) -{ - notBeforeStart_ = notBeforeStart; - setParameter("NotBeforeStart", notBeforeStart); +std::string DescribeInstancesFullStatusRequest::getNotBeforeStart() const { + return notBeforeStart_; } -long DescribeInstancesFullStatusRequest::getOwnerId()const -{ - return ownerId_; +void DescribeInstancesFullStatusRequest::setNotBeforeStart(const std::string ¬BeforeStart) { + notBeforeStart_ = notBeforeStart; + setParameter(std::string("NotBefore.Start"), notBeforeStart); } -void DescribeInstancesFullStatusRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeInstancesFullStatusRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeInstancesFullStatusRequest::getEventPublishTimeStart()const -{ - return eventPublishTimeStart_; +void DescribeInstancesFullStatusRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeInstancesFullStatusRequest::setEventPublishTimeStart(const std::string& eventPublishTimeStart) -{ - eventPublishTimeStart_ = eventPublishTimeStart; - setParameter("EventPublishTimeStart", eventPublishTimeStart); +std::string DescribeInstancesFullStatusRequest::getEventPublishTimeStart() const { + return eventPublishTimeStart_; } -std::vector DescribeInstancesFullStatusRequest::getInstanceId()const -{ - return instanceId_; +void DescribeInstancesFullStatusRequest::setEventPublishTimeStart(const std::string &eventPublishTimeStart) { + eventPublishTimeStart_ = eventPublishTimeStart; + setParameter(std::string("EventPublishTime.Start"), eventPublishTimeStart); } -void DescribeInstancesFullStatusRequest::setInstanceId(const std::vector& instanceId) -{ - instanceId_ = instanceId; - for(int dep1 = 0; dep1!= instanceId.size(); dep1++) { - setParameter("InstanceId."+ std::to_string(dep1), instanceId.at(dep1)); - } +std::vector DescribeInstancesFullStatusRequest::getInstanceId() const { + return instanceId_; } -std::string DescribeInstancesFullStatusRequest::getNotBeforeEnd()const -{ - return notBeforeEnd_; +void DescribeInstancesFullStatusRequest::setInstanceId(const std::vector &instanceId) { + instanceId_ = instanceId; } -void DescribeInstancesFullStatusRequest::setNotBeforeEnd(const std::string& notBeforeEnd) -{ - notBeforeEnd_ = notBeforeEnd; - setParameter("NotBeforeEnd", notBeforeEnd); +std::string DescribeInstancesFullStatusRequest::getNotBeforeEnd() const { + return notBeforeEnd_; } -std::string DescribeInstancesFullStatusRequest::getHealthStatus()const -{ - return healthStatus_; +void DescribeInstancesFullStatusRequest::setNotBeforeEnd(const std::string ¬BeforeEnd) { + notBeforeEnd_ = notBeforeEnd; + setParameter(std::string("NotBefore.End"), notBeforeEnd); } -void DescribeInstancesFullStatusRequest::setHealthStatus(const std::string& healthStatus) -{ - healthStatus_ = healthStatus; - setParameter("HealthStatus", healthStatus); +std::string DescribeInstancesFullStatusRequest::getHealthStatus() const { + return healthStatus_; } -std::string DescribeInstancesFullStatusRequest::getEventType()const -{ - return eventType_; +void DescribeInstancesFullStatusRequest::setHealthStatus(const std::string &healthStatus) { + healthStatus_ = healthStatus; + setParameter(std::string("HealthStatus"), healthStatus); } -void DescribeInstancesFullStatusRequest::setEventType(const std::string& eventType) -{ - eventType_ = eventType; - setParameter("EventType", eventType); +std::string DescribeInstancesFullStatusRequest::getEventType() const { + return eventType_; } -std::string DescribeInstancesFullStatusRequest::getStatus()const -{ - return status_; +void DescribeInstancesFullStatusRequest::setEventType(const std::string &eventType) { + eventType_ = eventType; + setParameter(std::string("EventType"), eventType); } -void DescribeInstancesFullStatusRequest::setStatus(const std::string& status) -{ - status_ = status; - setParameter("Status", status); +std::string DescribeInstancesFullStatusRequest::getStatus() const { + return status_; +} + +void DescribeInstancesFullStatusRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); } diff --git a/ecs/src/model/DescribeInstancesFullStatusResult.cc b/ecs/src/model/DescribeInstancesFullStatusResult.cc index 5dca30824..16e12d350 100644 --- a/ecs/src/model/DescribeInstancesFullStatusResult.cc +++ b/ecs/src/model/DescribeInstancesFullStatusResult.cc @@ -49,67 +49,67 @@ void DescribeInstancesFullStatusResult::parse(const std::string &payload) for (auto valueInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventType : allScheduledSystemEventSetNode) { InstanceFullStatusType::ScheduledSystemEventType scheduledSystemEventSetObject; - if(!valueInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventType["EventId"].isNull()) - scheduledSystemEventSetObject.eventId = valueInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventType["EventId"].asString(); if(!valueInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventType["EventPublishTime"].isNull()) scheduledSystemEventSetObject.eventPublishTime = valueInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventType["EventPublishTime"].asString(); + if(!valueInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventType["EventId"].isNull()) + scheduledSystemEventSetObject.eventId = valueInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventType["EventId"].asString(); if(!valueInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventType["NotBefore"].isNull()) scheduledSystemEventSetObject.notBefore = valueInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventType["NotBefore"].asString(); - if(!valueInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventType["Reason"].isNull()) - scheduledSystemEventSetObject.reason = valueInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventType["Reason"].asString(); if(!valueInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventType["ImpactLevel"].isNull()) scheduledSystemEventSetObject.impactLevel = valueInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventType["ImpactLevel"].asString(); + if(!valueInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventType["Reason"].isNull()) + scheduledSystemEventSetObject.reason = valueInstanceFullStatusSetInstanceFullStatusTypeScheduledSystemEventSetScheduledSystemEventType["Reason"].asString(); auto eventCycleStatusNode = value["EventCycleStatus"]; - if(!eventCycleStatusNode["Code"].isNull()) - scheduledSystemEventSetObject.eventCycleStatus.code = std::stoi(eventCycleStatusNode["Code"].asString()); if(!eventCycleStatusNode["Name"].isNull()) scheduledSystemEventSetObject.eventCycleStatus.name = eventCycleStatusNode["Name"].asString(); + if(!eventCycleStatusNode["Code"].isNull()) + scheduledSystemEventSetObject.eventCycleStatus.code = std::stoi(eventCycleStatusNode["Code"].asString()); auto eventTypeNode = value["EventType"]; - if(!eventTypeNode["Code"].isNull()) - scheduledSystemEventSetObject.eventType.code = std::stoi(eventTypeNode["Code"].asString()); if(!eventTypeNode["Name"].isNull()) scheduledSystemEventSetObject.eventType.name = eventTypeNode["Name"].asString(); + if(!eventTypeNode["Code"].isNull()) + scheduledSystemEventSetObject.eventType.code = std::stoi(eventTypeNode["Code"].asString()); auto extendedAttributeNode = value["ExtendedAttribute"]; - if(!extendedAttributeNode["DiskId"].isNull()) - scheduledSystemEventSetObject.extendedAttribute.diskId = extendedAttributeNode["DiskId"].asString(); if(!extendedAttributeNode["Device"].isNull()) scheduledSystemEventSetObject.extendedAttribute.device = extendedAttributeNode["Device"].asString(); + if(!extendedAttributeNode["DiskId"].isNull()) + scheduledSystemEventSetObject.extendedAttribute.diskId = extendedAttributeNode["DiskId"].asString(); auto allInactiveDisksNode = extendedAttributeNode["InactiveDisks"]["InactiveDisk"]; for (auto extendedAttributeNodeInactiveDisksInactiveDisk : allInactiveDisksNode) { InstanceFullStatusType::ScheduledSystemEventType::ExtendedAttribute::InactiveDisk inactiveDiskObject; if(!extendedAttributeNodeInactiveDisksInactiveDisk["CreationTime"].isNull()) inactiveDiskObject.creationTime = extendedAttributeNodeInactiveDisksInactiveDisk["CreationTime"].asString(); - if(!extendedAttributeNodeInactiveDisksInactiveDisk["ReleaseTime"].isNull()) - inactiveDiskObject.releaseTime = extendedAttributeNodeInactiveDisksInactiveDisk["ReleaseTime"].asString(); - if(!extendedAttributeNodeInactiveDisksInactiveDisk["DeviceType"].isNull()) - inactiveDiskObject.deviceType = extendedAttributeNodeInactiveDisksInactiveDisk["DeviceType"].asString(); - if(!extendedAttributeNodeInactiveDisksInactiveDisk["DeviceCategory"].isNull()) - inactiveDiskObject.deviceCategory = extendedAttributeNodeInactiveDisksInactiveDisk["DeviceCategory"].asString(); if(!extendedAttributeNodeInactiveDisksInactiveDisk["DeviceSize"].isNull()) inactiveDiskObject.deviceSize = extendedAttributeNodeInactiveDisksInactiveDisk["DeviceSize"].asString(); + if(!extendedAttributeNodeInactiveDisksInactiveDisk["DeviceCategory"].isNull()) + inactiveDiskObject.deviceCategory = extendedAttributeNodeInactiveDisksInactiveDisk["DeviceCategory"].asString(); + if(!extendedAttributeNodeInactiveDisksInactiveDisk["DeviceType"].isNull()) + inactiveDiskObject.deviceType = extendedAttributeNodeInactiveDisksInactiveDisk["DeviceType"].asString(); + if(!extendedAttributeNodeInactiveDisksInactiveDisk["ReleaseTime"].isNull()) + inactiveDiskObject.releaseTime = extendedAttributeNodeInactiveDisksInactiveDisk["ReleaseTime"].asString(); scheduledSystemEventSetObject.extendedAttribute.inactiveDisks.push_back(inactiveDiskObject); } instanceFullStatusSetObject.scheduledSystemEventSet.push_back(scheduledSystemEventSetObject); } auto statusNode = value["Status"]; - if(!statusNode["Code"].isNull()) - instanceFullStatusSetObject.status.code = std::stoi(statusNode["Code"].asString()); if(!statusNode["Name"].isNull()) instanceFullStatusSetObject.status.name = statusNode["Name"].asString(); + if(!statusNode["Code"].isNull()) + instanceFullStatusSetObject.status.code = std::stoi(statusNode["Code"].asString()); auto healthStatusNode = value["HealthStatus"]; - if(!healthStatusNode["Code"].isNull()) - instanceFullStatusSetObject.healthStatus.code = std::stoi(healthStatusNode["Code"].asString()); if(!healthStatusNode["Name"].isNull()) instanceFullStatusSetObject.healthStatus.name = healthStatusNode["Name"].asString(); + if(!healthStatusNode["Code"].isNull()) + instanceFullStatusSetObject.healthStatus.code = std::stoi(healthStatusNode["Code"].asString()); instanceFullStatusSet_.push_back(instanceFullStatusSetObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/ecs/src/model/DescribeInstancesRequest.cc b/ecs/src/model/DescribeInstancesRequest.cc index 8fb5aaa9b..aed1517d9 100644 --- a/ecs/src/model/DescribeInstancesRequest.cc +++ b/ecs/src/model/DescribeInstancesRequest.cc @@ -1,577 +1,471 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeInstancesRequest; - -DescribeInstancesRequest::DescribeInstancesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeInstances") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeInstancesRequest::~DescribeInstancesRequest() -{} - -std::string DescribeInstancesRequest::getInnerIpAddresses()const -{ - return innerIpAddresses_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeInstancesRequest; + +DescribeInstancesRequest::DescribeInstancesRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeInstances") { + setMethod(HttpRequest::Method::Post); +} + +DescribeInstancesRequest::~DescribeInstancesRequest() {} + +std::string DescribeInstancesRequest::getInnerIpAddresses() const { + return innerIpAddresses_; } -void DescribeInstancesRequest::setInnerIpAddresses(const std::string& innerIpAddresses) -{ - innerIpAddresses_ = innerIpAddresses; - setParameter("InnerIpAddresses", innerIpAddresses); +void DescribeInstancesRequest::setInnerIpAddresses(const std::string &innerIpAddresses) { + innerIpAddresses_ = innerIpAddresses; + setParameter(std::string("InnerIpAddresses"), innerIpAddresses); } -long DescribeInstancesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +long DescribeInstancesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -void DescribeInstancesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +void DescribeInstancesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -std::string DescribeInstancesRequest::getPrivateIpAddresses()const -{ - return privateIpAddresses_; +std::string DescribeInstancesRequest::getPrivateIpAddresses() const { + return privateIpAddresses_; } -void DescribeInstancesRequest::setPrivateIpAddresses(const std::string& privateIpAddresses) -{ - privateIpAddresses_ = privateIpAddresses; - setParameter("PrivateIpAddresses", privateIpAddresses); +void DescribeInstancesRequest::setPrivateIpAddresses(const std::string &privateIpAddresses) { + privateIpAddresses_ = privateIpAddresses; + setParameter(std::string("PrivateIpAddresses"), privateIpAddresses); } -std::string DescribeInstancesRequest::getHpcClusterId()const -{ - return hpcClusterId_; +std::string DescribeInstancesRequest::getHpcClusterId() const { + return hpcClusterId_; } -void DescribeInstancesRequest::setHpcClusterId(const std::string& hpcClusterId) -{ - hpcClusterId_ = hpcClusterId; - setParameter("HpcClusterId", hpcClusterId); +void DescribeInstancesRequest::setHpcClusterId(const std::string &hpcClusterId) { + hpcClusterId_ = hpcClusterId; + setParameter(std::string("HpcClusterId"), hpcClusterId); } -int DescribeInstancesRequest::getHttpPutResponseHopLimit()const -{ - return httpPutResponseHopLimit_; +int DescribeInstancesRequest::getHttpPutResponseHopLimit() const { + return httpPutResponseHopLimit_; } -void DescribeInstancesRequest::setHttpPutResponseHopLimit(int httpPutResponseHopLimit) -{ - httpPutResponseHopLimit_ = httpPutResponseHopLimit; - setParameter("HttpPutResponseHopLimit", std::to_string(httpPutResponseHopLimit)); +void DescribeInstancesRequest::setHttpPutResponseHopLimit(int httpPutResponseHopLimit) { + httpPutResponseHopLimit_ = httpPutResponseHopLimit; + setParameter(std::string("HttpPutResponseHopLimit"), std::to_string(httpPutResponseHopLimit)); } -std::string DescribeInstancesRequest::getFilter2Value()const -{ - return filter2Value_; +std::string DescribeInstancesRequest::getFilter2Value() const { + return filter2Value_; } -void DescribeInstancesRequest::setFilter2Value(const std::string& filter2Value) -{ - filter2Value_ = filter2Value; - setParameter("Filter2Value", filter2Value); +void DescribeInstancesRequest::setFilter2Value(const std::string &filter2Value) { + filter2Value_ = filter2Value; + setParameter(std::string("Filter.2.Value"), filter2Value); } -std::string DescribeInstancesRequest::getKeyPairName()const -{ - return keyPairName_; +std::string DescribeInstancesRequest::getKeyPairName() const { + return keyPairName_; } -void DescribeInstancesRequest::setKeyPairName(const std::string& keyPairName) -{ - keyPairName_ = keyPairName; - setParameter("KeyPairName", keyPairName); +void DescribeInstancesRequest::setKeyPairName(const std::string &keyPairName) { + keyPairName_ = keyPairName; + setParameter(std::string("KeyPairName"), keyPairName); } -std::string DescribeInstancesRequest::getResourceGroupId()const -{ - return resourceGroupId_; +std::string DescribeInstancesRequest::getResourceGroupId() const { + return resourceGroupId_; } -void DescribeInstancesRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +void DescribeInstancesRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -std::string DescribeInstancesRequest::getLockReason()const -{ - return lockReason_; +std::string DescribeInstancesRequest::getLockReason() const { + return lockReason_; } -void DescribeInstancesRequest::setLockReason(const std::string& lockReason) -{ - lockReason_ = lockReason; - setParameter("LockReason", lockReason); +void DescribeInstancesRequest::setLockReason(const std::string &lockReason) { + lockReason_ = lockReason; + setParameter(std::string("LockReason"), lockReason); } -std::string DescribeInstancesRequest::getFilter1Key()const -{ - return filter1Key_; +std::string DescribeInstancesRequest::getFilter1Key() const { + return filter1Key_; } -void DescribeInstancesRequest::setFilter1Key(const std::string& filter1Key) -{ - filter1Key_ = filter1Key; - setParameter("Filter1Key", filter1Key); +void DescribeInstancesRequest::setFilter1Key(const std::string &filter1Key) { + filter1Key_ = filter1Key; + setParameter(std::string("Filter.1.Key"), filter1Key); } -bool DescribeInstancesRequest::getDeviceAvailable()const -{ - return deviceAvailable_; +bool DescribeInstancesRequest::getDeviceAvailable() const { + return deviceAvailable_; } -void DescribeInstancesRequest::setDeviceAvailable(bool deviceAvailable) -{ - deviceAvailable_ = deviceAvailable; - setParameter("DeviceAvailable", deviceAvailable ? "true" : "false"); +void DescribeInstancesRequest::setDeviceAvailable(bool deviceAvailable) { + deviceAvailable_ = deviceAvailable; + setParameter(std::string("DeviceAvailable"), deviceAvailable ? "true" : "false"); } -std::vector DescribeInstancesRequest::getTag()const -{ - return tag_; +std::vector DescribeInstancesRequest::getTag() const { + return tag_; } -void DescribeInstancesRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Value", tagObj.value); - setParameter(tagObjStr + ".Key", tagObj.key); - } +void DescribeInstancesRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } -std::string DescribeInstancesRequest::getFilter3Value()const -{ - return filter3Value_; +std::string DescribeInstancesRequest::getFilter3Value() const { + return filter3Value_; } -void DescribeInstancesRequest::setFilter3Value(const std::string& filter3Value) -{ - filter3Value_ = filter3Value; - setParameter("Filter3Value", filter3Value); +void DescribeInstancesRequest::setFilter3Value(const std::string &filter3Value) { + filter3Value_ = filter3Value; + setParameter(std::string("Filter.3.Value"), filter3Value); } -bool DescribeInstancesRequest::getDryRun()const -{ - return dryRun_; +bool DescribeInstancesRequest::getDryRun() const { + return dryRun_; } -void DescribeInstancesRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +void DescribeInstancesRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -std::string DescribeInstancesRequest::getFilter1Value()const -{ - return filter1Value_; +std::string DescribeInstancesRequest::getFilter1Value() const { + return filter1Value_; } -void DescribeInstancesRequest::setFilter1Value(const std::string& filter1Value) -{ - filter1Value_ = filter1Value; - setParameter("Filter1Value", filter1Value); +void DescribeInstancesRequest::setFilter1Value(const std::string &filter1Value) { + filter1Value_ = filter1Value; + setParameter(std::string("Filter.1.Value"), filter1Value); } -bool DescribeInstancesRequest::getNeedSaleCycle()const -{ - return needSaleCycle_; +bool DescribeInstancesRequest::getNeedSaleCycle() const { + return needSaleCycle_; } -void DescribeInstancesRequest::setNeedSaleCycle(bool needSaleCycle) -{ - needSaleCycle_ = needSaleCycle; - setParameter("NeedSaleCycle", needSaleCycle ? "true" : "false"); +void DescribeInstancesRequest::setNeedSaleCycle(bool needSaleCycle) { + needSaleCycle_ = needSaleCycle; + setParameter(std::string("NeedSaleCycle"), needSaleCycle ? "true" : "false"); } -long DescribeInstancesRequest::getOwnerId()const -{ - return ownerId_; +long DescribeInstancesRequest::getOwnerId() const { + return ownerId_; } -void DescribeInstancesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +void DescribeInstancesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -std::string DescribeInstancesRequest::getVSwitchId()const -{ - return vSwitchId_; +std::string DescribeInstancesRequest::getVSwitchId() const { + return vSwitchId_; } -void DescribeInstancesRequest::setVSwitchId(const std::string& vSwitchId) -{ - vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); +void DescribeInstancesRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); } -std::vector DescribeInstancesRequest::getAdditionalAttributes()const -{ - return additionalAttributes_; +std::vector DescribeInstancesRequest::getAdditionalAttributes() const { + return additionalAttributes_; } -void DescribeInstancesRequest::setAdditionalAttributes(const std::vector& additionalAttributes) -{ - additionalAttributes_ = additionalAttributes; - for(int dep1 = 0; dep1!= additionalAttributes.size(); dep1++) { - setParameter("AdditionalAttributes."+ std::to_string(dep1), additionalAttributes.at(dep1)); - } +void DescribeInstancesRequest::setAdditionalAttributes(const std::vector &additionalAttributes) { + additionalAttributes_ = additionalAttributes; } -std::string DescribeInstancesRequest::getInstanceName()const -{ - return instanceName_; +std::string DescribeInstancesRequest::getInstanceName() const { + return instanceName_; } -void DescribeInstancesRequest::setInstanceName(const std::string& instanceName) -{ - instanceName_ = instanceName; - setParameter("InstanceName", instanceName); +void DescribeInstancesRequest::setInstanceName(const std::string &instanceName) { + instanceName_ = instanceName; + setParameter(std::string("InstanceName"), instanceName); } -std::string DescribeInstancesRequest::getInstanceIds()const -{ - return instanceIds_; +std::string DescribeInstancesRequest::getInstanceIds() const { + return instanceIds_; } -void DescribeInstancesRequest::setInstanceIds(const std::string& instanceIds) -{ - instanceIds_ = instanceIds; - setParameter("InstanceIds", instanceIds); +void DescribeInstancesRequest::setInstanceIds(const std::string &instanceIds) { + instanceIds_ = instanceIds; + setParameter(std::string("InstanceIds"), instanceIds); } -std::string DescribeInstancesRequest::getInternetChargeType()const -{ - return internetChargeType_; +std::string DescribeInstancesRequest::getInternetChargeType() const { + return internetChargeType_; } -void DescribeInstancesRequest::setInternetChargeType(const std::string& internetChargeType) -{ - internetChargeType_ = internetChargeType; - setParameter("InternetChargeType", internetChargeType); +void DescribeInstancesRequest::setInternetChargeType(const std::string &internetChargeType) { + internetChargeType_ = internetChargeType; + setParameter(std::string("InternetChargeType"), internetChargeType); } -std::string DescribeInstancesRequest::getZoneId()const -{ - return zoneId_; +std::string DescribeInstancesRequest::getZoneId() const { + return zoneId_; } -void DescribeInstancesRequest::setZoneId(const std::string& zoneId) -{ - zoneId_ = zoneId; - setParameter("ZoneId", zoneId); +void DescribeInstancesRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); } -int DescribeInstancesRequest::getMaxResults()const -{ - return maxResults_; +int DescribeInstancesRequest::getMaxResults() const { + return maxResults_; } -void DescribeInstancesRequest::setMaxResults(int maxResults) -{ - maxResults_ = maxResults; - setParameter("MaxResults", std::to_string(maxResults)); +void DescribeInstancesRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); } -std::vector DescribeInstancesRequest::getIpv6Address()const -{ - return ipv6Address_; +std::vector DescribeInstancesRequest::getIpv6Address() const { + return ipv6Address_; } -void DescribeInstancesRequest::setIpv6Address(const std::vector& ipv6Address) -{ - ipv6Address_ = ipv6Address; - for(int dep1 = 0; dep1!= ipv6Address.size(); dep1++) { - setParameter("Ipv6Address."+ std::to_string(dep1), ipv6Address.at(dep1)); - } +void DescribeInstancesRequest::setIpv6Address(const std::vector &ipv6Address) { + ipv6Address_ = ipv6Address; } -std::string DescribeInstancesRequest::getInstanceNetworkType()const -{ - return instanceNetworkType_; +std::string DescribeInstancesRequest::getInstanceNetworkType() const { + return instanceNetworkType_; } -void DescribeInstancesRequest::setInstanceNetworkType(const std::string& instanceNetworkType) -{ - instanceNetworkType_ = instanceNetworkType; - setParameter("InstanceNetworkType", instanceNetworkType); +void DescribeInstancesRequest::setInstanceNetworkType(const std::string &instanceNetworkType) { + instanceNetworkType_ = instanceNetworkType; + setParameter(std::string("InstanceNetworkType"), instanceNetworkType); } -std::string DescribeInstancesRequest::getStatus()const -{ - return status_; +std::string DescribeInstancesRequest::getStatus() const { + return status_; } -void DescribeInstancesRequest::setStatus(const std::string& status) -{ - status_ = status; - setParameter("Status", status); +void DescribeInstancesRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); } -std::string DescribeInstancesRequest::getImageId()const -{ - return imageId_; +std::string DescribeInstancesRequest::getImageId() const { + return imageId_; } -void DescribeInstancesRequest::setImageId(const std::string& imageId) -{ - imageId_ = imageId; - setParameter("ImageId", imageId); +void DescribeInstancesRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("ImageId"), imageId); } -std::string DescribeInstancesRequest::getFilter4Value()const -{ - return filter4Value_; +std::string DescribeInstancesRequest::getFilter4Value() const { + return filter4Value_; } -void DescribeInstancesRequest::setFilter4Value(const std::string& filter4Value) -{ - filter4Value_ = filter4Value; - setParameter("Filter4Value", filter4Value); +void DescribeInstancesRequest::setFilter4Value(const std::string &filter4Value) { + filter4Value_ = filter4Value; + setParameter(std::string("Filter.4.Value"), filter4Value); } -bool DescribeInstancesRequest::getIoOptimized()const -{ - return ioOptimized_; +bool DescribeInstancesRequest::getIoOptimized() const { + return ioOptimized_; } -void DescribeInstancesRequest::setIoOptimized(bool ioOptimized) -{ - ioOptimized_ = ioOptimized; - setParameter("IoOptimized", ioOptimized ? "true" : "false"); +void DescribeInstancesRequest::setIoOptimized(bool ioOptimized) { + ioOptimized_ = ioOptimized; + setParameter(std::string("IoOptimized"), ioOptimized ? "true" : "false"); } -std::string DescribeInstancesRequest::getSecurityGroupId()const -{ - return securityGroupId_; +std::string DescribeInstancesRequest::getSecurityGroupId() const { + return securityGroupId_; } -void DescribeInstancesRequest::setSecurityGroupId(const std::string& securityGroupId) -{ - securityGroupId_ = securityGroupId; - setParameter("SecurityGroupId", securityGroupId); +void DescribeInstancesRequest::setSecurityGroupId(const std::string &securityGroupId) { + securityGroupId_ = securityGroupId; + setParameter(std::string("SecurityGroupId"), securityGroupId); } -std::string DescribeInstancesRequest::getFilter4Key()const -{ - return filter4Key_; +std::string DescribeInstancesRequest::getFilter4Key() const { + return filter4Key_; } -void DescribeInstancesRequest::setFilter4Key(const std::string& filter4Key) -{ - filter4Key_ = filter4Key; - setParameter("Filter4Key", filter4Key); +void DescribeInstancesRequest::setFilter4Key(const std::string &filter4Key) { + filter4Key_ = filter4Key; + setParameter(std::string("Filter.4.Key"), filter4Key); } -int DescribeInstancesRequest::getPageNumber()const -{ - return pageNumber_; +int DescribeInstancesRequest::getPageNumber() const { + return pageNumber_; } -void DescribeInstancesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +void DescribeInstancesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -std::string DescribeInstancesRequest::getRegionId()const -{ - return regionId_; +std::string DescribeInstancesRequest::getRegionId() const { + return regionId_; } -void DescribeInstancesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +void DescribeInstancesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -std::string DescribeInstancesRequest::getNextToken()const -{ - return nextToken_; +std::string DescribeInstancesRequest::getNextToken() const { + return nextToken_; } -void DescribeInstancesRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +void DescribeInstancesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } -std::string DescribeInstancesRequest::getRdmaIpAddresses()const -{ - return rdmaIpAddresses_; +std::string DescribeInstancesRequest::getRdmaIpAddresses() const { + return rdmaIpAddresses_; } -void DescribeInstancesRequest::setRdmaIpAddresses(const std::string& rdmaIpAddresses) -{ - rdmaIpAddresses_ = rdmaIpAddresses; - setParameter("RdmaIpAddresses", rdmaIpAddresses); +void DescribeInstancesRequest::setRdmaIpAddresses(const std::string &rdmaIpAddresses) { + rdmaIpAddresses_ = rdmaIpAddresses; + setParameter(std::string("RdmaIpAddresses"), rdmaIpAddresses); } -std::string DescribeInstancesRequest::getHttpEndpoint()const -{ - return httpEndpoint_; +std::string DescribeInstancesRequest::getHttpEndpoint() const { + return httpEndpoint_; } -void DescribeInstancesRequest::setHttpEndpoint(const std::string& httpEndpoint) -{ - httpEndpoint_ = httpEndpoint; - setParameter("HttpEndpoint", httpEndpoint); +void DescribeInstancesRequest::setHttpEndpoint(const std::string &httpEndpoint) { + httpEndpoint_ = httpEndpoint; + setParameter(std::string("HttpEndpoint"), httpEndpoint); } -int DescribeInstancesRequest::getPageSize()const -{ - return pageSize_; +int DescribeInstancesRequest::getPageSize() const { + return pageSize_; } -void DescribeInstancesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +void DescribeInstancesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -std::string DescribeInstancesRequest::getPublicIpAddresses()const -{ - return publicIpAddresses_; +std::string DescribeInstancesRequest::getPublicIpAddresses() const { + return publicIpAddresses_; } -void DescribeInstancesRequest::setPublicIpAddresses(const std::string& publicIpAddresses) -{ - publicIpAddresses_ = publicIpAddresses; - setParameter("PublicIpAddresses", publicIpAddresses); +void DescribeInstancesRequest::setPublicIpAddresses(const std::string &publicIpAddresses) { + publicIpAddresses_ = publicIpAddresses; + setParameter(std::string("PublicIpAddresses"), publicIpAddresses); } -std::string DescribeInstancesRequest::getInstanceType()const -{ - return instanceType_; +std::string DescribeInstancesRequest::getInstanceType() const { + return instanceType_; } -void DescribeInstancesRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +void DescribeInstancesRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } -std::string DescribeInstancesRequest::getInstanceChargeType()const -{ - return instanceChargeType_; +std::string DescribeInstancesRequest::getInstanceChargeType() const { + return instanceChargeType_; } -void DescribeInstancesRequest::setInstanceChargeType(const std::string& instanceChargeType) -{ - instanceChargeType_ = instanceChargeType; - setParameter("InstanceChargeType", instanceChargeType); +void DescribeInstancesRequest::setInstanceChargeType(const std::string &instanceChargeType) { + instanceChargeType_ = instanceChargeType; + setParameter(std::string("InstanceChargeType"), instanceChargeType); } -std::string DescribeInstancesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +std::string DescribeInstancesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -void DescribeInstancesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +void DescribeInstancesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -std::string DescribeInstancesRequest::getOwnerAccount()const -{ - return ownerAccount_; +std::string DescribeInstancesRequest::getOwnerAccount() const { + return ownerAccount_; } -void DescribeInstancesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +void DescribeInstancesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -std::string DescribeInstancesRequest::getInstanceTypeFamily()const -{ - return instanceTypeFamily_; +std::string DescribeInstancesRequest::getInstanceTypeFamily() const { + return instanceTypeFamily_; } -void DescribeInstancesRequest::setInstanceTypeFamily(const std::string& instanceTypeFamily) -{ - instanceTypeFamily_ = instanceTypeFamily; - setParameter("InstanceTypeFamily", instanceTypeFamily); +void DescribeInstancesRequest::setInstanceTypeFamily(const std::string &instanceTypeFamily) { + instanceTypeFamily_ = instanceTypeFamily; + setParameter(std::string("InstanceTypeFamily"), instanceTypeFamily); } -std::string DescribeInstancesRequest::getFilter2Key()const -{ - return filter2Key_; +std::string DescribeInstancesRequest::getFilter2Key() const { + return filter2Key_; } -void DescribeInstancesRequest::setFilter2Key(const std::string& filter2Key) -{ - filter2Key_ = filter2Key; - setParameter("Filter2Key", filter2Key); +void DescribeInstancesRequest::setFilter2Key(const std::string &filter2Key) { + filter2Key_ = filter2Key; + setParameter(std::string("Filter.2.Key"), filter2Key); } -std::string DescribeInstancesRequest::getEipAddresses()const -{ - return eipAddresses_; +std::string DescribeInstancesRequest::getEipAddresses() const { + return eipAddresses_; } -void DescribeInstancesRequest::setEipAddresses(const std::string& eipAddresses) -{ - eipAddresses_ = eipAddresses; - setParameter("EipAddresses", eipAddresses); +void DescribeInstancesRequest::setEipAddresses(const std::string &eipAddresses) { + eipAddresses_ = eipAddresses; + setParameter(std::string("EipAddresses"), eipAddresses); } -std::string DescribeInstancesRequest::getVpcId()const -{ - return vpcId_; +std::string DescribeInstancesRequest::getVpcId() const { + return vpcId_; } -void DescribeInstancesRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +void DescribeInstancesRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); } -std::string DescribeInstancesRequest::getHttpTokens()const -{ - return httpTokens_; +std::string DescribeInstancesRequest::getHttpTokens() const { + return httpTokens_; } -void DescribeInstancesRequest::setHttpTokens(const std::string& httpTokens) -{ - httpTokens_ = httpTokens; - setParameter("HttpTokens", httpTokens); +void DescribeInstancesRequest::setHttpTokens(const std::string &httpTokens) { + httpTokens_ = httpTokens; + setParameter(std::string("HttpTokens"), httpTokens); } -std::string DescribeInstancesRequest::getFilter3Key()const -{ - return filter3Key_; +std::string DescribeInstancesRequest::getFilter3Key() const { + return filter3Key_; } -void DescribeInstancesRequest::setFilter3Key(const std::string& filter3Key) -{ - filter3Key_ = filter3Key; - setParameter("Filter3Key", filter3Key); +void DescribeInstancesRequest::setFilter3Key(const std::string &filter3Key) { + filter3Key_ = filter3Key; + setParameter(std::string("Filter.3.Key"), filter3Key); } diff --git a/ecs/src/model/DescribeInvocationResultsRequest.cc b/ecs/src/model/DescribeInvocationResultsRequest.cc index 442fea43f..4a9dbec99 100644 --- a/ecs/src/model/DescribeInvocationResultsRequest.cc +++ b/ecs/src/model/DescribeInvocationResultsRequest.cc @@ -1,172 +1,144 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeInvocationResultsRequest; - -DescribeInvocationResultsRequest::DescribeInvocationResultsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeInvocationResults") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeInvocationResultsRequest::~DescribeInvocationResultsRequest() -{} - -long DescribeInvocationResultsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeInvocationResultsRequest; + +DescribeInvocationResultsRequest::DescribeInvocationResultsRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeInvocationResults") { + setMethod(HttpRequest::Method::Post); } -void DescribeInvocationResultsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeInvocationResultsRequest::~DescribeInvocationResultsRequest() {} + +long DescribeInvocationResultsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeInvocationResultsRequest::getCommandId()const -{ - return commandId_; +void DescribeInvocationResultsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeInvocationResultsRequest::setCommandId(const std::string& commandId) -{ - commandId_ = commandId; - setParameter("CommandId", commandId); +std::string DescribeInvocationResultsRequest::getCommandId() const { + return commandId_; } -long DescribeInvocationResultsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeInvocationResultsRequest::setCommandId(const std::string &commandId) { + commandId_ = commandId; + setParameter(std::string("CommandId"), commandId); } -void DescribeInvocationResultsRequest::setPageNumber(long pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +long DescribeInvocationResultsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeInvocationResultsRequest::getRegionId()const -{ - return regionId_; +void DescribeInvocationResultsRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeInvocationResultsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeInvocationResultsRequest::getRegionId() const { + return regionId_; } -std::string DescribeInvocationResultsRequest::getContentEncoding()const -{ - return contentEncoding_; +void DescribeInvocationResultsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeInvocationResultsRequest::setContentEncoding(const std::string& contentEncoding) -{ - contentEncoding_ = contentEncoding; - setParameter("ContentEncoding", contentEncoding); +std::string DescribeInvocationResultsRequest::getContentEncoding() const { + return contentEncoding_; } -long DescribeInvocationResultsRequest::getPageSize()const -{ - return pageSize_; +void DescribeInvocationResultsRequest::setContentEncoding(const std::string &contentEncoding) { + contentEncoding_ = contentEncoding; + setParameter(std::string("ContentEncoding"), contentEncoding); } -void DescribeInvocationResultsRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +long DescribeInvocationResultsRequest::getPageSize() const { + return pageSize_; } -std::string DescribeInvocationResultsRequest::getInvokeId()const -{ - return invokeId_; +void DescribeInvocationResultsRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeInvocationResultsRequest::setInvokeId(const std::string& invokeId) -{ - invokeId_ = invokeId; - setParameter("InvokeId", invokeId); +std::string DescribeInvocationResultsRequest::getInvokeId() const { + return invokeId_; } -std::string DescribeInvocationResultsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeInvocationResultsRequest::setInvokeId(const std::string &invokeId) { + invokeId_ = invokeId; + setParameter(std::string("InvokeId"), invokeId); } -void DescribeInvocationResultsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeInvocationResultsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeInvocationResultsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeInvocationResultsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeInvocationResultsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeInvocationResultsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeInvocationResultsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeInvocationResultsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeInvocationResultsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeInvocationResultsRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeInvocationResultsRequest::getInstanceId()const -{ - return instanceId_; +void DescribeInvocationResultsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeInvocationResultsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DescribeInvocationResultsRequest::getInstanceId() const { + return instanceId_; } -std::string DescribeInvocationResultsRequest::getInvokeRecordStatus()const -{ - return invokeRecordStatus_; +void DescribeInvocationResultsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DescribeInvocationResultsRequest::setInvokeRecordStatus(const std::string& invokeRecordStatus) -{ - invokeRecordStatus_ = invokeRecordStatus; - setParameter("InvokeRecordStatus", invokeRecordStatus); +std::string DescribeInvocationResultsRequest::getInvokeRecordStatus() const { + return invokeRecordStatus_; } -bool DescribeInvocationResultsRequest::getIncludeHistory()const -{ - return includeHistory_; +void DescribeInvocationResultsRequest::setInvokeRecordStatus(const std::string &invokeRecordStatus) { + invokeRecordStatus_ = invokeRecordStatus; + setParameter(std::string("InvokeRecordStatus"), invokeRecordStatus); } -void DescribeInvocationResultsRequest::setIncludeHistory(bool includeHistory) -{ - includeHistory_ = includeHistory; - setParameter("IncludeHistory", includeHistory ? "true" : "false"); +bool DescribeInvocationResultsRequest::getIncludeHistory() const { + return includeHistory_; +} + +void DescribeInvocationResultsRequest::setIncludeHistory(bool includeHistory) { + includeHistory_ = includeHistory; + setParameter(std::string("IncludeHistory"), includeHistory ? "true" : "false"); } diff --git a/ecs/src/model/DescribeInvocationResultsResult.cc b/ecs/src/model/DescribeInvocationResultsResult.cc index a12516507..283919d5e 100644 --- a/ecs/src/model/DescribeInvocationResultsResult.cc +++ b/ecs/src/model/DescribeInvocationResultsResult.cc @@ -50,34 +50,34 @@ void DescribeInvocationResultsResult::parse(const std::string &payload) for (auto invocationNodeInvocationResultsInvocationResult : allInvocationResultsNode) { Invocation::InvocationResult invocationResultObject; - if(!invocationNodeInvocationResultsInvocationResult["CommandId"].isNull()) - invocationResultObject.commandId = invocationNodeInvocationResultsInvocationResult["CommandId"].asString(); - if(!invocationNodeInvocationResultsInvocationResult["InvokeId"].isNull()) - invocationResultObject.invokeId = invocationNodeInvocationResultsInvocationResult["InvokeId"].asString(); - if(!invocationNodeInvocationResultsInvocationResult["InstanceId"].isNull()) - invocationResultObject.instanceId = invocationNodeInvocationResultsInvocationResult["InstanceId"].asString(); - if(!invocationNodeInvocationResultsInvocationResult["StartTime"].isNull()) - invocationResultObject.startTime = invocationNodeInvocationResultsInvocationResult["StartTime"].asString(); - if(!invocationNodeInvocationResultsInvocationResult["StopTime"].isNull()) - invocationResultObject.stopTime = invocationNodeInvocationResultsInvocationResult["StopTime"].asString(); - if(!invocationNodeInvocationResultsInvocationResult["FinishedTime"].isNull()) - invocationResultObject.finishedTime = invocationNodeInvocationResultsInvocationResult["FinishedTime"].asString(); + if(!invocationNodeInvocationResultsInvocationResult["InvocationStatus"].isNull()) + invocationResultObject.invocationStatus = invocationNodeInvocationResultsInvocationResult["InvocationStatus"].asString(); if(!invocationNodeInvocationResultsInvocationResult["Repeats"].isNull()) invocationResultObject.repeats = std::stoi(invocationNodeInvocationResultsInvocationResult["Repeats"].asString()); + if(!invocationNodeInvocationResultsInvocationResult["CommandId"].isNull()) + invocationResultObject.commandId = invocationNodeInvocationResultsInvocationResult["CommandId"].asString(); + if(!invocationNodeInvocationResultsInvocationResult["InstanceId"].isNull()) + invocationResultObject.instanceId = invocationNodeInvocationResultsInvocationResult["InstanceId"].asString(); if(!invocationNodeInvocationResultsInvocationResult["Output"].isNull()) invocationResultObject.output = invocationNodeInvocationResultsInvocationResult["Output"].asString(); if(!invocationNodeInvocationResultsInvocationResult["Dropped"].isNull()) invocationResultObject.dropped = std::stoi(invocationNodeInvocationResultsInvocationResult["Dropped"].asString()); - if(!invocationNodeInvocationResultsInvocationResult["InvokeRecordStatus"].isNull()) - invocationResultObject.invokeRecordStatus = invocationNodeInvocationResultsInvocationResult["InvokeRecordStatus"].asString(); - if(!invocationNodeInvocationResultsInvocationResult["InvocationStatus"].isNull()) - invocationResultObject.invocationStatus = invocationNodeInvocationResultsInvocationResult["InvocationStatus"].asString(); + if(!invocationNodeInvocationResultsInvocationResult["StopTime"].isNull()) + invocationResultObject.stopTime = invocationNodeInvocationResultsInvocationResult["StopTime"].asString(); if(!invocationNodeInvocationResultsInvocationResult["ExitCode"].isNull()) invocationResultObject.exitCode = std::stol(invocationNodeInvocationResultsInvocationResult["ExitCode"].asString()); - if(!invocationNodeInvocationResultsInvocationResult["ErrorCode"].isNull()) - invocationResultObject.errorCode = invocationNodeInvocationResultsInvocationResult["ErrorCode"].asString(); + if(!invocationNodeInvocationResultsInvocationResult["StartTime"].isNull()) + invocationResultObject.startTime = invocationNodeInvocationResultsInvocationResult["StartTime"].asString(); if(!invocationNodeInvocationResultsInvocationResult["ErrorInfo"].isNull()) invocationResultObject.errorInfo = invocationNodeInvocationResultsInvocationResult["ErrorInfo"].asString(); + if(!invocationNodeInvocationResultsInvocationResult["ErrorCode"].isNull()) + invocationResultObject.errorCode = invocationNodeInvocationResultsInvocationResult["ErrorCode"].asString(); + if(!invocationNodeInvocationResultsInvocationResult["FinishedTime"].isNull()) + invocationResultObject.finishedTime = invocationNodeInvocationResultsInvocationResult["FinishedTime"].asString(); + if(!invocationNodeInvocationResultsInvocationResult["InvokeId"].isNull()) + invocationResultObject.invokeId = invocationNodeInvocationResultsInvocationResult["InvokeId"].asString(); + if(!invocationNodeInvocationResultsInvocationResult["InvokeRecordStatus"].isNull()) + invocationResultObject.invokeRecordStatus = invocationNodeInvocationResultsInvocationResult["InvokeRecordStatus"].asString(); if(!invocationNodeInvocationResultsInvocationResult["Username"].isNull()) invocationResultObject.username = invocationNodeInvocationResultsInvocationResult["Username"].asString(); invocation_.invocationResults.push_back(invocationResultObject); diff --git a/ecs/src/model/DescribeInvocationsRequest.cc b/ecs/src/model/DescribeInvocationsRequest.cc index 74e0a7949..80a4dee06 100644 --- a/ecs/src/model/DescribeInvocationsRequest.cc +++ b/ecs/src/model/DescribeInvocationsRequest.cc @@ -1,216 +1,180 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeInvocationsRequest; - -DescribeInvocationsRequest::DescribeInvocationsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeInvocations") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeInvocationsRequest::~DescribeInvocationsRequest() -{} - -long DescribeInvocationsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeInvocationsRequest; + +DescribeInvocationsRequest::DescribeInvocationsRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeInvocations") { + setMethod(HttpRequest::Method::Post); } -void DescribeInvocationsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeInvocationsRequest::~DescribeInvocationsRequest() {} + +long DescribeInvocationsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeInvocationsRequest::getInvokeStatus()const -{ - return invokeStatus_; +void DescribeInvocationsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeInvocationsRequest::setInvokeStatus(const std::string& invokeStatus) -{ - invokeStatus_ = invokeStatus; - setParameter("InvokeStatus", invokeStatus); +std::string DescribeInvocationsRequest::getInvokeStatus() const { + return invokeStatus_; } -bool DescribeInvocationsRequest::getIncludeOutput()const -{ - return includeOutput_; +void DescribeInvocationsRequest::setInvokeStatus(const std::string &invokeStatus) { + invokeStatus_ = invokeStatus; + setParameter(std::string("InvokeStatus"), invokeStatus); } -void DescribeInvocationsRequest::setIncludeOutput(bool includeOutput) -{ - includeOutput_ = includeOutput; - setParameter("IncludeOutput", includeOutput ? "true" : "false"); +bool DescribeInvocationsRequest::getIncludeOutput() const { + return includeOutput_; } -std::string DescribeInvocationsRequest::getCommandId()const -{ - return commandId_; +void DescribeInvocationsRequest::setIncludeOutput(bool includeOutput) { + includeOutput_ = includeOutput; + setParameter(std::string("IncludeOutput"), includeOutput ? "true" : "false"); } -void DescribeInvocationsRequest::setCommandId(const std::string& commandId) -{ - commandId_ = commandId; - setParameter("CommandId", commandId); +std::string DescribeInvocationsRequest::getCommandId() const { + return commandId_; } -long DescribeInvocationsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeInvocationsRequest::setCommandId(const std::string &commandId) { + commandId_ = commandId; + setParameter(std::string("CommandId"), commandId); } -void DescribeInvocationsRequest::setPageNumber(long pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +long DescribeInvocationsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeInvocationsRequest::getRegionId()const -{ - return regionId_; +void DescribeInvocationsRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeInvocationsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeInvocationsRequest::getRegionId() const { + return regionId_; } -std::string DescribeInvocationsRequest::getContentEncoding()const -{ - return contentEncoding_; +void DescribeInvocationsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeInvocationsRequest::setContentEncoding(const std::string& contentEncoding) -{ - contentEncoding_ = contentEncoding; - setParameter("ContentEncoding", contentEncoding); +std::string DescribeInvocationsRequest::getContentEncoding() const { + return contentEncoding_; } -std::string DescribeInvocationsRequest::getRepeatMode()const -{ - return repeatMode_; +void DescribeInvocationsRequest::setContentEncoding(const std::string &contentEncoding) { + contentEncoding_ = contentEncoding; + setParameter(std::string("ContentEncoding"), contentEncoding); } -void DescribeInvocationsRequest::setRepeatMode(const std::string& repeatMode) -{ - repeatMode_ = repeatMode; - setParameter("RepeatMode", repeatMode); +std::string DescribeInvocationsRequest::getRepeatMode() const { + return repeatMode_; } -long DescribeInvocationsRequest::getPageSize()const -{ - return pageSize_; +void DescribeInvocationsRequest::setRepeatMode(const std::string &repeatMode) { + repeatMode_ = repeatMode; + setParameter(std::string("RepeatMode"), repeatMode); } -void DescribeInvocationsRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +long DescribeInvocationsRequest::getPageSize() const { + return pageSize_; } -std::string DescribeInvocationsRequest::getInvokeId()const -{ - return invokeId_; +void DescribeInvocationsRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeInvocationsRequest::setInvokeId(const std::string& invokeId) -{ - invokeId_ = invokeId; - setParameter("InvokeId", invokeId); +std::string DescribeInvocationsRequest::getInvokeId() const { + return invokeId_; } -bool DescribeInvocationsRequest::getTimed()const -{ - return timed_; +void DescribeInvocationsRequest::setInvokeId(const std::string &invokeId) { + invokeId_ = invokeId; + setParameter(std::string("InvokeId"), invokeId); } -void DescribeInvocationsRequest::setTimed(bool timed) -{ - timed_ = timed; - setParameter("Timed", timed ? "true" : "false"); +bool DescribeInvocationsRequest::getTimed() const { + return timed_; } -std::string DescribeInvocationsRequest::getCommandName()const -{ - return commandName_; +void DescribeInvocationsRequest::setTimed(bool timed) { + timed_ = timed; + setParameter(std::string("Timed"), timed ? "true" : "false"); } -void DescribeInvocationsRequest::setCommandName(const std::string& commandName) -{ - commandName_ = commandName; - setParameter("CommandName", commandName); +std::string DescribeInvocationsRequest::getCommandName() const { + return commandName_; } -std::string DescribeInvocationsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeInvocationsRequest::setCommandName(const std::string &commandName) { + commandName_ = commandName; + setParameter(std::string("CommandName"), commandName); } -void DescribeInvocationsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeInvocationsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeInvocationsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeInvocationsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeInvocationsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeInvocationsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeInvocationsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeInvocationsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeInvocationsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeInvocationsRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeInvocationsRequest::getCommandType()const -{ - return commandType_; +void DescribeInvocationsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeInvocationsRequest::setCommandType(const std::string& commandType) -{ - commandType_ = commandType; - setParameter("CommandType", commandType); +std::string DescribeInvocationsRequest::getCommandType() const { + return commandType_; } -std::string DescribeInvocationsRequest::getInstanceId()const -{ - return instanceId_; +void DescribeInvocationsRequest::setCommandType(const std::string &commandType) { + commandType_ = commandType; + setParameter(std::string("CommandType"), commandType); } -void DescribeInvocationsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DescribeInvocationsRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeInvocationsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/ecs/src/model/DescribeKeyPairsRequest.cc b/ecs/src/model/DescribeKeyPairsRequest.cc index 50cb93421..d5e629581 100644 --- a/ecs/src/model/DescribeKeyPairsRequest.cc +++ b/ecs/src/model/DescribeKeyPairsRequest.cc @@ -1,144 +1,122 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeKeyPairsRequest; - -DescribeKeyPairsRequest::DescribeKeyPairsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeKeyPairs") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeKeyPairsRequest::~DescribeKeyPairsRequest() -{} - -long DescribeKeyPairsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeKeyPairsRequest; + +DescribeKeyPairsRequest::DescribeKeyPairsRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeKeyPairs") { + setMethod(HttpRequest::Method::Post); } -void DescribeKeyPairsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeKeyPairsRequest::~DescribeKeyPairsRequest() {} + +long DescribeKeyPairsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeKeyPairsRequest::getKeyPairFingerPrint()const -{ - return keyPairFingerPrint_; +void DescribeKeyPairsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeKeyPairsRequest::setKeyPairFingerPrint(const std::string& keyPairFingerPrint) -{ - keyPairFingerPrint_ = keyPairFingerPrint; - setParameter("KeyPairFingerPrint", keyPairFingerPrint); +std::string DescribeKeyPairsRequest::getKeyPairFingerPrint() const { + return keyPairFingerPrint_; } -std::string DescribeKeyPairsRequest::getKeyPairName()const -{ - return keyPairName_; +void DescribeKeyPairsRequest::setKeyPairFingerPrint(const std::string &keyPairFingerPrint) { + keyPairFingerPrint_ = keyPairFingerPrint; + setParameter(std::string("KeyPairFingerPrint"), keyPairFingerPrint); } -void DescribeKeyPairsRequest::setKeyPairName(const std::string& keyPairName) -{ - keyPairName_ = keyPairName; - setParameter("KeyPairName", keyPairName); +std::string DescribeKeyPairsRequest::getKeyPairName() const { + return keyPairName_; } -int DescribeKeyPairsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeKeyPairsRequest::setKeyPairName(const std::string &keyPairName) { + keyPairName_ = keyPairName; + setParameter(std::string("KeyPairName"), keyPairName); } -void DescribeKeyPairsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeKeyPairsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeKeyPairsRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void DescribeKeyPairsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeKeyPairsRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string DescribeKeyPairsRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string DescribeKeyPairsRequest::getRegionId()const -{ - return regionId_; +void DescribeKeyPairsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void DescribeKeyPairsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeKeyPairsRequest::getRegionId() const { + return regionId_; } -int DescribeKeyPairsRequest::getPageSize()const -{ - return pageSize_; +void DescribeKeyPairsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeKeyPairsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeKeyPairsRequest::getPageSize() const { + return pageSize_; } -std::vector DescribeKeyPairsRequest::getTag()const -{ - return tag_; +void DescribeKeyPairsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeKeyPairsRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Value", tagObj.value); - setParameter(tagObjStr + ".Key", tagObj.key); - } +std::vector DescribeKeyPairsRequest::getTag() const { + return tag_; } -std::string DescribeKeyPairsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeKeyPairsRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } -void DescribeKeyPairsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeKeyPairsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long DescribeKeyPairsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeKeyPairsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeKeyPairsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeKeyPairsRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeKeyPairsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/DescribeKeyPairsResult.cc b/ecs/src/model/DescribeKeyPairsResult.cc index c92b22560..98992890e 100644 --- a/ecs/src/model/DescribeKeyPairsResult.cc +++ b/ecs/src/model/DescribeKeyPairsResult.cc @@ -43,32 +43,32 @@ void DescribeKeyPairsResult::parse(const std::string &payload) for (auto valueKeyPairsKeyPair : allKeyPairsNode) { KeyPair keyPairsObject; + if(!valueKeyPairsKeyPair["CreationTime"].isNull()) + keyPairsObject.creationTime = valueKeyPairsKeyPair["CreationTime"].asString(); if(!valueKeyPairsKeyPair["KeyPairName"].isNull()) keyPairsObject.keyPairName = valueKeyPairsKeyPair["KeyPairName"].asString(); if(!valueKeyPairsKeyPair["KeyPairFingerPrint"].isNull()) keyPairsObject.keyPairFingerPrint = valueKeyPairsKeyPair["KeyPairFingerPrint"].asString(); - if(!valueKeyPairsKeyPair["CreationTime"].isNull()) - keyPairsObject.creationTime = valueKeyPairsKeyPair["CreationTime"].asString(); if(!valueKeyPairsKeyPair["ResourceGroupId"].isNull()) keyPairsObject.resourceGroupId = valueKeyPairsKeyPair["ResourceGroupId"].asString(); auto allTagsNode = valueKeyPairsKeyPair["Tags"]["Tag"]; for (auto valueKeyPairsKeyPairTagsTag : allTagsNode) { KeyPair::Tag tagsObject; - if(!valueKeyPairsKeyPairTagsTag["TagKey"].isNull()) - tagsObject.tagKey = valueKeyPairsKeyPairTagsTag["TagKey"].asString(); if(!valueKeyPairsKeyPairTagsTag["TagValue"].isNull()) tagsObject.tagValue = valueKeyPairsKeyPairTagsTag["TagValue"].asString(); + if(!valueKeyPairsKeyPairTagsTag["TagKey"].isNull()) + tagsObject.tagKey = valueKeyPairsKeyPairTagsTag["TagKey"].asString(); keyPairsObject.tags.push_back(tagsObject); } keyPairs_.push_back(keyPairsObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/ecs/src/model/DescribeLaunchTemplateVersionsRequest.cc b/ecs/src/model/DescribeLaunchTemplateVersionsRequest.cc index 4acbadbbc..702c8c0b7 100644 --- a/ecs/src/model/DescribeLaunchTemplateVersionsRequest.cc +++ b/ecs/src/model/DescribeLaunchTemplateVersionsRequest.cc @@ -1,185 +1,152 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeLaunchTemplateVersionsRequest; - -DescribeLaunchTemplateVersionsRequest::DescribeLaunchTemplateVersionsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeLaunchTemplateVersions") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeLaunchTemplateVersionsRequest::~DescribeLaunchTemplateVersionsRequest() -{} - -std::string DescribeLaunchTemplateVersionsRequest::getLaunchTemplateName()const -{ - return launchTemplateName_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeLaunchTemplateVersionsRequest; + +DescribeLaunchTemplateVersionsRequest::DescribeLaunchTemplateVersionsRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeLaunchTemplateVersions") { + setMethod(HttpRequest::Method::Post); } -void DescribeLaunchTemplateVersionsRequest::setLaunchTemplateName(const std::string& launchTemplateName) -{ - launchTemplateName_ = launchTemplateName; - setParameter("LaunchTemplateName", launchTemplateName); +DescribeLaunchTemplateVersionsRequest::~DescribeLaunchTemplateVersionsRequest() {} + +std::string DescribeLaunchTemplateVersionsRequest::getLaunchTemplateName() const { + return launchTemplateName_; } -long DescribeLaunchTemplateVersionsRequest::getMaxVersion()const -{ - return maxVersion_; +void DescribeLaunchTemplateVersionsRequest::setLaunchTemplateName(const std::string &launchTemplateName) { + launchTemplateName_ = launchTemplateName; + setParameter(std::string("LaunchTemplateName"), launchTemplateName); } -void DescribeLaunchTemplateVersionsRequest::setMaxVersion(long maxVersion) -{ - maxVersion_ = maxVersion; - setParameter("MaxVersion", std::to_string(maxVersion)); +long DescribeLaunchTemplateVersionsRequest::getMaxVersion() const { + return maxVersion_; } -long DescribeLaunchTemplateVersionsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void DescribeLaunchTemplateVersionsRequest::setMaxVersion(long maxVersion) { + maxVersion_ = maxVersion; + setParameter(std::string("MaxVersion"), std::to_string(maxVersion)); } -void DescribeLaunchTemplateVersionsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long DescribeLaunchTemplateVersionsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -bool DescribeLaunchTemplateVersionsRequest::getDefaultVersion()const -{ - return defaultVersion_; +void DescribeLaunchTemplateVersionsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeLaunchTemplateVersionsRequest::setDefaultVersion(bool defaultVersion) -{ - defaultVersion_ = defaultVersion; - setParameter("DefaultVersion", defaultVersion ? "true" : "false"); +bool DescribeLaunchTemplateVersionsRequest::getDefaultVersion() const { + return defaultVersion_; } -long DescribeLaunchTemplateVersionsRequest::getMinVersion()const -{ - return minVersion_; +void DescribeLaunchTemplateVersionsRequest::setDefaultVersion(bool defaultVersion) { + defaultVersion_ = defaultVersion; + setParameter(std::string("DefaultVersion"), defaultVersion ? "true" : "false"); } -void DescribeLaunchTemplateVersionsRequest::setMinVersion(long minVersion) -{ - minVersion_ = minVersion; - setParameter("MinVersion", std::to_string(minVersion)); +long DescribeLaunchTemplateVersionsRequest::getMinVersion() const { + return minVersion_; } -int DescribeLaunchTemplateVersionsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeLaunchTemplateVersionsRequest::setMinVersion(long minVersion) { + minVersion_ = minVersion; + setParameter(std::string("MinVersion"), std::to_string(minVersion)); } -void DescribeLaunchTemplateVersionsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeLaunchTemplateVersionsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeLaunchTemplateVersionsRequest::getRegionId()const -{ - return regionId_; +void DescribeLaunchTemplateVersionsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeLaunchTemplateVersionsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeLaunchTemplateVersionsRequest::getRegionId() const { + return regionId_; } -int DescribeLaunchTemplateVersionsRequest::getPageSize()const -{ - return pageSize_; +void DescribeLaunchTemplateVersionsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeLaunchTemplateVersionsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeLaunchTemplateVersionsRequest::getPageSize() const { + return pageSize_; } -std::string DescribeLaunchTemplateVersionsRequest::getLaunchTemplateId()const -{ - return launchTemplateId_; +void DescribeLaunchTemplateVersionsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeLaunchTemplateVersionsRequest::setLaunchTemplateId(const std::string& launchTemplateId) -{ - launchTemplateId_ = launchTemplateId; - setParameter("LaunchTemplateId", launchTemplateId); +std::string DescribeLaunchTemplateVersionsRequest::getLaunchTemplateId() const { + return launchTemplateId_; } -std::string DescribeLaunchTemplateVersionsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeLaunchTemplateVersionsRequest::setLaunchTemplateId(const std::string &launchTemplateId) { + launchTemplateId_ = launchTemplateId; + setParameter(std::string("LaunchTemplateId"), launchTemplateId); } -void DescribeLaunchTemplateVersionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeLaunchTemplateVersionsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeLaunchTemplateVersionsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeLaunchTemplateVersionsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeLaunchTemplateVersionsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeLaunchTemplateVersionsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeLaunchTemplateVersionsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeLaunchTemplateVersionsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeLaunchTemplateVersionsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeLaunchTemplateVersionsRequest::getOwnerId() const { + return ownerId_; } -std::vector DescribeLaunchTemplateVersionsRequest::getLaunchTemplateVersion()const -{ - return launchTemplateVersion_; +void DescribeLaunchTemplateVersionsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeLaunchTemplateVersionsRequest::setLaunchTemplateVersion(const std::vector& launchTemplateVersion) -{ - launchTemplateVersion_ = launchTemplateVersion; - for(int dep1 = 0; dep1!= launchTemplateVersion.size(); dep1++) { - setParameter("LaunchTemplateVersion."+ std::to_string(dep1), std::to_string(launchTemplateVersion.at(dep1))); - } +std::vector DescribeLaunchTemplateVersionsRequest::getLaunchTemplateVersion() const { + return launchTemplateVersion_; } -bool DescribeLaunchTemplateVersionsRequest::getDetailFlag()const -{ - return detailFlag_; +void DescribeLaunchTemplateVersionsRequest::setLaunchTemplateVersion(const std::vector &launchTemplateVersion) { + launchTemplateVersion_ = launchTemplateVersion; } -void DescribeLaunchTemplateVersionsRequest::setDetailFlag(bool detailFlag) -{ - detailFlag_ = detailFlag; - setParameter("DetailFlag", detailFlag ? "true" : "false"); +bool DescribeLaunchTemplateVersionsRequest::getDetailFlag() const { + return detailFlag_; +} + +void DescribeLaunchTemplateVersionsRequest::setDetailFlag(bool detailFlag) { + detailFlag_ = detailFlag; + setParameter(std::string("DetailFlag"), detailFlag ? "true" : "false"); } diff --git a/ecs/src/model/DescribeLaunchTemplateVersionsResult.cc b/ecs/src/model/DescribeLaunchTemplateVersionsResult.cc index 716c5610c..ce2ae5d5d 100644 --- a/ecs/src/model/DescribeLaunchTemplateVersionsResult.cc +++ b/ecs/src/model/DescribeLaunchTemplateVersionsResult.cc @@ -43,135 +43,135 @@ void DescribeLaunchTemplateVersionsResult::parse(const std::string &payload) for (auto valueLaunchTemplateVersionSetsLaunchTemplateVersionSet : allLaunchTemplateVersionSetsNode) { LaunchTemplateVersionSet launchTemplateVersionSetsObject; - if(!valueLaunchTemplateVersionSetsLaunchTemplateVersionSet["CreateTime"].isNull()) - launchTemplateVersionSetsObject.createTime = valueLaunchTemplateVersionSetsLaunchTemplateVersionSet["CreateTime"].asString(); - if(!valueLaunchTemplateVersionSetsLaunchTemplateVersionSet["ModifiedTime"].isNull()) - launchTemplateVersionSetsObject.modifiedTime = valueLaunchTemplateVersionSetsLaunchTemplateVersionSet["ModifiedTime"].asString(); - if(!valueLaunchTemplateVersionSetsLaunchTemplateVersionSet["LaunchTemplateId"].isNull()) - launchTemplateVersionSetsObject.launchTemplateId = valueLaunchTemplateVersionSetsLaunchTemplateVersionSet["LaunchTemplateId"].asString(); if(!valueLaunchTemplateVersionSetsLaunchTemplateVersionSet["LaunchTemplateName"].isNull()) launchTemplateVersionSetsObject.launchTemplateName = valueLaunchTemplateVersionSetsLaunchTemplateVersionSet["LaunchTemplateName"].asString(); if(!valueLaunchTemplateVersionSetsLaunchTemplateVersionSet["DefaultVersion"].isNull()) launchTemplateVersionSetsObject.defaultVersion = valueLaunchTemplateVersionSetsLaunchTemplateVersionSet["DefaultVersion"].asString() == "true"; if(!valueLaunchTemplateVersionSetsLaunchTemplateVersionSet["VersionNumber"].isNull()) launchTemplateVersionSetsObject.versionNumber = std::stol(valueLaunchTemplateVersionSetsLaunchTemplateVersionSet["VersionNumber"].asString()); - if(!valueLaunchTemplateVersionSetsLaunchTemplateVersionSet["VersionDescription"].isNull()) - launchTemplateVersionSetsObject.versionDescription = valueLaunchTemplateVersionSetsLaunchTemplateVersionSet["VersionDescription"].asString(); + if(!valueLaunchTemplateVersionSetsLaunchTemplateVersionSet["ModifiedTime"].isNull()) + launchTemplateVersionSetsObject.modifiedTime = valueLaunchTemplateVersionSetsLaunchTemplateVersionSet["ModifiedTime"].asString(); + if(!valueLaunchTemplateVersionSetsLaunchTemplateVersionSet["LaunchTemplateId"].isNull()) + launchTemplateVersionSetsObject.launchTemplateId = valueLaunchTemplateVersionSetsLaunchTemplateVersionSet["LaunchTemplateId"].asString(); + if(!valueLaunchTemplateVersionSetsLaunchTemplateVersionSet["CreateTime"].isNull()) + launchTemplateVersionSetsObject.createTime = valueLaunchTemplateVersionSetsLaunchTemplateVersionSet["CreateTime"].asString(); if(!valueLaunchTemplateVersionSetsLaunchTemplateVersionSet["CreatedBy"].isNull()) launchTemplateVersionSetsObject.createdBy = valueLaunchTemplateVersionSetsLaunchTemplateVersionSet["CreatedBy"].asString(); + if(!valueLaunchTemplateVersionSetsLaunchTemplateVersionSet["VersionDescription"].isNull()) + launchTemplateVersionSetsObject.versionDescription = valueLaunchTemplateVersionSetsLaunchTemplateVersionSet["VersionDescription"].asString(); auto launchTemplateDataNode = value["LaunchTemplateData"]; - if(!launchTemplateDataNode["ImageId"].isNull()) - launchTemplateVersionSetsObject.launchTemplateData.imageId = launchTemplateDataNode["ImageId"].asString(); - if(!launchTemplateDataNode["ImageOwnerAlias"].isNull()) - launchTemplateVersionSetsObject.launchTemplateData.imageOwnerAlias = launchTemplateDataNode["ImageOwnerAlias"].asString(); - if(!launchTemplateDataNode["PasswordInherit"].isNull()) - launchTemplateVersionSetsObject.launchTemplateData.passwordInherit = launchTemplateDataNode["PasswordInherit"].asString() == "true"; - if(!launchTemplateDataNode["InstanceType"].isNull()) - launchTemplateVersionSetsObject.launchTemplateData.instanceType = launchTemplateDataNode["InstanceType"].asString(); - if(!launchTemplateDataNode["SecurityGroupId"].isNull()) - launchTemplateVersionSetsObject.launchTemplateData.securityGroupId = launchTemplateDataNode["SecurityGroupId"].asString(); - if(!launchTemplateDataNode["VpcId"].isNull()) - launchTemplateVersionSetsObject.launchTemplateData.vpcId = launchTemplateDataNode["VpcId"].asString(); - if(!launchTemplateDataNode["VSwitchId"].isNull()) - launchTemplateVersionSetsObject.launchTemplateData.vSwitchId = launchTemplateDataNode["VSwitchId"].asString(); - if(!launchTemplateDataNode["InstanceName"].isNull()) - launchTemplateVersionSetsObject.launchTemplateData.instanceName = launchTemplateDataNode["InstanceName"].asString(); - if(!launchTemplateDataNode["Description"].isNull()) - launchTemplateVersionSetsObject.launchTemplateData.description = launchTemplateDataNode["Description"].asString(); - if(!launchTemplateDataNode["InternetMaxBandwidthIn"].isNull()) - launchTemplateVersionSetsObject.launchTemplateData.internetMaxBandwidthIn = std::stoi(launchTemplateDataNode["InternetMaxBandwidthIn"].asString()); - if(!launchTemplateDataNode["InternetMaxBandwidthOut"].isNull()) - launchTemplateVersionSetsObject.launchTemplateData.internetMaxBandwidthOut = std::stoi(launchTemplateDataNode["InternetMaxBandwidthOut"].asString()); - if(!launchTemplateDataNode["HostName"].isNull()) - launchTemplateVersionSetsObject.launchTemplateData.hostName = launchTemplateDataNode["HostName"].asString(); - if(!launchTemplateDataNode["ZoneId"].isNull()) - launchTemplateVersionSetsObject.launchTemplateData.zoneId = launchTemplateDataNode["ZoneId"].asString(); - if(!launchTemplateDataNode["SystemDisk.Size"].isNull()) - launchTemplateVersionSetsObject.launchTemplateData.systemDiskSize = std::stoi(launchTemplateDataNode["SystemDisk.Size"].asString()); - if(!launchTemplateDataNode["SystemDisk.Category"].isNull()) - launchTemplateVersionSetsObject.launchTemplateData.systemDiskCategory = launchTemplateDataNode["SystemDisk.Category"].asString(); - if(!launchTemplateDataNode["SystemDisk.DiskName"].isNull()) - launchTemplateVersionSetsObject.launchTemplateData.systemDiskDiskName = launchTemplateDataNode["SystemDisk.DiskName"].asString(); - if(!launchTemplateDataNode["SystemDisk.Description"].isNull()) - launchTemplateVersionSetsObject.launchTemplateData.systemDiskDescription = launchTemplateDataNode["SystemDisk.Description"].asString(); - if(!launchTemplateDataNode["SystemDisk.Iops"].isNull()) - launchTemplateVersionSetsObject.launchTemplateData.systemDiskIops = std::stoi(launchTemplateDataNode["SystemDisk.Iops"].asString()); - if(!launchTemplateDataNode["SystemDisk.PerformanceLevel"].isNull()) - launchTemplateVersionSetsObject.launchTemplateData.systemDiskPerformanceLevel = launchTemplateDataNode["SystemDisk.PerformanceLevel"].asString(); - if(!launchTemplateDataNode["SystemDisk.DeleteWithInstance"].isNull()) - launchTemplateVersionSetsObject.launchTemplateData.systemDiskDeleteWithInstance = launchTemplateDataNode["SystemDisk.DeleteWithInstance"].asString() == "true"; - if(!launchTemplateDataNode["IoOptimized"].isNull()) - launchTemplateVersionSetsObject.launchTemplateData.ioOptimized = launchTemplateDataNode["IoOptimized"].asString(); - if(!launchTemplateDataNode["InstanceChargeType"].isNull()) - launchTemplateVersionSetsObject.launchTemplateData.instanceChargeType = launchTemplateDataNode["InstanceChargeType"].asString(); - if(!launchTemplateDataNode["Period"].isNull()) - launchTemplateVersionSetsObject.launchTemplateData.period = std::stoi(launchTemplateDataNode["Period"].asString()); - if(!launchTemplateDataNode["InternetChargeType"].isNull()) - launchTemplateVersionSetsObject.launchTemplateData.internetChargeType = launchTemplateDataNode["InternetChargeType"].asString(); - if(!launchTemplateDataNode["EnableVmOsConfig"].isNull()) - launchTemplateVersionSetsObject.launchTemplateData.enableVmOsConfig = launchTemplateDataNode["EnableVmOsConfig"].asString() == "true"; - if(!launchTemplateDataNode["NetworkType"].isNull()) - launchTemplateVersionSetsObject.launchTemplateData.networkType = launchTemplateDataNode["NetworkType"].asString(); - if(!launchTemplateDataNode["UserData"].isNull()) - launchTemplateVersionSetsObject.launchTemplateData.userData = launchTemplateDataNode["UserData"].asString(); - if(!launchTemplateDataNode["KeyPairName"].isNull()) - launchTemplateVersionSetsObject.launchTemplateData.keyPairName = launchTemplateDataNode["KeyPairName"].asString(); - if(!launchTemplateDataNode["RamRoleName"].isNull()) - launchTemplateVersionSetsObject.launchTemplateData.ramRoleName = launchTemplateDataNode["RamRoleName"].asString(); - if(!launchTemplateDataNode["AutoReleaseTime"].isNull()) - launchTemplateVersionSetsObject.launchTemplateData.autoReleaseTime = launchTemplateDataNode["AutoReleaseTime"].asString(); - if(!launchTemplateDataNode["SpotStrategy"].isNull()) - launchTemplateVersionSetsObject.launchTemplateData.spotStrategy = launchTemplateDataNode["SpotStrategy"].asString(); - if(!launchTemplateDataNode["SpotPriceLimit"].isNull()) - launchTemplateVersionSetsObject.launchTemplateData.spotPriceLimit = std::stof(launchTemplateDataNode["SpotPriceLimit"].asString()); - if(!launchTemplateDataNode["SpotDuration"].isNull()) - launchTemplateVersionSetsObject.launchTemplateData.spotDuration = std::stoi(launchTemplateDataNode["SpotDuration"].asString()); - if(!launchTemplateDataNode["ResourceGroupId"].isNull()) - launchTemplateVersionSetsObject.launchTemplateData.resourceGroupId = launchTemplateDataNode["ResourceGroupId"].asString(); - if(!launchTemplateDataNode["SecurityEnhancementStrategy"].isNull()) - launchTemplateVersionSetsObject.launchTemplateData.securityEnhancementStrategy = launchTemplateDataNode["SecurityEnhancementStrategy"].asString(); - if(!launchTemplateDataNode["PrivateIpAddress"].isNull()) - launchTemplateVersionSetsObject.launchTemplateData.privateIpAddress = launchTemplateDataNode["PrivateIpAddress"].asString(); if(!launchTemplateDataNode["DeploymentSetId"].isNull()) launchTemplateVersionSetsObject.launchTemplateData.deploymentSetId = launchTemplateDataNode["DeploymentSetId"].asString(); + if(!launchTemplateDataNode["VpcId"].isNull()) + launchTemplateVersionSetsObject.launchTemplateData.vpcId = launchTemplateDataNode["VpcId"].asString(); + if(!launchTemplateDataNode["SystemDisk.PerformanceLevel"].isNull()) + launchTemplateVersionSetsObject.launchTemplateData.systemDiskPerformanceLevel = launchTemplateDataNode["SystemDisk.PerformanceLevel"].asString(); + if(!launchTemplateDataNode["KeyPairName"].isNull()) + launchTemplateVersionSetsObject.launchTemplateData.keyPairName = launchTemplateDataNode["KeyPairName"].asString(); + if(!launchTemplateDataNode["SecurityGroupId"].isNull()) + launchTemplateVersionSetsObject.launchTemplateData.securityGroupId = launchTemplateDataNode["SecurityGroupId"].asString(); + if(!launchTemplateDataNode["NetworkType"].isNull()) + launchTemplateVersionSetsObject.launchTemplateData.networkType = launchTemplateDataNode["NetworkType"].asString(); + if(!launchTemplateDataNode["SpotStrategy"].isNull()) + launchTemplateVersionSetsObject.launchTemplateData.spotStrategy = launchTemplateDataNode["SpotStrategy"].asString(); + if(!launchTemplateDataNode["EnableVmOsConfig"].isNull()) + launchTemplateVersionSetsObject.launchTemplateData.enableVmOsConfig = launchTemplateDataNode["EnableVmOsConfig"].asString() == "true"; + if(!launchTemplateDataNode["Description"].isNull()) + launchTemplateVersionSetsObject.launchTemplateData.description = launchTemplateDataNode["Description"].asString(); + if(!launchTemplateDataNode["SpotDuration"].isNull()) + launchTemplateVersionSetsObject.launchTemplateData.spotDuration = std::stoi(launchTemplateDataNode["SpotDuration"].asString()); + if(!launchTemplateDataNode["InstanceName"].isNull()) + launchTemplateVersionSetsObject.launchTemplateData.instanceName = launchTemplateDataNode["InstanceName"].asString(); + if(!launchTemplateDataNode["SecurityEnhancementStrategy"].isNull()) + launchTemplateVersionSetsObject.launchTemplateData.securityEnhancementStrategy = launchTemplateDataNode["SecurityEnhancementStrategy"].asString(); + if(!launchTemplateDataNode["UserData"].isNull()) + launchTemplateVersionSetsObject.launchTemplateData.userData = launchTemplateDataNode["UserData"].asString(); + if(!launchTemplateDataNode["SystemDisk.DiskName"].isNull()) + launchTemplateVersionSetsObject.launchTemplateData.systemDiskDiskName = launchTemplateDataNode["SystemDisk.DiskName"].asString(); + if(!launchTemplateDataNode["SystemDisk.Size"].isNull()) + launchTemplateVersionSetsObject.launchTemplateData.systemDiskSize = std::stoi(launchTemplateDataNode["SystemDisk.Size"].asString()); + if(!launchTemplateDataNode["SpotPriceLimit"].isNull()) + launchTemplateVersionSetsObject.launchTemplateData.spotPriceLimit = std::stof(launchTemplateDataNode["SpotPriceLimit"].asString()); + if(!launchTemplateDataNode["PasswordInherit"].isNull()) + launchTemplateVersionSetsObject.launchTemplateData.passwordInherit = launchTemplateDataNode["PasswordInherit"].asString() == "true"; + if(!launchTemplateDataNode["PrivateIpAddress"].isNull()) + launchTemplateVersionSetsObject.launchTemplateData.privateIpAddress = launchTemplateDataNode["PrivateIpAddress"].asString(); + if(!launchTemplateDataNode["ImageId"].isNull()) + launchTemplateVersionSetsObject.launchTemplateData.imageId = launchTemplateDataNode["ImageId"].asString(); + if(!launchTemplateDataNode["SystemDisk.DeleteWithInstance"].isNull()) + launchTemplateVersionSetsObject.launchTemplateData.systemDiskDeleteWithInstance = launchTemplateDataNode["SystemDisk.DeleteWithInstance"].asString() == "true"; + if(!launchTemplateDataNode["SystemDisk.Category"].isNull()) + launchTemplateVersionSetsObject.launchTemplateData.systemDiskCategory = launchTemplateDataNode["SystemDisk.Category"].asString(); + if(!launchTemplateDataNode["AutoReleaseTime"].isNull()) + launchTemplateVersionSetsObject.launchTemplateData.autoReleaseTime = launchTemplateDataNode["AutoReleaseTime"].asString(); + if(!launchTemplateDataNode["SystemDisk.Description"].isNull()) + launchTemplateVersionSetsObject.launchTemplateData.systemDiskDescription = launchTemplateDataNode["SystemDisk.Description"].asString(); + if(!launchTemplateDataNode["ImageOwnerAlias"].isNull()) + launchTemplateVersionSetsObject.launchTemplateData.imageOwnerAlias = launchTemplateDataNode["ImageOwnerAlias"].asString(); + if(!launchTemplateDataNode["HostName"].isNull()) + launchTemplateVersionSetsObject.launchTemplateData.hostName = launchTemplateDataNode["HostName"].asString(); + if(!launchTemplateDataNode["SystemDisk.Iops"].isNull()) + launchTemplateVersionSetsObject.launchTemplateData.systemDiskIops = std::stoi(launchTemplateDataNode["SystemDisk.Iops"].asString()); + if(!launchTemplateDataNode["InternetMaxBandwidthOut"].isNull()) + launchTemplateVersionSetsObject.launchTemplateData.internetMaxBandwidthOut = std::stoi(launchTemplateDataNode["InternetMaxBandwidthOut"].asString()); + if(!launchTemplateDataNode["InternetMaxBandwidthIn"].isNull()) + launchTemplateVersionSetsObject.launchTemplateData.internetMaxBandwidthIn = std::stoi(launchTemplateDataNode["InternetMaxBandwidthIn"].asString()); + if(!launchTemplateDataNode["InstanceType"].isNull()) + launchTemplateVersionSetsObject.launchTemplateData.instanceType = launchTemplateDataNode["InstanceType"].asString(); + if(!launchTemplateDataNode["Period"].isNull()) + launchTemplateVersionSetsObject.launchTemplateData.period = std::stoi(launchTemplateDataNode["Period"].asString()); + if(!launchTemplateDataNode["InstanceChargeType"].isNull()) + launchTemplateVersionSetsObject.launchTemplateData.instanceChargeType = launchTemplateDataNode["InstanceChargeType"].asString(); + if(!launchTemplateDataNode["IoOptimized"].isNull()) + launchTemplateVersionSetsObject.launchTemplateData.ioOptimized = launchTemplateDataNode["IoOptimized"].asString(); + if(!launchTemplateDataNode["RamRoleName"].isNull()) + launchTemplateVersionSetsObject.launchTemplateData.ramRoleName = launchTemplateDataNode["RamRoleName"].asString(); + if(!launchTemplateDataNode["VSwitchId"].isNull()) + launchTemplateVersionSetsObject.launchTemplateData.vSwitchId = launchTemplateDataNode["VSwitchId"].asString(); + if(!launchTemplateDataNode["ResourceGroupId"].isNull()) + launchTemplateVersionSetsObject.launchTemplateData.resourceGroupId = launchTemplateDataNode["ResourceGroupId"].asString(); + if(!launchTemplateDataNode["InternetChargeType"].isNull()) + launchTemplateVersionSetsObject.launchTemplateData.internetChargeType = launchTemplateDataNode["InternetChargeType"].asString(); + if(!launchTemplateDataNode["ZoneId"].isNull()) + launchTemplateVersionSetsObject.launchTemplateData.zoneId = launchTemplateDataNode["ZoneId"].asString(); auto allDataDisksNode = launchTemplateDataNode["DataDisks"]["DataDisk"]; for (auto launchTemplateDataNodeDataDisksDataDisk : allDataDisksNode) { LaunchTemplateVersionSet::LaunchTemplateData::DataDisk dataDiskObject; - if(!launchTemplateDataNodeDataDisksDataDisk["Size"].isNull()) - dataDiskObject.size = std::stoi(launchTemplateDataNodeDataDisksDataDisk["Size"].asString()); - if(!launchTemplateDataNodeDataDisksDataDisk["SnapshotId"].isNull()) - dataDiskObject.snapshotId = launchTemplateDataNodeDataDisksDataDisk["SnapshotId"].asString(); - if(!launchTemplateDataNodeDataDisksDataDisk["Category"].isNull()) - dataDiskObject.category = launchTemplateDataNodeDataDisksDataDisk["Category"].asString(); - if(!launchTemplateDataNodeDataDisksDataDisk["Encrypted"].isNull()) - dataDiskObject.encrypted = launchTemplateDataNodeDataDisksDataDisk["Encrypted"].asString(); - if(!launchTemplateDataNodeDataDisksDataDisk["DiskName"].isNull()) - dataDiskObject.diskName = launchTemplateDataNodeDataDisksDataDisk["DiskName"].asString(); - if(!launchTemplateDataNodeDataDisksDataDisk["Description"].isNull()) - dataDiskObject.description = launchTemplateDataNodeDataDisksDataDisk["Description"].asString(); - if(!launchTemplateDataNodeDataDisksDataDisk["DeleteWithInstance"].isNull()) - dataDiskObject.deleteWithInstance = launchTemplateDataNodeDataDisksDataDisk["DeleteWithInstance"].asString() == "true"; - if(!launchTemplateDataNodeDataDisksDataDisk["Device"].isNull()) - dataDiskObject.device = launchTemplateDataNodeDataDisksDataDisk["Device"].asString(); if(!launchTemplateDataNodeDataDisksDataDisk["PerformanceLevel"].isNull()) dataDiskObject.performanceLevel = launchTemplateDataNodeDataDisksDataDisk["PerformanceLevel"].asString(); + if(!launchTemplateDataNodeDataDisksDataDisk["Description"].isNull()) + dataDiskObject.description = launchTemplateDataNodeDataDisksDataDisk["Description"].asString(); + if(!launchTemplateDataNodeDataDisksDataDisk["SnapshotId"].isNull()) + dataDiskObject.snapshotId = launchTemplateDataNodeDataDisksDataDisk["SnapshotId"].asString(); + if(!launchTemplateDataNodeDataDisksDataDisk["Device"].isNull()) + dataDiskObject.device = launchTemplateDataNodeDataDisksDataDisk["Device"].asString(); + if(!launchTemplateDataNodeDataDisksDataDisk["Size"].isNull()) + dataDiskObject.size = std::stoi(launchTemplateDataNodeDataDisksDataDisk["Size"].asString()); + if(!launchTemplateDataNodeDataDisksDataDisk["DiskName"].isNull()) + dataDiskObject.diskName = launchTemplateDataNodeDataDisksDataDisk["DiskName"].asString(); + if(!launchTemplateDataNodeDataDisksDataDisk["Category"].isNull()) + dataDiskObject.category = launchTemplateDataNodeDataDisksDataDisk["Category"].asString(); + if(!launchTemplateDataNodeDataDisksDataDisk["DeleteWithInstance"].isNull()) + dataDiskObject.deleteWithInstance = launchTemplateDataNodeDataDisksDataDisk["DeleteWithInstance"].asString() == "true"; + if(!launchTemplateDataNodeDataDisksDataDisk["Encrypted"].isNull()) + dataDiskObject.encrypted = launchTemplateDataNodeDataDisksDataDisk["Encrypted"].asString(); launchTemplateVersionSetsObject.launchTemplateData.dataDisks.push_back(dataDiskObject); } auto allNetworkInterfacesNode = launchTemplateDataNode["NetworkInterfaces"]["NetworkInterface"]; for (auto launchTemplateDataNodeNetworkInterfacesNetworkInterface : allNetworkInterfacesNode) { LaunchTemplateVersionSet::LaunchTemplateData::NetworkInterface networkInterfaceObject; - if(!launchTemplateDataNodeNetworkInterfacesNetworkInterface["PrimaryIpAddress"].isNull()) - networkInterfaceObject.primaryIpAddress = launchTemplateDataNodeNetworkInterfacesNetworkInterface["PrimaryIpAddress"].asString(); - if(!launchTemplateDataNodeNetworkInterfacesNetworkInterface["VSwitchId"].isNull()) - networkInterfaceObject.vSwitchId = launchTemplateDataNodeNetworkInterfacesNetworkInterface["VSwitchId"].asString(); - if(!launchTemplateDataNodeNetworkInterfacesNetworkInterface["SecurityGroupId"].isNull()) - networkInterfaceObject.securityGroupId = launchTemplateDataNodeNetworkInterfacesNetworkInterface["SecurityGroupId"].asString(); if(!launchTemplateDataNodeNetworkInterfacesNetworkInterface["NetworkInterfaceName"].isNull()) networkInterfaceObject.networkInterfaceName = launchTemplateDataNodeNetworkInterfacesNetworkInterface["NetworkInterfaceName"].asString(); + if(!launchTemplateDataNodeNetworkInterfacesNetworkInterface["VSwitchId"].isNull()) + networkInterfaceObject.vSwitchId = launchTemplateDataNodeNetworkInterfacesNetworkInterface["VSwitchId"].asString(); if(!launchTemplateDataNodeNetworkInterfacesNetworkInterface["Description"].isNull()) networkInterfaceObject.description = launchTemplateDataNodeNetworkInterfacesNetworkInterface["Description"].asString(); + if(!launchTemplateDataNodeNetworkInterfacesNetworkInterface["PrimaryIpAddress"].isNull()) + networkInterfaceObject.primaryIpAddress = launchTemplateDataNodeNetworkInterfacesNetworkInterface["PrimaryIpAddress"].asString(); + if(!launchTemplateDataNodeNetworkInterfacesNetworkInterface["SecurityGroupId"].isNull()) + networkInterfaceObject.securityGroupId = launchTemplateDataNodeNetworkInterfacesNetworkInterface["SecurityGroupId"].asString(); auto allSecurityGroupIds1 = value["SecurityGroupIds"]["SecurityGroupId"]; for (auto value : allSecurityGroupIds1) networkInterfaceObject.securityGroupIds1.push_back(value.asString()); @@ -192,12 +192,12 @@ void DescribeLaunchTemplateVersionsResult::parse(const std::string &payload) launchTemplateVersionSetsObject.launchTemplateData.securityGroupIds.push_back(value.asString()); launchTemplateVersionSets_.push_back(launchTemplateVersionSetsObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/ecs/src/model/DescribeLaunchTemplatesRequest.cc b/ecs/src/model/DescribeLaunchTemplatesRequest.cc index 25b584ba0..55ee5a873 100644 --- a/ecs/src/model/DescribeLaunchTemplatesRequest.cc +++ b/ecs/src/model/DescribeLaunchTemplatesRequest.cc @@ -1,159 +1,129 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeLaunchTemplatesRequest; - -DescribeLaunchTemplatesRequest::DescribeLaunchTemplatesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeLaunchTemplates") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeLaunchTemplatesRequest::~DescribeLaunchTemplatesRequest() -{} - -std::vector DescribeLaunchTemplatesRequest::getLaunchTemplateName()const -{ - return launchTemplateName_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeLaunchTemplatesRequest; + +DescribeLaunchTemplatesRequest::DescribeLaunchTemplatesRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeLaunchTemplates") { + setMethod(HttpRequest::Method::Post); } -void DescribeLaunchTemplatesRequest::setLaunchTemplateName(const std::vector& launchTemplateName) -{ - launchTemplateName_ = launchTemplateName; - for(int dep1 = 0; dep1!= launchTemplateName.size(); dep1++) { - setParameter("LaunchTemplateName."+ std::to_string(dep1), launchTemplateName.at(dep1)); - } +DescribeLaunchTemplatesRequest::~DescribeLaunchTemplatesRequest() {} + +std::vector DescribeLaunchTemplatesRequest::getLaunchTemplateName() const { + return launchTemplateName_; } -long DescribeLaunchTemplatesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void DescribeLaunchTemplatesRequest::setLaunchTemplateName(const std::vector &launchTemplateName) { + launchTemplateName_ = launchTemplateName; } -void DescribeLaunchTemplatesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long DescribeLaunchTemplatesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeLaunchTemplatesRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeLaunchTemplatesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeLaunchTemplatesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeLaunchTemplatesRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeLaunchTemplatesRequest::getRegionId()const -{ - return regionId_; +void DescribeLaunchTemplatesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeLaunchTemplatesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeLaunchTemplatesRequest::getRegionId() const { + return regionId_; } -int DescribeLaunchTemplatesRequest::getPageSize()const -{ - return pageSize_; +void DescribeLaunchTemplatesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeLaunchTemplatesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeLaunchTemplatesRequest::getPageSize() const { + return pageSize_; } -std::vector DescribeLaunchTemplatesRequest::getTemplateTag()const -{ - return templateTag_; +void DescribeLaunchTemplatesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeLaunchTemplatesRequest::setTemplateTag(const std::vector& templateTag) -{ - templateTag_ = templateTag; - for(int dep1 = 0; dep1!= templateTag.size(); dep1++) { - auto templateTagObj = templateTag.at(dep1); - std::string templateTagObjStr = "TemplateTag." + std::to_string(dep1 + 1); - setParameter(templateTagObjStr + ".Key", templateTagObj.key); - setParameter(templateTagObjStr + ".Value", templateTagObj.value); - } +std::vector DescribeLaunchTemplatesRequest::getTemplateTag() const { + return templateTag_; } -std::vector DescribeLaunchTemplatesRequest::getLaunchTemplateId()const -{ - return launchTemplateId_; +void DescribeLaunchTemplatesRequest::setTemplateTag(const std::vector &templateTag) { + templateTag_ = templateTag; + for(int dep1 = 0; dep1 != templateTag.size(); dep1++) { + auto templateTagObj = templateTag.at(dep1); + std::string templateTagObjStr = std::string("TemplateTag") + "." + std::to_string(dep1 + 1); + setParameter(templateTagObjStr + ".Key", templateTagObj.key); + setParameter(templateTagObjStr + ".Value", templateTagObj.value); + } } -void DescribeLaunchTemplatesRequest::setLaunchTemplateId(const std::vector& launchTemplateId) -{ - launchTemplateId_ = launchTemplateId; - for(int dep1 = 0; dep1!= launchTemplateId.size(); dep1++) { - setParameter("LaunchTemplateId."+ std::to_string(dep1), launchTemplateId.at(dep1)); - } +std::vector DescribeLaunchTemplatesRequest::getLaunchTemplateId() const { + return launchTemplateId_; } -std::string DescribeLaunchTemplatesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeLaunchTemplatesRequest::setLaunchTemplateId(const std::vector &launchTemplateId) { + launchTemplateId_ = launchTemplateId; } -void DescribeLaunchTemplatesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeLaunchTemplatesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeLaunchTemplatesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeLaunchTemplatesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeLaunchTemplatesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeLaunchTemplatesRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeLaunchTemplatesRequest::getTemplateResourceGroupId()const -{ - return templateResourceGroupId_; +void DescribeLaunchTemplatesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeLaunchTemplatesRequest::setTemplateResourceGroupId(const std::string& templateResourceGroupId) -{ - templateResourceGroupId_ = templateResourceGroupId; - setParameter("TemplateResourceGroupId", templateResourceGroupId); +std::string DescribeLaunchTemplatesRequest::getTemplateResourceGroupId() const { + return templateResourceGroupId_; } -long DescribeLaunchTemplatesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeLaunchTemplatesRequest::setTemplateResourceGroupId(const std::string &templateResourceGroupId) { + templateResourceGroupId_ = templateResourceGroupId; + setParameter(std::string("TemplateResourceGroupId"), templateResourceGroupId); } -void DescribeLaunchTemplatesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeLaunchTemplatesRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeLaunchTemplatesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/DescribeLaunchTemplatesResult.cc b/ecs/src/model/DescribeLaunchTemplatesResult.cc index 60b5ece6b..0fbbc51da 100644 --- a/ecs/src/model/DescribeLaunchTemplatesResult.cc +++ b/ecs/src/model/DescribeLaunchTemplatesResult.cc @@ -43,40 +43,40 @@ void DescribeLaunchTemplatesResult::parse(const std::string &payload) for (auto valueLaunchTemplateSetsLaunchTemplateSet : allLaunchTemplateSetsNode) { LaunchTemplateSet launchTemplateSetsObject; - if(!valueLaunchTemplateSetsLaunchTemplateSet["CreateTime"].isNull()) - launchTemplateSetsObject.createTime = valueLaunchTemplateSetsLaunchTemplateSet["CreateTime"].asString(); - if(!valueLaunchTemplateSetsLaunchTemplateSet["ModifiedTime"].isNull()) - launchTemplateSetsObject.modifiedTime = valueLaunchTemplateSetsLaunchTemplateSet["ModifiedTime"].asString(); - if(!valueLaunchTemplateSetsLaunchTemplateSet["LaunchTemplateId"].isNull()) - launchTemplateSetsObject.launchTemplateId = valueLaunchTemplateSetsLaunchTemplateSet["LaunchTemplateId"].asString(); if(!valueLaunchTemplateSetsLaunchTemplateSet["LaunchTemplateName"].isNull()) launchTemplateSetsObject.launchTemplateName = valueLaunchTemplateSetsLaunchTemplateSet["LaunchTemplateName"].asString(); if(!valueLaunchTemplateSetsLaunchTemplateSet["DefaultVersionNumber"].isNull()) launchTemplateSetsObject.defaultVersionNumber = std::stol(valueLaunchTemplateSetsLaunchTemplateSet["DefaultVersionNumber"].asString()); - if(!valueLaunchTemplateSetsLaunchTemplateSet["LatestVersionNumber"].isNull()) - launchTemplateSetsObject.latestVersionNumber = std::stol(valueLaunchTemplateSetsLaunchTemplateSet["LatestVersionNumber"].asString()); - if(!valueLaunchTemplateSetsLaunchTemplateSet["CreatedBy"].isNull()) - launchTemplateSetsObject.createdBy = valueLaunchTemplateSetsLaunchTemplateSet["CreatedBy"].asString(); + if(!valueLaunchTemplateSetsLaunchTemplateSet["ModifiedTime"].isNull()) + launchTemplateSetsObject.modifiedTime = valueLaunchTemplateSetsLaunchTemplateSet["ModifiedTime"].asString(); + if(!valueLaunchTemplateSetsLaunchTemplateSet["LaunchTemplateId"].isNull()) + launchTemplateSetsObject.launchTemplateId = valueLaunchTemplateSetsLaunchTemplateSet["LaunchTemplateId"].asString(); + if(!valueLaunchTemplateSetsLaunchTemplateSet["CreateTime"].isNull()) + launchTemplateSetsObject.createTime = valueLaunchTemplateSetsLaunchTemplateSet["CreateTime"].asString(); if(!valueLaunchTemplateSetsLaunchTemplateSet["ResourceGroupId"].isNull()) launchTemplateSetsObject.resourceGroupId = valueLaunchTemplateSetsLaunchTemplateSet["ResourceGroupId"].asString(); + if(!valueLaunchTemplateSetsLaunchTemplateSet["CreatedBy"].isNull()) + launchTemplateSetsObject.createdBy = valueLaunchTemplateSetsLaunchTemplateSet["CreatedBy"].asString(); + if(!valueLaunchTemplateSetsLaunchTemplateSet["LatestVersionNumber"].isNull()) + launchTemplateSetsObject.latestVersionNumber = std::stol(valueLaunchTemplateSetsLaunchTemplateSet["LatestVersionNumber"].asString()); auto allTagsNode = valueLaunchTemplateSetsLaunchTemplateSet["Tags"]["Tag"]; for (auto valueLaunchTemplateSetsLaunchTemplateSetTagsTag : allTagsNode) { LaunchTemplateSet::Tag tagsObject; - if(!valueLaunchTemplateSetsLaunchTemplateSetTagsTag["TagKey"].isNull()) - tagsObject.tagKey = valueLaunchTemplateSetsLaunchTemplateSetTagsTag["TagKey"].asString(); if(!valueLaunchTemplateSetsLaunchTemplateSetTagsTag["TagValue"].isNull()) tagsObject.tagValue = valueLaunchTemplateSetsLaunchTemplateSetTagsTag["TagValue"].asString(); + if(!valueLaunchTemplateSetsLaunchTemplateSetTagsTag["TagKey"].isNull()) + tagsObject.tagKey = valueLaunchTemplateSetsLaunchTemplateSetTagsTag["TagKey"].asString(); launchTemplateSetsObject.tags.push_back(tagsObject); } launchTemplateSets_.push_back(launchTemplateSetsObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/ecs/src/model/DescribeLimitationRequest.cc b/ecs/src/model/DescribeLimitationRequest.cc index 686e5dc73..f7d5d641e 100644 --- a/ecs/src/model/DescribeLimitationRequest.cc +++ b/ecs/src/model/DescribeLimitationRequest.cc @@ -1,84 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeLimitationRequest; - -DescribeLimitationRequest::DescribeLimitationRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeLimitation") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeLimitationRequest::~DescribeLimitationRequest() -{} - -std::string DescribeLimitationRequest::getLimitation()const -{ - return limitation_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeLimitationRequest; + +DescribeLimitationRequest::DescribeLimitationRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeLimitation") { + setMethod(HttpRequest::Method::Post); } -void DescribeLimitationRequest::setLimitation(const std::string& limitation) -{ - limitation_ = limitation; - setParameter("Limitation", limitation); +DescribeLimitationRequest::~DescribeLimitationRequest() {} + +std::string DescribeLimitationRequest::getLimitation() const { + return limitation_; } -long DescribeLimitationRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void DescribeLimitationRequest::setLimitation(const std::string &limitation) { + limitation_ = limitation; + setParameter(std::string("Limitation"), limitation); } -void DescribeLimitationRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long DescribeLimitationRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeLimitationRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeLimitationRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeLimitationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeLimitationRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeLimitationRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeLimitationRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeLimitationRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeLimitationRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeLimitationRequest::getOwnerId()const -{ - return ownerId_; +void DescribeLimitationRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeLimitationRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeLimitationRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeLimitationRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/DescribeManagedInstancesRequest.cc b/ecs/src/model/DescribeManagedInstancesRequest.cc index 3a9ddbb4b..47bd3e670 100644 --- a/ecs/src/model/DescribeManagedInstancesRequest.cc +++ b/ecs/src/model/DescribeManagedInstancesRequest.cc @@ -1,163 +1,134 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeManagedInstancesRequest; - -DescribeManagedInstancesRequest::DescribeManagedInstancesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeManagedInstances") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeManagedInstancesRequest::~DescribeManagedInstancesRequest() -{} - -long DescribeManagedInstancesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeManagedInstancesRequest; + +DescribeManagedInstancesRequest::DescribeManagedInstancesRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeManagedInstances") { + setMethod(HttpRequest::Method::Post); } -void DescribeManagedInstancesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeManagedInstancesRequest::~DescribeManagedInstancesRequest() {} + +long DescribeManagedInstancesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -long DescribeManagedInstancesRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeManagedInstancesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeManagedInstancesRequest::setPageNumber(long pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +long DescribeManagedInstancesRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeManagedInstancesRequest::getRegionId()const -{ - return regionId_; +void DescribeManagedInstancesRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeManagedInstancesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeManagedInstancesRequest::getRegionId() const { + return regionId_; } -long DescribeManagedInstancesRequest::getPageSize()const -{ - return pageSize_; +void DescribeManagedInstancesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeManagedInstancesRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +long DescribeManagedInstancesRequest::getPageSize() const { + return pageSize_; } -std::string DescribeManagedInstancesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeManagedInstancesRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeManagedInstancesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeManagedInstancesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeManagedInstancesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeManagedInstancesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeManagedInstancesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeManagedInstancesRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeManagedInstancesRequest::getOsType()const -{ - return osType_; +void DescribeManagedInstancesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeManagedInstancesRequest::setOsType(const std::string& osType) -{ - osType_ = osType; - setParameter("OsType", osType); +std::string DescribeManagedInstancesRequest::getOsType() const { + return osType_; } -long DescribeManagedInstancesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeManagedInstancesRequest::setOsType(const std::string &osType) { + osType_ = osType; + setParameter(std::string("OsType"), osType); } -void DescribeManagedInstancesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeManagedInstancesRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeManagedInstancesRequest::getInstanceName()const -{ - return instanceName_; +void DescribeManagedInstancesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeManagedInstancesRequest::setInstanceName(const std::string& instanceName) -{ - instanceName_ = instanceName; - setParameter("InstanceName", instanceName); +std::string DescribeManagedInstancesRequest::getInstanceName() const { + return instanceName_; } -std::vector DescribeManagedInstancesRequest::getInstanceId()const -{ - return instanceId_; +void DescribeManagedInstancesRequest::setInstanceName(const std::string &instanceName) { + instanceName_ = instanceName; + setParameter(std::string("InstanceName"), instanceName); } -void DescribeManagedInstancesRequest::setInstanceId(const std::vector& instanceId) -{ - instanceId_ = instanceId; - for(int dep1 = 0; dep1!= instanceId.size(); dep1++) { - setParameter("InstanceId."+ std::to_string(dep1), instanceId.at(dep1)); - } +std::vector DescribeManagedInstancesRequest::getInstanceId() const { + return instanceId_; } -std::string DescribeManagedInstancesRequest::getInstanceIp()const -{ - return instanceIp_; +void DescribeManagedInstancesRequest::setInstanceId(const std::vector &instanceId) { + instanceId_ = instanceId; } -void DescribeManagedInstancesRequest::setInstanceIp(const std::string& instanceIp) -{ - instanceIp_ = instanceIp; - setParameter("InstanceIp", instanceIp); +std::string DescribeManagedInstancesRequest::getInstanceIp() const { + return instanceIp_; } -std::string DescribeManagedInstancesRequest::getActivationId()const -{ - return activationId_; +void DescribeManagedInstancesRequest::setInstanceIp(const std::string &instanceIp) { + instanceIp_ = instanceIp; + setParameter(std::string("InstanceIp"), instanceIp); } -void DescribeManagedInstancesRequest::setActivationId(const std::string& activationId) -{ - activationId_ = activationId; - setParameter("ActivationId", activationId); +std::string DescribeManagedInstancesRequest::getActivationId() const { + return activationId_; +} + +void DescribeManagedInstancesRequest::setActivationId(const std::string &activationId) { + activationId_ = activationId; + setParameter(std::string("ActivationId"), activationId); } diff --git a/ecs/src/model/DescribeManagedInstancesResult.cc b/ecs/src/model/DescribeManagedInstancesResult.cc index ea43ccbfe..184ba81ba 100644 --- a/ecs/src/model/DescribeManagedInstancesResult.cc +++ b/ecs/src/model/DescribeManagedInstancesResult.cc @@ -43,42 +43,42 @@ void DescribeManagedInstancesResult::parse(const std::string &payload) for (auto valueInstancesInstance : allInstancesNode) { Instance instancesObject; - if(!valueInstancesInstance["InstanceId"].isNull()) - instancesObject.instanceId = valueInstancesInstance["InstanceId"].asString(); - if(!valueInstancesInstance["InstanceName"].isNull()) - instancesObject.instanceName = valueInstancesInstance["InstanceName"].asString(); - if(!valueInstancesInstance["ActivationId"].isNull()) - instancesObject.activationId = valueInstancesInstance["ActivationId"].asString(); - if(!valueInstancesInstance["Hostname"].isNull()) - instancesObject.hostname = valueInstancesInstance["Hostname"].asString(); - if(!valueInstancesInstance["MachineId"].isNull()) - instancesObject.machineId = valueInstancesInstance["MachineId"].asString(); - if(!valueInstancesInstance["OsType"].isNull()) - instancesObject.osType = valueInstancesInstance["OsType"].asString(); - if(!valueInstancesInstance["OsVersion"].isNull()) - instancesObject.osVersion = valueInstancesInstance["OsVersion"].asString(); - if(!valueInstancesInstance["IntranetIp"].isNull()) - instancesObject.intranetIp = valueInstancesInstance["IntranetIp"].asString(); - if(!valueInstancesInstance["InternetIp"].isNull()) - instancesObject.internetIp = valueInstancesInstance["InternetIp"].asString(); - if(!valueInstancesInstance["AgentVersion"].isNull()) - instancesObject.agentVersion = valueInstancesInstance["AgentVersion"].asString(); - if(!valueInstancesInstance["RegistrationTime"].isNull()) - instancesObject.registrationTime = valueInstancesInstance["RegistrationTime"].asString(); - if(!valueInstancesInstance["InvocationCount"].isNull()) - instancesObject.invocationCount = std::stol(valueInstancesInstance["InvocationCount"].asString()); if(!valueInstancesInstance["LastInvokedTime"].isNull()) instancesObject.lastInvokedTime = valueInstancesInstance["LastInvokedTime"].asString(); if(!valueInstancesInstance["Connected"].isNull()) instancesObject.connected = valueInstancesInstance["Connected"].asString() == "true"; + if(!valueInstancesInstance["InternetIp"].isNull()) + instancesObject.internetIp = valueInstancesInstance["InternetIp"].asString(); + if(!valueInstancesInstance["Hostname"].isNull()) + instancesObject.hostname = valueInstancesInstance["Hostname"].asString(); + if(!valueInstancesInstance["InstanceId"].isNull()) + instancesObject.instanceId = valueInstancesInstance["InstanceId"].asString(); + if(!valueInstancesInstance["ActivationId"].isNull()) + instancesObject.activationId = valueInstancesInstance["ActivationId"].asString(); + if(!valueInstancesInstance["IntranetIp"].isNull()) + instancesObject.intranetIp = valueInstancesInstance["IntranetIp"].asString(); + if(!valueInstancesInstance["AgentVersion"].isNull()) + instancesObject.agentVersion = valueInstancesInstance["AgentVersion"].asString(); + if(!valueInstancesInstance["RegistrationTime"].isNull()) + instancesObject.registrationTime = valueInstancesInstance["RegistrationTime"].asString(); + if(!valueInstancesInstance["InstanceName"].isNull()) + instancesObject.instanceName = valueInstancesInstance["InstanceName"].asString(); + if(!valueInstancesInstance["OsType"].isNull()) + instancesObject.osType = valueInstancesInstance["OsType"].asString(); + if(!valueInstancesInstance["OsVersion"].isNull()) + instancesObject.osVersion = valueInstancesInstance["OsVersion"].asString(); + if(!valueInstancesInstance["InvocationCount"].isNull()) + instancesObject.invocationCount = std::stol(valueInstancesInstance["InvocationCount"].asString()); + if(!valueInstancesInstance["MachineId"].isNull()) + instancesObject.machineId = valueInstancesInstance["MachineId"].asString(); instances_.push_back(instancesObject); } - if(!value["TotalCount"].isNull()) - totalCount_ = std::stol(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stol(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stol(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); } diff --git a/ecs/src/model/DescribeNatGatewaysRequest.cc b/ecs/src/model/DescribeNatGatewaysRequest.cc index c2e4156ec..396e1ddd5 100644 --- a/ecs/src/model/DescribeNatGatewaysRequest.cc +++ b/ecs/src/model/DescribeNatGatewaysRequest.cc @@ -1,128 +1,108 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeNatGatewaysRequest; - -DescribeNatGatewaysRequest::DescribeNatGatewaysRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeNatGateways") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeNatGatewaysRequest::~DescribeNatGatewaysRequest() -{} - -long DescribeNatGatewaysRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeNatGatewaysRequest; + +DescribeNatGatewaysRequest::DescribeNatGatewaysRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeNatGateways") { + setMethod(HttpRequest::Method::Post); } -void DescribeNatGatewaysRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeNatGatewaysRequest::~DescribeNatGatewaysRequest() {} + +long DescribeNatGatewaysRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeNatGatewaysRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeNatGatewaysRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeNatGatewaysRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeNatGatewaysRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeNatGatewaysRequest::getRegionId()const -{ - return regionId_; +void DescribeNatGatewaysRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeNatGatewaysRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeNatGatewaysRequest::getRegionId() const { + return regionId_; } -int DescribeNatGatewaysRequest::getPageSize()const -{ - return pageSize_; +void DescribeNatGatewaysRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeNatGatewaysRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeNatGatewaysRequest::getPageSize() const { + return pageSize_; } -std::string DescribeNatGatewaysRequest::getNatGatewayId()const -{ - return natGatewayId_; +void DescribeNatGatewaysRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeNatGatewaysRequest::setNatGatewayId(const std::string& natGatewayId) -{ - natGatewayId_ = natGatewayId; - setParameter("NatGatewayId", natGatewayId); +std::string DescribeNatGatewaysRequest::getNatGatewayId() const { + return natGatewayId_; } -std::string DescribeNatGatewaysRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeNatGatewaysRequest::setNatGatewayId(const std::string &natGatewayId) { + natGatewayId_ = natGatewayId; + setParameter(std::string("NatGatewayId"), natGatewayId); } -void DescribeNatGatewaysRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeNatGatewaysRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeNatGatewaysRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeNatGatewaysRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeNatGatewaysRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeNatGatewaysRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeNatGatewaysRequest::getOwnerId()const -{ - return ownerId_; +void DescribeNatGatewaysRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeNatGatewaysRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeNatGatewaysRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeNatGatewaysRequest::getVpcId()const -{ - return vpcId_; +void DescribeNatGatewaysRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeNatGatewaysRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +std::string DescribeNatGatewaysRequest::getVpcId() const { + return vpcId_; +} + +void DescribeNatGatewaysRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); } diff --git a/ecs/src/model/DescribeNatGatewaysResult.cc b/ecs/src/model/DescribeNatGatewaysResult.cc index e063ad2b0..ee440f735 100644 --- a/ecs/src/model/DescribeNatGatewaysResult.cc +++ b/ecs/src/model/DescribeNatGatewaysResult.cc @@ -43,26 +43,26 @@ void DescribeNatGatewaysResult::parse(const std::string &payload) for (auto valueNatGatewaysNatGateway : allNatGatewaysNode) { NatGateway natGatewaysObject; - if(!valueNatGatewaysNatGateway["NatGatewayId"].isNull()) - natGatewaysObject.natGatewayId = valueNatGatewaysNatGateway["NatGatewayId"].asString(); - if(!valueNatGatewaysNatGateway["RegionId"].isNull()) - natGatewaysObject.regionId = valueNatGatewaysNatGateway["RegionId"].asString(); - if(!valueNatGatewaysNatGateway["Name"].isNull()) - natGatewaysObject.name = valueNatGatewaysNatGateway["Name"].asString(); - if(!valueNatGatewaysNatGateway["Description"].isNull()) - natGatewaysObject.description = valueNatGatewaysNatGateway["Description"].asString(); + if(!valueNatGatewaysNatGateway["Status"].isNull()) + natGatewaysObject.status = valueNatGatewaysNatGateway["Status"].asString(); + if(!valueNatGatewaysNatGateway["CreationTime"].isNull()) + natGatewaysObject.creationTime = valueNatGatewaysNatGateway["CreationTime"].asString(); if(!valueNatGatewaysNatGateway["VpcId"].isNull()) natGatewaysObject.vpcId = valueNatGatewaysNatGateway["VpcId"].asString(); if(!valueNatGatewaysNatGateway["Spec"].isNull()) natGatewaysObject.spec = valueNatGatewaysNatGateway["Spec"].asString(); - if(!valueNatGatewaysNatGateway["InstanceChargeType"].isNull()) - natGatewaysObject.instanceChargeType = valueNatGatewaysNatGateway["InstanceChargeType"].asString(); + if(!valueNatGatewaysNatGateway["Description"].isNull()) + natGatewaysObject.description = valueNatGatewaysNatGateway["Description"].asString(); + if(!valueNatGatewaysNatGateway["NatGatewayId"].isNull()) + natGatewaysObject.natGatewayId = valueNatGatewaysNatGateway["NatGatewayId"].asString(); if(!valueNatGatewaysNatGateway["BusinessStatus"].isNull()) natGatewaysObject.businessStatus = valueNatGatewaysNatGateway["BusinessStatus"].asString(); - if(!valueNatGatewaysNatGateway["CreationTime"].isNull()) - natGatewaysObject.creationTime = valueNatGatewaysNatGateway["CreationTime"].asString(); - if(!valueNatGatewaysNatGateway["Status"].isNull()) - natGatewaysObject.status = valueNatGatewaysNatGateway["Status"].asString(); + if(!valueNatGatewaysNatGateway["Name"].isNull()) + natGatewaysObject.name = valueNatGatewaysNatGateway["Name"].asString(); + if(!valueNatGatewaysNatGateway["InstanceChargeType"].isNull()) + natGatewaysObject.instanceChargeType = valueNatGatewaysNatGateway["InstanceChargeType"].asString(); + if(!valueNatGatewaysNatGateway["RegionId"].isNull()) + natGatewaysObject.regionId = valueNatGatewaysNatGateway["RegionId"].asString(); auto allForwardTableIds = value["ForwardTableIds"]["ForwardTableId"]; for (auto value : allForwardTableIds) natGatewaysObject.forwardTableIds.push_back(value.asString()); @@ -71,12 +71,12 @@ void DescribeNatGatewaysResult::parse(const std::string &payload) natGatewaysObject.bandwidthPackageIds.push_back(value.asString()); natGateways_.push_back(natGatewaysObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/ecs/src/model/DescribeNetworkInterfaceAttributeRequest.cc b/ecs/src/model/DescribeNetworkInterfaceAttributeRequest.cc index 183896433..2eb6dcd2d 100644 --- a/ecs/src/model/DescribeNetworkInterfaceAttributeRequest.cc +++ b/ecs/src/model/DescribeNetworkInterfaceAttributeRequest.cc @@ -1,122 +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::Ecs::Model::DescribeNetworkInterfaceAttributeRequest; - -DescribeNetworkInterfaceAttributeRequest::DescribeNetworkInterfaceAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeNetworkInterfaceAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeNetworkInterfaceAttributeRequest::~DescribeNetworkInterfaceAttributeRequest() -{} - -long DescribeNetworkInterfaceAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeNetworkInterfaceAttributeRequest; + +DescribeNetworkInterfaceAttributeRequest::DescribeNetworkInterfaceAttributeRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeNetworkInterfaceAttribute") { + setMethod(HttpRequest::Method::Post); } -void DescribeNetworkInterfaceAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeNetworkInterfaceAttributeRequest::~DescribeNetworkInterfaceAttributeRequest() {} + +long DescribeNetworkInterfaceAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeNetworkInterfaceAttributeRequest::getRegionId()const -{ - return regionId_; +void DescribeNetworkInterfaceAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeNetworkInterfaceAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeNetworkInterfaceAttributeRequest::getRegionId() const { + return regionId_; } -std::vector DescribeNetworkInterfaceAttributeRequest::getTag()const -{ - return tag_; +void DescribeNetworkInterfaceAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeNetworkInterfaceAttributeRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Key", tagObj.key); - setParameter(tagObjStr + ".Value", tagObj.value); - } +std::vector DescribeNetworkInterfaceAttributeRequest::getTag() const { + return tag_; } -std::string DescribeNetworkInterfaceAttributeRequest::getAttribute()const -{ - return attribute_; +void DescribeNetworkInterfaceAttributeRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } } -void DescribeNetworkInterfaceAttributeRequest::setAttribute(const std::string& attribute) -{ - attribute_ = attribute; - setParameter("Attribute", attribute); +std::string DescribeNetworkInterfaceAttributeRequest::getAttribute() const { + return attribute_; } -std::string DescribeNetworkInterfaceAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeNetworkInterfaceAttributeRequest::setAttribute(const std::string &attribute) { + attribute_ = attribute; + setParameter(std::string("Attribute"), attribute); } -void DescribeNetworkInterfaceAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeNetworkInterfaceAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeNetworkInterfaceAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeNetworkInterfaceAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeNetworkInterfaceAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeNetworkInterfaceAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeNetworkInterfaceAttributeRequest::getOwnerId()const -{ - return ownerId_; +void DescribeNetworkInterfaceAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeNetworkInterfaceAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeNetworkInterfaceAttributeRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeNetworkInterfaceAttributeRequest::getNetworkInterfaceId()const -{ - return networkInterfaceId_; +void DescribeNetworkInterfaceAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeNetworkInterfaceAttributeRequest::setNetworkInterfaceId(const std::string& networkInterfaceId) -{ - networkInterfaceId_ = networkInterfaceId; - setParameter("NetworkInterfaceId", networkInterfaceId); +std::string DescribeNetworkInterfaceAttributeRequest::getNetworkInterfaceId() const { + return networkInterfaceId_; +} + +void DescribeNetworkInterfaceAttributeRequest::setNetworkInterfaceId(const std::string &networkInterfaceId) { + networkInterfaceId_ = networkInterfaceId; + setParameter(std::string("NetworkInterfaceId"), networkInterfaceId); } diff --git a/ecs/src/model/DescribeNetworkInterfaceAttributeResult.cc b/ecs/src/model/DescribeNetworkInterfaceAttributeResult.cc index 1150f931b..cc3fe202d 100644 --- a/ecs/src/model/DescribeNetworkInterfaceAttributeResult.cc +++ b/ecs/src/model/DescribeNetworkInterfaceAttributeResult.cc @@ -66,10 +66,10 @@ void DescribeNetworkInterfaceAttributeResult::parse(const std::string &payload) for (auto valueTagsTag : allTagsNode) { Tag tagsObject; - if(!valueTagsTag["TagKey"].isNull()) - tagsObject.tagKey = valueTagsTag["TagKey"].asString(); if(!valueTagsTag["TagValue"].isNull()) tagsObject.tagValue = valueTagsTag["TagValue"].asString(); + if(!valueTagsTag["TagKey"].isNull()) + tagsObject.tagKey = valueTagsTag["TagKey"].asString(); tags_.push_back(tagsObject); } auto associatedPublicIpNode = value["AssociatedPublicIp"]; @@ -78,72 +78,67 @@ void DescribeNetworkInterfaceAttributeResult::parse(const std::string &payload) if(!associatedPublicIpNode["AllocationId"].isNull()) associatedPublicIp_.allocationId = associatedPublicIpNode["AllocationId"].asString(); auto attachmentNode = value["Attachment"]; + if(!attachmentNode["DeviceIndex"].isNull()) + attachment_.deviceIndex = std::stoi(attachmentNode["DeviceIndex"].asString()); if(!attachmentNode["InstanceId"].isNull()) attachment_.instanceId = attachmentNode["InstanceId"].asString(); if(!attachmentNode["TrunkNetworkInterfaceId"].isNull()) attachment_.trunkNetworkInterfaceId = attachmentNode["TrunkNetworkInterfaceId"].asString(); - if(!attachmentNode["DeviceIndex"].isNull()) - attachment_.deviceIndex = std::stoi(attachmentNode["DeviceIndex"].asString()); auto allMemberNetworkInterfaceIds = attachmentNode["MemberNetworkInterfaceIds"]["MemberNetworkInterfaceId"]; for (auto value : allMemberNetworkInterfaceIds) attachment_.memberNetworkInterfaceIds.push_back(value.asString()); auto allSecurityGroupIds = value["SecurityGroupIds"]["SecurityGroupId"]; for (const auto &item : allSecurityGroupIds) securityGroupIds_.push_back(item.asString()); - if(!value["NetworkInterfaceId"].isNull()) - networkInterfaceId_ = value["NetworkInterfaceId"].asString(); - if(!value["Status"].isNull()) - status_ = value["Status"].asString(); - if(!value["Type"].isNull()) - type_ = value["Type"].asString(); + if(!value["CreationTime"].isNull()) + creationTime_ = value["CreationTime"].asString(); if(!value["VpcId"].isNull()) vpcId_ = value["VpcId"].asString(); + if(!value["Type"].isNull()) + type_ = value["Type"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["NetworkInterfaceTrafficMode"].isNull()) + networkInterfaceTrafficMode_ = value["NetworkInterfaceTrafficMode"].asString(); + if(!value["NetworkInterfaceName"].isNull()) + networkInterfaceName_ = value["NetworkInterfaceName"].asString(); + if(!value["MacAddress"].isNull()) + macAddress_ = value["MacAddress"].asString(); + if(!value["QueuePairNumber"].isNull()) + queuePairNumber_ = std::stoi(value["QueuePairNumber"].asString()); + if(!value["NetworkInterfaceId"].isNull()) + networkInterfaceId_ = value["NetworkInterfaceId"].asString(); + if(!value["ServiceID"].isNull()) + serviceID_ = std::stol(value["ServiceID"].asString()); + if(!value["InstanceId"].isNull()) + instanceId_ = value["InstanceId"].asString(); + if(!value["OwnerId"].isNull()) + ownerId_ = value["OwnerId"].asString(); + if(!value["ServiceManaged"].isNull()) + serviceManaged_ = value["ServiceManaged"].asString() == "true"; if(!value["VSwitchId"].isNull()) vSwitchId_ = value["VSwitchId"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); if(!value["ZoneId"].isNull()) zoneId_ = value["ZoneId"].asString(); if(!value["PrivateIpAddress"].isNull()) privateIpAddress_ = value["PrivateIpAddress"].asString(); - if(!value["MacAddress"].isNull()) - macAddress_ = value["MacAddress"].asString(); - if(!value["NetworkInterfaceName"].isNull()) - networkInterfaceName_ = value["NetworkInterfaceName"].asString(); - if(!value["Description"].isNull()) - description_ = value["Description"].asString(); - if(!value["InstanceId"].isNull()) - instanceId_ = value["InstanceId"].asString(); - if(!value["CreationTime"].isNull()) - creationTime_ = value["CreationTime"].asString(); - if(!value["ResourceGroupId"].isNull()) - resourceGroupId_ = value["ResourceGroupId"].asString(); - if(!value["ServiceID"].isNull()) - serviceID_ = std::stol(value["ServiceID"].asString()); - if(!value["ServiceManaged"].isNull()) - serviceManaged_ = value["ServiceManaged"].asString() == "true"; if(!value["QueueNumber"].isNull()) queueNumber_ = std::stoi(value["QueueNumber"].asString()); - if(!value["OwnerId"].isNull()) - ownerId_ = value["OwnerId"].asString(); - if(!value["NetworkInterfaceTrafficMode"].isNull()) - networkInterfaceTrafficMode_ = value["NetworkInterfaceTrafficMode"].asString(); - if(!value["QueuePairNumber"].isNull()) - queuePairNumber_ = std::stoi(value["QueuePairNumber"].asString()); } -std::string DescribeNetworkInterfaceAttributeResult::getPrivateIpAddress()const -{ - return privateIpAddress_; -} - std::string DescribeNetworkInterfaceAttributeResult::getDescription()const { return description_; } -std::string DescribeNetworkInterfaceAttributeResult::getResourceGroupId()const +std::string DescribeNetworkInterfaceAttributeResult::getPrivateIpAddress()const { - return resourceGroupId_; + return privateIpAddress_; } bool DescribeNetworkInterfaceAttributeResult::getServiceManaged()const @@ -151,6 +146,11 @@ bool DescribeNetworkInterfaceAttributeResult::getServiceManaged()const return serviceManaged_; } +std::string DescribeNetworkInterfaceAttributeResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + DescribeNetworkInterfaceAttributeResult::Attachment DescribeNetworkInterfaceAttributeResult::getAttachment()const { return attachment_; @@ -231,16 +231,16 @@ std::string DescribeNetworkInterfaceAttributeResult::getType()const return type_; } -int DescribeNetworkInterfaceAttributeResult::getQueueNumber()const -{ - return queueNumber_; -} - int DescribeNetworkInterfaceAttributeResult::getQueuePairNumber()const { return queuePairNumber_; } +int DescribeNetworkInterfaceAttributeResult::getQueueNumber()const +{ + return queueNumber_; +} + std::string DescribeNetworkInterfaceAttributeResult::getVpcId()const { return vpcId_; diff --git a/ecs/src/model/DescribeNetworkInterfacePermissionsRequest.cc b/ecs/src/model/DescribeNetworkInterfacePermissionsRequest.cc index a63e57898..871264e33 100644 --- a/ecs/src/model/DescribeNetworkInterfacePermissionsRequest.cc +++ b/ecs/src/model/DescribeNetworkInterfacePermissionsRequest.cc @@ -1,130 +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 - -using AlibabaCloud::Ecs::Model::DescribeNetworkInterfacePermissionsRequest; - -DescribeNetworkInterfacePermissionsRequest::DescribeNetworkInterfacePermissionsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeNetworkInterfacePermissions") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeNetworkInterfacePermissionsRequest::~DescribeNetworkInterfacePermissionsRequest() -{} - -long DescribeNetworkInterfacePermissionsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeNetworkInterfacePermissionsRequest; + +DescribeNetworkInterfacePermissionsRequest::DescribeNetworkInterfacePermissionsRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeNetworkInterfacePermissions") { + setMethod(HttpRequest::Method::Post); } -void DescribeNetworkInterfacePermissionsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeNetworkInterfacePermissionsRequest::~DescribeNetworkInterfacePermissionsRequest() {} + +long DescribeNetworkInterfacePermissionsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeNetworkInterfacePermissionsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeNetworkInterfacePermissionsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeNetworkInterfacePermissionsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeNetworkInterfacePermissionsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeNetworkInterfacePermissionsRequest::getRegionId()const -{ - return regionId_; +void DescribeNetworkInterfacePermissionsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeNetworkInterfacePermissionsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeNetworkInterfacePermissionsRequest::getRegionId() const { + return regionId_; } -int DescribeNetworkInterfacePermissionsRequest::getPageSize()const -{ - return pageSize_; +void DescribeNetworkInterfacePermissionsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeNetworkInterfacePermissionsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeNetworkInterfacePermissionsRequest::getPageSize() const { + return pageSize_; } -std::vector DescribeNetworkInterfacePermissionsRequest::getNetworkInterfacePermissionId()const -{ - return networkInterfacePermissionId_; +void DescribeNetworkInterfacePermissionsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeNetworkInterfacePermissionsRequest::setNetworkInterfacePermissionId(const std::vector& networkInterfacePermissionId) -{ - networkInterfacePermissionId_ = networkInterfacePermissionId; - for(int dep1 = 0; dep1!= networkInterfacePermissionId.size(); dep1++) { - setParameter("NetworkInterfacePermissionId."+ std::to_string(dep1), networkInterfacePermissionId.at(dep1)); - } +std::vector DescribeNetworkInterfacePermissionsRequest::getNetworkInterfacePermissionId() const { + return networkInterfacePermissionId_; } -std::string DescribeNetworkInterfacePermissionsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeNetworkInterfacePermissionsRequest::setNetworkInterfacePermissionId(const std::vector &networkInterfacePermissionId) { + networkInterfacePermissionId_ = networkInterfacePermissionId; } -void DescribeNetworkInterfacePermissionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeNetworkInterfacePermissionsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeNetworkInterfacePermissionsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeNetworkInterfacePermissionsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeNetworkInterfacePermissionsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeNetworkInterfacePermissionsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeNetworkInterfacePermissionsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeNetworkInterfacePermissionsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeNetworkInterfacePermissionsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeNetworkInterfacePermissionsRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeNetworkInterfacePermissionsRequest::getNetworkInterfaceId()const -{ - return networkInterfaceId_; +void DescribeNetworkInterfacePermissionsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeNetworkInterfacePermissionsRequest::setNetworkInterfaceId(const std::string& networkInterfaceId) -{ - networkInterfaceId_ = networkInterfaceId; - setParameter("NetworkInterfaceId", networkInterfaceId); +std::string DescribeNetworkInterfacePermissionsRequest::getNetworkInterfaceId() const { + return networkInterfaceId_; +} + +void DescribeNetworkInterfacePermissionsRequest::setNetworkInterfaceId(const std::string &networkInterfaceId) { + networkInterfaceId_ = networkInterfaceId; + setParameter(std::string("NetworkInterfaceId"), networkInterfaceId); } diff --git a/ecs/src/model/DescribeNetworkInterfacePermissionsResult.cc b/ecs/src/model/DescribeNetworkInterfacePermissionsResult.cc index 540c32b40..55493a524 100644 --- a/ecs/src/model/DescribeNetworkInterfacePermissionsResult.cc +++ b/ecs/src/model/DescribeNetworkInterfacePermissionsResult.cc @@ -43,26 +43,26 @@ void DescribeNetworkInterfacePermissionsResult::parse(const std::string &payload for (auto valueNetworkInterfacePermissionsNetworkInterfacePermission : allNetworkInterfacePermissionsNode) { NetworkInterfacePermission networkInterfacePermissionsObject; - if(!valueNetworkInterfacePermissionsNetworkInterfacePermission["AccountId"].isNull()) - networkInterfacePermissionsObject.accountId = std::stol(valueNetworkInterfacePermissionsNetworkInterfacePermission["AccountId"].asString()); - if(!valueNetworkInterfacePermissionsNetworkInterfacePermission["ServiceName"].isNull()) - networkInterfacePermissionsObject.serviceName = valueNetworkInterfacePermissionsNetworkInterfacePermission["ServiceName"].asString(); - if(!valueNetworkInterfacePermissionsNetworkInterfacePermission["NetworkInterfaceId"].isNull()) - networkInterfacePermissionsObject.networkInterfaceId = valueNetworkInterfacePermissionsNetworkInterfacePermission["NetworkInterfaceId"].asString(); - if(!valueNetworkInterfacePermissionsNetworkInterfacePermission["NetworkInterfacePermissionId"].isNull()) - networkInterfacePermissionsObject.networkInterfacePermissionId = valueNetworkInterfacePermissionsNetworkInterfacePermission["NetworkInterfacePermissionId"].asString(); if(!valueNetworkInterfacePermissionsNetworkInterfacePermission["Permission"].isNull()) networkInterfacePermissionsObject.permission = valueNetworkInterfacePermissionsNetworkInterfacePermission["Permission"].asString(); + if(!valueNetworkInterfacePermissionsNetworkInterfacePermission["NetworkInterfaceId"].isNull()) + networkInterfacePermissionsObject.networkInterfaceId = valueNetworkInterfacePermissionsNetworkInterfacePermission["NetworkInterfaceId"].asString(); + if(!valueNetworkInterfacePermissionsNetworkInterfacePermission["AccountId"].isNull()) + networkInterfacePermissionsObject.accountId = std::stol(valueNetworkInterfacePermissionsNetworkInterfacePermission["AccountId"].asString()); + if(!valueNetworkInterfacePermissionsNetworkInterfacePermission["NetworkInterfacePermissionId"].isNull()) + networkInterfacePermissionsObject.networkInterfacePermissionId = valueNetworkInterfacePermissionsNetworkInterfacePermission["NetworkInterfacePermissionId"].asString(); + if(!valueNetworkInterfacePermissionsNetworkInterfacePermission["ServiceName"].isNull()) + networkInterfacePermissionsObject.serviceName = valueNetworkInterfacePermissionsNetworkInterfacePermission["ServiceName"].asString(); if(!valueNetworkInterfacePermissionsNetworkInterfacePermission["PermissionState"].isNull()) networkInterfacePermissionsObject.permissionState = valueNetworkInterfacePermissionsNetworkInterfacePermission["PermissionState"].asString(); networkInterfacePermissions_.push_back(networkInterfacePermissionsObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/ecs/src/model/DescribeNetworkInterfacesRequest.cc b/ecs/src/model/DescribeNetworkInterfacesRequest.cc index 1bb1c819e..f819542f5 100644 --- a/ecs/src/model/DescribeNetworkInterfacesRequest.cc +++ b/ecs/src/model/DescribeNetworkInterfacesRequest.cc @@ -1,293 +1,236 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeNetworkInterfacesRequest; - -DescribeNetworkInterfacesRequest::DescribeNetworkInterfacesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeNetworkInterfaces") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeNetworkInterfacesRequest::~DescribeNetworkInterfacesRequest() -{} - -long DescribeNetworkInterfacesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeNetworkInterfacesRequest; + +DescribeNetworkInterfacesRequest::DescribeNetworkInterfacesRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeNetworkInterfaces") { + setMethod(HttpRequest::Method::Post); } -void DescribeNetworkInterfacesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeNetworkInterfacesRequest::~DescribeNetworkInterfacesRequest() {} + +long DescribeNetworkInterfacesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -bool DescribeNetworkInterfacesRequest::getServiceManaged()const -{ - return serviceManaged_; +void DescribeNetworkInterfacesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeNetworkInterfacesRequest::setServiceManaged(bool serviceManaged) -{ - serviceManaged_ = serviceManaged; - setParameter("ServiceManaged", serviceManaged ? "true" : "false"); +bool DescribeNetworkInterfacesRequest::getServiceManaged() const { + return serviceManaged_; } -std::string DescribeNetworkInterfacesRequest::getSecurityGroupId()const -{ - return securityGroupId_; +void DescribeNetworkInterfacesRequest::setServiceManaged(bool serviceManaged) { + serviceManaged_ = serviceManaged; + setParameter(std::string("ServiceManaged"), serviceManaged ? "true" : "false"); } -void DescribeNetworkInterfacesRequest::setSecurityGroupId(const std::string& securityGroupId) -{ - securityGroupId_ = securityGroupId; - setParameter("SecurityGroupId", securityGroupId); +std::string DescribeNetworkInterfacesRequest::getSecurityGroupId() const { + return securityGroupId_; } -std::string DescribeNetworkInterfacesRequest::getType()const -{ - return type_; +void DescribeNetworkInterfacesRequest::setSecurityGroupId(const std::string &securityGroupId) { + securityGroupId_ = securityGroupId; + setParameter(std::string("SecurityGroupId"), securityGroupId); } -void DescribeNetworkInterfacesRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +std::string DescribeNetworkInterfacesRequest::getType() const { + return type_; } -int DescribeNetworkInterfacesRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeNetworkInterfacesRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void DescribeNetworkInterfacesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeNetworkInterfacesRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeNetworkInterfacesRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void DescribeNetworkInterfacesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeNetworkInterfacesRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string DescribeNetworkInterfacesRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string DescribeNetworkInterfacesRequest::getRegionId()const -{ - return regionId_; +void DescribeNetworkInterfacesRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void DescribeNetworkInterfacesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeNetworkInterfacesRequest::getRegionId() const { + return regionId_; } -std::string DescribeNetworkInterfacesRequest::getNextToken()const -{ - return nextToken_; +void DescribeNetworkInterfacesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeNetworkInterfacesRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +std::string DescribeNetworkInterfacesRequest::getNextToken() const { + return nextToken_; } -int DescribeNetworkInterfacesRequest::getPageSize()const -{ - return pageSize_; +void DescribeNetworkInterfacesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } -void DescribeNetworkInterfacesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeNetworkInterfacesRequest::getPageSize() const { + return pageSize_; } -std::vector DescribeNetworkInterfacesRequest::getTag()const -{ - return tag_; +void DescribeNetworkInterfacesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeNetworkInterfacesRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Key", tagObj.key); - setParameter(tagObjStr + ".Value", tagObj.value); - } +std::vector DescribeNetworkInterfacesRequest::getTag() const { + return tag_; } -std::string DescribeNetworkInterfacesRequest::getNetworkInterfaceName()const -{ - return networkInterfaceName_; +void DescribeNetworkInterfacesRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } } -void DescribeNetworkInterfacesRequest::setNetworkInterfaceName(const std::string& networkInterfaceName) -{ - networkInterfaceName_ = networkInterfaceName; - setParameter("NetworkInterfaceName", networkInterfaceName); +std::string DescribeNetworkInterfacesRequest::getNetworkInterfaceName() const { + return networkInterfaceName_; } -std::string DescribeNetworkInterfacesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeNetworkInterfacesRequest::setNetworkInterfaceName(const std::string &networkInterfaceName) { + networkInterfaceName_ = networkInterfaceName; + setParameter(std::string("NetworkInterfaceName"), networkInterfaceName); } -void DescribeNetworkInterfacesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeNetworkInterfacesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeNetworkInterfacesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeNetworkInterfacesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeNetworkInterfacesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeNetworkInterfacesRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeNetworkInterfacesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeNetworkInterfacesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeNetworkInterfacesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeNetworkInterfacesRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeNetworkInterfacesRequest::getVSwitchId()const -{ - return vSwitchId_; +void DescribeNetworkInterfacesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeNetworkInterfacesRequest::setVSwitchId(const std::string& vSwitchId) -{ - vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); +std::string DescribeNetworkInterfacesRequest::getVSwitchId() const { + return vSwitchId_; } -std::vector DescribeNetworkInterfacesRequest::getPrivateIpAddress()const -{ - return privateIpAddress_; +void DescribeNetworkInterfacesRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); } -void DescribeNetworkInterfacesRequest::setPrivateIpAddress(const std::vector& privateIpAddress) -{ - privateIpAddress_ = privateIpAddress; - for(int dep1 = 0; dep1!= privateIpAddress.size(); dep1++) { - setParameter("PrivateIpAddress."+ std::to_string(dep1), privateIpAddress.at(dep1)); - } +std::vector DescribeNetworkInterfacesRequest::getPrivateIpAddress() const { + return privateIpAddress_; } -std::string DescribeNetworkInterfacesRequest::getInstanceId()const -{ - return instanceId_; +void DescribeNetworkInterfacesRequest::setPrivateIpAddress(const std::vector &privateIpAddress) { + privateIpAddress_ = privateIpAddress; } -void DescribeNetworkInterfacesRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DescribeNetworkInterfacesRequest::getInstanceId() const { + return instanceId_; } -std::string DescribeNetworkInterfacesRequest::getVpcId()const -{ - return vpcId_; +void DescribeNetworkInterfacesRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DescribeNetworkInterfacesRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +std::string DescribeNetworkInterfacesRequest::getVpcId() const { + return vpcId_; } -std::string DescribeNetworkInterfacesRequest::getPrimaryIpAddress()const -{ - return primaryIpAddress_; +void DescribeNetworkInterfacesRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); } -void DescribeNetworkInterfacesRequest::setPrimaryIpAddress(const std::string& primaryIpAddress) -{ - primaryIpAddress_ = primaryIpAddress; - setParameter("PrimaryIpAddress", primaryIpAddress); +std::string DescribeNetworkInterfacesRequest::getPrimaryIpAddress() const { + return primaryIpAddress_; } -int DescribeNetworkInterfacesRequest::getMaxResults()const -{ - return maxResults_; +void DescribeNetworkInterfacesRequest::setPrimaryIpAddress(const std::string &primaryIpAddress) { + primaryIpAddress_ = primaryIpAddress; + setParameter(std::string("PrimaryIpAddress"), primaryIpAddress); } -void DescribeNetworkInterfacesRequest::setMaxResults(int maxResults) -{ - maxResults_ = maxResults; - setParameter("MaxResults", std::to_string(maxResults)); +int DescribeNetworkInterfacesRequest::getMaxResults() const { + return maxResults_; } -std::vector DescribeNetworkInterfacesRequest::getNetworkInterfaceId()const -{ - return networkInterfaceId_; +void DescribeNetworkInterfacesRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); } -void DescribeNetworkInterfacesRequest::setNetworkInterfaceId(const std::vector& networkInterfaceId) -{ - networkInterfaceId_ = networkInterfaceId; - for(int dep1 = 0; dep1!= networkInterfaceId.size(); dep1++) { - setParameter("NetworkInterfaceId."+ std::to_string(dep1), networkInterfaceId.at(dep1)); - } +std::vector DescribeNetworkInterfacesRequest::getNetworkInterfaceId() const { + return networkInterfaceId_; } -std::vector DescribeNetworkInterfacesRequest::getIpv6Address()const -{ - return ipv6Address_; +void DescribeNetworkInterfacesRequest::setNetworkInterfaceId(const std::vector &networkInterfaceId) { + networkInterfaceId_ = networkInterfaceId; } -void DescribeNetworkInterfacesRequest::setIpv6Address(const std::vector& ipv6Address) -{ - ipv6Address_ = ipv6Address; - for(int dep1 = 0; dep1!= ipv6Address.size(); dep1++) { - setParameter("Ipv6Address."+ std::to_string(dep1), ipv6Address.at(dep1)); - } +std::vector DescribeNetworkInterfacesRequest::getIpv6Address() const { + return ipv6Address_; } -std::string DescribeNetworkInterfacesRequest::getStatus()const -{ - return status_; +void DescribeNetworkInterfacesRequest::setIpv6Address(const std::vector &ipv6Address) { + ipv6Address_ = ipv6Address; } -void DescribeNetworkInterfacesRequest::setStatus(const std::string& status) -{ - status_ = status; - setParameter("Status", status); +std::string DescribeNetworkInterfacesRequest::getStatus() const { + return status_; +} + +void DescribeNetworkInterfacesRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); } diff --git a/ecs/src/model/DescribeNewProjectEipMonitorDataRequest.cc b/ecs/src/model/DescribeNewProjectEipMonitorDataRequest.cc index ecdad1754..0ec6a3407 100644 --- a/ecs/src/model/DescribeNewProjectEipMonitorDataRequest.cc +++ b/ecs/src/model/DescribeNewProjectEipMonitorDataRequest.cc @@ -1,128 +1,108 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeNewProjectEipMonitorDataRequest; - -DescribeNewProjectEipMonitorDataRequest::DescribeNewProjectEipMonitorDataRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeNewProjectEipMonitorData") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeNewProjectEipMonitorDataRequest::~DescribeNewProjectEipMonitorDataRequest() -{} - -long DescribeNewProjectEipMonitorDataRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeNewProjectEipMonitorDataRequest; + +DescribeNewProjectEipMonitorDataRequest::DescribeNewProjectEipMonitorDataRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeNewProjectEipMonitorData") { + setMethod(HttpRequest::Method::Post); } -void DescribeNewProjectEipMonitorDataRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeNewProjectEipMonitorDataRequest::~DescribeNewProjectEipMonitorDataRequest() {} + +long DescribeNewProjectEipMonitorDataRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeNewProjectEipMonitorDataRequest::getAllocationId()const -{ - return allocationId_; +void DescribeNewProjectEipMonitorDataRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeNewProjectEipMonitorDataRequest::setAllocationId(const std::string& allocationId) -{ - allocationId_ = allocationId; - setParameter("AllocationId", allocationId); +std::string DescribeNewProjectEipMonitorDataRequest::getAllocationId() const { + return allocationId_; } -std::string DescribeNewProjectEipMonitorDataRequest::getStartTime()const -{ - return startTime_; +void DescribeNewProjectEipMonitorDataRequest::setAllocationId(const std::string &allocationId) { + allocationId_ = allocationId; + setParameter(std::string("AllocationId"), allocationId); } -void DescribeNewProjectEipMonitorDataRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string DescribeNewProjectEipMonitorDataRequest::getStartTime() const { + return startTime_; } -std::string DescribeNewProjectEipMonitorDataRequest::getRegionId()const -{ - return regionId_; +void DescribeNewProjectEipMonitorDataRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void DescribeNewProjectEipMonitorDataRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeNewProjectEipMonitorDataRequest::getRegionId() const { + return regionId_; } -int DescribeNewProjectEipMonitorDataRequest::getPeriod()const -{ - return period_; +void DescribeNewProjectEipMonitorDataRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeNewProjectEipMonitorDataRequest::setPeriod(int period) -{ - period_ = period; - setParameter("Period", std::to_string(period)); +int DescribeNewProjectEipMonitorDataRequest::getPeriod() const { + return period_; } -std::string DescribeNewProjectEipMonitorDataRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeNewProjectEipMonitorDataRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); } -void DescribeNewProjectEipMonitorDataRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeNewProjectEipMonitorDataRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeNewProjectEipMonitorDataRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeNewProjectEipMonitorDataRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeNewProjectEipMonitorDataRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeNewProjectEipMonitorDataRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeNewProjectEipMonitorDataRequest::getEndTime()const -{ - return endTime_; +void DescribeNewProjectEipMonitorDataRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeNewProjectEipMonitorDataRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +std::string DescribeNewProjectEipMonitorDataRequest::getEndTime() const { + return endTime_; } -long DescribeNewProjectEipMonitorDataRequest::getOwnerId()const -{ - return ownerId_; +void DescribeNewProjectEipMonitorDataRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void DescribeNewProjectEipMonitorDataRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeNewProjectEipMonitorDataRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeNewProjectEipMonitorDataRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/DescribeNewProjectEipMonitorDataResult.cc b/ecs/src/model/DescribeNewProjectEipMonitorDataResult.cc index 45a39fc38..a74d86f93 100644 --- a/ecs/src/model/DescribeNewProjectEipMonitorDataResult.cc +++ b/ecs/src/model/DescribeNewProjectEipMonitorDataResult.cc @@ -43,18 +43,18 @@ void DescribeNewProjectEipMonitorDataResult::parse(const std::string &payload) for (auto valueEipMonitorDatasEipMonitorData : allEipMonitorDatasNode) { EipMonitorData eipMonitorDatasObject; - if(!valueEipMonitorDatasEipMonitorData["EipRX"].isNull()) - eipMonitorDatasObject.eipRX = std::stoi(valueEipMonitorDatasEipMonitorData["EipRX"].asString()); if(!valueEipMonitorDatasEipMonitorData["EipTX"].isNull()) eipMonitorDatasObject.eipTX = std::stoi(valueEipMonitorDatasEipMonitorData["EipTX"].asString()); - if(!valueEipMonitorDatasEipMonitorData["EipFlow"].isNull()) - eipMonitorDatasObject.eipFlow = std::stoi(valueEipMonitorDatasEipMonitorData["EipFlow"].asString()); - if(!valueEipMonitorDatasEipMonitorData["EipBandwidth"].isNull()) - eipMonitorDatasObject.eipBandwidth = std::stoi(valueEipMonitorDatasEipMonitorData["EipBandwidth"].asString()); if(!valueEipMonitorDatasEipMonitorData["EipPackets"].isNull()) eipMonitorDatasObject.eipPackets = std::stoi(valueEipMonitorDatasEipMonitorData["EipPackets"].asString()); + if(!valueEipMonitorDatasEipMonitorData["EipBandwidth"].isNull()) + eipMonitorDatasObject.eipBandwidth = std::stoi(valueEipMonitorDatasEipMonitorData["EipBandwidth"].asString()); if(!valueEipMonitorDatasEipMonitorData["TimeStamp"].isNull()) eipMonitorDatasObject.timeStamp = valueEipMonitorDatasEipMonitorData["TimeStamp"].asString(); + if(!valueEipMonitorDatasEipMonitorData["EipFlow"].isNull()) + eipMonitorDatasObject.eipFlow = std::stoi(valueEipMonitorDatasEipMonitorData["EipFlow"].asString()); + if(!valueEipMonitorDatasEipMonitorData["EipRX"].isNull()) + eipMonitorDatasObject.eipRX = std::stoi(valueEipMonitorDatasEipMonitorData["EipRX"].asString()); eipMonitorDatas_.push_back(eipMonitorDatasObject); } diff --git a/ecs/src/model/DescribePhysicalConnectionsRequest.cc b/ecs/src/model/DescribePhysicalConnectionsRequest.cc index 1d1cd4a21..d15c6cfff 100644 --- a/ecs/src/model/DescribePhysicalConnectionsRequest.cc +++ b/ecs/src/model/DescribePhysicalConnectionsRequest.cc @@ -1,146 +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::Ecs::Model::DescribePhysicalConnectionsRequest; - -DescribePhysicalConnectionsRequest::DescribePhysicalConnectionsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribePhysicalConnections") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribePhysicalConnectionsRequest::~DescribePhysicalConnectionsRequest() -{} - -long DescribePhysicalConnectionsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribePhysicalConnectionsRequest; + +DescribePhysicalConnectionsRequest::DescribePhysicalConnectionsRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribePhysicalConnections") { + setMethod(HttpRequest::Method::Post); } -void DescribePhysicalConnectionsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribePhysicalConnectionsRequest::~DescribePhysicalConnectionsRequest() {} + +long DescribePhysicalConnectionsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribePhysicalConnectionsRequest::getClientToken()const -{ - return clientToken_; +void DescribePhysicalConnectionsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribePhysicalConnectionsRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DescribePhysicalConnectionsRequest::getClientToken() const { + return clientToken_; } -int DescribePhysicalConnectionsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribePhysicalConnectionsRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DescribePhysicalConnectionsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribePhysicalConnectionsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribePhysicalConnectionsRequest::getRegionId()const -{ - return regionId_; +void DescribePhysicalConnectionsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribePhysicalConnectionsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribePhysicalConnectionsRequest::getRegionId() const { + return regionId_; } -int DescribePhysicalConnectionsRequest::getPageSize()const -{ - return pageSize_; +void DescribePhysicalConnectionsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribePhysicalConnectionsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribePhysicalConnectionsRequest::getPageSize() const { + return pageSize_; } -std::string DescribePhysicalConnectionsRequest::getUserCidr()const -{ - return userCidr_; +void DescribePhysicalConnectionsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribePhysicalConnectionsRequest::setUserCidr(const std::string& userCidr) -{ - userCidr_ = userCidr; - setParameter("UserCidr", userCidr); +std::string DescribePhysicalConnectionsRequest::getUserCidr() const { + return userCidr_; } -std::string DescribePhysicalConnectionsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribePhysicalConnectionsRequest::setUserCidr(const std::string &userCidr) { + userCidr_ = userCidr; + setParameter(std::string("UserCidr"), userCidr); } -void DescribePhysicalConnectionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribePhysicalConnectionsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribePhysicalConnectionsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribePhysicalConnectionsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribePhysicalConnectionsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribePhysicalConnectionsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribePhysicalConnectionsRequest::getOwnerId()const -{ - return ownerId_; +void DescribePhysicalConnectionsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribePhysicalConnectionsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribePhysicalConnectionsRequest::getOwnerId() const { + return ownerId_; } -std::vector DescribePhysicalConnectionsRequest::getFilter()const -{ - return filter_; +void DescribePhysicalConnectionsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribePhysicalConnectionsRequest::setFilter(const std::vector& filter) -{ - filter_ = filter; - for(int dep1 = 0; dep1!= filter.size(); dep1++) { - auto filterObj = filter.at(dep1); - std::string filterObjStr = "Filter." + std::to_string(dep1 + 1); - for(int dep2 = 0; dep2!= filterObj.value.size(); dep2++) { - setParameter(filterObjStr + ".Value."+ std::to_string(dep2), filterObj.value.at(dep2)); - } - setParameter(filterObjStr + ".Key", filterObj.key); - } +std::vector DescribePhysicalConnectionsRequest::getFilter() const { + return filter_; +} + +void DescribePhysicalConnectionsRequest::setFilter(const std::vector &filter) { + filter_ = filter; + for(int dep1 = 0; dep1 != filter.size(); dep1++) { + auto filterObj = filter.at(dep1); + std::string filterObjStr = std::string("Filter") + "." + std::to_string(dep1 + 1); + setParameter(filterObjStr + ".Key", filterObj.key); + } } diff --git a/ecs/src/model/DescribePhysicalConnectionsResult.cc b/ecs/src/model/DescribePhysicalConnectionsResult.cc index 923e23ae3..4de038c17 100644 --- a/ecs/src/model/DescribePhysicalConnectionsResult.cc +++ b/ecs/src/model/DescribePhysicalConnectionsResult.cc @@ -43,42 +43,42 @@ void DescribePhysicalConnectionsResult::parse(const std::string &payload) for (auto valuePhysicalConnectionSetPhysicalConnectionType : allPhysicalConnectionSetNode) { PhysicalConnectionType physicalConnectionSetObject; - if(!valuePhysicalConnectionSetPhysicalConnectionType["PhysicalConnectionId"].isNull()) - physicalConnectionSetObject.physicalConnectionId = valuePhysicalConnectionSetPhysicalConnectionType["PhysicalConnectionId"].asString(); - if(!valuePhysicalConnectionSetPhysicalConnectionType["AccessPointId"].isNull()) - physicalConnectionSetObject.accessPointId = valuePhysicalConnectionSetPhysicalConnectionType["AccessPointId"].asString(); - if(!valuePhysicalConnectionSetPhysicalConnectionType["Type"].isNull()) - physicalConnectionSetObject.type = valuePhysicalConnectionSetPhysicalConnectionType["Type"].asString(); - if(!valuePhysicalConnectionSetPhysicalConnectionType["Status"].isNull()) - physicalConnectionSetObject.status = valuePhysicalConnectionSetPhysicalConnectionType["Status"].asString(); - if(!valuePhysicalConnectionSetPhysicalConnectionType["BusinessStatus"].isNull()) - physicalConnectionSetObject.businessStatus = valuePhysicalConnectionSetPhysicalConnectionType["BusinessStatus"].asString(); - if(!valuePhysicalConnectionSetPhysicalConnectionType["CreationTime"].isNull()) - physicalConnectionSetObject.creationTime = valuePhysicalConnectionSetPhysicalConnectionType["CreationTime"].asString(); - if(!valuePhysicalConnectionSetPhysicalConnectionType["EnabledTime"].isNull()) - physicalConnectionSetObject.enabledTime = valuePhysicalConnectionSetPhysicalConnectionType["EnabledTime"].asString(); - if(!valuePhysicalConnectionSetPhysicalConnectionType["LineOperator"].isNull()) - physicalConnectionSetObject.lineOperator = valuePhysicalConnectionSetPhysicalConnectionType["LineOperator"].asString(); - if(!valuePhysicalConnectionSetPhysicalConnectionType["Spec"].isNull()) - physicalConnectionSetObject.spec = valuePhysicalConnectionSetPhysicalConnectionType["Spec"].asString(); - if(!valuePhysicalConnectionSetPhysicalConnectionType["PeerLocation"].isNull()) - physicalConnectionSetObject.peerLocation = valuePhysicalConnectionSetPhysicalConnectionType["PeerLocation"].asString(); - if(!valuePhysicalConnectionSetPhysicalConnectionType["PortType"].isNull()) - physicalConnectionSetObject.portType = valuePhysicalConnectionSetPhysicalConnectionType["PortType"].asString(); - if(!valuePhysicalConnectionSetPhysicalConnectionType["RedundantPhysicalConnectionId"].isNull()) - physicalConnectionSetObject.redundantPhysicalConnectionId = valuePhysicalConnectionSetPhysicalConnectionType["RedundantPhysicalConnectionId"].asString(); - if(!valuePhysicalConnectionSetPhysicalConnectionType["Name"].isNull()) - physicalConnectionSetObject.name = valuePhysicalConnectionSetPhysicalConnectionType["Name"].asString(); - if(!valuePhysicalConnectionSetPhysicalConnectionType["Description"].isNull()) - physicalConnectionSetObject.description = valuePhysicalConnectionSetPhysicalConnectionType["Description"].asString(); if(!valuePhysicalConnectionSetPhysicalConnectionType["AdLocation"].isNull()) physicalConnectionSetObject.adLocation = valuePhysicalConnectionSetPhysicalConnectionType["AdLocation"].asString(); + if(!valuePhysicalConnectionSetPhysicalConnectionType["CreationTime"].isNull()) + physicalConnectionSetObject.creationTime = valuePhysicalConnectionSetPhysicalConnectionType["CreationTime"].asString(); + if(!valuePhysicalConnectionSetPhysicalConnectionType["Status"].isNull()) + physicalConnectionSetObject.status = valuePhysicalConnectionSetPhysicalConnectionType["Status"].asString(); + if(!valuePhysicalConnectionSetPhysicalConnectionType["Type"].isNull()) + physicalConnectionSetObject.type = valuePhysicalConnectionSetPhysicalConnectionType["Type"].asString(); if(!valuePhysicalConnectionSetPhysicalConnectionType["PortNumber"].isNull()) physicalConnectionSetObject.portNumber = valuePhysicalConnectionSetPhysicalConnectionType["PortNumber"].asString(); if(!valuePhysicalConnectionSetPhysicalConnectionType["CircuitCode"].isNull()) physicalConnectionSetObject.circuitCode = valuePhysicalConnectionSetPhysicalConnectionType["CircuitCode"].asString(); + if(!valuePhysicalConnectionSetPhysicalConnectionType["Spec"].isNull()) + physicalConnectionSetObject.spec = valuePhysicalConnectionSetPhysicalConnectionType["Spec"].asString(); if(!valuePhysicalConnectionSetPhysicalConnectionType["Bandwidth"].isNull()) physicalConnectionSetObject.bandwidth = std::stol(valuePhysicalConnectionSetPhysicalConnectionType["Bandwidth"].asString()); + if(!valuePhysicalConnectionSetPhysicalConnectionType["Description"].isNull()) + physicalConnectionSetObject.description = valuePhysicalConnectionSetPhysicalConnectionType["Description"].asString(); + if(!valuePhysicalConnectionSetPhysicalConnectionType["PortType"].isNull()) + physicalConnectionSetObject.portType = valuePhysicalConnectionSetPhysicalConnectionType["PortType"].asString(); + if(!valuePhysicalConnectionSetPhysicalConnectionType["EnabledTime"].isNull()) + physicalConnectionSetObject.enabledTime = valuePhysicalConnectionSetPhysicalConnectionType["EnabledTime"].asString(); + if(!valuePhysicalConnectionSetPhysicalConnectionType["BusinessStatus"].isNull()) + physicalConnectionSetObject.businessStatus = valuePhysicalConnectionSetPhysicalConnectionType["BusinessStatus"].asString(); + if(!valuePhysicalConnectionSetPhysicalConnectionType["LineOperator"].isNull()) + physicalConnectionSetObject.lineOperator = valuePhysicalConnectionSetPhysicalConnectionType["LineOperator"].asString(); + if(!valuePhysicalConnectionSetPhysicalConnectionType["Name"].isNull()) + physicalConnectionSetObject.name = valuePhysicalConnectionSetPhysicalConnectionType["Name"].asString(); + if(!valuePhysicalConnectionSetPhysicalConnectionType["RedundantPhysicalConnectionId"].isNull()) + physicalConnectionSetObject.redundantPhysicalConnectionId = valuePhysicalConnectionSetPhysicalConnectionType["RedundantPhysicalConnectionId"].asString(); + if(!valuePhysicalConnectionSetPhysicalConnectionType["PeerLocation"].isNull()) + physicalConnectionSetObject.peerLocation = valuePhysicalConnectionSetPhysicalConnectionType["PeerLocation"].asString(); + if(!valuePhysicalConnectionSetPhysicalConnectionType["AccessPointId"].isNull()) + physicalConnectionSetObject.accessPointId = valuePhysicalConnectionSetPhysicalConnectionType["AccessPointId"].asString(); + if(!valuePhysicalConnectionSetPhysicalConnectionType["PhysicalConnectionId"].isNull()) + physicalConnectionSetObject.physicalConnectionId = valuePhysicalConnectionSetPhysicalConnectionType["PhysicalConnectionId"].asString(); physicalConnectionSet_.push_back(physicalConnectionSetObject); } if(!value["PageNumber"].isNull()) diff --git a/ecs/src/model/DescribePrefixListAssociationsRequest.cc b/ecs/src/model/DescribePrefixListAssociationsRequest.cc index f068adeba..a770df2b3 100644 --- a/ecs/src/model/DescribePrefixListAssociationsRequest.cc +++ b/ecs/src/model/DescribePrefixListAssociationsRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribePrefixListAssociationsRequest; - -DescribePrefixListAssociationsRequest::DescribePrefixListAssociationsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribePrefixListAssociations") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribePrefixListAssociationsRequest::~DescribePrefixListAssociationsRequest() -{} - -long DescribePrefixListAssociationsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribePrefixListAssociationsRequest; + +DescribePrefixListAssociationsRequest::DescribePrefixListAssociationsRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribePrefixListAssociations") { + setMethod(HttpRequest::Method::Post); } -void DescribePrefixListAssociationsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribePrefixListAssociationsRequest::~DescribePrefixListAssociationsRequest() {} + +long DescribePrefixListAssociationsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribePrefixListAssociationsRequest::getRegionId()const -{ - return regionId_; +void DescribePrefixListAssociationsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribePrefixListAssociationsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribePrefixListAssociationsRequest::getRegionId() const { + return regionId_; } -std::string DescribePrefixListAssociationsRequest::getPrefixListId()const -{ - return prefixListId_; +void DescribePrefixListAssociationsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribePrefixListAssociationsRequest::setPrefixListId(const std::string& prefixListId) -{ - prefixListId_ = prefixListId; - setParameter("PrefixListId", prefixListId); +std::string DescribePrefixListAssociationsRequest::getPrefixListId() const { + return prefixListId_; } -std::string DescribePrefixListAssociationsRequest::getNextToken()const -{ - return nextToken_; +void DescribePrefixListAssociationsRequest::setPrefixListId(const std::string &prefixListId) { + prefixListId_ = prefixListId; + setParameter(std::string("PrefixListId"), prefixListId); } -void DescribePrefixListAssociationsRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +std::string DescribePrefixListAssociationsRequest::getNextToken() const { + return nextToken_; } -std::string DescribePrefixListAssociationsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribePrefixListAssociationsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } -void DescribePrefixListAssociationsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribePrefixListAssociationsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribePrefixListAssociationsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribePrefixListAssociationsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribePrefixListAssociationsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribePrefixListAssociationsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribePrefixListAssociationsRequest::getOwnerId()const -{ - return ownerId_; +void DescribePrefixListAssociationsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribePrefixListAssociationsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribePrefixListAssociationsRequest::getOwnerId() const { + return ownerId_; } -int DescribePrefixListAssociationsRequest::getMaxResults()const -{ - return maxResults_; +void DescribePrefixListAssociationsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribePrefixListAssociationsRequest::setMaxResults(int maxResults) -{ - maxResults_ = maxResults; - setParameter("MaxResults", std::to_string(maxResults)); +int DescribePrefixListAssociationsRequest::getMaxResults() const { + return maxResults_; +} + +void DescribePrefixListAssociationsRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); } diff --git a/ecs/src/model/DescribePrefixListAttributesRequest.cc b/ecs/src/model/DescribePrefixListAttributesRequest.cc index b954e034b..87e8f49a8 100644 --- a/ecs/src/model/DescribePrefixListAttributesRequest.cc +++ b/ecs/src/model/DescribePrefixListAttributesRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribePrefixListAttributesRequest; - -DescribePrefixListAttributesRequest::DescribePrefixListAttributesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribePrefixListAttributes") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribePrefixListAttributesRequest::~DescribePrefixListAttributesRequest() -{} - -long DescribePrefixListAttributesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribePrefixListAttributesRequest; + +DescribePrefixListAttributesRequest::DescribePrefixListAttributesRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribePrefixListAttributes") { + setMethod(HttpRequest::Method::Post); } -void DescribePrefixListAttributesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribePrefixListAttributesRequest::~DescribePrefixListAttributesRequest() {} + +long DescribePrefixListAttributesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribePrefixListAttributesRequest::getRegionId()const -{ - return regionId_; +void DescribePrefixListAttributesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribePrefixListAttributesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribePrefixListAttributesRequest::getRegionId() const { + return regionId_; } -std::string DescribePrefixListAttributesRequest::getPrefixListId()const -{ - return prefixListId_; +void DescribePrefixListAttributesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribePrefixListAttributesRequest::setPrefixListId(const std::string& prefixListId) -{ - prefixListId_ = prefixListId; - setParameter("PrefixListId", prefixListId); +std::string DescribePrefixListAttributesRequest::getPrefixListId() const { + return prefixListId_; } -std::string DescribePrefixListAttributesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribePrefixListAttributesRequest::setPrefixListId(const std::string &prefixListId) { + prefixListId_ = prefixListId; + setParameter(std::string("PrefixListId"), prefixListId); } -void DescribePrefixListAttributesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribePrefixListAttributesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribePrefixListAttributesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribePrefixListAttributesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribePrefixListAttributesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribePrefixListAttributesRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribePrefixListAttributesRequest::getOwnerId()const -{ - return ownerId_; +void DescribePrefixListAttributesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribePrefixListAttributesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribePrefixListAttributesRequest::getOwnerId() const { + return ownerId_; +} + +void DescribePrefixListAttributesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/DescribePrefixListAttributesResult.cc b/ecs/src/model/DescribePrefixListAttributesResult.cc index ab5312cb4..71a3600be 100644 --- a/ecs/src/model/DescribePrefixListAttributesResult.cc +++ b/ecs/src/model/DescribePrefixListAttributesResult.cc @@ -43,24 +43,24 @@ void DescribePrefixListAttributesResult::parse(const std::string &payload) for (auto valueEntriesEntry : allEntriesNode) { Entry entriesObject; - if(!valueEntriesEntry["Cidr"].isNull()) - entriesObject.cidr = valueEntriesEntry["Cidr"].asString(); if(!valueEntriesEntry["Description"].isNull()) entriesObject.description = valueEntriesEntry["Description"].asString(); + if(!valueEntriesEntry["Cidr"].isNull()) + entriesObject.cidr = valueEntriesEntry["Cidr"].asString(); entries_.push_back(entriesObject); } - if(!value["PrefixListId"].isNull()) - prefixListId_ = value["PrefixListId"].asString(); - if(!value["PrefixListName"].isNull()) - prefixListName_ = value["PrefixListName"].asString(); - if(!value["AddressFamily"].isNull()) - addressFamily_ = value["AddressFamily"].asString(); + if(!value["CreationTime"].isNull()) + creationTime_ = value["CreationTime"].asString(); if(!value["MaxEntries"].isNull()) maxEntries_ = std::stoi(value["MaxEntries"].asString()); if(!value["Description"].isNull()) description_ = value["Description"].asString(); - if(!value["CreationTime"].isNull()) - creationTime_ = value["CreationTime"].asString(); + if(!value["AddressFamily"].isNull()) + addressFamily_ = value["AddressFamily"].asString(); + if(!value["PrefixListName"].isNull()) + prefixListName_ = value["PrefixListName"].asString(); + if(!value["PrefixListId"].isNull()) + prefixListId_ = value["PrefixListId"].asString(); } diff --git a/ecs/src/model/DescribePrefixListsRequest.cc b/ecs/src/model/DescribePrefixListsRequest.cc index c3be34e85..dc041e600 100644 --- a/ecs/src/model/DescribePrefixListsRequest.cc +++ b/ecs/src/model/DescribePrefixListsRequest.cc @@ -1,141 +1,116 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribePrefixListsRequest; - -DescribePrefixListsRequest::DescribePrefixListsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribePrefixLists") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribePrefixListsRequest::~DescribePrefixListsRequest() -{} - -long DescribePrefixListsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribePrefixListsRequest; + +DescribePrefixListsRequest::DescribePrefixListsRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribePrefixLists") { + setMethod(HttpRequest::Method::Post); } -void DescribePrefixListsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribePrefixListsRequest::~DescribePrefixListsRequest() {} + +long DescribePrefixListsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribePrefixListsRequest::getRegionId()const -{ - return regionId_; +void DescribePrefixListsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribePrefixListsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribePrefixListsRequest::getRegionId() const { + return regionId_; } -std::vector DescribePrefixListsRequest::getPrefixListId()const -{ - return prefixListId_; +void DescribePrefixListsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribePrefixListsRequest::setPrefixListId(const std::vector& prefixListId) -{ - prefixListId_ = prefixListId; - for(int dep1 = 0; dep1!= prefixListId.size(); dep1++) { - setParameter("PrefixListId."+ std::to_string(dep1), prefixListId.at(dep1)); - } +std::string DescribePrefixListsRequest::getNextToken() const { + return nextToken_; } -std::string DescribePrefixListsRequest::getNextToken()const -{ - return nextToken_; +void DescribePrefixListsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } -void DescribePrefixListsRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +std::vector DescribePrefixListsRequest::getPrefixListId() const { + return prefixListId_; } -std::string DescribePrefixListsRequest::getAddressFamily()const -{ - return addressFamily_; +void DescribePrefixListsRequest::setPrefixListId(const std::vector &prefixListId) { + prefixListId_ = prefixListId; } -void DescribePrefixListsRequest::setAddressFamily(const std::string& addressFamily) -{ - addressFamily_ = addressFamily; - setParameter("AddressFamily", addressFamily); +std::string DescribePrefixListsRequest::getAddressFamily() const { + return addressFamily_; } -std::string DescribePrefixListsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribePrefixListsRequest::setAddressFamily(const std::string &addressFamily) { + addressFamily_ = addressFamily; + setParameter(std::string("AddressFamily"), addressFamily); } -void DescribePrefixListsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribePrefixListsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribePrefixListsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribePrefixListsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribePrefixListsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribePrefixListsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribePrefixListsRequest::getOwnerId()const -{ - return ownerId_; +void DescribePrefixListsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribePrefixListsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribePrefixListsRequest::getOwnerId() const { + return ownerId_; } -std::string DescribePrefixListsRequest::getPrefixListName()const -{ - return prefixListName_; +void DescribePrefixListsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribePrefixListsRequest::setPrefixListName(const std::string& prefixListName) -{ - prefixListName_ = prefixListName; - setParameter("PrefixListName", prefixListName); +std::string DescribePrefixListsRequest::getPrefixListName() const { + return prefixListName_; } -int DescribePrefixListsRequest::getMaxResults()const -{ - return maxResults_; +void DescribePrefixListsRequest::setPrefixListName(const std::string &prefixListName) { + prefixListName_ = prefixListName; + setParameter(std::string("PrefixListName"), prefixListName); } -void DescribePrefixListsRequest::setMaxResults(int maxResults) -{ - maxResults_ = maxResults; - setParameter("MaxResults", std::to_string(maxResults)); +int DescribePrefixListsRequest::getMaxResults() const { + return maxResults_; +} + +void DescribePrefixListsRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); } diff --git a/ecs/src/model/DescribePrefixListsResult.cc b/ecs/src/model/DescribePrefixListsResult.cc index 57a4d15a3..6034261fe 100644 --- a/ecs/src/model/DescribePrefixListsResult.cc +++ b/ecs/src/model/DescribePrefixListsResult.cc @@ -43,20 +43,20 @@ void DescribePrefixListsResult::parse(const std::string &payload) for (auto valuePrefixListsPrefixList : allPrefixListsNode) { PrefixList prefixListsObject; - if(!valuePrefixListsPrefixList["PrefixListId"].isNull()) - prefixListsObject.prefixListId = valuePrefixListsPrefixList["PrefixListId"].asString(); - if(!valuePrefixListsPrefixList["PrefixListName"].isNull()) - prefixListsObject.prefixListName = valuePrefixListsPrefixList["PrefixListName"].asString(); - if(!valuePrefixListsPrefixList["AddressFamily"].isNull()) - prefixListsObject.addressFamily = valuePrefixListsPrefixList["AddressFamily"].asString(); - if(!valuePrefixListsPrefixList["MaxEntries"].isNull()) - prefixListsObject.maxEntries = std::stoi(valuePrefixListsPrefixList["MaxEntries"].asString()); - if(!valuePrefixListsPrefixList["Description"].isNull()) - prefixListsObject.description = valuePrefixListsPrefixList["Description"].asString(); if(!valuePrefixListsPrefixList["CreationTime"].isNull()) prefixListsObject.creationTime = valuePrefixListsPrefixList["CreationTime"].asString(); if(!valuePrefixListsPrefixList["AssociationCount"].isNull()) prefixListsObject.associationCount = std::stoi(valuePrefixListsPrefixList["AssociationCount"].asString()); + if(!valuePrefixListsPrefixList["MaxEntries"].isNull()) + prefixListsObject.maxEntries = std::stoi(valuePrefixListsPrefixList["MaxEntries"].asString()); + if(!valuePrefixListsPrefixList["Description"].isNull()) + prefixListsObject.description = valuePrefixListsPrefixList["Description"].asString(); + if(!valuePrefixListsPrefixList["AddressFamily"].isNull()) + prefixListsObject.addressFamily = valuePrefixListsPrefixList["AddressFamily"].asString(); + if(!valuePrefixListsPrefixList["PrefixListName"].isNull()) + prefixListsObject.prefixListName = valuePrefixListsPrefixList["PrefixListName"].asString(); + if(!valuePrefixListsPrefixList["PrefixListId"].isNull()) + prefixListsObject.prefixListId = valuePrefixListsPrefixList["PrefixListId"].asString(); prefixLists_.push_back(prefixListsObject); } if(!value["NextToken"].isNull()) diff --git a/ecs/src/model/DescribePriceRequest.cc b/ecs/src/model/DescribePriceRequest.cc index 783656a8a..045500942 100644 --- a/ecs/src/model/DescribePriceRequest.cc +++ b/ecs/src/model/DescribePriceRequest.cc @@ -1,504 +1,413 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribePriceRequest; - -DescribePriceRequest::DescribePriceRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribePrice") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribePriceRequest::~DescribePriceRequest() -{} - -int DescribePriceRequest::getDataDisk3Size()const -{ - return dataDisk3Size_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribePriceRequest; + +DescribePriceRequest::DescribePriceRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribePrice") { + setMethod(HttpRequest::Method::Post); +} + +DescribePriceRequest::~DescribePriceRequest() {} + +int DescribePriceRequest::getDataDisk3Size() const { + return dataDisk3Size_; } -void DescribePriceRequest::setDataDisk3Size(int dataDisk3Size) -{ - dataDisk3Size_ = dataDisk3Size; - setParameter("DataDisk3Size", std::to_string(dataDisk3Size)); +void DescribePriceRequest::setDataDisk3Size(int dataDisk3Size) { + dataDisk3Size_ = dataDisk3Size; + setParameter(std::string("DataDisk.3.Size"), std::to_string(dataDisk3Size)); } -long DescribePriceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +long DescribePriceRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -void DescribePriceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +void DescribePriceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -std::string DescribePriceRequest::getDataDisk3Category()const -{ - return dataDisk3Category_; +std::string DescribePriceRequest::getDataDisk3Category() const { + return dataDisk3Category_; } -void DescribePriceRequest::setDataDisk3Category(const std::string& dataDisk3Category) -{ - dataDisk3Category_ = dataDisk3Category; - setParameter("DataDisk3Category", dataDisk3Category); +void DescribePriceRequest::setDataDisk3Category(const std::string &dataDisk3Category) { + dataDisk3Category_ = dataDisk3Category; + setParameter(std::string("DataDisk.3.Category"), dataDisk3Category); } -std::string DescribePriceRequest::getIsp()const -{ - return isp_; +std::string DescribePriceRequest::getIsp() const { + return isp_; } -void DescribePriceRequest::setIsp(const std::string& isp) -{ - isp_ = isp; - setParameter("Isp", isp); +void DescribePriceRequest::setIsp(const std::string &isp) { + isp_ = isp; + setParameter(std::string("Isp"), isp); } -int DescribePriceRequest::getDataDisk4Size()const -{ - return dataDisk4Size_; +int DescribePriceRequest::getDataDisk4Size() const { + return dataDisk4Size_; } -void DescribePriceRequest::setDataDisk4Size(int dataDisk4Size) -{ - dataDisk4Size_ = dataDisk4Size; - setParameter("DataDisk4Size", std::to_string(dataDisk4Size)); +void DescribePriceRequest::setDataDisk4Size(int dataDisk4Size) { + dataDisk4Size_ = dataDisk4Size; + setParameter(std::string("DataDisk.4.Size"), std::to_string(dataDisk4Size)); } -std::string DescribePriceRequest::getPriceUnit()const -{ - return priceUnit_; +std::string DescribePriceRequest::getPriceUnit() const { + return priceUnit_; } -void DescribePriceRequest::setPriceUnit(const std::string& priceUnit) -{ - priceUnit_ = priceUnit; - setParameter("PriceUnit", priceUnit); +void DescribePriceRequest::setPriceUnit(const std::string &priceUnit) { + priceUnit_ = priceUnit; + setParameter(std::string("PriceUnit"), priceUnit); } -int DescribePriceRequest::getPeriod()const -{ - return period_; +int DescribePriceRequest::getPeriod() const { + return period_; } -void DescribePriceRequest::setPeriod(int period) -{ - period_ = period; - setParameter("Period", std::to_string(period)); +void DescribePriceRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); } -std::string DescribePriceRequest::getDataDisk1PerformanceLevel()const -{ - return dataDisk1PerformanceLevel_; +std::string DescribePriceRequest::getDataDisk1PerformanceLevel() const { + return dataDisk1PerformanceLevel_; } -void DescribePriceRequest::setDataDisk1PerformanceLevel(const std::string& dataDisk1PerformanceLevel) -{ - dataDisk1PerformanceLevel_ = dataDisk1PerformanceLevel; - setParameter("DataDisk1PerformanceLevel", dataDisk1PerformanceLevel); +void DescribePriceRequest::setDataDisk1PerformanceLevel(const std::string &dataDisk1PerformanceLevel) { + dataDisk1PerformanceLevel_ = dataDisk1PerformanceLevel; + setParameter(std::string("DataDisk.1.PerformanceLevel"), dataDisk1PerformanceLevel); } -std::string DescribePriceRequest::getAssuranceTimes()const -{ - return assuranceTimes_; +std::string DescribePriceRequest::getAssuranceTimes() const { + return assuranceTimes_; } -void DescribePriceRequest::setAssuranceTimes(const std::string& assuranceTimes) -{ - assuranceTimes_ = assuranceTimes; - setParameter("AssuranceTimes", assuranceTimes); +void DescribePriceRequest::setAssuranceTimes(const std::string &assuranceTimes) { + assuranceTimes_ = assuranceTimes; + setParameter(std::string("AssuranceTimes"), assuranceTimes); } -long DescribePriceRequest::getOwnerId()const -{ - return ownerId_; +long DescribePriceRequest::getOwnerId() const { + return ownerId_; } -void DescribePriceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +void DescribePriceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -int DescribePriceRequest::getInstanceCpuCoreCount()const -{ - return instanceCpuCoreCount_; +int DescribePriceRequest::getInstanceCpuCoreCount() const { + return instanceCpuCoreCount_; } -void DescribePriceRequest::setInstanceCpuCoreCount(int instanceCpuCoreCount) -{ - instanceCpuCoreCount_ = instanceCpuCoreCount; - setParameter("InstanceCpuCoreCount", std::to_string(instanceCpuCoreCount)); +void DescribePriceRequest::setInstanceCpuCoreCount(int instanceCpuCoreCount) { + instanceCpuCoreCount_ = instanceCpuCoreCount; + setParameter(std::string("InstanceCpuCoreCount"), std::to_string(instanceCpuCoreCount)); } -std::string DescribePriceRequest::getSpotStrategy()const -{ - return spotStrategy_; +std::string DescribePriceRequest::getSpotStrategy() const { + return spotStrategy_; } -void DescribePriceRequest::setSpotStrategy(const std::string& spotStrategy) -{ - spotStrategy_ = spotStrategy; - setParameter("SpotStrategy", spotStrategy); +void DescribePriceRequest::setSpotStrategy(const std::string &spotStrategy) { + spotStrategy_ = spotStrategy; + setParameter(std::string("SpotStrategy"), spotStrategy); } -std::string DescribePriceRequest::getInternetChargeType()const -{ - return internetChargeType_; +std::string DescribePriceRequest::getInternetChargeType() const { + return internetChargeType_; } -void DescribePriceRequest::setInternetChargeType(const std::string& internetChargeType) -{ - internetChargeType_ = internetChargeType; - setParameter("InternetChargeType", internetChargeType); +void DescribePriceRequest::setInternetChargeType(const std::string &internetChargeType) { + internetChargeType_ = internetChargeType; + setParameter(std::string("InternetChargeType"), internetChargeType); } -std::string DescribePriceRequest::getZoneId()const -{ - return zoneId_; +std::string DescribePriceRequest::getZoneId() const { + return zoneId_; } -void DescribePriceRequest::setZoneId(const std::string& zoneId) -{ - zoneId_ = zoneId; - setParameter("ZoneId", zoneId); +void DescribePriceRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); } -std::string DescribePriceRequest::getInstanceNetworkType()const -{ - return instanceNetworkType_; +std::string DescribePriceRequest::getInstanceNetworkType() const { + return instanceNetworkType_; } -void DescribePriceRequest::setInstanceNetworkType(const std::string& instanceNetworkType) -{ - instanceNetworkType_ = instanceNetworkType; - setParameter("InstanceNetworkType", instanceNetworkType); +void DescribePriceRequest::setInstanceNetworkType(const std::string &instanceNetworkType) { + instanceNetworkType_ = instanceNetworkType; + setParameter(std::string("InstanceNetworkType"), instanceNetworkType); } -int DescribePriceRequest::getInstanceAmount()const -{ - return instanceAmount_; +int DescribePriceRequest::getInstanceAmount() const { + return instanceAmount_; } -void DescribePriceRequest::setInstanceAmount(int instanceAmount) -{ - instanceAmount_ = instanceAmount; - setParameter("InstanceAmount", std::to_string(instanceAmount)); +void DescribePriceRequest::setInstanceAmount(int instanceAmount) { + instanceAmount_ = instanceAmount; + setParameter(std::string("InstanceAmount"), std::to_string(instanceAmount)); } -std::vector DescribePriceRequest::getInstanceTypeList()const -{ - return instanceTypeList_; +std::vector DescribePriceRequest::getInstanceTypeList() const { + return instanceTypeList_; } -void DescribePriceRequest::setInstanceTypeList(const std::vector& instanceTypeList) -{ - instanceTypeList_ = instanceTypeList; - for(int dep1 = 0; dep1!= instanceTypeList.size(); dep1++) { - setParameter("InstanceTypeList."+ std::to_string(dep1), instanceTypeList.at(dep1)); - } +void DescribePriceRequest::setInstanceTypeList(const std::vector &instanceTypeList) { + instanceTypeList_ = instanceTypeList; } -std::string DescribePriceRequest::getDataDisk3PerformanceLevel()const -{ - return dataDisk3PerformanceLevel_; +std::string DescribePriceRequest::getDataDisk3PerformanceLevel() const { + return dataDisk3PerformanceLevel_; } -void DescribePriceRequest::setDataDisk3PerformanceLevel(const std::string& dataDisk3PerformanceLevel) -{ - dataDisk3PerformanceLevel_ = dataDisk3PerformanceLevel; - setParameter("DataDisk3PerformanceLevel", dataDisk3PerformanceLevel); +void DescribePriceRequest::setDataDisk3PerformanceLevel(const std::string &dataDisk3PerformanceLevel) { + dataDisk3PerformanceLevel_ = dataDisk3PerformanceLevel; + setParameter(std::string("DataDisk.3.PerformanceLevel"), dataDisk3PerformanceLevel); } -std::string DescribePriceRequest::getImageId()const -{ - return imageId_; +std::string DescribePriceRequest::getImageId() const { + return imageId_; } -void DescribePriceRequest::setImageId(const std::string& imageId) -{ - imageId_ = imageId; - setParameter("ImageId", imageId); +void DescribePriceRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("ImageId"), imageId); } -std::string DescribePriceRequest::getIoOptimized()const -{ - return ioOptimized_; +std::string DescribePriceRequest::getIoOptimized() const { + return ioOptimized_; } -void DescribePriceRequest::setIoOptimized(const std::string& ioOptimized) -{ - ioOptimized_ = ioOptimized; - setParameter("IoOptimized", ioOptimized); +void DescribePriceRequest::setIoOptimized(const std::string &ioOptimized) { + ioOptimized_ = ioOptimized; + setParameter(std::string("IoOptimized"), ioOptimized); } -int DescribePriceRequest::getInternetMaxBandwidthOut()const -{ - return internetMaxBandwidthOut_; +int DescribePriceRequest::getInternetMaxBandwidthOut() const { + return internetMaxBandwidthOut_; } -void DescribePriceRequest::setInternetMaxBandwidthOut(int internetMaxBandwidthOut) -{ - internetMaxBandwidthOut_ = internetMaxBandwidthOut; - setParameter("InternetMaxBandwidthOut", std::to_string(internetMaxBandwidthOut)); +void DescribePriceRequest::setInternetMaxBandwidthOut(int internetMaxBandwidthOut) { + internetMaxBandwidthOut_ = internetMaxBandwidthOut; + setParameter(std::string("InternetMaxBandwidthOut"), std::to_string(internetMaxBandwidthOut)); } -std::string DescribePriceRequest::getSystemDiskCategory()const -{ - return systemDiskCategory_; +std::string DescribePriceRequest::getSystemDiskCategory() const { + return systemDiskCategory_; } -void DescribePriceRequest::setSystemDiskCategory(const std::string& systemDiskCategory) -{ - systemDiskCategory_ = systemDiskCategory; - setParameter("SystemDiskCategory", systemDiskCategory); +void DescribePriceRequest::setSystemDiskCategory(const std::string &systemDiskCategory) { + systemDiskCategory_ = systemDiskCategory; + setParameter(std::string("SystemDisk.Category"), systemDiskCategory); } -std::string DescribePriceRequest::getPlatform()const -{ - return platform_; +std::string DescribePriceRequest::getPlatform() const { + return platform_; } -void DescribePriceRequest::setPlatform(const std::string& platform) -{ - platform_ = platform; - setParameter("Platform", platform); +void DescribePriceRequest::setPlatform(const std::string &platform) { + platform_ = platform; + setParameter(std::string("Platform"), platform); } -int DescribePriceRequest::getCapacity()const -{ - return capacity_; +int DescribePriceRequest::getCapacity() const { + return capacity_; } -void DescribePriceRequest::setCapacity(int capacity) -{ - capacity_ = capacity; - setParameter("Capacity", std::to_string(capacity)); +void DescribePriceRequest::setCapacity(int capacity) { + capacity_ = capacity; + setParameter(std::string("Capacity"), std::to_string(capacity)); } -std::string DescribePriceRequest::getSystemDiskPerformanceLevel()const -{ - return systemDiskPerformanceLevel_; +std::string DescribePriceRequest::getSystemDiskPerformanceLevel() const { + return systemDiskPerformanceLevel_; } -void DescribePriceRequest::setSystemDiskPerformanceLevel(const std::string& systemDiskPerformanceLevel) -{ - systemDiskPerformanceLevel_ = systemDiskPerformanceLevel; - setParameter("SystemDiskPerformanceLevel", systemDiskPerformanceLevel); +void DescribePriceRequest::setSystemDiskPerformanceLevel(const std::string &systemDiskPerformanceLevel) { + systemDiskPerformanceLevel_ = systemDiskPerformanceLevel; + setParameter(std::string("SystemDisk.PerformanceLevel"), systemDiskPerformanceLevel); } -std::string DescribePriceRequest::getDataDisk4Category()const -{ - return dataDisk4Category_; +std::string DescribePriceRequest::getDataDisk4Category() const { + return dataDisk4Category_; } -void DescribePriceRequest::setDataDisk4Category(const std::string& dataDisk4Category) -{ - dataDisk4Category_ = dataDisk4Category; - setParameter("DataDisk4Category", dataDisk4Category); +void DescribePriceRequest::setDataDisk4Category(const std::string &dataDisk4Category) { + dataDisk4Category_ = dataDisk4Category; + setParameter(std::string("DataDisk.4.Category"), dataDisk4Category); } -std::string DescribePriceRequest::getDataDisk4PerformanceLevel()const -{ - return dataDisk4PerformanceLevel_; +std::string DescribePriceRequest::getDataDisk4PerformanceLevel() const { + return dataDisk4PerformanceLevel_; } -void DescribePriceRequest::setDataDisk4PerformanceLevel(const std::string& dataDisk4PerformanceLevel) -{ - dataDisk4PerformanceLevel_ = dataDisk4PerformanceLevel; - setParameter("DataDisk4PerformanceLevel", dataDisk4PerformanceLevel); +void DescribePriceRequest::setDataDisk4PerformanceLevel(const std::string &dataDisk4PerformanceLevel) { + dataDisk4PerformanceLevel_ = dataDisk4PerformanceLevel; + setParameter(std::string("DataDisk.4.PerformanceLevel"), dataDisk4PerformanceLevel); } -std::string DescribePriceRequest::getRegionId()const -{ - return regionId_; +std::string DescribePriceRequest::getRegionId() const { + return regionId_; } -void DescribePriceRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +void DescribePriceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -std::string DescribePriceRequest::getScope()const -{ - return scope_; +std::string DescribePriceRequest::getScope() const { + return scope_; } -void DescribePriceRequest::setScope(const std::string& scope) -{ - scope_ = scope; - setParameter("Scope", scope); +void DescribePriceRequest::setScope(const std::string &scope) { + scope_ = scope; + setParameter(std::string("Scope"), scope); } -std::string DescribePriceRequest::getInstanceType()const -{ - return instanceType_; +std::string DescribePriceRequest::getInstanceType() const { + return instanceType_; } -void DescribePriceRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +void DescribePriceRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } -std::string DescribePriceRequest::getDedicatedHostType()const -{ - return dedicatedHostType_; +std::string DescribePriceRequest::getDedicatedHostType() const { + return dedicatedHostType_; } -void DescribePriceRequest::setDedicatedHostType(const std::string& dedicatedHostType) -{ - dedicatedHostType_ = dedicatedHostType; - setParameter("DedicatedHostType", dedicatedHostType); +void DescribePriceRequest::setDedicatedHostType(const std::string &dedicatedHostType) { + dedicatedHostType_ = dedicatedHostType; + setParameter(std::string("DedicatedHostType"), dedicatedHostType); } -std::string DescribePriceRequest::getDataDisk2Category()const -{ - return dataDisk2Category_; +std::string DescribePriceRequest::getDataDisk2Category() const { + return dataDisk2Category_; } -void DescribePriceRequest::setDataDisk2Category(const std::string& dataDisk2Category) -{ - dataDisk2Category_ = dataDisk2Category; - setParameter("DataDisk2Category", dataDisk2Category); +void DescribePriceRequest::setDataDisk2Category(const std::string &dataDisk2Category) { + dataDisk2Category_ = dataDisk2Category; + setParameter(std::string("DataDisk.2.Category"), dataDisk2Category); } -int DescribePriceRequest::getDataDisk1Size()const -{ - return dataDisk1Size_; +int DescribePriceRequest::getDataDisk1Size() const { + return dataDisk1Size_; } -void DescribePriceRequest::setDataDisk1Size(int dataDisk1Size) -{ - dataDisk1Size_ = dataDisk1Size; - setParameter("DataDisk1Size", std::to_string(dataDisk1Size)); +void DescribePriceRequest::setDataDisk1Size(int dataDisk1Size) { + dataDisk1Size_ = dataDisk1Size; + setParameter(std::string("DataDisk.1.Size"), std::to_string(dataDisk1Size)); } -int DescribePriceRequest::getAmount()const -{ - return amount_; +int DescribePriceRequest::getAmount() const { + return amount_; } -void DescribePriceRequest::setAmount(int amount) -{ - amount_ = amount; - setParameter("Amount", std::to_string(amount)); +void DescribePriceRequest::setAmount(int amount) { + amount_ = amount; + setParameter(std::string("Amount"), std::to_string(amount)); } -std::string DescribePriceRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +std::string DescribePriceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -void DescribePriceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +void DescribePriceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -std::string DescribePriceRequest::getOwnerAccount()const -{ - return ownerAccount_; +std::string DescribePriceRequest::getOwnerAccount() const { + return ownerAccount_; } -void DescribePriceRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +void DescribePriceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -int DescribePriceRequest::getDataDisk2Size()const -{ - return dataDisk2Size_; +int DescribePriceRequest::getDataDisk2Size() const { + return dataDisk2Size_; } -void DescribePriceRequest::setDataDisk2Size(int dataDisk2Size) -{ - dataDisk2Size_ = dataDisk2Size; - setParameter("DataDisk2Size", std::to_string(dataDisk2Size)); +void DescribePriceRequest::setDataDisk2Size(int dataDisk2Size) { + dataDisk2Size_ = dataDisk2Size; + setParameter(std::string("DataDisk.2.Size"), std::to_string(dataDisk2Size)); } -int DescribePriceRequest::getSpotDuration()const -{ - return spotDuration_; +int DescribePriceRequest::getSpotDuration() const { + return spotDuration_; } -void DescribePriceRequest::setSpotDuration(int spotDuration) -{ - spotDuration_ = spotDuration; - setParameter("SpotDuration", std::to_string(spotDuration)); +void DescribePriceRequest::setSpotDuration(int spotDuration) { + spotDuration_ = spotDuration; + setParameter(std::string("SpotDuration"), std::to_string(spotDuration)); } -std::string DescribePriceRequest::getResourceType()const -{ - return resourceType_; +std::string DescribePriceRequest::getResourceType() const { + return resourceType_; } -void DescribePriceRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +void DescribePriceRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); } -std::string DescribePriceRequest::getDataDisk1Category()const -{ - return dataDisk1Category_; +std::string DescribePriceRequest::getDataDisk1Category() const { + return dataDisk1Category_; } -void DescribePriceRequest::setDataDisk1Category(const std::string& dataDisk1Category) -{ - dataDisk1Category_ = dataDisk1Category; - setParameter("DataDisk1Category", dataDisk1Category); +void DescribePriceRequest::setDataDisk1Category(const std::string &dataDisk1Category) { + dataDisk1Category_ = dataDisk1Category; + setParameter(std::string("DataDisk.1.Category"), dataDisk1Category); } -std::string DescribePriceRequest::getDataDisk2PerformanceLevel()const -{ - return dataDisk2PerformanceLevel_; +std::string DescribePriceRequest::getDataDisk2PerformanceLevel() const { + return dataDisk2PerformanceLevel_; } -void DescribePriceRequest::setDataDisk2PerformanceLevel(const std::string& dataDisk2PerformanceLevel) -{ - dataDisk2PerformanceLevel_ = dataDisk2PerformanceLevel; - setParameter("DataDisk2PerformanceLevel", dataDisk2PerformanceLevel); +void DescribePriceRequest::setDataDisk2PerformanceLevel(const std::string &dataDisk2PerformanceLevel) { + dataDisk2PerformanceLevel_ = dataDisk2PerformanceLevel; + setParameter(std::string("DataDisk.2.PerformanceLevel"), dataDisk2PerformanceLevel); } -int DescribePriceRequest::getSystemDiskSize()const -{ - return systemDiskSize_; +int DescribePriceRequest::getSystemDiskSize() const { + return systemDiskSize_; } -void DescribePriceRequest::setSystemDiskSize(int systemDiskSize) -{ - systemDiskSize_ = systemDiskSize; - setParameter("SystemDiskSize", std::to_string(systemDiskSize)); +void DescribePriceRequest::setSystemDiskSize(int systemDiskSize) { + systemDiskSize_ = systemDiskSize; + setParameter(std::string("SystemDisk.Size"), std::to_string(systemDiskSize)); } -std::string DescribePriceRequest::getOfferingType()const -{ - return offeringType_; +std::string DescribePriceRequest::getOfferingType() const { + return offeringType_; } -void DescribePriceRequest::setOfferingType(const std::string& offeringType) -{ - offeringType_ = offeringType; - setParameter("OfferingType", offeringType); +void DescribePriceRequest::setOfferingType(const std::string &offeringType) { + offeringType_ = offeringType; + setParameter(std::string("OfferingType"), offeringType); } diff --git a/ecs/src/model/DescribeRecommendInstanceTypeRequest.cc b/ecs/src/model/DescribeRecommendInstanceTypeRequest.cc index 1c725e75d..75c26d88e 100644 --- a/ecs/src/model/DescribeRecommendInstanceTypeRequest.cc +++ b/ecs/src/model/DescribeRecommendInstanceTypeRequest.cc @@ -1,251 +1,206 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeRecommendInstanceTypeRequest; - -DescribeRecommendInstanceTypeRequest::DescribeRecommendInstanceTypeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeRecommendInstanceType") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeRecommendInstanceTypeRequest::~DescribeRecommendInstanceTypeRequest() -{} - -long DescribeRecommendInstanceTypeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeRecommendInstanceTypeRequest; + +DescribeRecommendInstanceTypeRequest::DescribeRecommendInstanceTypeRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeRecommendInstanceType") { + setMethod(HttpRequest::Method::Post); } -void DescribeRecommendInstanceTypeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeRecommendInstanceTypeRequest::~DescribeRecommendInstanceTypeRequest() {} + +long DescribeRecommendInstanceTypeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -float DescribeRecommendInstanceTypeRequest::getMemory()const -{ - return memory_; +void DescribeRecommendInstanceTypeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeRecommendInstanceTypeRequest::setMemory(float memory) -{ - memory_ = memory; - setParameter("Memory", std::to_string(memory)); +float DescribeRecommendInstanceTypeRequest::getMemory() const { + return memory_; } -std::string DescribeRecommendInstanceTypeRequest::getIoOptimized()const -{ - return ioOptimized_; +void DescribeRecommendInstanceTypeRequest::setMemory(float memory) { + memory_ = memory; + setParameter(std::string("Memory"), std::to_string(memory)); } -void DescribeRecommendInstanceTypeRequest::setIoOptimized(const std::string& ioOptimized) -{ - ioOptimized_ = ioOptimized; - setParameter("IoOptimized", ioOptimized); +std::string DescribeRecommendInstanceTypeRequest::getIoOptimized() const { + return ioOptimized_; } -std::string DescribeRecommendInstanceTypeRequest::getNetworkType()const -{ - return networkType_; +void DescribeRecommendInstanceTypeRequest::setIoOptimized(const std::string &ioOptimized) { + ioOptimized_ = ioOptimized; + setParameter(std::string("IoOptimized"), ioOptimized); } -void DescribeRecommendInstanceTypeRequest::setNetworkType(const std::string& networkType) -{ - networkType_ = networkType; - setParameter("NetworkType", networkType); +std::string DescribeRecommendInstanceTypeRequest::getNetworkType() const { + return networkType_; } -std::string DescribeRecommendInstanceTypeRequest::getScene()const -{ - return scene_; +void DescribeRecommendInstanceTypeRequest::setNetworkType(const std::string &networkType) { + networkType_ = networkType; + setParameter(std::string("NetworkType"), networkType); } -void DescribeRecommendInstanceTypeRequest::setScene(const std::string& scene) -{ - scene_ = scene; - setParameter("Scene", scene); +std::string DescribeRecommendInstanceTypeRequest::getScene() const { + return scene_; } -int DescribeRecommendInstanceTypeRequest::getCores()const -{ - return cores_; +void DescribeRecommendInstanceTypeRequest::setScene(const std::string &scene) { + scene_ = scene; + setParameter(std::string("Scene"), scene); } -void DescribeRecommendInstanceTypeRequest::setCores(int cores) -{ - cores_ = cores; - setParameter("Cores", std::to_string(cores)); +int DescribeRecommendInstanceTypeRequest::getCores() const { + return cores_; } -std::string DescribeRecommendInstanceTypeRequest::getRegionId()const -{ - return regionId_; +void DescribeRecommendInstanceTypeRequest::setCores(int cores) { + cores_ = cores; + setParameter(std::string("Cores"), std::to_string(cores)); } -void DescribeRecommendInstanceTypeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeRecommendInstanceTypeRequest::getRegionId() const { + return regionId_; } -std::string DescribeRecommendInstanceTypeRequest::getSystemDiskCategory()const -{ - return systemDiskCategory_; +void DescribeRecommendInstanceTypeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeRecommendInstanceTypeRequest::setSystemDiskCategory(const std::string& systemDiskCategory) -{ - systemDiskCategory_ = systemDiskCategory; - setParameter("SystemDiskCategory", systemDiskCategory); +std::string DescribeRecommendInstanceTypeRequest::getSystemDiskCategory() const { + return systemDiskCategory_; } -std::string DescribeRecommendInstanceTypeRequest::getInstanceType()const -{ - return instanceType_; +void DescribeRecommendInstanceTypeRequest::setSystemDiskCategory(const std::string &systemDiskCategory) { + systemDiskCategory_ = systemDiskCategory; + setParameter(std::string("SystemDiskCategory"), systemDiskCategory); } -void DescribeRecommendInstanceTypeRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +std::string DescribeRecommendInstanceTypeRequest::getInstanceType() const { + return instanceType_; } -std::string DescribeRecommendInstanceTypeRequest::getInstanceChargeType()const -{ - return instanceChargeType_; +void DescribeRecommendInstanceTypeRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } -void DescribeRecommendInstanceTypeRequest::setInstanceChargeType(const std::string& instanceChargeType) -{ - instanceChargeType_ = instanceChargeType; - setParameter("InstanceChargeType", instanceChargeType); +std::string DescribeRecommendInstanceTypeRequest::getInstanceChargeType() const { + return instanceChargeType_; } -float DescribeRecommendInstanceTypeRequest::getMaxPrice()const -{ - return maxPrice_; +void DescribeRecommendInstanceTypeRequest::setInstanceChargeType(const std::string &instanceChargeType) { + instanceChargeType_ = instanceChargeType; + setParameter(std::string("InstanceChargeType"), instanceChargeType); } -void DescribeRecommendInstanceTypeRequest::setMaxPrice(float maxPrice) -{ - maxPrice_ = maxPrice; - setParameter("MaxPrice", std::to_string(maxPrice)); +float DescribeRecommendInstanceTypeRequest::getMaxPrice() const { + return maxPrice_; } -std::string DescribeRecommendInstanceTypeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeRecommendInstanceTypeRequest::setMaxPrice(float maxPrice) { + maxPrice_ = maxPrice; + setParameter(std::string("MaxPrice"), std::to_string(maxPrice)); } -void DescribeRecommendInstanceTypeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeRecommendInstanceTypeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeRecommendInstanceTypeRequest::getZoneMatchMode()const -{ - return zoneMatchMode_; +void DescribeRecommendInstanceTypeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeRecommendInstanceTypeRequest::setZoneMatchMode(const std::string& zoneMatchMode) -{ - zoneMatchMode_ = zoneMatchMode; - setParameter("ZoneMatchMode", zoneMatchMode); +std::string DescribeRecommendInstanceTypeRequest::getZoneMatchMode() const { + return zoneMatchMode_; } -std::string DescribeRecommendInstanceTypeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeRecommendInstanceTypeRequest::setZoneMatchMode(const std::string &zoneMatchMode) { + zoneMatchMode_ = zoneMatchMode; + setParameter(std::string("ZoneMatchMode"), zoneMatchMode); } -void DescribeRecommendInstanceTypeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeRecommendInstanceTypeRequest::getOwnerAccount() const { + return ownerAccount_; } -std::vector DescribeRecommendInstanceTypeRequest::getInstanceTypeFamily()const -{ - return instanceTypeFamily_; +void DescribeRecommendInstanceTypeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeRecommendInstanceTypeRequest::setInstanceTypeFamily(const std::vector& instanceTypeFamily) -{ - instanceTypeFamily_ = instanceTypeFamily; - for(int dep1 = 0; dep1!= instanceTypeFamily.size(); dep1++) { - setParameter("InstanceTypeFamily."+ std::to_string(dep1), instanceTypeFamily.at(dep1)); - } +std::vector DescribeRecommendInstanceTypeRequest::getInstanceTypeFamily() const { + return instanceTypeFamily_; } -long DescribeRecommendInstanceTypeRequest::getOwnerId()const -{ - return ownerId_; +void DescribeRecommendInstanceTypeRequest::setInstanceTypeFamily(const std::vector &instanceTypeFamily) { + instanceTypeFamily_ = instanceTypeFamily; } -void DescribeRecommendInstanceTypeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeRecommendInstanceTypeRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeRecommendInstanceTypeRequest::getSpotStrategy()const -{ - return spotStrategy_; +void DescribeRecommendInstanceTypeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeRecommendInstanceTypeRequest::setSpotStrategy(const std::string& spotStrategy) -{ - spotStrategy_ = spotStrategy; - setParameter("SpotStrategy", spotStrategy); +std::string DescribeRecommendInstanceTypeRequest::getSpotStrategy() const { + return spotStrategy_; } -std::string DescribeRecommendInstanceTypeRequest::getPriorityStrategy()const -{ - return priorityStrategy_; +void DescribeRecommendInstanceTypeRequest::setSpotStrategy(const std::string &spotStrategy) { + spotStrategy_ = spotStrategy; + setParameter(std::string("SpotStrategy"), spotStrategy); } -void DescribeRecommendInstanceTypeRequest::setPriorityStrategy(const std::string& priorityStrategy) -{ - priorityStrategy_ = priorityStrategy; - setParameter("PriorityStrategy", priorityStrategy); +std::string DescribeRecommendInstanceTypeRequest::getPriorityStrategy() const { + return priorityStrategy_; } -std::string DescribeRecommendInstanceTypeRequest::getInstanceFamilyLevel()const -{ - return instanceFamilyLevel_; +void DescribeRecommendInstanceTypeRequest::setPriorityStrategy(const std::string &priorityStrategy) { + priorityStrategy_ = priorityStrategy; + setParameter(std::string("PriorityStrategy"), priorityStrategy); } -void DescribeRecommendInstanceTypeRequest::setInstanceFamilyLevel(const std::string& instanceFamilyLevel) -{ - instanceFamilyLevel_ = instanceFamilyLevel; - setParameter("InstanceFamilyLevel", instanceFamilyLevel); +std::string DescribeRecommendInstanceTypeRequest::getInstanceFamilyLevel() const { + return instanceFamilyLevel_; } -std::string DescribeRecommendInstanceTypeRequest::getZoneId()const -{ - return zoneId_; +void DescribeRecommendInstanceTypeRequest::setInstanceFamilyLevel(const std::string &instanceFamilyLevel) { + instanceFamilyLevel_ = instanceFamilyLevel; + setParameter(std::string("InstanceFamilyLevel"), instanceFamilyLevel); } -void DescribeRecommendInstanceTypeRequest::setZoneId(const std::string& zoneId) -{ - zoneId_ = zoneId; - setParameter("ZoneId", zoneId); +std::string DescribeRecommendInstanceTypeRequest::getZoneId() const { + return zoneId_; +} + +void DescribeRecommendInstanceTypeRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); } diff --git a/ecs/src/model/DescribeRecommendInstanceTypeResult.cc b/ecs/src/model/DescribeRecommendInstanceTypeResult.cc index 06a3d07e9..b4e31d6e8 100644 --- a/ecs/src/model/DescribeRecommendInstanceTypeResult.cc +++ b/ecs/src/model/DescribeRecommendInstanceTypeResult.cc @@ -43,22 +43,22 @@ void DescribeRecommendInstanceTypeResult::parse(const std::string &payload) for (auto valueDataRecommendInstanceType : allDataNode) { RecommendInstanceType dataObject; - if(!valueDataRecommendInstanceType["RegionId"].isNull()) - dataObject.regionId = valueDataRecommendInstanceType["RegionId"].asString(); if(!valueDataRecommendInstanceType["CommodityCode"].isNull()) dataObject.commodityCode = valueDataRecommendInstanceType["CommodityCode"].asString(); - if(!valueDataRecommendInstanceType["Scene"].isNull()) - dataObject.scene = valueDataRecommendInstanceType["Scene"].asString(); - if(!valueDataRecommendInstanceType["InstanceChargeType"].isNull()) - dataObject.instanceChargeType = valueDataRecommendInstanceType["InstanceChargeType"].asString(); - if(!valueDataRecommendInstanceType["SpotStrategy"].isNull()) - dataObject.spotStrategy = valueDataRecommendInstanceType["SpotStrategy"].asString(); - if(!valueDataRecommendInstanceType["Priority"].isNull()) - dataObject.priority = std::stoi(valueDataRecommendInstanceType["Priority"].asString()); if(!valueDataRecommendInstanceType["ZoneId"].isNull()) dataObject.zoneId = valueDataRecommendInstanceType["ZoneId"].asString(); + if(!valueDataRecommendInstanceType["Priority"].isNull()) + dataObject.priority = std::stoi(valueDataRecommendInstanceType["Priority"].asString()); if(!valueDataRecommendInstanceType["NetworkType"].isNull()) dataObject.networkType = valueDataRecommendInstanceType["NetworkType"].asString(); + if(!valueDataRecommendInstanceType["Scene"].isNull()) + dataObject.scene = valueDataRecommendInstanceType["Scene"].asString(); + if(!valueDataRecommendInstanceType["SpotStrategy"].isNull()) + dataObject.spotStrategy = valueDataRecommendInstanceType["SpotStrategy"].asString(); + if(!valueDataRecommendInstanceType["RegionId"].isNull()) + dataObject.regionId = valueDataRecommendInstanceType["RegionId"].asString(); + if(!valueDataRecommendInstanceType["InstanceChargeType"].isNull()) + dataObject.instanceChargeType = valueDataRecommendInstanceType["InstanceChargeType"].asString(); auto allZonesNode = valueDataRecommendInstanceType["Zones"]["zone"]; for (auto valueDataRecommendInstanceTypeZoneszone : allZonesNode) { @@ -71,18 +71,18 @@ void DescribeRecommendInstanceTypeResult::parse(const std::string &payload) dataObject.zones.push_back(zonesObject); } auto instanceTypeNode = value["InstanceType"]; - if(!instanceTypeNode["Generation"].isNull()) - dataObject.instanceType.generation = instanceTypeNode["Generation"].asString(); - if(!instanceTypeNode["InstanceTypeFamily"].isNull()) - dataObject.instanceType.instanceTypeFamily = instanceTypeNode["InstanceTypeFamily"].asString(); - if(!instanceTypeNode["InstanceType"].isNull()) - dataObject.instanceType.instanceType = instanceTypeNode["InstanceType"].asString(); if(!instanceTypeNode["SupportIoOptimized"].isNull()) dataObject.instanceType.supportIoOptimized = instanceTypeNode["SupportIoOptimized"].asString(); if(!instanceTypeNode["Cores"].isNull()) dataObject.instanceType.cores = std::stoi(instanceTypeNode["Cores"].asString()); if(!instanceTypeNode["Memory"].isNull()) dataObject.instanceType.memory = std::stoi(instanceTypeNode["Memory"].asString()); + if(!instanceTypeNode["InstanceType"].isNull()) + dataObject.instanceType.instanceType = instanceTypeNode["InstanceType"].asString(); + if(!instanceTypeNode["InstanceTypeFamily"].isNull()) + dataObject.instanceType.instanceTypeFamily = instanceTypeNode["InstanceTypeFamily"].asString(); + if(!instanceTypeNode["Generation"].isNull()) + dataObject.instanceType.generation = instanceTypeNode["Generation"].asString(); data_.push_back(dataObject); } diff --git a/ecs/src/model/DescribeRegionsRequest.cc b/ecs/src/model/DescribeRegionsRequest.cc index 8ad9d2075..abc18fd4b 100644 --- a/ecs/src/model/DescribeRegionsRequest.cc +++ b/ecs/src/model/DescribeRegionsRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeRegionsRequest; - -DescribeRegionsRequest::DescribeRegionsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeRegions") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeRegionsRequest::~DescribeRegionsRequest() -{} - -long DescribeRegionsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeRegionsRequest; + +DescribeRegionsRequest::DescribeRegionsRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeRegions") { + setMethod(HttpRequest::Method::Post); } -void DescribeRegionsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeRegionsRequest::~DescribeRegionsRequest() {} + +long DescribeRegionsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeRegionsRequest::getInstanceChargeType()const -{ - return instanceChargeType_; +void DescribeRegionsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeRegionsRequest::setInstanceChargeType(const std::string& instanceChargeType) -{ - instanceChargeType_ = instanceChargeType; - setParameter("InstanceChargeType", instanceChargeType); +std::string DescribeRegionsRequest::getInstanceChargeType() const { + return instanceChargeType_; } -std::string DescribeRegionsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeRegionsRequest::setInstanceChargeType(const std::string &instanceChargeType) { + instanceChargeType_ = instanceChargeType; + setParameter(std::string("InstanceChargeType"), instanceChargeType); } -void DescribeRegionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeRegionsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeRegionsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeRegionsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeRegionsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeRegionsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeRegionsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeRegionsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeRegionsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeRegionsRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeRegionsRequest::getResourceType()const -{ - return resourceType_; +void DescribeRegionsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeRegionsRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +std::string DescribeRegionsRequest::getResourceType() const { + return resourceType_; } -std::string DescribeRegionsRequest::getAcceptLanguage()const -{ - return acceptLanguage_; +void DescribeRegionsRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); } -void DescribeRegionsRequest::setAcceptLanguage(const std::string& acceptLanguage) -{ - acceptLanguage_ = acceptLanguage; - setParameter("AcceptLanguage", acceptLanguage); +std::string DescribeRegionsRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void DescribeRegionsRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); } diff --git a/ecs/src/model/DescribeRegionsResult.cc b/ecs/src/model/DescribeRegionsResult.cc index 7ccab9b8a..6cca2329e 100644 --- a/ecs/src/model/DescribeRegionsResult.cc +++ b/ecs/src/model/DescribeRegionsResult.cc @@ -43,14 +43,14 @@ void DescribeRegionsResult::parse(const std::string &payload) for (auto valueRegionsRegion : allRegionsNode) { Region regionsObject; - if(!valueRegionsRegion["RegionId"].isNull()) - regionsObject.regionId = valueRegionsRegion["RegionId"].asString(); - if(!valueRegionsRegion["LocalName"].isNull()) - regionsObject.localName = valueRegionsRegion["LocalName"].asString(); - if(!valueRegionsRegion["RegionEndpoint"].isNull()) - regionsObject.regionEndpoint = valueRegionsRegion["RegionEndpoint"].asString(); if(!valueRegionsRegion["Status"].isNull()) regionsObject.status = valueRegionsRegion["Status"].asString(); + if(!valueRegionsRegion["RegionEndpoint"].isNull()) + regionsObject.regionEndpoint = valueRegionsRegion["RegionEndpoint"].asString(); + if(!valueRegionsRegion["LocalName"].isNull()) + regionsObject.localName = valueRegionsRegion["LocalName"].asString(); + if(!valueRegionsRegion["RegionId"].isNull()) + regionsObject.regionId = valueRegionsRegion["RegionId"].asString(); regions_.push_back(regionsObject); } diff --git a/ecs/src/model/DescribeRenewalPriceRequest.cc b/ecs/src/model/DescribeRenewalPriceRequest.cc index ee337d96c..9e3cae2c9 100644 --- a/ecs/src/model/DescribeRenewalPriceRequest.cc +++ b/ecs/src/model/DescribeRenewalPriceRequest.cc @@ -1,139 +1,117 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeRenewalPriceRequest; - -DescribeRenewalPriceRequest::DescribeRenewalPriceRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeRenewalPrice") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeRenewalPriceRequest::~DescribeRenewalPriceRequest() -{} - -long DescribeRenewalPriceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeRenewalPriceRequest; + +DescribeRenewalPriceRequest::DescribeRenewalPriceRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeRenewalPrice") { + setMethod(HttpRequest::Method::Post); } -void DescribeRenewalPriceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeRenewalPriceRequest::~DescribeRenewalPriceRequest() {} + +long DescribeRenewalPriceRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeRenewalPriceRequest::getRegionId()const -{ - return regionId_; +void DescribeRenewalPriceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeRenewalPriceRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeRenewalPriceRequest::getRegionId() const { + return regionId_; } -std::string DescribeRenewalPriceRequest::getPriceUnit()const -{ - return priceUnit_; +void DescribeRenewalPriceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeRenewalPriceRequest::setPriceUnit(const std::string& priceUnit) -{ - priceUnit_ = priceUnit; - setParameter("PriceUnit", priceUnit); +std::string DescribeRenewalPriceRequest::getPriceUnit() const { + return priceUnit_; } -std::string DescribeRenewalPriceRequest::getResourceId()const -{ - return resourceId_; +void DescribeRenewalPriceRequest::setPriceUnit(const std::string &priceUnit) { + priceUnit_ = priceUnit; + setParameter(std::string("PriceUnit"), priceUnit); } -void DescribeRenewalPriceRequest::setResourceId(const std::string& resourceId) -{ - resourceId_ = resourceId; - setParameter("ResourceId", resourceId); +std::string DescribeRenewalPriceRequest::getResourceId() const { + return resourceId_; } -int DescribeRenewalPriceRequest::getPeriod()const -{ - return period_; +void DescribeRenewalPriceRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); } -void DescribeRenewalPriceRequest::setPeriod(int period) -{ - period_ = period; - setParameter("Period", std::to_string(period)); +int DescribeRenewalPriceRequest::getPeriod() const { + return period_; } -std::string DescribeRenewalPriceRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeRenewalPriceRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); } -void DescribeRenewalPriceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeRenewalPriceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeRenewalPriceRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeRenewalPriceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeRenewalPriceRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeRenewalPriceRequest::getOwnerAccount() const { + return ownerAccount_; } -int DescribeRenewalPriceRequest::getExpectedRenewDay()const -{ - return expectedRenewDay_; +void DescribeRenewalPriceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeRenewalPriceRequest::setExpectedRenewDay(int expectedRenewDay) -{ - expectedRenewDay_ = expectedRenewDay; - setParameter("ExpectedRenewDay", std::to_string(expectedRenewDay)); +int DescribeRenewalPriceRequest::getExpectedRenewDay() const { + return expectedRenewDay_; } -long DescribeRenewalPriceRequest::getOwnerId()const -{ - return ownerId_; +void DescribeRenewalPriceRequest::setExpectedRenewDay(int expectedRenewDay) { + expectedRenewDay_ = expectedRenewDay; + setParameter(std::string("ExpectedRenewDay"), std::to_string(expectedRenewDay)); } -void DescribeRenewalPriceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeRenewalPriceRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeRenewalPriceRequest::getResourceType()const -{ - return resourceType_; +void DescribeRenewalPriceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeRenewalPriceRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +std::string DescribeRenewalPriceRequest::getResourceType() const { + return resourceType_; +} + +void DescribeRenewalPriceRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); } diff --git a/ecs/src/model/DescribeRenewalPriceResult.cc b/ecs/src/model/DescribeRenewalPriceResult.cc index 86c980901..2bd63c14f 100644 --- a/ecs/src/model/DescribeRenewalPriceResult.cc +++ b/ecs/src/model/DescribeRenewalPriceResult.cc @@ -44,10 +44,10 @@ void DescribeRenewalPriceResult::parse(const std::string &payload) for (auto priceInfoNodeRulesRule : allRulesNode) { PriceInfo::Rule ruleObject; - if(!priceInfoNodeRulesRule["RuleId"].isNull()) - ruleObject.ruleId = std::stol(priceInfoNodeRulesRule["RuleId"].asString()); if(!priceInfoNodeRulesRule["Description"].isNull()) ruleObject.description = priceInfoNodeRulesRule["Description"].asString(); + if(!priceInfoNodeRulesRule["RuleId"].isNull()) + ruleObject.ruleId = std::stol(priceInfoNodeRulesRule["RuleId"].asString()); priceInfo_.rules.push_back(ruleObject); } auto priceNode = priceInfoNode["Price"]; @@ -55,10 +55,10 @@ void DescribeRenewalPriceResult::parse(const std::string &payload) priceInfo_.price.originalPrice = std::stof(priceNode["OriginalPrice"].asString()); if(!priceNode["DiscountPrice"].isNull()) priceInfo_.price.discountPrice = std::stof(priceNode["DiscountPrice"].asString()); - if(!priceNode["TradePrice"].isNull()) - priceInfo_.price.tradePrice = std::stof(priceNode["TradePrice"].asString()); if(!priceNode["Currency"].isNull()) priceInfo_.price.currency = priceNode["Currency"].asString(); + if(!priceNode["TradePrice"].isNull()) + priceInfo_.price.tradePrice = std::stof(priceNode["TradePrice"].asString()); auto allDetailInfosNode = priceNode["DetailInfos"]["ResourcePriceModel"]; for (auto priceNodeDetailInfosResourcePriceModel : allDetailInfosNode) { @@ -75,10 +75,10 @@ void DescribeRenewalPriceResult::parse(const std::string &payload) for (auto priceNodeDetailInfosResourcePriceModelSubRulesRule : allSubRulesNode) { PriceInfo::Price::ResourcePriceModel::Rule1 subRulesObject; - if(!priceNodeDetailInfosResourcePriceModelSubRulesRule["RuleId"].isNull()) - subRulesObject.ruleId = std::stol(priceNodeDetailInfosResourcePriceModelSubRulesRule["RuleId"].asString()); if(!priceNodeDetailInfosResourcePriceModelSubRulesRule["Description"].isNull()) subRulesObject.description = priceNodeDetailInfosResourcePriceModelSubRulesRule["Description"].asString(); + if(!priceNodeDetailInfosResourcePriceModelSubRulesRule["RuleId"].isNull()) + subRulesObject.ruleId = std::stol(priceNodeDetailInfosResourcePriceModelSubRulesRule["RuleId"].asString()); resourcePriceModelObject.subRules.push_back(subRulesObject); } priceInfo_.price.detailInfos.push_back(resourcePriceModelObject); diff --git a/ecs/src/model/DescribeReservedInstancesRequest.cc b/ecs/src/model/DescribeReservedInstancesRequest.cc index 31dbdc411..3b0dc9923 100644 --- a/ecs/src/model/DescribeReservedInstancesRequest.cc +++ b/ecs/src/model/DescribeReservedInstancesRequest.cc @@ -1,236 +1,192 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeReservedInstancesRequest; - -DescribeReservedInstancesRequest::DescribeReservedInstancesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeReservedInstances") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeReservedInstancesRequest::~DescribeReservedInstancesRequest() -{} - -long DescribeReservedInstancesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeReservedInstancesRequest; + +DescribeReservedInstancesRequest::DescribeReservedInstancesRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeReservedInstances") { + setMethod(HttpRequest::Method::Post); } -void DescribeReservedInstancesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeReservedInstancesRequest::~DescribeReservedInstancesRequest() {} + +long DescribeReservedInstancesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeReservedInstancesRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeReservedInstancesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeReservedInstancesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeReservedInstancesRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeReservedInstancesRequest::getLockReason()const -{ - return lockReason_; +void DescribeReservedInstancesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeReservedInstancesRequest::setLockReason(const std::string& lockReason) -{ - lockReason_ = lockReason; - setParameter("LockReason", lockReason); +std::string DescribeReservedInstancesRequest::getLockReason() const { + return lockReason_; } -std::string DescribeReservedInstancesRequest::getRegionId()const -{ - return regionId_; +void DescribeReservedInstancesRequest::setLockReason(const std::string &lockReason) { + lockReason_ = lockReason; + setParameter(std::string("LockReason"), lockReason); } -void DescribeReservedInstancesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeReservedInstancesRequest::getRegionId() const { + return regionId_; } -std::string DescribeReservedInstancesRequest::getScope()const -{ - return scope_; +void DescribeReservedInstancesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeReservedInstancesRequest::setScope(const std::string& scope) -{ - scope_ = scope; - setParameter("Scope", scope); +std::string DescribeReservedInstancesRequest::getScope() const { + return scope_; } -int DescribeReservedInstancesRequest::getPageSize()const -{ - return pageSize_; +void DescribeReservedInstancesRequest::setScope(const std::string &scope) { + scope_ = scope; + setParameter(std::string("Scope"), scope); } -void DescribeReservedInstancesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeReservedInstancesRequest::getPageSize() const { + return pageSize_; } -std::string DescribeReservedInstancesRequest::getInstanceType()const -{ - return instanceType_; +void DescribeReservedInstancesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeReservedInstancesRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +std::string DescribeReservedInstancesRequest::getInstanceType() const { + return instanceType_; } -std::vector DescribeReservedInstancesRequest::getTag()const -{ - return tag_; +void DescribeReservedInstancesRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } -void DescribeReservedInstancesRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Key", tagObj.key); - setParameter(tagObjStr + ".Value", tagObj.value); - } +std::vector DescribeReservedInstancesRequest::getTag() const { + return tag_; } -std::string DescribeReservedInstancesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeReservedInstancesRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } } -void DescribeReservedInstancesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeReservedInstancesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeReservedInstancesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeReservedInstancesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeReservedInstancesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeReservedInstancesRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeReservedInstancesRequest::getInstanceTypeFamily()const -{ - return instanceTypeFamily_; +void DescribeReservedInstancesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeReservedInstancesRequest::setInstanceTypeFamily(const std::string& instanceTypeFamily) -{ - instanceTypeFamily_ = instanceTypeFamily; - setParameter("InstanceTypeFamily", instanceTypeFamily); +std::string DescribeReservedInstancesRequest::getInstanceTypeFamily() const { + return instanceTypeFamily_; } -long DescribeReservedInstancesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeReservedInstancesRequest::setInstanceTypeFamily(const std::string &instanceTypeFamily) { + instanceTypeFamily_ = instanceTypeFamily; + setParameter(std::string("InstanceTypeFamily"), instanceTypeFamily); } -void DescribeReservedInstancesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeReservedInstancesRequest::getOwnerId() const { + return ownerId_; } -std::vector DescribeReservedInstancesRequest::getReservedInstanceId()const -{ - return reservedInstanceId_; +void DescribeReservedInstancesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeReservedInstancesRequest::setReservedInstanceId(const std::vector& reservedInstanceId) -{ - reservedInstanceId_ = reservedInstanceId; - for(int dep1 = 0; dep1!= reservedInstanceId.size(); dep1++) { - setParameter("ReservedInstanceId."+ std::to_string(dep1), reservedInstanceId.at(dep1)); - } +std::vector DescribeReservedInstancesRequest::getReservedInstanceId() const { + return reservedInstanceId_; } -std::string DescribeReservedInstancesRequest::getOfferingType()const -{ - return offeringType_; +void DescribeReservedInstancesRequest::setReservedInstanceId(const std::vector &reservedInstanceId) { + reservedInstanceId_ = reservedInstanceId; } -void DescribeReservedInstancesRequest::setOfferingType(const std::string& offeringType) -{ - offeringType_ = offeringType; - setParameter("OfferingType", offeringType); +std::string DescribeReservedInstancesRequest::getOfferingType() const { + return offeringType_; } -std::string DescribeReservedInstancesRequest::getZoneId()const -{ - return zoneId_; +void DescribeReservedInstancesRequest::setOfferingType(const std::string &offeringType) { + offeringType_ = offeringType; + setParameter(std::string("OfferingType"), offeringType); } -void DescribeReservedInstancesRequest::setZoneId(const std::string& zoneId) -{ - zoneId_ = zoneId; - setParameter("ZoneId", zoneId); +std::string DescribeReservedInstancesRequest::getZoneId() const { + return zoneId_; } -std::string DescribeReservedInstancesRequest::getReservedInstanceName()const -{ - return reservedInstanceName_; +void DescribeReservedInstancesRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); } -void DescribeReservedInstancesRequest::setReservedInstanceName(const std::string& reservedInstanceName) -{ - reservedInstanceName_ = reservedInstanceName; - setParameter("ReservedInstanceName", reservedInstanceName); +std::string DescribeReservedInstancesRequest::getReservedInstanceName() const { + return reservedInstanceName_; } -std::vector DescribeReservedInstancesRequest::getStatus()const -{ - return status_; +void DescribeReservedInstancesRequest::setReservedInstanceName(const std::string &reservedInstanceName) { + reservedInstanceName_ = reservedInstanceName; + setParameter(std::string("ReservedInstanceName"), reservedInstanceName); } -void DescribeReservedInstancesRequest::setStatus(const std::vector& status) -{ - status_ = status; - for(int dep1 = 0; dep1!= status.size(); dep1++) { - setParameter("Status."+ std::to_string(dep1), status.at(dep1)); - } +std::string DescribeReservedInstancesRequest::getAllocationType() const { + return allocationType_; } -std::string DescribeReservedInstancesRequest::getAllocationType()const -{ - return allocationType_; +void DescribeReservedInstancesRequest::setAllocationType(const std::string &allocationType) { + allocationType_ = allocationType; + setParameter(std::string("AllocationType"), allocationType); } -void DescribeReservedInstancesRequest::setAllocationType(const std::string& allocationType) -{ - allocationType_ = allocationType; - setParameter("AllocationType", allocationType); +std::vector DescribeReservedInstancesRequest::getStatus() const { + return status_; +} + +void DescribeReservedInstancesRequest::setStatus(const std::vector &status) { + status_ = status; } diff --git a/ecs/src/model/DescribeReservedInstancesResult.cc b/ecs/src/model/DescribeReservedInstancesResult.cc index c56460adb..55e28255c 100644 --- a/ecs/src/model/DescribeReservedInstancesResult.cc +++ b/ecs/src/model/DescribeReservedInstancesResult.cc @@ -43,38 +43,38 @@ void DescribeReservedInstancesResult::parse(const std::string &payload) for (auto valueReservedInstancesReservedInstance : allReservedInstancesNode) { ReservedInstance reservedInstancesObject; - if(!valueReservedInstancesReservedInstance["ReservedInstanceId"].isNull()) - reservedInstancesObject.reservedInstanceId = valueReservedInstancesReservedInstance["ReservedInstanceId"].asString(); - if(!valueReservedInstancesReservedInstance["RegionId"].isNull()) - reservedInstancesObject.regionId = valueReservedInstancesReservedInstance["RegionId"].asString(); - if(!valueReservedInstancesReservedInstance["ZoneId"].isNull()) - reservedInstancesObject.zoneId = valueReservedInstancesReservedInstance["ZoneId"].asString(); - if(!valueReservedInstancesReservedInstance["ReservedInstanceName"].isNull()) - reservedInstancesObject.reservedInstanceName = valueReservedInstancesReservedInstance["ReservedInstanceName"].asString(); - if(!valueReservedInstancesReservedInstance["Description"].isNull()) - reservedInstancesObject.description = valueReservedInstancesReservedInstance["Description"].asString(); - if(!valueReservedInstancesReservedInstance["InstanceType"].isNull()) - reservedInstancesObject.instanceType = valueReservedInstancesReservedInstance["InstanceType"].asString(); - if(!valueReservedInstancesReservedInstance["Scope"].isNull()) - reservedInstancesObject.scope = valueReservedInstancesReservedInstance["Scope"].asString(); - if(!valueReservedInstancesReservedInstance["OfferingType"].isNull()) - reservedInstancesObject.offeringType = valueReservedInstancesReservedInstance["OfferingType"].asString(); - if(!valueReservedInstancesReservedInstance["Platform"].isNull()) - reservedInstancesObject.platform = valueReservedInstancesReservedInstance["Platform"].asString(); - if(!valueReservedInstancesReservedInstance["InstanceAmount"].isNull()) - reservedInstancesObject.instanceAmount = std::stoi(valueReservedInstancesReservedInstance["InstanceAmount"].asString()); if(!valueReservedInstancesReservedInstance["Status"].isNull()) reservedInstancesObject.status = valueReservedInstancesReservedInstance["Status"].asString(); if(!valueReservedInstancesReservedInstance["CreationTime"].isNull()) reservedInstancesObject.creationTime = valueReservedInstancesReservedInstance["CreationTime"].asString(); - if(!valueReservedInstancesReservedInstance["ExpiredTime"].isNull()) - reservedInstancesObject.expiredTime = valueReservedInstancesReservedInstance["ExpiredTime"].asString(); + if(!valueReservedInstancesReservedInstance["ReservedInstanceName"].isNull()) + reservedInstancesObject.reservedInstanceName = valueReservedInstancesReservedInstance["ReservedInstanceName"].asString(); + if(!valueReservedInstancesReservedInstance["ReservedInstanceId"].isNull()) + reservedInstancesObject.reservedInstanceId = valueReservedInstancesReservedInstance["ReservedInstanceId"].asString(); + if(!valueReservedInstancesReservedInstance["InstanceType"].isNull()) + reservedInstancesObject.instanceType = valueReservedInstancesReservedInstance["InstanceType"].asString(); + if(!valueReservedInstancesReservedInstance["InstanceAmount"].isNull()) + reservedInstancesObject.instanceAmount = std::stoi(valueReservedInstancesReservedInstance["InstanceAmount"].asString()); + if(!valueReservedInstancesReservedInstance["RegionId"].isNull()) + reservedInstancesObject.regionId = valueReservedInstancesReservedInstance["RegionId"].asString(); + if(!valueReservedInstancesReservedInstance["OfferingType"].isNull()) + reservedInstancesObject.offeringType = valueReservedInstancesReservedInstance["OfferingType"].asString(); if(!valueReservedInstancesReservedInstance["StartTime"].isNull()) reservedInstancesObject.startTime = valueReservedInstancesReservedInstance["StartTime"].asString(); - if(!valueReservedInstancesReservedInstance["ResourceGroupId"].isNull()) - reservedInstancesObject.resourceGroupId = valueReservedInstancesReservedInstance["ResourceGroupId"].asString(); + if(!valueReservedInstancesReservedInstance["Description"].isNull()) + reservedInstancesObject.description = valueReservedInstancesReservedInstance["Description"].asString(); if(!valueReservedInstancesReservedInstance["AllocationStatus"].isNull()) reservedInstancesObject.allocationStatus = valueReservedInstancesReservedInstance["AllocationStatus"].asString(); + if(!valueReservedInstancesReservedInstance["ExpiredTime"].isNull()) + reservedInstancesObject.expiredTime = valueReservedInstancesReservedInstance["ExpiredTime"].asString(); + if(!valueReservedInstancesReservedInstance["ResourceGroupId"].isNull()) + reservedInstancesObject.resourceGroupId = valueReservedInstancesReservedInstance["ResourceGroupId"].asString(); + if(!valueReservedInstancesReservedInstance["ZoneId"].isNull()) + reservedInstancesObject.zoneId = valueReservedInstancesReservedInstance["ZoneId"].asString(); + if(!valueReservedInstancesReservedInstance["Platform"].isNull()) + reservedInstancesObject.platform = valueReservedInstancesReservedInstance["Platform"].asString(); + if(!valueReservedInstancesReservedInstance["Scope"].isNull()) + reservedInstancesObject.scope = valueReservedInstancesReservedInstance["Scope"].asString(); auto allOperationLocksNode = valueReservedInstancesReservedInstance["OperationLocks"]["OperationLock"]; for (auto valueReservedInstancesReservedInstanceOperationLocksOperationLock : allOperationLocksNode) { @@ -87,20 +87,20 @@ void DescribeReservedInstancesResult::parse(const std::string &payload) for (auto valueReservedInstancesReservedInstanceTagsTag : allTagsNode) { ReservedInstance::Tag tagsObject; - if(!valueReservedInstancesReservedInstanceTagsTag["TagKey"].isNull()) - tagsObject.tagKey = valueReservedInstancesReservedInstanceTagsTag["TagKey"].asString(); if(!valueReservedInstancesReservedInstanceTagsTag["TagValue"].isNull()) tagsObject.tagValue = valueReservedInstancesReservedInstanceTagsTag["TagValue"].asString(); + if(!valueReservedInstancesReservedInstanceTagsTag["TagKey"].isNull()) + tagsObject.tagKey = valueReservedInstancesReservedInstanceTagsTag["TagKey"].asString(); reservedInstancesObject.tags.push_back(tagsObject); } reservedInstances_.push_back(reservedInstancesObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/ecs/src/model/DescribeResourceByTagsRequest.cc b/ecs/src/model/DescribeResourceByTagsRequest.cc index 21d9ea2ad..8fb310f7e 100644 --- a/ecs/src/model/DescribeResourceByTagsRequest.cc +++ b/ecs/src/model/DescribeResourceByTagsRequest.cc @@ -1,122 +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::Ecs::Model::DescribeResourceByTagsRequest; - -DescribeResourceByTagsRequest::DescribeResourceByTagsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeResourceByTags") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeResourceByTagsRequest::~DescribeResourceByTagsRequest() -{} - -long DescribeResourceByTagsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeResourceByTagsRequest; + +DescribeResourceByTagsRequest::DescribeResourceByTagsRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeResourceByTags") { + setMethod(HttpRequest::Method::Post); } -void DescribeResourceByTagsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeResourceByTagsRequest::~DescribeResourceByTagsRequest() {} + +long DescribeResourceByTagsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeResourceByTagsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeResourceByTagsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeResourceByTagsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeResourceByTagsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeResourceByTagsRequest::getRegionId()const -{ - return regionId_; +void DescribeResourceByTagsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeResourceByTagsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeResourceByTagsRequest::getRegionId() const { + return regionId_; } -int DescribeResourceByTagsRequest::getPageSize()const -{ - return pageSize_; +void DescribeResourceByTagsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeResourceByTagsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeResourceByTagsRequest::getPageSize() const { + return pageSize_; } -std::vector DescribeResourceByTagsRequest::getTag()const -{ - return tag_; +void DescribeResourceByTagsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeResourceByTagsRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Value", tagObj.value); - setParameter(tagObjStr + ".Key", tagObj.key); - } +std::vector DescribeResourceByTagsRequest::getTag() const { + return tag_; } -std::string DescribeResourceByTagsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeResourceByTagsRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } -void DescribeResourceByTagsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeResourceByTagsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long DescribeResourceByTagsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeResourceByTagsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeResourceByTagsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeResourceByTagsRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeResourceByTagsRequest::getResourceType()const -{ - return resourceType_; +void DescribeResourceByTagsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeResourceByTagsRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +std::string DescribeResourceByTagsRequest::getResourceType() const { + return resourceType_; +} + +void DescribeResourceByTagsRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); } diff --git a/ecs/src/model/DescribeResourceByTagsResult.cc b/ecs/src/model/DescribeResourceByTagsResult.cc index 99dc5f574..32da5f211 100644 --- a/ecs/src/model/DescribeResourceByTagsResult.cc +++ b/ecs/src/model/DescribeResourceByTagsResult.cc @@ -43,10 +43,10 @@ void DescribeResourceByTagsResult::parse(const std::string &payload) for (auto valueResourcesResource : allResourcesNode) { Resource resourcesObject; - if(!valueResourcesResource["ResourceId"].isNull()) - resourcesObject.resourceId = valueResourcesResource["ResourceId"].asString(); if(!valueResourcesResource["ResourceType"].isNull()) resourcesObject.resourceType = valueResourcesResource["ResourceType"].asString(); + if(!valueResourcesResource["ResourceId"].isNull()) + resourcesObject.resourceId = valueResourcesResource["ResourceId"].asString(); if(!valueResourcesResource["RegionId"].isNull()) resourcesObject.regionId = valueResourcesResource["RegionId"].asString(); resources_.push_back(resourcesObject); diff --git a/ecs/src/model/DescribeResourcesModificationRequest.cc b/ecs/src/model/DescribeResourcesModificationRequest.cc index f733e3b63..8e94f005c 100644 --- a/ecs/src/model/DescribeResourcesModificationRequest.cc +++ b/ecs/src/model/DescribeResourcesModificationRequest.cc @@ -1,161 +1,135 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeResourcesModificationRequest; - -DescribeResourcesModificationRequest::DescribeResourcesModificationRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeResourcesModification") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeResourcesModificationRequest::~DescribeResourcesModificationRequest() -{} - -long DescribeResourcesModificationRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeResourcesModificationRequest; + +DescribeResourcesModificationRequest::DescribeResourcesModificationRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeResourcesModification") { + setMethod(HttpRequest::Method::Post); } -void DescribeResourcesModificationRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeResourcesModificationRequest::~DescribeResourcesModificationRequest() {} + +long DescribeResourcesModificationRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -float DescribeResourcesModificationRequest::getMemory()const -{ - return memory_; +void DescribeResourcesModificationRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeResourcesModificationRequest::setMemory(float memory) -{ - memory_ = memory; - setParameter("Memory", std::to_string(memory)); +float DescribeResourcesModificationRequest::getMemory() const { + return memory_; } -int DescribeResourcesModificationRequest::getCores()const -{ - return cores_; +void DescribeResourcesModificationRequest::setMemory(float memory) { + memory_ = memory; + setParameter(std::string("Memory"), std::to_string(memory)); } -void DescribeResourcesModificationRequest::setCores(int cores) -{ - cores_ = cores; - setParameter("Cores", std::to_string(cores)); +int DescribeResourcesModificationRequest::getCores() const { + return cores_; } -std::string DescribeResourcesModificationRequest::getRegionId()const -{ - return regionId_; +void DescribeResourcesModificationRequest::setCores(int cores) { + cores_ = cores; + setParameter(std::string("Cores"), std::to_string(cores)); } -void DescribeResourcesModificationRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeResourcesModificationRequest::getRegionId() const { + return regionId_; } -bool DescribeResourcesModificationRequest::getMigrateAcrossZone()const -{ - return migrateAcrossZone_; +void DescribeResourcesModificationRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeResourcesModificationRequest::setMigrateAcrossZone(bool migrateAcrossZone) -{ - migrateAcrossZone_ = migrateAcrossZone; - setParameter("MigrateAcrossZone", migrateAcrossZone ? "true" : "false"); +bool DescribeResourcesModificationRequest::getMigrateAcrossZone() const { + return migrateAcrossZone_; } -std::string DescribeResourcesModificationRequest::getInstanceType()const -{ - return instanceType_; +void DescribeResourcesModificationRequest::setMigrateAcrossZone(bool migrateAcrossZone) { + migrateAcrossZone_ = migrateAcrossZone; + setParameter(std::string("MigrateAcrossZone"), migrateAcrossZone ? "true" : "false"); } -void DescribeResourcesModificationRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +std::string DescribeResourcesModificationRequest::getInstanceType() const { + return instanceType_; } -std::string DescribeResourcesModificationRequest::getResourceId()const -{ - return resourceId_; +void DescribeResourcesModificationRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } -void DescribeResourcesModificationRequest::setResourceId(const std::string& resourceId) -{ - resourceId_ = resourceId; - setParameter("ResourceId", resourceId); +std::string DescribeResourcesModificationRequest::getResourceId() const { + return resourceId_; } -std::string DescribeResourcesModificationRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeResourcesModificationRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); } -void DescribeResourcesModificationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeResourcesModificationRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeResourcesModificationRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeResourcesModificationRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeResourcesModificationRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeResourcesModificationRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeResourcesModificationRequest::getOperationType()const -{ - return operationType_; +void DescribeResourcesModificationRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeResourcesModificationRequest::setOperationType(const std::string& operationType) -{ - operationType_ = operationType; - setParameter("OperationType", operationType); +std::string DescribeResourcesModificationRequest::getOperationType() const { + return operationType_; } -long DescribeResourcesModificationRequest::getOwnerId()const -{ - return ownerId_; +void DescribeResourcesModificationRequest::setOperationType(const std::string &operationType) { + operationType_ = operationType; + setParameter(std::string("OperationType"), operationType); } -void DescribeResourcesModificationRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeResourcesModificationRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeResourcesModificationRequest::getDestinationResource()const -{ - return destinationResource_; +void DescribeResourcesModificationRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeResourcesModificationRequest::setDestinationResource(const std::string& destinationResource) -{ - destinationResource_ = destinationResource; - setParameter("DestinationResource", destinationResource); +std::string DescribeResourcesModificationRequest::getDestinationResource() const { + return destinationResource_; +} + +void DescribeResourcesModificationRequest::setDestinationResource(const std::string &destinationResource) { + destinationResource_ = destinationResource; + setParameter(std::string("DestinationResource"), destinationResource); } diff --git a/ecs/src/model/DescribeResourcesModificationResult.cc b/ecs/src/model/DescribeResourcesModificationResult.cc index c799f87c3..39b16ac6e 100644 --- a/ecs/src/model/DescribeResourcesModificationResult.cc +++ b/ecs/src/model/DescribeResourcesModificationResult.cc @@ -43,14 +43,14 @@ void DescribeResourcesModificationResult::parse(const std::string &payload) for (auto valueAvailableZonesAvailableZone : allAvailableZonesNode) { AvailableZone availableZonesObject; - if(!valueAvailableZonesAvailableZone["RegionId"].isNull()) - availableZonesObject.regionId = valueAvailableZonesAvailableZone["RegionId"].asString(); if(!valueAvailableZonesAvailableZone["ZoneId"].isNull()) availableZonesObject.zoneId = valueAvailableZonesAvailableZone["ZoneId"].asString(); if(!valueAvailableZonesAvailableZone["Status"].isNull()) availableZonesObject.status = valueAvailableZonesAvailableZone["Status"].asString(); if(!valueAvailableZonesAvailableZone["StatusCategory"].isNull()) availableZonesObject.statusCategory = valueAvailableZonesAvailableZone["StatusCategory"].asString(); + if(!valueAvailableZonesAvailableZone["RegionId"].isNull()) + availableZonesObject.regionId = valueAvailableZonesAvailableZone["RegionId"].asString(); auto allAvailableResourcesNode = valueAvailableZonesAvailableZone["AvailableResources"]["AvailableResource"]; for (auto valueAvailableZonesAvailableZoneAvailableResourcesAvailableResource : allAvailableResourcesNode) { @@ -61,18 +61,18 @@ void DescribeResourcesModificationResult::parse(const std::string &payload) for (auto valueAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource : allSupportedResourcesNode) { AvailableZone::AvailableResource::SupportedResource supportedResourcesObject; - if(!valueAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource["Value"].isNull()) - supportedResourcesObject.value = valueAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource["Value"].asString(); if(!valueAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource["Status"].isNull()) supportedResourcesObject.status = valueAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource["Status"].asString(); - if(!valueAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource["StatusCategory"].isNull()) - supportedResourcesObject.statusCategory = valueAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource["StatusCategory"].asString(); - if(!valueAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource["Min"].isNull()) - supportedResourcesObject.min = std::stoi(valueAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource["Min"].asString()); + if(!valueAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource["Value"].isNull()) + supportedResourcesObject.value = valueAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource["Value"].asString(); if(!valueAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource["Max"].isNull()) supportedResourcesObject.max = std::stoi(valueAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource["Max"].asString()); if(!valueAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource["Unit"].isNull()) supportedResourcesObject.unit = valueAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource["Unit"].asString(); + if(!valueAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource["StatusCategory"].isNull()) + supportedResourcesObject.statusCategory = valueAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource["StatusCategory"].asString(); + if(!valueAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource["Min"].isNull()) + supportedResourcesObject.min = std::stoi(valueAvailableZonesAvailableZoneAvailableResourcesAvailableResourceSupportedResourcesSupportedResource["Min"].asString()); availableResourcesObject.supportedResources.push_back(supportedResourcesObject); } availableZonesObject.availableResources.push_back(availableResourcesObject); diff --git a/ecs/src/model/DescribeRouteTablesRequest.cc b/ecs/src/model/DescribeRouteTablesRequest.cc index ddba5a854..71b351a47 100644 --- a/ecs/src/model/DescribeRouteTablesRequest.cc +++ b/ecs/src/model/DescribeRouteTablesRequest.cc @@ -1,161 +1,135 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeRouteTablesRequest; - -DescribeRouteTablesRequest::DescribeRouteTablesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeRouteTables") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeRouteTablesRequest::~DescribeRouteTablesRequest() -{} - -long DescribeRouteTablesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeRouteTablesRequest; + +DescribeRouteTablesRequest::DescribeRouteTablesRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeRouteTables") { + setMethod(HttpRequest::Method::Post); } -void DescribeRouteTablesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeRouteTablesRequest::~DescribeRouteTablesRequest() {} + +long DescribeRouteTablesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeRouteTablesRequest::getVRouterId()const -{ - return vRouterId_; +void DescribeRouteTablesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeRouteTablesRequest::setVRouterId(const std::string& vRouterId) -{ - vRouterId_ = vRouterId; - setParameter("VRouterId", vRouterId); +std::string DescribeRouteTablesRequest::getVRouterId() const { + return vRouterId_; } -int DescribeRouteTablesRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeRouteTablesRequest::setVRouterId(const std::string &vRouterId) { + vRouterId_ = vRouterId; + setParameter(std::string("VRouterId"), vRouterId); } -void DescribeRouteTablesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeRouteTablesRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeRouteTablesRequest::getRouteTableName()const -{ - return routeTableName_; +void DescribeRouteTablesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeRouteTablesRequest::setRouteTableName(const std::string& routeTableName) -{ - routeTableName_ = routeTableName; - setParameter("RouteTableName", routeTableName); +std::string DescribeRouteTablesRequest::getRouteTableName() const { + return routeTableName_; } -std::string DescribeRouteTablesRequest::getRegionId()const -{ - return regionId_; +void DescribeRouteTablesRequest::setRouteTableName(const std::string &routeTableName) { + routeTableName_ = routeTableName; + setParameter(std::string("RouteTableName"), routeTableName); } -void DescribeRouteTablesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeRouteTablesRequest::getRegionId() const { + return regionId_; } -int DescribeRouteTablesRequest::getPageSize()const -{ - return pageSize_; +void DescribeRouteTablesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeRouteTablesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeRouteTablesRequest::getPageSize() const { + return pageSize_; } -std::string DescribeRouteTablesRequest::getRouteTableId()const -{ - return routeTableId_; +void DescribeRouteTablesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeRouteTablesRequest::setRouteTableId(const std::string& routeTableId) -{ - routeTableId_ = routeTableId; - setParameter("RouteTableId", routeTableId); +std::string DescribeRouteTablesRequest::getRouteTableId() const { + return routeTableId_; } -std::string DescribeRouteTablesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeRouteTablesRequest::setRouteTableId(const std::string &routeTableId) { + routeTableId_ = routeTableId; + setParameter(std::string("RouteTableId"), routeTableId); } -void DescribeRouteTablesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeRouteTablesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeRouteTablesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeRouteTablesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeRouteTablesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeRouteTablesRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeRouteTablesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeRouteTablesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeRouteTablesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeRouteTablesRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeRouteTablesRequest::getRouterType()const -{ - return routerType_; +void DescribeRouteTablesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeRouteTablesRequest::setRouterType(const std::string& routerType) -{ - routerType_ = routerType; - setParameter("RouterType", routerType); +std::string DescribeRouteTablesRequest::getRouterType() const { + return routerType_; } -std::string DescribeRouteTablesRequest::getRouterId()const -{ - return routerId_; +void DescribeRouteTablesRequest::setRouterType(const std::string &routerType) { + routerType_ = routerType; + setParameter(std::string("RouterType"), routerType); } -void DescribeRouteTablesRequest::setRouterId(const std::string& routerId) -{ - routerId_ = routerId; - setParameter("RouterId", routerId); +std::string DescribeRouteTablesRequest::getRouterId() const { + return routerId_; +} + +void DescribeRouteTablesRequest::setRouterId(const std::string &routerId) { + routerId_ = routerId; + setParameter(std::string("RouterId"), routerId); } diff --git a/ecs/src/model/DescribeRouteTablesResult.cc b/ecs/src/model/DescribeRouteTablesResult.cc index ed9664652..b11c58563 100644 --- a/ecs/src/model/DescribeRouteTablesResult.cc +++ b/ecs/src/model/DescribeRouteTablesResult.cc @@ -43,56 +43,56 @@ void DescribeRouteTablesResult::parse(const std::string &payload) for (auto valueRouteTablesRouteTable : allRouteTablesNode) { RouteTable routeTablesObject; + if(!valueRouteTablesRouteTable["CreationTime"].isNull()) + routeTablesObject.creationTime = valueRouteTablesRouteTable["CreationTime"].asString(); if(!valueRouteTablesRouteTable["VRouterId"].isNull()) routeTablesObject.vRouterId = valueRouteTablesRouteTable["VRouterId"].asString(); if(!valueRouteTablesRouteTable["RouteTableId"].isNull()) routeTablesObject.routeTableId = valueRouteTablesRouteTable["RouteTableId"].asString(); - if(!valueRouteTablesRouteTable["RouteTableType"].isNull()) - routeTablesObject.routeTableType = valueRouteTablesRouteTable["RouteTableType"].asString(); - if(!valueRouteTablesRouteTable["CreationTime"].isNull()) - routeTablesObject.creationTime = valueRouteTablesRouteTable["CreationTime"].asString(); if(!valueRouteTablesRouteTable["ResourceGroupId"].isNull()) routeTablesObject.resourceGroupId = valueRouteTablesRouteTable["ResourceGroupId"].asString(); + if(!valueRouteTablesRouteTable["RouteTableType"].isNull()) + routeTablesObject.routeTableType = valueRouteTablesRouteTable["RouteTableType"].asString(); auto allRouteEntrysNode = valueRouteTablesRouteTable["RouteEntrys"]["RouteEntry"]; for (auto valueRouteTablesRouteTableRouteEntrysRouteEntry : allRouteEntrysNode) { RouteTable::RouteEntry routeEntrysObject; - if(!valueRouteTablesRouteTableRouteEntrysRouteEntry["RouteTableId"].isNull()) - routeEntrysObject.routeTableId = valueRouteTablesRouteTableRouteEntrysRouteEntry["RouteTableId"].asString(); - if(!valueRouteTablesRouteTableRouteEntrysRouteEntry["DestinationCidrBlock"].isNull()) - routeEntrysObject.destinationCidrBlock = valueRouteTablesRouteTableRouteEntrysRouteEntry["DestinationCidrBlock"].asString(); if(!valueRouteTablesRouteTableRouteEntrysRouteEntry["Type"].isNull()) routeEntrysObject.type = valueRouteTablesRouteTableRouteEntrysRouteEntry["Type"].asString(); if(!valueRouteTablesRouteTableRouteEntrysRouteEntry["Status"].isNull()) routeEntrysObject.status = valueRouteTablesRouteTableRouteEntrysRouteEntry["Status"].asString(); - if(!valueRouteTablesRouteTableRouteEntrysRouteEntry["InstanceId"].isNull()) - routeEntrysObject.instanceId = valueRouteTablesRouteTableRouteEntrysRouteEntry["InstanceId"].asString(); if(!valueRouteTablesRouteTableRouteEntrysRouteEntry["NextHopType"].isNull()) routeEntrysObject.nextHopType = valueRouteTablesRouteTableRouteEntrysRouteEntry["NextHopType"].asString(); + if(!valueRouteTablesRouteTableRouteEntrysRouteEntry["DestinationCidrBlock"].isNull()) + routeEntrysObject.destinationCidrBlock = valueRouteTablesRouteTableRouteEntrysRouteEntry["DestinationCidrBlock"].asString(); + if(!valueRouteTablesRouteTableRouteEntrysRouteEntry["InstanceId"].isNull()) + routeEntrysObject.instanceId = valueRouteTablesRouteTableRouteEntrysRouteEntry["InstanceId"].asString(); + if(!valueRouteTablesRouteTableRouteEntrysRouteEntry["RouteTableId"].isNull()) + routeEntrysObject.routeTableId = valueRouteTablesRouteTableRouteEntrysRouteEntry["RouteTableId"].asString(); auto allNextHopsNode = valueRouteTablesRouteTableRouteEntrysRouteEntry["NextHops"]["NextHop"]; for (auto valueRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop : allNextHopsNode) { RouteTable::RouteEntry::NextHop nextHopsObject; - if(!valueRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop["NextHopType"].isNull()) - nextHopsObject.nextHopType = valueRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop["NextHopType"].asString(); - if(!valueRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop["NextHopId"].isNull()) - nextHopsObject.nextHopId = valueRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop["NextHopId"].asString(); - if(!valueRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop["Enabled"].isNull()) - nextHopsObject.enabled = std::stoi(valueRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop["Enabled"].asString()); if(!valueRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop["Weight"].isNull()) nextHopsObject.weight = std::stoi(valueRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop["Weight"].asString()); + if(!valueRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop["NextHopId"].isNull()) + nextHopsObject.nextHopId = valueRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop["NextHopId"].asString(); + if(!valueRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop["NextHopType"].isNull()) + nextHopsObject.nextHopType = valueRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop["NextHopType"].asString(); + if(!valueRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop["Enabled"].isNull()) + nextHopsObject.enabled = std::stoi(valueRouteTablesRouteTableRouteEntrysRouteEntryNextHopsNextHop["Enabled"].asString()); routeEntrysObject.nextHops.push_back(nextHopsObject); } routeTablesObject.routeEntrys.push_back(routeEntrysObject); } routeTables_.push_back(routeTablesObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/ecs/src/model/DescribeRouterInterfacesRequest.cc b/ecs/src/model/DescribeRouterInterfacesRequest.cc index 793ba805f..6baa32a5c 100644 --- a/ecs/src/model/DescribeRouterInterfacesRequest.cc +++ b/ecs/src/model/DescribeRouterInterfacesRequest.cc @@ -1,113 +1,94 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeRouterInterfacesRequest; - -DescribeRouterInterfacesRequest::DescribeRouterInterfacesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeRouterInterfaces") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeRouterInterfacesRequest::~DescribeRouterInterfacesRequest() -{} - -long DescribeRouterInterfacesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeRouterInterfacesRequest; + +DescribeRouterInterfacesRequest::DescribeRouterInterfacesRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeRouterInterfaces") { + setMethod(HttpRequest::Method::Post); } -void DescribeRouterInterfacesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeRouterInterfacesRequest::~DescribeRouterInterfacesRequest() {} + +long DescribeRouterInterfacesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeRouterInterfacesRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeRouterInterfacesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeRouterInterfacesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeRouterInterfacesRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeRouterInterfacesRequest::getRegionId()const -{ - return regionId_; +void DescribeRouterInterfacesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeRouterInterfacesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeRouterInterfacesRequest::getRegionId() const { + return regionId_; } -int DescribeRouterInterfacesRequest::getPageSize()const -{ - return pageSize_; +void DescribeRouterInterfacesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeRouterInterfacesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeRouterInterfacesRequest::getPageSize() const { + return pageSize_; } -std::string DescribeRouterInterfacesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeRouterInterfacesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeRouterInterfacesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeRouterInterfacesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long DescribeRouterInterfacesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeRouterInterfacesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeRouterInterfacesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeRouterInterfacesRequest::getOwnerId() const { + return ownerId_; } -std::vector DescribeRouterInterfacesRequest::getFilter()const -{ - return filter_; +void DescribeRouterInterfacesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeRouterInterfacesRequest::setFilter(const std::vector& filter) -{ - filter_ = filter; - for(int dep1 = 0; dep1!= filter.size(); dep1++) { - auto filterObj = filter.at(dep1); - std::string filterObjStr = "Filter." + std::to_string(dep1 + 1); - for(int dep2 = 0; dep2!= filterObj.value.size(); dep2++) { - setParameter(filterObjStr + ".Value."+ std::to_string(dep2), filterObj.value.at(dep2)); - } - setParameter(filterObjStr + ".Key", filterObj.key); - } +std::vector DescribeRouterInterfacesRequest::getFilter() const { + return filter_; +} + +void DescribeRouterInterfacesRequest::setFilter(const std::vector &filter) { + filter_ = filter; + for(int dep1 = 0; dep1 != filter.size(); dep1++) { + auto filterObj = filter.at(dep1); + std::string filterObjStr = std::string("Filter") + "." + std::to_string(dep1 + 1); + setParameter(filterObjStr + ".Key", filterObj.key); + } } diff --git a/ecs/src/model/DescribeRouterInterfacesResult.cc b/ecs/src/model/DescribeRouterInterfacesResult.cc index 37beb8c17..6a3f2b06d 100644 --- a/ecs/src/model/DescribeRouterInterfacesResult.cc +++ b/ecs/src/model/DescribeRouterInterfacesResult.cc @@ -43,56 +43,56 @@ void DescribeRouterInterfacesResult::parse(const std::string &payload) for (auto valueRouterInterfaceSetRouterInterfaceType : allRouterInterfaceSetNode) { RouterInterfaceType routerInterfaceSetObject; - if(!valueRouterInterfaceSetRouterInterfaceType["RouterInterfaceId"].isNull()) - routerInterfaceSetObject.routerInterfaceId = valueRouterInterfaceSetRouterInterfaceType["RouterInterfaceId"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["OppositeRegionId"].isNull()) - routerInterfaceSetObject.oppositeRegionId = valueRouterInterfaceSetRouterInterfaceType["OppositeRegionId"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["Role"].isNull()) - routerInterfaceSetObject.role = valueRouterInterfaceSetRouterInterfaceType["Role"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["Spec"].isNull()) - routerInterfaceSetObject.spec = valueRouterInterfaceSetRouterInterfaceType["Spec"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["Name"].isNull()) - routerInterfaceSetObject.name = valueRouterInterfaceSetRouterInterfaceType["Name"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["Description"].isNull()) - routerInterfaceSetObject.description = valueRouterInterfaceSetRouterInterfaceType["Description"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["RouterId"].isNull()) - routerInterfaceSetObject.routerId = valueRouterInterfaceSetRouterInterfaceType["RouterId"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["RouterType"].isNull()) - routerInterfaceSetObject.routerType = valueRouterInterfaceSetRouterInterfaceType["RouterType"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["HealthCheckTargetIp"].isNull()) + routerInterfaceSetObject.healthCheckTargetIp = valueRouterInterfaceSetRouterInterfaceType["HealthCheckTargetIp"].asString(); if(!valueRouterInterfaceSetRouterInterfaceType["CreationTime"].isNull()) routerInterfaceSetObject.creationTime = valueRouterInterfaceSetRouterInterfaceType["CreationTime"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["EndTime"].isNull()) - routerInterfaceSetObject.endTime = valueRouterInterfaceSetRouterInterfaceType["EndTime"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["ChargeType"].isNull()) - routerInterfaceSetObject.chargeType = valueRouterInterfaceSetRouterInterfaceType["ChargeType"].asString(); if(!valueRouterInterfaceSetRouterInterfaceType["Status"].isNull()) routerInterfaceSetObject.status = valueRouterInterfaceSetRouterInterfaceType["Status"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["BusinessStatus"].isNull()) - routerInterfaceSetObject.businessStatus = valueRouterInterfaceSetRouterInterfaceType["BusinessStatus"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["ConnectedTime"].isNull()) - routerInterfaceSetObject.connectedTime = valueRouterInterfaceSetRouterInterfaceType["ConnectedTime"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["Spec"].isNull()) + routerInterfaceSetObject.spec = valueRouterInterfaceSetRouterInterfaceType["Spec"].asString(); if(!valueRouterInterfaceSetRouterInterfaceType["OppositeInterfaceId"].isNull()) routerInterfaceSetObject.oppositeInterfaceId = valueRouterInterfaceSetRouterInterfaceType["OppositeInterfaceId"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["OppositeInterfaceSpec"].isNull()) - routerInterfaceSetObject.oppositeInterfaceSpec = valueRouterInterfaceSetRouterInterfaceType["OppositeInterfaceSpec"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["OppositeInterfaceStatus"].isNull()) - routerInterfaceSetObject.oppositeInterfaceStatus = valueRouterInterfaceSetRouterInterfaceType["OppositeInterfaceStatus"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["OppositeInterfaceBusinessStatus"].isNull()) - routerInterfaceSetObject.oppositeInterfaceBusinessStatus = valueRouterInterfaceSetRouterInterfaceType["OppositeInterfaceBusinessStatus"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["OppositeRouterId"].isNull()) - routerInterfaceSetObject.oppositeRouterId = valueRouterInterfaceSetRouterInterfaceType["OppositeRouterId"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["RouterInterfaceId"].isNull()) + routerInterfaceSetObject.routerInterfaceId = valueRouterInterfaceSetRouterInterfaceType["RouterInterfaceId"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["ChargeType"].isNull()) + routerInterfaceSetObject.chargeType = valueRouterInterfaceSetRouterInterfaceType["ChargeType"].asString(); if(!valueRouterInterfaceSetRouterInterfaceType["OppositeRouterType"].isNull()) routerInterfaceSetObject.oppositeRouterType = valueRouterInterfaceSetRouterInterfaceType["OppositeRouterType"].asString(); if(!valueRouterInterfaceSetRouterInterfaceType["OppositeInterfaceOwnerId"].isNull()) routerInterfaceSetObject.oppositeInterfaceOwnerId = valueRouterInterfaceSetRouterInterfaceType["OppositeInterfaceOwnerId"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["AccessPointId"].isNull()) - routerInterfaceSetObject.accessPointId = valueRouterInterfaceSetRouterInterfaceType["AccessPointId"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["OppositeAccessPointId"].isNull()) - routerInterfaceSetObject.oppositeAccessPointId = valueRouterInterfaceSetRouterInterfaceType["OppositeAccessPointId"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["Description"].isNull()) + routerInterfaceSetObject.description = valueRouterInterfaceSetRouterInterfaceType["Description"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["Name"].isNull()) + routerInterfaceSetObject.name = valueRouterInterfaceSetRouterInterfaceType["Name"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["OppositeRouterId"].isNull()) + routerInterfaceSetObject.oppositeRouterId = valueRouterInterfaceSetRouterInterfaceType["OppositeRouterId"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["OppositeInterfaceSpec"].isNull()) + routerInterfaceSetObject.oppositeInterfaceSpec = valueRouterInterfaceSetRouterInterfaceType["OppositeInterfaceSpec"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["RouterId"].isNull()) + routerInterfaceSetObject.routerId = valueRouterInterfaceSetRouterInterfaceType["RouterId"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["OppositeInterfaceBusinessStatus"].isNull()) + routerInterfaceSetObject.oppositeInterfaceBusinessStatus = valueRouterInterfaceSetRouterInterfaceType["OppositeInterfaceBusinessStatus"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["ConnectedTime"].isNull()) + routerInterfaceSetObject.connectedTime = valueRouterInterfaceSetRouterInterfaceType["ConnectedTime"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["OppositeInterfaceStatus"].isNull()) + routerInterfaceSetObject.oppositeInterfaceStatus = valueRouterInterfaceSetRouterInterfaceType["OppositeInterfaceStatus"].asString(); if(!valueRouterInterfaceSetRouterInterfaceType["HealthCheckSourceIp"].isNull()) routerInterfaceSetObject.healthCheckSourceIp = valueRouterInterfaceSetRouterInterfaceType["HealthCheckSourceIp"].asString(); - if(!valueRouterInterfaceSetRouterInterfaceType["HealthCheckTargetIp"].isNull()) - routerInterfaceSetObject.healthCheckTargetIp = valueRouterInterfaceSetRouterInterfaceType["HealthCheckTargetIp"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["EndTime"].isNull()) + routerInterfaceSetObject.endTime = valueRouterInterfaceSetRouterInterfaceType["EndTime"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["OppositeRegionId"].isNull()) + routerInterfaceSetObject.oppositeRegionId = valueRouterInterfaceSetRouterInterfaceType["OppositeRegionId"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["OppositeAccessPointId"].isNull()) + routerInterfaceSetObject.oppositeAccessPointId = valueRouterInterfaceSetRouterInterfaceType["OppositeAccessPointId"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["BusinessStatus"].isNull()) + routerInterfaceSetObject.businessStatus = valueRouterInterfaceSetRouterInterfaceType["BusinessStatus"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["Role"].isNull()) + routerInterfaceSetObject.role = valueRouterInterfaceSetRouterInterfaceType["Role"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["RouterType"].isNull()) + routerInterfaceSetObject.routerType = valueRouterInterfaceSetRouterInterfaceType["RouterType"].asString(); + if(!valueRouterInterfaceSetRouterInterfaceType["AccessPointId"].isNull()) + routerInterfaceSetObject.accessPointId = valueRouterInterfaceSetRouterInterfaceType["AccessPointId"].asString(); routerInterfaceSet_.push_back(routerInterfaceSetObject); } if(!value["PageNumber"].isNull()) diff --git a/ecs/src/model/DescribeSecurityGroupAttributeRequest.cc b/ecs/src/model/DescribeSecurityGroupAttributeRequest.cc index 65da8199e..977fa59f5 100644 --- a/ecs/src/model/DescribeSecurityGroupAttributeRequest.cc +++ b/ecs/src/model/DescribeSecurityGroupAttributeRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeSecurityGroupAttributeRequest; - -DescribeSecurityGroupAttributeRequest::DescribeSecurityGroupAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeSecurityGroupAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSecurityGroupAttributeRequest::~DescribeSecurityGroupAttributeRequest() -{} - -std::string DescribeSecurityGroupAttributeRequest::getNicType()const -{ - return nicType_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeSecurityGroupAttributeRequest; + +DescribeSecurityGroupAttributeRequest::DescribeSecurityGroupAttributeRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeSecurityGroupAttribute") { + setMethod(HttpRequest::Method::Post); } -void DescribeSecurityGroupAttributeRequest::setNicType(const std::string& nicType) -{ - nicType_ = nicType; - setParameter("NicType", nicType); +DescribeSecurityGroupAttributeRequest::~DescribeSecurityGroupAttributeRequest() {} + +std::string DescribeSecurityGroupAttributeRequest::getNicType() const { + return nicType_; } -long DescribeSecurityGroupAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void DescribeSecurityGroupAttributeRequest::setNicType(const std::string &nicType) { + nicType_ = nicType; + setParameter(std::string("NicType"), nicType); } -void DescribeSecurityGroupAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long DescribeSecurityGroupAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeSecurityGroupAttributeRequest::getSecurityGroupId()const -{ - return securityGroupId_; +void DescribeSecurityGroupAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSecurityGroupAttributeRequest::setSecurityGroupId(const std::string& securityGroupId) -{ - securityGroupId_ = securityGroupId; - setParameter("SecurityGroupId", securityGroupId); +std::string DescribeSecurityGroupAttributeRequest::getSecurityGroupId() const { + return securityGroupId_; } -std::string DescribeSecurityGroupAttributeRequest::getRegionId()const -{ - return regionId_; +void DescribeSecurityGroupAttributeRequest::setSecurityGroupId(const std::string &securityGroupId) { + securityGroupId_ = securityGroupId; + setParameter(std::string("SecurityGroupId"), securityGroupId); } -void DescribeSecurityGroupAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeSecurityGroupAttributeRequest::getRegionId() const { + return regionId_; } -std::string DescribeSecurityGroupAttributeRequest::getDirection()const -{ - return direction_; +void DescribeSecurityGroupAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeSecurityGroupAttributeRequest::setDirection(const std::string& direction) -{ - direction_ = direction; - setParameter("Direction", direction); +std::string DescribeSecurityGroupAttributeRequest::getDirection() const { + return direction_; } -std::string DescribeSecurityGroupAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSecurityGroupAttributeRequest::setDirection(const std::string &direction) { + direction_ = direction; + setParameter(std::string("Direction"), direction); } -void DescribeSecurityGroupAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSecurityGroupAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSecurityGroupAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSecurityGroupAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSecurityGroupAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSecurityGroupAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeSecurityGroupAttributeRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSecurityGroupAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSecurityGroupAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSecurityGroupAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeSecurityGroupAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/DescribeSecurityGroupAttributeResult.cc b/ecs/src/model/DescribeSecurityGroupAttributeResult.cc index 073b82bc1..cbe73101f 100644 --- a/ecs/src/model/DescribeSecurityGroupAttributeResult.cc +++ b/ecs/src/model/DescribeSecurityGroupAttributeResult.cc @@ -43,66 +43,66 @@ void DescribeSecurityGroupAttributeResult::parse(const std::string &payload) for (auto valuePermissionsPermission : allPermissionsNode) { Permission permissionsObject; - if(!valuePermissionsPermission["IpProtocol"].isNull()) - permissionsObject.ipProtocol = valuePermissionsPermission["IpProtocol"].asString(); - if(!valuePermissionsPermission["PortRange"].isNull()) - permissionsObject.portRange = valuePermissionsPermission["PortRange"].asString(); - if(!valuePermissionsPermission["SourcePortRange"].isNull()) - permissionsObject.sourcePortRange = valuePermissionsPermission["SourcePortRange"].asString(); + if(!valuePermissionsPermission["Direction"].isNull()) + permissionsObject.direction = valuePermissionsPermission["Direction"].asString(); if(!valuePermissionsPermission["SourceGroupId"].isNull()) permissionsObject.sourceGroupId = valuePermissionsPermission["SourceGroupId"].asString(); - if(!valuePermissionsPermission["SourceGroupName"].isNull()) - permissionsObject.sourceGroupName = valuePermissionsPermission["SourceGroupName"].asString(); - if(!valuePermissionsPermission["SourceCidrIp"].isNull()) - permissionsObject.sourceCidrIp = valuePermissionsPermission["SourceCidrIp"].asString(); - if(!valuePermissionsPermission["Ipv6SourceCidrIp"].isNull()) - permissionsObject.ipv6SourceCidrIp = valuePermissionsPermission["Ipv6SourceCidrIp"].asString(); - if(!valuePermissionsPermission["SourcePrefixListId"].isNull()) - permissionsObject.sourcePrefixListId = valuePermissionsPermission["SourcePrefixListId"].asString(); - if(!valuePermissionsPermission["SourcePrefixListName"].isNull()) - permissionsObject.sourcePrefixListName = valuePermissionsPermission["SourcePrefixListName"].asString(); - if(!valuePermissionsPermission["Policy"].isNull()) - permissionsObject.policy = valuePermissionsPermission["Policy"].asString(); - if(!valuePermissionsPermission["NicType"].isNull()) - permissionsObject.nicType = valuePermissionsPermission["NicType"].asString(); - if(!valuePermissionsPermission["SourceGroupOwnerAccount"].isNull()) - permissionsObject.sourceGroupOwnerAccount = valuePermissionsPermission["SourceGroupOwnerAccount"].asString(); - if(!valuePermissionsPermission["DestGroupId"].isNull()) - permissionsObject.destGroupId = valuePermissionsPermission["DestGroupId"].asString(); - if(!valuePermissionsPermission["DestGroupName"].isNull()) - permissionsObject.destGroupName = valuePermissionsPermission["DestGroupName"].asString(); - if(!valuePermissionsPermission["DestCidrIp"].isNull()) - permissionsObject.destCidrIp = valuePermissionsPermission["DestCidrIp"].asString(); - if(!valuePermissionsPermission["Ipv6DestCidrIp"].isNull()) - permissionsObject.ipv6DestCidrIp = valuePermissionsPermission["Ipv6DestCidrIp"].asString(); + if(!valuePermissionsPermission["DestGroupOwnerAccount"].isNull()) + permissionsObject.destGroupOwnerAccount = valuePermissionsPermission["DestGroupOwnerAccount"].asString(); if(!valuePermissionsPermission["DestPrefixListId"].isNull()) permissionsObject.destPrefixListId = valuePermissionsPermission["DestPrefixListId"].asString(); if(!valuePermissionsPermission["DestPrefixListName"].isNull()) permissionsObject.destPrefixListName = valuePermissionsPermission["DestPrefixListName"].asString(); - if(!valuePermissionsPermission["DestGroupOwnerAccount"].isNull()) - permissionsObject.destGroupOwnerAccount = valuePermissionsPermission["DestGroupOwnerAccount"].asString(); - if(!valuePermissionsPermission["Priority"].isNull()) - permissionsObject.priority = valuePermissionsPermission["Priority"].asString(); - if(!valuePermissionsPermission["Direction"].isNull()) - permissionsObject.direction = valuePermissionsPermission["Direction"].asString(); - if(!valuePermissionsPermission["Description"].isNull()) - permissionsObject.description = valuePermissionsPermission["Description"].asString(); + if(!valuePermissionsPermission["SourceCidrIp"].isNull()) + permissionsObject.sourceCidrIp = valuePermissionsPermission["SourceCidrIp"].asString(); + if(!valuePermissionsPermission["Ipv6DestCidrIp"].isNull()) + permissionsObject.ipv6DestCidrIp = valuePermissionsPermission["Ipv6DestCidrIp"].asString(); if(!valuePermissionsPermission["CreateTime"].isNull()) permissionsObject.createTime = valuePermissionsPermission["CreateTime"].asString(); + if(!valuePermissionsPermission["Ipv6SourceCidrIp"].isNull()) + permissionsObject.ipv6SourceCidrIp = valuePermissionsPermission["Ipv6SourceCidrIp"].asString(); + if(!valuePermissionsPermission["DestGroupId"].isNull()) + permissionsObject.destGroupId = valuePermissionsPermission["DestGroupId"].asString(); + if(!valuePermissionsPermission["DestCidrIp"].isNull()) + permissionsObject.destCidrIp = valuePermissionsPermission["DestCidrIp"].asString(); + if(!valuePermissionsPermission["IpProtocol"].isNull()) + permissionsObject.ipProtocol = valuePermissionsPermission["IpProtocol"].asString(); + if(!valuePermissionsPermission["Priority"].isNull()) + permissionsObject.priority = valuePermissionsPermission["Priority"].asString(); + if(!valuePermissionsPermission["DestGroupName"].isNull()) + permissionsObject.destGroupName = valuePermissionsPermission["DestGroupName"].asString(); + if(!valuePermissionsPermission["NicType"].isNull()) + permissionsObject.nicType = valuePermissionsPermission["NicType"].asString(); + if(!valuePermissionsPermission["Policy"].isNull()) + permissionsObject.policy = valuePermissionsPermission["Policy"].asString(); + if(!valuePermissionsPermission["Description"].isNull()) + permissionsObject.description = valuePermissionsPermission["Description"].asString(); + if(!valuePermissionsPermission["PortRange"].isNull()) + permissionsObject.portRange = valuePermissionsPermission["PortRange"].asString(); + if(!valuePermissionsPermission["SourcePrefixListName"].isNull()) + permissionsObject.sourcePrefixListName = valuePermissionsPermission["SourcePrefixListName"].asString(); + if(!valuePermissionsPermission["SourcePrefixListId"].isNull()) + permissionsObject.sourcePrefixListId = valuePermissionsPermission["SourcePrefixListId"].asString(); + if(!valuePermissionsPermission["SourceGroupOwnerAccount"].isNull()) + permissionsObject.sourceGroupOwnerAccount = valuePermissionsPermission["SourceGroupOwnerAccount"].asString(); + if(!valuePermissionsPermission["SourceGroupName"].isNull()) + permissionsObject.sourceGroupName = valuePermissionsPermission["SourceGroupName"].asString(); + if(!valuePermissionsPermission["SourcePortRange"].isNull()) + permissionsObject.sourcePortRange = valuePermissionsPermission["SourcePortRange"].asString(); permissions_.push_back(permissionsObject); } - if(!value["RegionId"].isNull()) - regionId_ = value["RegionId"].asString(); - if(!value["SecurityGroupId"].isNull()) - securityGroupId_ = value["SecurityGroupId"].asString(); - if(!value["Description"].isNull()) - description_ = value["Description"].asString(); - if(!value["SecurityGroupName"].isNull()) - securityGroupName_ = value["SecurityGroupName"].asString(); if(!value["VpcId"].isNull()) vpcId_ = value["VpcId"].asString(); if(!value["InnerAccessPolicy"].isNull()) innerAccessPolicy_ = value["InnerAccessPolicy"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["SecurityGroupId"].isNull()) + securityGroupId_ = value["SecurityGroupId"].asString(); + if(!value["SecurityGroupName"].isNull()) + securityGroupName_ = value["SecurityGroupName"].asString(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); } @@ -111,16 +111,16 @@ std::string DescribeSecurityGroupAttributeResult::getDescription()const return description_; } -std::string DescribeSecurityGroupAttributeResult::getSecurityGroupName()const -{ - return securityGroupName_; -} - std::string DescribeSecurityGroupAttributeResult::getVpcId()const { return vpcId_; } +std::string DescribeSecurityGroupAttributeResult::getSecurityGroupName()const +{ + return securityGroupName_; +} + std::string DescribeSecurityGroupAttributeResult::getSecurityGroupId()const { return securityGroupId_; @@ -131,13 +131,13 @@ std::vector DescribeSecurityGr return permissions_; } -std::string DescribeSecurityGroupAttributeResult::getRegionId()const -{ - return regionId_; -} - std::string DescribeSecurityGroupAttributeResult::getInnerAccessPolicy()const { return innerAccessPolicy_; } +std::string DescribeSecurityGroupAttributeResult::getRegionId()const +{ + return regionId_; +} + diff --git a/ecs/src/model/DescribeSecurityGroupReferencesRequest.cc b/ecs/src/model/DescribeSecurityGroupReferencesRequest.cc index 0aafdfade..465c38db7 100644 --- a/ecs/src/model/DescribeSecurityGroupReferencesRequest.cc +++ b/ecs/src/model/DescribeSecurityGroupReferencesRequest.cc @@ -1,97 +1,80 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeSecurityGroupReferencesRequest; - -DescribeSecurityGroupReferencesRequest::DescribeSecurityGroupReferencesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeSecurityGroupReferences") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSecurityGroupReferencesRequest::~DescribeSecurityGroupReferencesRequest() -{} - -long DescribeSecurityGroupReferencesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeSecurityGroupReferencesRequest; + +DescribeSecurityGroupReferencesRequest::DescribeSecurityGroupReferencesRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeSecurityGroupReferences") { + setMethod(HttpRequest::Method::Post); } -void DescribeSecurityGroupReferencesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSecurityGroupReferencesRequest::~DescribeSecurityGroupReferencesRequest() {} + +long DescribeSecurityGroupReferencesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::vector DescribeSecurityGroupReferencesRequest::getSecurityGroupId()const -{ - return securityGroupId_; +void DescribeSecurityGroupReferencesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSecurityGroupReferencesRequest::setSecurityGroupId(const std::vector& securityGroupId) -{ - securityGroupId_ = securityGroupId; - for(int dep1 = 0; dep1!= securityGroupId.size(); dep1++) { - setParameter("SecurityGroupId."+ std::to_string(dep1), securityGroupId.at(dep1)); - } +std::vector DescribeSecurityGroupReferencesRequest::getSecurityGroupId() const { + return securityGroupId_; } -std::string DescribeSecurityGroupReferencesRequest::getRegionId()const -{ - return regionId_; +void DescribeSecurityGroupReferencesRequest::setSecurityGroupId(const std::vector &securityGroupId) { + securityGroupId_ = securityGroupId; } -void DescribeSecurityGroupReferencesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeSecurityGroupReferencesRequest::getRegionId() const { + return regionId_; } -std::string DescribeSecurityGroupReferencesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSecurityGroupReferencesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeSecurityGroupReferencesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSecurityGroupReferencesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSecurityGroupReferencesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSecurityGroupReferencesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSecurityGroupReferencesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSecurityGroupReferencesRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeSecurityGroupReferencesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSecurityGroupReferencesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSecurityGroupReferencesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSecurityGroupReferencesRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeSecurityGroupReferencesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/DescribeSecurityGroupReferencesResult.cc b/ecs/src/model/DescribeSecurityGroupReferencesResult.cc index 82ca00b0c..b32b969b4 100644 --- a/ecs/src/model/DescribeSecurityGroupReferencesResult.cc +++ b/ecs/src/model/DescribeSecurityGroupReferencesResult.cc @@ -49,10 +49,10 @@ void DescribeSecurityGroupReferencesResult::parse(const std::string &payload) for (auto valueSecurityGroupReferencesSecurityGroupReferenceReferencingSecurityGroupsReferencingSecurityGroup : allReferencingSecurityGroupsNode) { SecurityGroupReference::ReferencingSecurityGroup referencingSecurityGroupsObject; - if(!valueSecurityGroupReferencesSecurityGroupReferenceReferencingSecurityGroupsReferencingSecurityGroup["AliUid"].isNull()) - referencingSecurityGroupsObject.aliUid = valueSecurityGroupReferencesSecurityGroupReferenceReferencingSecurityGroupsReferencingSecurityGroup["AliUid"].asString(); if(!valueSecurityGroupReferencesSecurityGroupReferenceReferencingSecurityGroupsReferencingSecurityGroup["SecurityGroupId"].isNull()) referencingSecurityGroupsObject.securityGroupId = valueSecurityGroupReferencesSecurityGroupReferenceReferencingSecurityGroupsReferencingSecurityGroup["SecurityGroupId"].asString(); + if(!valueSecurityGroupReferencesSecurityGroupReferenceReferencingSecurityGroupsReferencingSecurityGroup["AliUid"].isNull()) + referencingSecurityGroupsObject.aliUid = valueSecurityGroupReferencesSecurityGroupReferenceReferencingSecurityGroupsReferencingSecurityGroup["AliUid"].asString(); securityGroupReferencesObject.referencingSecurityGroups.push_back(referencingSecurityGroupsObject); } securityGroupReferences_.push_back(securityGroupReferencesObject); diff --git a/ecs/src/model/DescribeSecurityGroupsRequest.cc b/ecs/src/model/DescribeSecurityGroupsRequest.cc index 9609d1bf1..42ec9185a 100644 --- a/ecs/src/model/DescribeSecurityGroupsRequest.cc +++ b/ecs/src/model/DescribeSecurityGroupsRequest.cc @@ -1,254 +1,212 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeSecurityGroupsRequest; - -DescribeSecurityGroupsRequest::DescribeSecurityGroupsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeSecurityGroups") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSecurityGroupsRequest::~DescribeSecurityGroupsRequest() -{} - -long DescribeSecurityGroupsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeSecurityGroupsRequest; + +DescribeSecurityGroupsRequest::DescribeSecurityGroupsRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeSecurityGroups") { + setMethod(HttpRequest::Method::Post); } -void DescribeSecurityGroupsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSecurityGroupsRequest::~DescribeSecurityGroupsRequest() {} + +long DescribeSecurityGroupsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -bool DescribeSecurityGroupsRequest::getFuzzyQuery()const -{ - return fuzzyQuery_; +void DescribeSecurityGroupsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSecurityGroupsRequest::setFuzzyQuery(bool fuzzyQuery) -{ - fuzzyQuery_ = fuzzyQuery; - setParameter("FuzzyQuery", fuzzyQuery ? "true" : "false"); +bool DescribeSecurityGroupsRequest::getFuzzyQuery() const { + return fuzzyQuery_; } -std::string DescribeSecurityGroupsRequest::getSecurityGroupId()const -{ - return securityGroupId_; +void DescribeSecurityGroupsRequest::setFuzzyQuery(bool fuzzyQuery) { + fuzzyQuery_ = fuzzyQuery; + setParameter(std::string("FuzzyQuery"), fuzzyQuery ? "true" : "false"); } -void DescribeSecurityGroupsRequest::setSecurityGroupId(const std::string& securityGroupId) -{ - securityGroupId_ = securityGroupId; - setParameter("SecurityGroupId", securityGroupId); +std::string DescribeSecurityGroupsRequest::getSecurityGroupId() const { + return securityGroupId_; } -bool DescribeSecurityGroupsRequest::getIsQueryEcsCount()const -{ - return isQueryEcsCount_; +void DescribeSecurityGroupsRequest::setSecurityGroupId(const std::string &securityGroupId) { + securityGroupId_ = securityGroupId; + setParameter(std::string("SecurityGroupId"), securityGroupId); } -void DescribeSecurityGroupsRequest::setIsQueryEcsCount(bool isQueryEcsCount) -{ - isQueryEcsCount_ = isQueryEcsCount; - setParameter("IsQueryEcsCount", isQueryEcsCount ? "true" : "false"); +bool DescribeSecurityGroupsRequest::getIsQueryEcsCount() const { + return isQueryEcsCount_; } -std::string DescribeSecurityGroupsRequest::getNetworkType()const -{ - return networkType_; +void DescribeSecurityGroupsRequest::setIsQueryEcsCount(bool isQueryEcsCount) { + isQueryEcsCount_ = isQueryEcsCount; + setParameter(std::string("IsQueryEcsCount"), isQueryEcsCount ? "true" : "false"); } -void DescribeSecurityGroupsRequest::setNetworkType(const std::string& networkType) -{ - networkType_ = networkType; - setParameter("NetworkType", networkType); +std::string DescribeSecurityGroupsRequest::getNetworkType() const { + return networkType_; } -std::string DescribeSecurityGroupsRequest::getSecurityGroupName()const -{ - return securityGroupName_; +void DescribeSecurityGroupsRequest::setNetworkType(const std::string &networkType) { + networkType_ = networkType; + setParameter(std::string("NetworkType"), networkType); } -void DescribeSecurityGroupsRequest::setSecurityGroupName(const std::string& securityGroupName) -{ - securityGroupName_ = securityGroupName; - setParameter("SecurityGroupName", securityGroupName); +std::string DescribeSecurityGroupsRequest::getSecurityGroupName() const { + return securityGroupName_; } -int DescribeSecurityGroupsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeSecurityGroupsRequest::setSecurityGroupName(const std::string &securityGroupName) { + securityGroupName_ = securityGroupName; + setParameter(std::string("SecurityGroupName"), securityGroupName); } -void DescribeSecurityGroupsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeSecurityGroupsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeSecurityGroupsRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void DescribeSecurityGroupsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeSecurityGroupsRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string DescribeSecurityGroupsRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string DescribeSecurityGroupsRequest::getRegionId()const -{ - return regionId_; +void DescribeSecurityGroupsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void DescribeSecurityGroupsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeSecurityGroupsRequest::getRegionId() const { + return regionId_; } -std::string DescribeSecurityGroupsRequest::getNextToken()const -{ - return nextToken_; +void DescribeSecurityGroupsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeSecurityGroupsRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +std::string DescribeSecurityGroupsRequest::getNextToken() const { + return nextToken_; } -int DescribeSecurityGroupsRequest::getPageSize()const -{ - return pageSize_; +void DescribeSecurityGroupsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } -void DescribeSecurityGroupsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeSecurityGroupsRequest::getPageSize() const { + return pageSize_; } -std::vector DescribeSecurityGroupsRequest::getTag()const -{ - return tag_; +void DescribeSecurityGroupsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeSecurityGroupsRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Value", tagObj.value); - setParameter(tagObjStr + ".Key", tagObj.key); - } +std::vector DescribeSecurityGroupsRequest::getTag() const { + return tag_; } -bool DescribeSecurityGroupsRequest::getDryRun()const -{ - return dryRun_; +void DescribeSecurityGroupsRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } -void DescribeSecurityGroupsRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool DescribeSecurityGroupsRequest::getDryRun() const { + return dryRun_; } -std::string DescribeSecurityGroupsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSecurityGroupsRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void DescribeSecurityGroupsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSecurityGroupsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSecurityGroupsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSecurityGroupsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSecurityGroupsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSecurityGroupsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeSecurityGroupsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSecurityGroupsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSecurityGroupsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSecurityGroupsRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeSecurityGroupsRequest::getSecurityGroupIds()const -{ - return securityGroupIds_; +void DescribeSecurityGroupsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeSecurityGroupsRequest::setSecurityGroupIds(const std::string& securityGroupIds) -{ - securityGroupIds_ = securityGroupIds; - setParameter("SecurityGroupIds", securityGroupIds); +std::string DescribeSecurityGroupsRequest::getSecurityGroupIds() const { + return securityGroupIds_; } -std::string DescribeSecurityGroupsRequest::getSecurityGroupType()const -{ - return securityGroupType_; +void DescribeSecurityGroupsRequest::setSecurityGroupIds(const std::string &securityGroupIds) { + securityGroupIds_ = securityGroupIds; + setParameter(std::string("SecurityGroupIds"), securityGroupIds); } -void DescribeSecurityGroupsRequest::setSecurityGroupType(const std::string& securityGroupType) -{ - securityGroupType_ = securityGroupType; - setParameter("SecurityGroupType", securityGroupType); +std::string DescribeSecurityGroupsRequest::getSecurityGroupType() const { + return securityGroupType_; } -std::string DescribeSecurityGroupsRequest::getVpcId()const -{ - return vpcId_; +void DescribeSecurityGroupsRequest::setSecurityGroupType(const std::string &securityGroupType) { + securityGroupType_ = securityGroupType; + setParameter(std::string("SecurityGroupType"), securityGroupType); } -void DescribeSecurityGroupsRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +std::string DescribeSecurityGroupsRequest::getVpcId() const { + return vpcId_; } -int DescribeSecurityGroupsRequest::getMaxResults()const -{ - return maxResults_; +void DescribeSecurityGroupsRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); } -void DescribeSecurityGroupsRequest::setMaxResults(int maxResults) -{ - maxResults_ = maxResults; - setParameter("MaxResults", std::to_string(maxResults)); +int DescribeSecurityGroupsRequest::getMaxResults() const { + return maxResults_; +} + +void DescribeSecurityGroupsRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); } diff --git a/ecs/src/model/DescribeSendFileResultsRequest.cc b/ecs/src/model/DescribeSendFileResultsRequest.cc index 3a1c6fd46..1db6fd7be 100644 --- a/ecs/src/model/DescribeSendFileResultsRequest.cc +++ b/ecs/src/model/DescribeSendFileResultsRequest.cc @@ -1,139 +1,117 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeSendFileResultsRequest; - -DescribeSendFileResultsRequest::DescribeSendFileResultsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeSendFileResults") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSendFileResultsRequest::~DescribeSendFileResultsRequest() -{} - -long DescribeSendFileResultsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeSendFileResultsRequest; + +DescribeSendFileResultsRequest::DescribeSendFileResultsRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeSendFileResults") { + setMethod(HttpRequest::Method::Post); } -void DescribeSendFileResultsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSendFileResultsRequest::~DescribeSendFileResultsRequest() {} + +long DescribeSendFileResultsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -long DescribeSendFileResultsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeSendFileResultsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSendFileResultsRequest::setPageNumber(long pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +long DescribeSendFileResultsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeSendFileResultsRequest::getRegionId()const -{ - return regionId_; +void DescribeSendFileResultsRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeSendFileResultsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeSendFileResultsRequest::getRegionId() const { + return regionId_; } -long DescribeSendFileResultsRequest::getPageSize()const -{ - return pageSize_; +void DescribeSendFileResultsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeSendFileResultsRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +long DescribeSendFileResultsRequest::getPageSize() const { + return pageSize_; } -std::string DescribeSendFileResultsRequest::getInvokeId()const -{ - return invokeId_; +void DescribeSendFileResultsRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeSendFileResultsRequest::setInvokeId(const std::string& invokeId) -{ - invokeId_ = invokeId; - setParameter("InvokeId", invokeId); +std::string DescribeSendFileResultsRequest::getInvokeId() const { + return invokeId_; } -std::string DescribeSendFileResultsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSendFileResultsRequest::setInvokeId(const std::string &invokeId) { + invokeId_ = invokeId; + setParameter(std::string("InvokeId"), invokeId); } -void DescribeSendFileResultsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSendFileResultsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSendFileResultsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSendFileResultsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSendFileResultsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSendFileResultsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeSendFileResultsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSendFileResultsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSendFileResultsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSendFileResultsRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeSendFileResultsRequest::getInstanceId()const -{ - return instanceId_; +void DescribeSendFileResultsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeSendFileResultsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DescribeSendFileResultsRequest::getInstanceId() const { + return instanceId_; } -std::string DescribeSendFileResultsRequest::getName()const -{ - return name_; +void DescribeSendFileResultsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DescribeSendFileResultsRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string DescribeSendFileResultsRequest::getName() const { + return name_; +} + +void DescribeSendFileResultsRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/ecs/src/model/DescribeSendFileResultsResult.cc b/ecs/src/model/DescribeSendFileResultsResult.cc index 302954271..ce2b9f00e 100644 --- a/ecs/src/model/DescribeSendFileResultsResult.cc +++ b/ecs/src/model/DescribeSendFileResultsResult.cc @@ -43,62 +43,62 @@ void DescribeSendFileResultsResult::parse(const std::string &payload) for (auto valueInvocationsInvocation : allInvocationsNode) { Invocation invocationsObject; - if(!valueInvocationsInvocation["InvokeId"].isNull()) - invocationsObject.invokeId = valueInvocationsInvocation["InvokeId"].asString(); - if(!valueInvocationsInvocation["Name"].isNull()) - invocationsObject.name = valueInvocationsInvocation["Name"].asString(); - if(!valueInvocationsInvocation["Description"].isNull()) - invocationsObject.description = valueInvocationsInvocation["Description"].asString(); - if(!valueInvocationsInvocation["TargetDir"].isNull()) - invocationsObject.targetDir = valueInvocationsInvocation["TargetDir"].asString(); - if(!valueInvocationsInvocation["ContentType"].isNull()) - invocationsObject.contentType = valueInvocationsInvocation["ContentType"].asString(); - if(!valueInvocationsInvocation["Content"].isNull()) - invocationsObject.content = valueInvocationsInvocation["Content"].asString(); - if(!valueInvocationsInvocation["FileOwner"].isNull()) - invocationsObject.fileOwner = valueInvocationsInvocation["FileOwner"].asString(); - if(!valueInvocationsInvocation["FileGroup"].isNull()) - invocationsObject.fileGroup = valueInvocationsInvocation["FileGroup"].asString(); - if(!valueInvocationsInvocation["FileMode"].isNull()) - invocationsObject.fileMode = valueInvocationsInvocation["FileMode"].asString(); - if(!valueInvocationsInvocation["Overwrite"].isNull()) - invocationsObject.overwrite = valueInvocationsInvocation["Overwrite"].asString(); - if(!valueInvocationsInvocation["VmCount"].isNull()) - invocationsObject.vmCount = std::stoi(valueInvocationsInvocation["VmCount"].asString()); if(!valueInvocationsInvocation["CreationTime"].isNull()) invocationsObject.creationTime = valueInvocationsInvocation["CreationTime"].asString(); if(!valueInvocationsInvocation["InvocationStatus"].isNull()) invocationsObject.invocationStatus = valueInvocationsInvocation["InvocationStatus"].asString(); + if(!valueInvocationsInvocation["ContentType"].isNull()) + invocationsObject.contentType = valueInvocationsInvocation["ContentType"].asString(); + if(!valueInvocationsInvocation["TargetDir"].isNull()) + invocationsObject.targetDir = valueInvocationsInvocation["TargetDir"].asString(); + if(!valueInvocationsInvocation["FileOwner"].isNull()) + invocationsObject.fileOwner = valueInvocationsInvocation["FileOwner"].asString(); + if(!valueInvocationsInvocation["Description"].isNull()) + invocationsObject.description = valueInvocationsInvocation["Description"].asString(); + if(!valueInvocationsInvocation["VmCount"].isNull()) + invocationsObject.vmCount = std::stoi(valueInvocationsInvocation["VmCount"].asString()); + if(!valueInvocationsInvocation["FileMode"].isNull()) + invocationsObject.fileMode = valueInvocationsInvocation["FileMode"].asString(); + if(!valueInvocationsInvocation["FileGroup"].isNull()) + invocationsObject.fileGroup = valueInvocationsInvocation["FileGroup"].asString(); + if(!valueInvocationsInvocation["InvokeId"].isNull()) + invocationsObject.invokeId = valueInvocationsInvocation["InvokeId"].asString(); + if(!valueInvocationsInvocation["Name"].isNull()) + invocationsObject.name = valueInvocationsInvocation["Name"].asString(); + if(!valueInvocationsInvocation["Content"].isNull()) + invocationsObject.content = valueInvocationsInvocation["Content"].asString(); + if(!valueInvocationsInvocation["Overwrite"].isNull()) + invocationsObject.overwrite = valueInvocationsInvocation["Overwrite"].asString(); auto allInvokeInstancesNode = valueInvocationsInvocation["InvokeInstances"]["InvokeInstance"]; for (auto valueInvocationsInvocationInvokeInstancesInvokeInstance : allInvokeInstancesNode) { Invocation::InvokeInstance invokeInstancesObject; - if(!valueInvocationsInvocationInvokeInstancesInvokeInstance["InstanceId"].isNull()) - invokeInstancesObject.instanceId = valueInvocationsInvocationInvokeInstancesInvokeInstance["InstanceId"].asString(); - if(!valueInvocationsInvocationInvokeInstancesInvokeInstance["InvocationStatus"].isNull()) - invokeInstancesObject.invocationStatus = valueInvocationsInvocationInvokeInstancesInvokeInstance["InvocationStatus"].asString(); if(!valueInvocationsInvocationInvokeInstancesInvokeInstance["CreationTime"].isNull()) invokeInstancesObject.creationTime = valueInvocationsInvocationInvokeInstancesInvokeInstance["CreationTime"].asString(); if(!valueInvocationsInvocationInvokeInstancesInvokeInstance["StartTime"].isNull()) invokeInstancesObject.startTime = valueInvocationsInvocationInvokeInstancesInvokeInstance["StartTime"].asString(); + if(!valueInvocationsInvocationInvokeInstancesInvokeInstance["InvocationStatus"].isNull()) + invokeInstancesObject.invocationStatus = valueInvocationsInvocationInvokeInstancesInvokeInstance["InvocationStatus"].asString(); if(!valueInvocationsInvocationInvokeInstancesInvokeInstance["FinishTime"].isNull()) invokeInstancesObject.finishTime = valueInvocationsInvocationInvokeInstancesInvokeInstance["FinishTime"].asString(); if(!valueInvocationsInvocationInvokeInstancesInvokeInstance["UpdateTime"].isNull()) invokeInstancesObject.updateTime = valueInvocationsInvocationInvokeInstancesInvokeInstance["UpdateTime"].asString(); - if(!valueInvocationsInvocationInvokeInstancesInvokeInstance["ErrorCode"].isNull()) - invokeInstancesObject.errorCode = valueInvocationsInvocationInvokeInstancesInvokeInstance["ErrorCode"].asString(); if(!valueInvocationsInvocationInvokeInstancesInvokeInstance["ErrorInfo"].isNull()) invokeInstancesObject.errorInfo = valueInvocationsInvocationInvokeInstancesInvokeInstance["ErrorInfo"].asString(); + if(!valueInvocationsInvocationInvokeInstancesInvokeInstance["ErrorCode"].isNull()) + invokeInstancesObject.errorCode = valueInvocationsInvocationInvokeInstancesInvokeInstance["ErrorCode"].asString(); + if(!valueInvocationsInvocationInvokeInstancesInvokeInstance["InstanceId"].isNull()) + invokeInstancesObject.instanceId = valueInvocationsInvocationInvokeInstancesInvokeInstance["InstanceId"].asString(); invocationsObject.invokeInstances.push_back(invokeInstancesObject); } invocations_.push_back(invocationsObject); } - if(!value["TotalCount"].isNull()) - totalCount_ = std::stol(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stol(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stol(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); } diff --git a/ecs/src/model/DescribeSnapshotGroupsRequest.cc b/ecs/src/model/DescribeSnapshotGroupsRequest.cc index 3d940028d..11fef5edd 100644 --- a/ecs/src/model/DescribeSnapshotGroupsRequest.cc +++ b/ecs/src/model/DescribeSnapshotGroupsRequest.cc @@ -1,194 +1,155 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeSnapshotGroupsRequest; - -DescribeSnapshotGroupsRequest::DescribeSnapshotGroupsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeSnapshotGroups") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSnapshotGroupsRequest::~DescribeSnapshotGroupsRequest() -{} - -long DescribeSnapshotGroupsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeSnapshotGroupsRequest; + +DescribeSnapshotGroupsRequest::DescribeSnapshotGroupsRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeSnapshotGroups") { + setMethod(HttpRequest::Method::Post); } -void DescribeSnapshotGroupsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSnapshotGroupsRequest::~DescribeSnapshotGroupsRequest() {} + +long DescribeSnapshotGroupsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeSnapshotGroupsRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void DescribeSnapshotGroupsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSnapshotGroupsRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string DescribeSnapshotGroupsRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string DescribeSnapshotGroupsRequest::getRegionId()const -{ - return regionId_; +void DescribeSnapshotGroupsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void DescribeSnapshotGroupsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeSnapshotGroupsRequest::getRegionId() const { + return regionId_; } -std::string DescribeSnapshotGroupsRequest::getNextToken()const -{ - return nextToken_; +void DescribeSnapshotGroupsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeSnapshotGroupsRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +std::string DescribeSnapshotGroupsRequest::getNextToken() const { + return nextToken_; } -std::vector DescribeSnapshotGroupsRequest::getTag()const -{ - return tag_; +void DescribeSnapshotGroupsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } -void DescribeSnapshotGroupsRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Key", tagObj.key); - setParameter(tagObjStr + ".Value", tagObj.value); - } +std::vector DescribeSnapshotGroupsRequest::getTag() const { + return tag_; } -std::string DescribeSnapshotGroupsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSnapshotGroupsRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } } -void DescribeSnapshotGroupsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSnapshotGroupsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSnapshotGroupsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSnapshotGroupsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSnapshotGroupsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSnapshotGroupsRequest::getOwnerAccount() const { + return ownerAccount_; } -std::vector DescribeSnapshotGroupsRequest::getSnapshotGroupId()const -{ - return snapshotGroupId_; +void DescribeSnapshotGroupsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSnapshotGroupsRequest::setSnapshotGroupId(const std::vector& snapshotGroupId) -{ - snapshotGroupId_ = snapshotGroupId; - for(int dep1 = 0; dep1!= snapshotGroupId.size(); dep1++) { - setParameter("SnapshotGroupId."+ std::to_string(dep1), snapshotGroupId.at(dep1)); - } +std::vector DescribeSnapshotGroupsRequest::getSnapshotGroupId() const { + return snapshotGroupId_; } -long DescribeSnapshotGroupsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSnapshotGroupsRequest::setSnapshotGroupId(const std::vector &snapshotGroupId) { + snapshotGroupId_ = snapshotGroupId; } -void DescribeSnapshotGroupsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSnapshotGroupsRequest::getOwnerId() const { + return ownerId_; } -std::vector DescribeSnapshotGroupsRequest::getAdditionalAttributes()const -{ - return additionalAttributes_; +void DescribeSnapshotGroupsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeSnapshotGroupsRequest::setAdditionalAttributes(const std::vector& additionalAttributes) -{ - additionalAttributes_ = additionalAttributes; - for(int dep1 = 0; dep1!= additionalAttributes.size(); dep1++) { - setParameter("AdditionalAttributes."+ std::to_string(dep1), additionalAttributes.at(dep1)); - } +std::vector DescribeSnapshotGroupsRequest::getAdditionalAttributes() const { + return additionalAttributes_; } -std::string DescribeSnapshotGroupsRequest::getInstanceId()const -{ - return instanceId_; +void DescribeSnapshotGroupsRequest::setAdditionalAttributes(const std::vector &additionalAttributes) { + additionalAttributes_ = additionalAttributes; } -void DescribeSnapshotGroupsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DescribeSnapshotGroupsRequest::getInstanceId() const { + return instanceId_; } -std::string DescribeSnapshotGroupsRequest::getName()const -{ - return name_; +void DescribeSnapshotGroupsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DescribeSnapshotGroupsRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string DescribeSnapshotGroupsRequest::getName() const { + return name_; } -int DescribeSnapshotGroupsRequest::getMaxResults()const -{ - return maxResults_; +void DescribeSnapshotGroupsRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void DescribeSnapshotGroupsRequest::setMaxResults(int maxResults) -{ - maxResults_ = maxResults; - setParameter("MaxResults", std::to_string(maxResults)); +int DescribeSnapshotGroupsRequest::getMaxResults() const { + return maxResults_; } -std::vector DescribeSnapshotGroupsRequest::getStatus()const -{ - return status_; +void DescribeSnapshotGroupsRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); } -void DescribeSnapshotGroupsRequest::setStatus(const std::vector& status) -{ - status_ = status; - for(int dep1 = 0; dep1!= status.size(); dep1++) { - setParameter("Status."+ std::to_string(dep1), status.at(dep1)); - } +std::vector DescribeSnapshotGroupsRequest::getStatus() const { + return status_; +} + +void DescribeSnapshotGroupsRequest::setStatus(const std::vector &status) { + status_ = status; } diff --git a/ecs/src/model/DescribeSnapshotLinksRequest.cc b/ecs/src/model/DescribeSnapshotLinksRequest.cc index 315d1e208..fdc7bb802 100644 --- a/ecs/src/model/DescribeSnapshotLinksRequest.cc +++ b/ecs/src/model/DescribeSnapshotLinksRequest.cc @@ -1,139 +1,117 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeSnapshotLinksRequest; - -DescribeSnapshotLinksRequest::DescribeSnapshotLinksRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeSnapshotLinks") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSnapshotLinksRequest::~DescribeSnapshotLinksRequest() -{} - -long DescribeSnapshotLinksRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeSnapshotLinksRequest; + +DescribeSnapshotLinksRequest::DescribeSnapshotLinksRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeSnapshotLinks") { + setMethod(HttpRequest::Method::Post); } -void DescribeSnapshotLinksRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSnapshotLinksRequest::~DescribeSnapshotLinksRequest() {} + +long DescribeSnapshotLinksRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeSnapshotLinksRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeSnapshotLinksRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSnapshotLinksRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeSnapshotLinksRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeSnapshotLinksRequest::getRegionId()const -{ - return regionId_; +void DescribeSnapshotLinksRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeSnapshotLinksRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeSnapshotLinksRequest::getRegionId() const { + return regionId_; } -int DescribeSnapshotLinksRequest::getPageSize()const -{ - return pageSize_; +void DescribeSnapshotLinksRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeSnapshotLinksRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeSnapshotLinksRequest::getPageSize() const { + return pageSize_; } -std::string DescribeSnapshotLinksRequest::getDiskIds()const -{ - return diskIds_; +void DescribeSnapshotLinksRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeSnapshotLinksRequest::setDiskIds(const std::string& diskIds) -{ - diskIds_ = diskIds; - setParameter("DiskIds", diskIds); +std::string DescribeSnapshotLinksRequest::getDiskIds() const { + return diskIds_; } -std::string DescribeSnapshotLinksRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSnapshotLinksRequest::setDiskIds(const std::string &diskIds) { + diskIds_ = diskIds; + setParameter(std::string("DiskIds"), diskIds); } -void DescribeSnapshotLinksRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSnapshotLinksRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSnapshotLinksRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSnapshotLinksRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSnapshotLinksRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSnapshotLinksRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeSnapshotLinksRequest::getSnapshotLinkIds()const -{ - return snapshotLinkIds_; +void DescribeSnapshotLinksRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSnapshotLinksRequest::setSnapshotLinkIds(const std::string& snapshotLinkIds) -{ - snapshotLinkIds_ = snapshotLinkIds; - setParameter("SnapshotLinkIds", snapshotLinkIds); +std::string DescribeSnapshotLinksRequest::getSnapshotLinkIds() const { + return snapshotLinkIds_; } -long DescribeSnapshotLinksRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSnapshotLinksRequest::setSnapshotLinkIds(const std::string &snapshotLinkIds) { + snapshotLinkIds_ = snapshotLinkIds; + setParameter(std::string("SnapshotLinkIds"), snapshotLinkIds); } -void DescribeSnapshotLinksRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSnapshotLinksRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeSnapshotLinksRequest::getInstanceId()const -{ - return instanceId_; +void DescribeSnapshotLinksRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeSnapshotLinksRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DescribeSnapshotLinksRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeSnapshotLinksRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/ecs/src/model/DescribeSnapshotMonitorDataRequest.cc b/ecs/src/model/DescribeSnapshotMonitorDataRequest.cc index f64dbfb9b..37ac1d70c 100644 --- a/ecs/src/model/DescribeSnapshotMonitorDataRequest.cc +++ b/ecs/src/model/DescribeSnapshotMonitorDataRequest.cc @@ -1,128 +1,108 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeSnapshotMonitorDataRequest; - -DescribeSnapshotMonitorDataRequest::DescribeSnapshotMonitorDataRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeSnapshotMonitorData") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSnapshotMonitorDataRequest::~DescribeSnapshotMonitorDataRequest() -{} - -long DescribeSnapshotMonitorDataRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeSnapshotMonitorDataRequest; + +DescribeSnapshotMonitorDataRequest::DescribeSnapshotMonitorDataRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeSnapshotMonitorData") { + setMethod(HttpRequest::Method::Post); } -void DescribeSnapshotMonitorDataRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSnapshotMonitorDataRequest::~DescribeSnapshotMonitorDataRequest() {} + +long DescribeSnapshotMonitorDataRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeSnapshotMonitorDataRequest::getStartTime()const -{ - return startTime_; +void DescribeSnapshotMonitorDataRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSnapshotMonitorDataRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string DescribeSnapshotMonitorDataRequest::getStartTime() const { + return startTime_; } -std::string DescribeSnapshotMonitorDataRequest::getRegionId()const -{ - return regionId_; +void DescribeSnapshotMonitorDataRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void DescribeSnapshotMonitorDataRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeSnapshotMonitorDataRequest::getRegionId() const { + return regionId_; } -int DescribeSnapshotMonitorDataRequest::getPeriod()const -{ - return period_; +void DescribeSnapshotMonitorDataRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeSnapshotMonitorDataRequest::setPeriod(int period) -{ - period_ = period; - setParameter("Period", std::to_string(period)); +int DescribeSnapshotMonitorDataRequest::getPeriod() const { + return period_; } -std::string DescribeSnapshotMonitorDataRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSnapshotMonitorDataRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); } -void DescribeSnapshotMonitorDataRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSnapshotMonitorDataRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSnapshotMonitorDataRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSnapshotMonitorDataRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSnapshotMonitorDataRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSnapshotMonitorDataRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeSnapshotMonitorDataRequest::getEndTime()const -{ - return endTime_; +void DescribeSnapshotMonitorDataRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSnapshotMonitorDataRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +std::string DescribeSnapshotMonitorDataRequest::getEndTime() const { + return endTime_; } -long DescribeSnapshotMonitorDataRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSnapshotMonitorDataRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void DescribeSnapshotMonitorDataRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSnapshotMonitorDataRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeSnapshotMonitorDataRequest::getCategory()const -{ - return category_; +void DescribeSnapshotMonitorDataRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeSnapshotMonitorDataRequest::setCategory(const std::string& category) -{ - category_ = category; - setParameter("Category", category); +std::string DescribeSnapshotMonitorDataRequest::getCategory() const { + return category_; +} + +void DescribeSnapshotMonitorDataRequest::setCategory(const std::string &category) { + category_ = category; + setParameter(std::string("Category"), category); } diff --git a/ecs/src/model/DescribeSnapshotMonitorDataResult.cc b/ecs/src/model/DescribeSnapshotMonitorDataResult.cc index cd6066115..a6cd358c1 100644 --- a/ecs/src/model/DescribeSnapshotMonitorDataResult.cc +++ b/ecs/src/model/DescribeSnapshotMonitorDataResult.cc @@ -43,10 +43,10 @@ void DescribeSnapshotMonitorDataResult::parse(const std::string &payload) for (auto valueMonitorDataDataPoint : allMonitorDataNode) { DataPoint monitorDataObject; - if(!valueMonitorDataDataPoint["TimeStamp"].isNull()) - monitorDataObject.timeStamp = valueMonitorDataDataPoint["TimeStamp"].asString(); if(!valueMonitorDataDataPoint["Size"].isNull()) monitorDataObject.size = std::stol(valueMonitorDataDataPoint["Size"].asString()); + if(!valueMonitorDataDataPoint["TimeStamp"].isNull()) + monitorDataObject.timeStamp = valueMonitorDataDataPoint["TimeStamp"].asString(); monitorData_.push_back(monitorDataObject); } diff --git a/ecs/src/model/DescribeSnapshotPackageRequest.cc b/ecs/src/model/DescribeSnapshotPackageRequest.cc index b6ad97ac3..da3b29334 100644 --- a/ecs/src/model/DescribeSnapshotPackageRequest.cc +++ b/ecs/src/model/DescribeSnapshotPackageRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeSnapshotPackageRequest; - -DescribeSnapshotPackageRequest::DescribeSnapshotPackageRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeSnapshotPackage") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSnapshotPackageRequest::~DescribeSnapshotPackageRequest() -{} - -long DescribeSnapshotPackageRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeSnapshotPackageRequest; + +DescribeSnapshotPackageRequest::DescribeSnapshotPackageRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeSnapshotPackage") { + setMethod(HttpRequest::Method::Post); } -void DescribeSnapshotPackageRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSnapshotPackageRequest::~DescribeSnapshotPackageRequest() {} + +long DescribeSnapshotPackageRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeSnapshotPackageRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeSnapshotPackageRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSnapshotPackageRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeSnapshotPackageRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeSnapshotPackageRequest::getRegionId()const -{ - return regionId_; +void DescribeSnapshotPackageRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeSnapshotPackageRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeSnapshotPackageRequest::getRegionId() const { + return regionId_; } -int DescribeSnapshotPackageRequest::getPageSize()const -{ - return pageSize_; +void DescribeSnapshotPackageRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeSnapshotPackageRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeSnapshotPackageRequest::getPageSize() const { + return pageSize_; } -std::string DescribeSnapshotPackageRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSnapshotPackageRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeSnapshotPackageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSnapshotPackageRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSnapshotPackageRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSnapshotPackageRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSnapshotPackageRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSnapshotPackageRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeSnapshotPackageRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSnapshotPackageRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSnapshotPackageRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSnapshotPackageRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeSnapshotPackageRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/DescribeSnapshotPackageResult.cc b/ecs/src/model/DescribeSnapshotPackageResult.cc index e969698ce..93ea2fe1c 100644 --- a/ecs/src/model/DescribeSnapshotPackageResult.cc +++ b/ecs/src/model/DescribeSnapshotPackageResult.cc @@ -43,22 +43,22 @@ void DescribeSnapshotPackageResult::parse(const std::string &payload) for (auto valueSnapshotPackagesSnapshotPackage : allSnapshotPackagesNode) { SnapshotPackage snapshotPackagesObject; - if(!valueSnapshotPackagesSnapshotPackage["StartTime"].isNull()) - snapshotPackagesObject.startTime = valueSnapshotPackagesSnapshotPackage["StartTime"].asString(); - if(!valueSnapshotPackagesSnapshotPackage["EndTime"].isNull()) - snapshotPackagesObject.endTime = valueSnapshotPackagesSnapshotPackage["EndTime"].asString(); - if(!valueSnapshotPackagesSnapshotPackage["InitCapacity"].isNull()) - snapshotPackagesObject.initCapacity = std::stol(valueSnapshotPackagesSnapshotPackage["InitCapacity"].asString()); if(!valueSnapshotPackagesSnapshotPackage["DisplayName"].isNull()) snapshotPackagesObject.displayName = valueSnapshotPackagesSnapshotPackage["DisplayName"].asString(); + if(!valueSnapshotPackagesSnapshotPackage["EndTime"].isNull()) + snapshotPackagesObject.endTime = valueSnapshotPackagesSnapshotPackage["EndTime"].asString(); + if(!valueSnapshotPackagesSnapshotPackage["StartTime"].isNull()) + snapshotPackagesObject.startTime = valueSnapshotPackagesSnapshotPackage["StartTime"].asString(); + if(!valueSnapshotPackagesSnapshotPackage["InitCapacity"].isNull()) + snapshotPackagesObject.initCapacity = std::stol(valueSnapshotPackagesSnapshotPackage["InitCapacity"].asString()); snapshotPackages_.push_back(snapshotPackagesObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/ecs/src/model/DescribeSnapshotsRequest.cc b/ecs/src/model/DescribeSnapshotsRequest.cc index 7336ba8ee..72a07fbc7 100644 --- a/ecs/src/model/DescribeSnapshotsRequest.cc +++ b/ecs/src/model/DescribeSnapshotsRequest.cc @@ -1,342 +1,284 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeSnapshotsRequest; - -DescribeSnapshotsRequest::DescribeSnapshotsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeSnapshots") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSnapshotsRequest::~DescribeSnapshotsRequest() -{} - -long DescribeSnapshotsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeSnapshotsRequest; + +DescribeSnapshotsRequest::DescribeSnapshotsRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeSnapshots") { + setMethod(HttpRequest::Method::Post); } -void DescribeSnapshotsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSnapshotsRequest::~DescribeSnapshotsRequest() {} + +long DescribeSnapshotsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeSnapshotsRequest::getFilter2Value()const -{ - return filter2Value_; +void DescribeSnapshotsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSnapshotsRequest::setFilter2Value(const std::string& filter2Value) -{ - filter2Value_ = filter2Value; - setParameter("Filter2Value", filter2Value); +std::string DescribeSnapshotsRequest::getFilter2Value() const { + return filter2Value_; } -std::string DescribeSnapshotsRequest::getSnapshotIds()const -{ - return snapshotIds_; +void DescribeSnapshotsRequest::setFilter2Value(const std::string &filter2Value) { + filter2Value_ = filter2Value; + setParameter(std::string("Filter.2.Value"), filter2Value); } -void DescribeSnapshotsRequest::setSnapshotIds(const std::string& snapshotIds) -{ - snapshotIds_ = snapshotIds; - setParameter("SnapshotIds", snapshotIds); +std::string DescribeSnapshotsRequest::getSnapshotIds() const { + return snapshotIds_; } -std::string DescribeSnapshotsRequest::getUsage()const -{ - return usage_; +void DescribeSnapshotsRequest::setSnapshotIds(const std::string &snapshotIds) { + snapshotIds_ = snapshotIds; + setParameter(std::string("SnapshotIds"), snapshotIds); } -void DescribeSnapshotsRequest::setUsage(const std::string& usage) -{ - usage_ = usage; - setParameter("Usage", usage); +std::string DescribeSnapshotsRequest::getUsage() const { + return usage_; } -std::string DescribeSnapshotsRequest::getSnapshotLinkId()const -{ - return snapshotLinkId_; +void DescribeSnapshotsRequest::setUsage(const std::string &usage) { + usage_ = usage; + setParameter(std::string("Usage"), usage); } -void DescribeSnapshotsRequest::setSnapshotLinkId(const std::string& snapshotLinkId) -{ - snapshotLinkId_ = snapshotLinkId; - setParameter("SnapshotLinkId", snapshotLinkId); +std::string DescribeSnapshotsRequest::getSnapshotLinkId() const { + return snapshotLinkId_; } -std::string DescribeSnapshotsRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void DescribeSnapshotsRequest::setSnapshotLinkId(const std::string &snapshotLinkId) { + snapshotLinkId_ = snapshotLinkId; + setParameter(std::string("SnapshotLinkId"), snapshotLinkId); } -void DescribeSnapshotsRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string DescribeSnapshotsRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string DescribeSnapshotsRequest::getFilter1Key()const -{ - return filter1Key_; +void DescribeSnapshotsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void DescribeSnapshotsRequest::setFilter1Key(const std::string& filter1Key) -{ - filter1Key_ = filter1Key; - setParameter("Filter1Key", filter1Key); +std::string DescribeSnapshotsRequest::getFilter1Key() const { + return filter1Key_; } -std::vector DescribeSnapshotsRequest::getTag()const -{ - return tag_; +void DescribeSnapshotsRequest::setFilter1Key(const std::string &filter1Key) { + filter1Key_ = filter1Key; + setParameter(std::string("Filter.1.Key"), filter1Key); } -void DescribeSnapshotsRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Value", tagObj.value); - setParameter(tagObjStr + ".Key", tagObj.key); - } +std::vector DescribeSnapshotsRequest::getTag() const { + return tag_; } -bool DescribeSnapshotsRequest::getDryRun()const -{ - return dryRun_; +void DescribeSnapshotsRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } -void DescribeSnapshotsRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool DescribeSnapshotsRequest::getDryRun() const { + return dryRun_; } -std::string DescribeSnapshotsRequest::getFilter1Value()const -{ - return filter1Value_; +void DescribeSnapshotsRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void DescribeSnapshotsRequest::setFilter1Value(const std::string& filter1Value) -{ - filter1Value_ = filter1Value; - setParameter("Filter1Value", filter1Value); +std::string DescribeSnapshotsRequest::getFilter1Value() const { + return filter1Value_; } -long DescribeSnapshotsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSnapshotsRequest::setFilter1Value(const std::string &filter1Value) { + filter1Value_ = filter1Value; + setParameter(std::string("Filter.1.Value"), filter1Value); } -void DescribeSnapshotsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSnapshotsRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeSnapshotsRequest::getInstanceId()const -{ - return instanceId_; +void DescribeSnapshotsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeSnapshotsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DescribeSnapshotsRequest::getInstanceId() const { + return instanceId_; } -int DescribeSnapshotsRequest::getMaxResults()const -{ - return maxResults_; +void DescribeSnapshotsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DescribeSnapshotsRequest::setMaxResults(int maxResults) -{ - maxResults_ = maxResults; - setParameter("MaxResults", std::to_string(maxResults)); +int DescribeSnapshotsRequest::getMaxResults() const { + return maxResults_; } -std::string DescribeSnapshotsRequest::getStatus()const -{ - return status_; +void DescribeSnapshotsRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); } -void DescribeSnapshotsRequest::setStatus(const std::string& status) -{ - status_ = status; - setParameter("Status", status); +std::string DescribeSnapshotsRequest::getStatus() const { + return status_; } -std::string DescribeSnapshotsRequest::getSnapshotName()const -{ - return snapshotName_; +void DescribeSnapshotsRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); } -void DescribeSnapshotsRequest::setSnapshotName(const std::string& snapshotName) -{ - snapshotName_ = snapshotName; - setParameter("SnapshotName", snapshotName); +std::string DescribeSnapshotsRequest::getSnapshotName() const { + return snapshotName_; } -int DescribeSnapshotsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeSnapshotsRequest::setSnapshotName(const std::string &snapshotName) { + snapshotName_ = snapshotName; + setParameter(std::string("SnapshotName"), snapshotName); } -void DescribeSnapshotsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeSnapshotsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeSnapshotsRequest::getRegionId()const -{ - return regionId_; +void DescribeSnapshotsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeSnapshotsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeSnapshotsRequest::getRegionId() const { + return regionId_; } -std::string DescribeSnapshotsRequest::getNextToken()const -{ - return nextToken_; +void DescribeSnapshotsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeSnapshotsRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +std::string DescribeSnapshotsRequest::getNextToken() const { + return nextToken_; } -int DescribeSnapshotsRequest::getPageSize()const -{ - return pageSize_; +void DescribeSnapshotsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } -void DescribeSnapshotsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeSnapshotsRequest::getPageSize() const { + return pageSize_; } -std::string DescribeSnapshotsRequest::getDiskId()const -{ - return diskId_; +void DescribeSnapshotsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeSnapshotsRequest::setDiskId(const std::string& diskId) -{ - diskId_ = diskId; - setParameter("DiskId", diskId); +std::string DescribeSnapshotsRequest::getDiskId() const { + return diskId_; } -std::string DescribeSnapshotsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSnapshotsRequest::setDiskId(const std::string &diskId) { + diskId_ = diskId; + setParameter(std::string("DiskId"), diskId); } -void DescribeSnapshotsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSnapshotsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSnapshotsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSnapshotsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSnapshotsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSnapshotsRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeSnapshotsRequest::getSourceDiskType()const -{ - return sourceDiskType_; +void DescribeSnapshotsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSnapshotsRequest::setSourceDiskType(const std::string& sourceDiskType) -{ - sourceDiskType_ = sourceDiskType; - setParameter("SourceDiskType", sourceDiskType); +std::string DescribeSnapshotsRequest::getSourceDiskType() const { + return sourceDiskType_; } -std::string DescribeSnapshotsRequest::getFilter2Key()const -{ - return filter2Key_; +void DescribeSnapshotsRequest::setSourceDiskType(const std::string &sourceDiskType) { + sourceDiskType_ = sourceDiskType; + setParameter(std::string("SourceDiskType"), sourceDiskType); } -void DescribeSnapshotsRequest::setFilter2Key(const std::string& filter2Key) -{ - filter2Key_ = filter2Key; - setParameter("Filter2Key", filter2Key); +std::string DescribeSnapshotsRequest::getFilter2Key() const { + return filter2Key_; } -bool DescribeSnapshotsRequest::getEncrypted()const -{ - return encrypted_; +void DescribeSnapshotsRequest::setFilter2Key(const std::string &filter2Key) { + filter2Key_ = filter2Key; + setParameter(std::string("Filter.2.Key"), filter2Key); } -void DescribeSnapshotsRequest::setEncrypted(bool encrypted) -{ - encrypted_ = encrypted; - setParameter("Encrypted", encrypted ? "true" : "false"); +bool DescribeSnapshotsRequest::getEncrypted() const { + return encrypted_; } -std::string DescribeSnapshotsRequest::getSnapshotType()const -{ - return snapshotType_; +void DescribeSnapshotsRequest::setEncrypted(bool encrypted) { + encrypted_ = encrypted; + setParameter(std::string("Encrypted"), encrypted ? "true" : "false"); } -void DescribeSnapshotsRequest::setSnapshotType(const std::string& snapshotType) -{ - snapshotType_ = snapshotType; - setParameter("SnapshotType", snapshotType); +std::string DescribeSnapshotsRequest::getSnapshotType() const { + return snapshotType_; } -std::string DescribeSnapshotsRequest::getKMSKeyId()const -{ - return kMSKeyId_; +void DescribeSnapshotsRequest::setSnapshotType(const std::string &snapshotType) { + snapshotType_ = snapshotType; + setParameter(std::string("SnapshotType"), snapshotType); } -void DescribeSnapshotsRequest::setKMSKeyId(const std::string& kMSKeyId) -{ - kMSKeyId_ = kMSKeyId; - setParameter("KMSKeyId", kMSKeyId); +std::string DescribeSnapshotsRequest::getKMSKeyId() const { + return kMSKeyId_; } -std::string DescribeSnapshotsRequest::getCategory()const -{ - return category_; +void DescribeSnapshotsRequest::setKMSKeyId(const std::string &kMSKeyId) { + kMSKeyId_ = kMSKeyId; + setParameter(std::string("KMSKeyId"), kMSKeyId); } -void DescribeSnapshotsRequest::setCategory(const std::string& category) -{ - category_ = category; - setParameter("Category", category); +std::string DescribeSnapshotsRequest::getCategory() const { + return category_; +} + +void DescribeSnapshotsRequest::setCategory(const std::string &category) { + category_ = category; + setParameter(std::string("Category"), category); } diff --git a/ecs/src/model/DescribeSnapshotsUsageRequest.cc b/ecs/src/model/DescribeSnapshotsUsageRequest.cc index b36fd3ae6..ff930913d 100644 --- a/ecs/src/model/DescribeSnapshotsUsageRequest.cc +++ b/ecs/src/model/DescribeSnapshotsUsageRequest.cc @@ -1,84 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeSnapshotsUsageRequest; - -DescribeSnapshotsUsageRequest::DescribeSnapshotsUsageRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeSnapshotsUsage") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSnapshotsUsageRequest::~DescribeSnapshotsUsageRequest() -{} - -long DescribeSnapshotsUsageRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeSnapshotsUsageRequest; + +DescribeSnapshotsUsageRequest::DescribeSnapshotsUsageRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeSnapshotsUsage") { + setMethod(HttpRequest::Method::Post); } -void DescribeSnapshotsUsageRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSnapshotsUsageRequest::~DescribeSnapshotsUsageRequest() {} + +long DescribeSnapshotsUsageRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeSnapshotsUsageRequest::getRegionId()const -{ - return regionId_; +void DescribeSnapshotsUsageRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSnapshotsUsageRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeSnapshotsUsageRequest::getRegionId() const { + return regionId_; } -std::string DescribeSnapshotsUsageRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSnapshotsUsageRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeSnapshotsUsageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSnapshotsUsageRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSnapshotsUsageRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSnapshotsUsageRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSnapshotsUsageRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSnapshotsUsageRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeSnapshotsUsageRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSnapshotsUsageRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSnapshotsUsageRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSnapshotsUsageRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeSnapshotsUsageRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/DescribeSnapshotsUsageResult.cc b/ecs/src/model/DescribeSnapshotsUsageResult.cc index ee7819f1d..df62679cc 100644 --- a/ecs/src/model/DescribeSnapshotsUsageResult.cc +++ b/ecs/src/model/DescribeSnapshotsUsageResult.cc @@ -39,10 +39,10 @@ void DescribeSnapshotsUsageResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["SnapshotCount"].isNull()) - snapshotCount_ = std::stoi(value["SnapshotCount"].asString()); if(!value["SnapshotSize"].isNull()) snapshotSize_ = std::stol(value["SnapshotSize"].asString()); + if(!value["SnapshotCount"].isNull()) + snapshotCount_ = std::stoi(value["SnapshotCount"].asString()); } diff --git a/ecs/src/model/DescribeSpotAdviceRequest.cc b/ecs/src/model/DescribeSpotAdviceRequest.cc index 00ebff6a5..d96015599 100644 --- a/ecs/src/model/DescribeSpotAdviceRequest.cc +++ b/ecs/src/model/DescribeSpotAdviceRequest.cc @@ -1,218 +1,179 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeSpotAdviceRequest; - -DescribeSpotAdviceRequest::DescribeSpotAdviceRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeSpotAdvice") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSpotAdviceRequest::~DescribeSpotAdviceRequest() -{} - -std::string DescribeSpotAdviceRequest::getGpuSpec()const -{ - return gpuSpec_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeSpotAdviceRequest; + +DescribeSpotAdviceRequest::DescribeSpotAdviceRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeSpotAdvice") { + setMethod(HttpRequest::Method::Post); } -void DescribeSpotAdviceRequest::setGpuSpec(const std::string& gpuSpec) -{ - gpuSpec_ = gpuSpec; - setParameter("GpuSpec", gpuSpec); +DescribeSpotAdviceRequest::~DescribeSpotAdviceRequest() {} + +std::string DescribeSpotAdviceRequest::getGpuSpec() const { + return gpuSpec_; } -long DescribeSpotAdviceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void DescribeSpotAdviceRequest::setGpuSpec(const std::string &gpuSpec) { + gpuSpec_ = gpuSpec; + setParameter(std::string("GpuSpec"), gpuSpec); } -void DescribeSpotAdviceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long DescribeSpotAdviceRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -float DescribeSpotAdviceRequest::getMemory()const -{ - return memory_; +void DescribeSpotAdviceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSpotAdviceRequest::setMemory(float memory) -{ - memory_ = memory; - setParameter("Memory", std::to_string(memory)); +float DescribeSpotAdviceRequest::getMemory() const { + return memory_; } -std::vector DescribeSpotAdviceRequest::getInstanceTypes()const -{ - return instanceTypes_; +void DescribeSpotAdviceRequest::setMemory(float memory) { + memory_ = memory; + setParameter(std::string("Memory"), std::to_string(memory)); } -void DescribeSpotAdviceRequest::setInstanceTypes(const std::vector& instanceTypes) -{ - instanceTypes_ = instanceTypes; - for(int dep1 = 0; dep1!= instanceTypes.size(); dep1++) { - setParameter("InstanceTypes."+ std::to_string(dep1), instanceTypes.at(dep1)); - } +std::string DescribeSpotAdviceRequest::getIoOptimized() const { + return ioOptimized_; } -std::string DescribeSpotAdviceRequest::getIoOptimized()const -{ - return ioOptimized_; +void DescribeSpotAdviceRequest::setIoOptimized(const std::string &ioOptimized) { + ioOptimized_ = ioOptimized; + setParameter(std::string("IoOptimized"), ioOptimized); } -void DescribeSpotAdviceRequest::setIoOptimized(const std::string& ioOptimized) -{ - ioOptimized_ = ioOptimized; - setParameter("IoOptimized", ioOptimized); +std::vector DescribeSpotAdviceRequest::getInstanceTypes() const { + return instanceTypes_; } -int DescribeSpotAdviceRequest::getMinCores()const -{ - return minCores_; +void DescribeSpotAdviceRequest::setInstanceTypes(const std::vector &instanceTypes) { + instanceTypes_ = instanceTypes; } -void DescribeSpotAdviceRequest::setMinCores(int minCores) -{ - minCores_ = minCores; - setParameter("MinCores", std::to_string(minCores)); +int DescribeSpotAdviceRequest::getMinCores() const { + return minCores_; } -std::string DescribeSpotAdviceRequest::getNetworkType()const -{ - return networkType_; +void DescribeSpotAdviceRequest::setMinCores(int minCores) { + minCores_ = minCores; + setParameter(std::string("MinCores"), std::to_string(minCores)); } -void DescribeSpotAdviceRequest::setNetworkType(const std::string& networkType) -{ - networkType_ = networkType; - setParameter("NetworkType", networkType); +std::string DescribeSpotAdviceRequest::getNetworkType() const { + return networkType_; } -int DescribeSpotAdviceRequest::getCores()const -{ - return cores_; +void DescribeSpotAdviceRequest::setNetworkType(const std::string &networkType) { + networkType_ = networkType; + setParameter(std::string("NetworkType"), networkType); } -void DescribeSpotAdviceRequest::setCores(int cores) -{ - cores_ = cores; - setParameter("Cores", std::to_string(cores)); +int DescribeSpotAdviceRequest::getCores() const { + return cores_; } -std::string DescribeSpotAdviceRequest::getRegionId()const -{ - return regionId_; +void DescribeSpotAdviceRequest::setCores(int cores) { + cores_ = cores; + setParameter(std::string("Cores"), std::to_string(cores)); } -void DescribeSpotAdviceRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeSpotAdviceRequest::getRegionId() const { + return regionId_; } -std::string DescribeSpotAdviceRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSpotAdviceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeSpotAdviceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSpotAdviceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSpotAdviceRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSpotAdviceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSpotAdviceRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSpotAdviceRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeSpotAdviceRequest::getInstanceTypeFamily()const -{ - return instanceTypeFamily_; +void DescribeSpotAdviceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSpotAdviceRequest::setInstanceTypeFamily(const std::string& instanceTypeFamily) -{ - instanceTypeFamily_ = instanceTypeFamily; - setParameter("InstanceTypeFamily", instanceTypeFamily); +std::string DescribeSpotAdviceRequest::getInstanceTypeFamily() const { + return instanceTypeFamily_; } -long DescribeSpotAdviceRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSpotAdviceRequest::setInstanceTypeFamily(const std::string &instanceTypeFamily) { + instanceTypeFamily_ = instanceTypeFamily; + setParameter(std::string("InstanceTypeFamily"), instanceTypeFamily); } -void DescribeSpotAdviceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSpotAdviceRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeSpotAdviceRequest::getInstanceFamilyLevel()const -{ - return instanceFamilyLevel_; +void DescribeSpotAdviceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeSpotAdviceRequest::setInstanceFamilyLevel(const std::string& instanceFamilyLevel) -{ - instanceFamilyLevel_ = instanceFamilyLevel; - setParameter("InstanceFamilyLevel", instanceFamilyLevel); +std::string DescribeSpotAdviceRequest::getInstanceFamilyLevel() const { + return instanceFamilyLevel_; } -std::string DescribeSpotAdviceRequest::getZoneId()const -{ - return zoneId_; +void DescribeSpotAdviceRequest::setInstanceFamilyLevel(const std::string &instanceFamilyLevel) { + instanceFamilyLevel_ = instanceFamilyLevel; + setParameter(std::string("InstanceFamilyLevel"), instanceFamilyLevel); } -void DescribeSpotAdviceRequest::setZoneId(const std::string& zoneId) -{ - zoneId_ = zoneId; - setParameter("ZoneId", zoneId); +std::string DescribeSpotAdviceRequest::getZoneId() const { + return zoneId_; } -int DescribeSpotAdviceRequest::getGpuAmount()const -{ - return gpuAmount_; +void DescribeSpotAdviceRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); } -void DescribeSpotAdviceRequest::setGpuAmount(int gpuAmount) -{ - gpuAmount_ = gpuAmount; - setParameter("GpuAmount", std::to_string(gpuAmount)); +int DescribeSpotAdviceRequest::getGpuAmount() const { + return gpuAmount_; } -float DescribeSpotAdviceRequest::getMinMemory()const -{ - return minMemory_; +void DescribeSpotAdviceRequest::setGpuAmount(int gpuAmount) { + gpuAmount_ = gpuAmount; + setParameter(std::string("GpuAmount"), std::to_string(gpuAmount)); } -void DescribeSpotAdviceRequest::setMinMemory(float minMemory) -{ - minMemory_ = minMemory; - setParameter("MinMemory", std::to_string(minMemory)); +float DescribeSpotAdviceRequest::getMinMemory() const { + return minMemory_; +} + +void DescribeSpotAdviceRequest::setMinMemory(float minMemory) { + minMemory_ = minMemory; + setParameter(std::string("MinMemory"), std::to_string(minMemory)); } diff --git a/ecs/src/model/DescribeSpotAdviceResult.cc b/ecs/src/model/DescribeSpotAdviceResult.cc index 4db6ba0d1..5dc329f59 100644 --- a/ecs/src/model/DescribeSpotAdviceResult.cc +++ b/ecs/src/model/DescribeSpotAdviceResult.cc @@ -49,14 +49,14 @@ void DescribeSpotAdviceResult::parse(const std::string &payload) for (auto valueAvailableSpotZonesAvailableSpotZoneAvailableSpotResourcesAvailableSpotResource : allAvailableSpotResourcesNode) { AvailableSpotZone::AvailableSpotResource availableSpotResourcesObject; - if(!valueAvailableSpotZonesAvailableSpotZoneAvailableSpotResourcesAvailableSpotResource["InstanceType"].isNull()) - availableSpotResourcesObject.instanceType = valueAvailableSpotZonesAvailableSpotZoneAvailableSpotResourcesAvailableSpotResource["InstanceType"].asString(); - if(!valueAvailableSpotZonesAvailableSpotZoneAvailableSpotResourcesAvailableSpotResource["InterruptionRate"].isNull()) - availableSpotResourcesObject.interruptionRate = std::stof(valueAvailableSpotZonesAvailableSpotZoneAvailableSpotResourcesAvailableSpotResource["InterruptionRate"].asString()); if(!valueAvailableSpotZonesAvailableSpotZoneAvailableSpotResourcesAvailableSpotResource["InterruptRateDesc"].isNull()) availableSpotResourcesObject.interruptRateDesc = valueAvailableSpotZonesAvailableSpotZoneAvailableSpotResourcesAvailableSpotResource["InterruptRateDesc"].asString(); if(!valueAvailableSpotZonesAvailableSpotZoneAvailableSpotResourcesAvailableSpotResource["AverageSpotDiscount"].isNull()) availableSpotResourcesObject.averageSpotDiscount = std::stoi(valueAvailableSpotZonesAvailableSpotZoneAvailableSpotResourcesAvailableSpotResource["AverageSpotDiscount"].asString()); + if(!valueAvailableSpotZonesAvailableSpotZoneAvailableSpotResourcesAvailableSpotResource["InstanceType"].isNull()) + availableSpotResourcesObject.instanceType = valueAvailableSpotZonesAvailableSpotZoneAvailableSpotResourcesAvailableSpotResource["InstanceType"].asString(); + if(!valueAvailableSpotZonesAvailableSpotZoneAvailableSpotResourcesAvailableSpotResource["InterruptionRate"].isNull()) + availableSpotResourcesObject.interruptionRate = std::stof(valueAvailableSpotZonesAvailableSpotZoneAvailableSpotResourcesAvailableSpotResource["InterruptionRate"].asString()); availableSpotZonesObject.availableSpotResources.push_back(availableSpotResourcesObject); } availableSpotZones_.push_back(availableSpotZonesObject); diff --git a/ecs/src/model/DescribeSpotPriceHistoryRequest.cc b/ecs/src/model/DescribeSpotPriceHistoryRequest.cc index 88da74516..9786be7aa 100644 --- a/ecs/src/model/DescribeSpotPriceHistoryRequest.cc +++ b/ecs/src/model/DescribeSpotPriceHistoryRequest.cc @@ -1,183 +1,153 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeSpotPriceHistoryRequest; - -DescribeSpotPriceHistoryRequest::DescribeSpotPriceHistoryRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeSpotPriceHistory") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSpotPriceHistoryRequest::~DescribeSpotPriceHistoryRequest() -{} - -long DescribeSpotPriceHistoryRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeSpotPriceHistoryRequest; + +DescribeSpotPriceHistoryRequest::DescribeSpotPriceHistoryRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeSpotPriceHistory") { + setMethod(HttpRequest::Method::Post); } -void DescribeSpotPriceHistoryRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeSpotPriceHistoryRequest::~DescribeSpotPriceHistoryRequest() {} + +long DescribeSpotPriceHistoryRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeSpotPriceHistoryRequest::getIoOptimized()const -{ - return ioOptimized_; +void DescribeSpotPriceHistoryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeSpotPriceHistoryRequest::setIoOptimized(const std::string& ioOptimized) -{ - ioOptimized_ = ioOptimized; - setParameter("IoOptimized", ioOptimized); +std::string DescribeSpotPriceHistoryRequest::getIoOptimized() const { + return ioOptimized_; } -std::string DescribeSpotPriceHistoryRequest::getNetworkType()const -{ - return networkType_; +void DescribeSpotPriceHistoryRequest::setIoOptimized(const std::string &ioOptimized) { + ioOptimized_ = ioOptimized; + setParameter(std::string("IoOptimized"), ioOptimized); } -void DescribeSpotPriceHistoryRequest::setNetworkType(const std::string& networkType) -{ - networkType_ = networkType; - setParameter("NetworkType", networkType); +std::string DescribeSpotPriceHistoryRequest::getNetworkType() const { + return networkType_; } -std::string DescribeSpotPriceHistoryRequest::getStartTime()const -{ - return startTime_; +void DescribeSpotPriceHistoryRequest::setNetworkType(const std::string &networkType) { + networkType_ = networkType; + setParameter(std::string("NetworkType"), networkType); } -void DescribeSpotPriceHistoryRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string DescribeSpotPriceHistoryRequest::getStartTime() const { + return startTime_; } -std::string DescribeSpotPriceHistoryRequest::getRegionId()const -{ - return regionId_; +void DescribeSpotPriceHistoryRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void DescribeSpotPriceHistoryRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeSpotPriceHistoryRequest::getRegionId() const { + return regionId_; } -std::string DescribeSpotPriceHistoryRequest::getInstanceType()const -{ - return instanceType_; +void DescribeSpotPriceHistoryRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeSpotPriceHistoryRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +std::string DescribeSpotPriceHistoryRequest::getInstanceType() const { + return instanceType_; } -int DescribeSpotPriceHistoryRequest::getOffset()const -{ - return offset_; +void DescribeSpotPriceHistoryRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } -void DescribeSpotPriceHistoryRequest::setOffset(int offset) -{ - offset_ = offset; - setParameter("Offset", std::to_string(offset)); +int DescribeSpotPriceHistoryRequest::getOffset() const { + return offset_; } -std::string DescribeSpotPriceHistoryRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeSpotPriceHistoryRequest::setOffset(int offset) { + offset_ = offset; + setParameter(std::string("Offset"), std::to_string(offset)); } -void DescribeSpotPriceHistoryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeSpotPriceHistoryRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeSpotPriceHistoryRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeSpotPriceHistoryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeSpotPriceHistoryRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeSpotPriceHistoryRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeSpotPriceHistoryRequest::getEndTime()const -{ - return endTime_; +void DescribeSpotPriceHistoryRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeSpotPriceHistoryRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +std::string DescribeSpotPriceHistoryRequest::getEndTime() const { + return endTime_; } -std::string DescribeSpotPriceHistoryRequest::getOSType()const -{ - return oSType_; +void DescribeSpotPriceHistoryRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void DescribeSpotPriceHistoryRequest::setOSType(const std::string& oSType) -{ - oSType_ = oSType; - setParameter("OSType", oSType); +std::string DescribeSpotPriceHistoryRequest::getOSType() const { + return oSType_; } -long DescribeSpotPriceHistoryRequest::getOwnerId()const -{ - return ownerId_; +void DescribeSpotPriceHistoryRequest::setOSType(const std::string &oSType) { + oSType_ = oSType; + setParameter(std::string("OSType"), oSType); } -void DescribeSpotPriceHistoryRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeSpotPriceHistoryRequest::getOwnerId() const { + return ownerId_; } -int DescribeSpotPriceHistoryRequest::getSpotDuration()const -{ - return spotDuration_; +void DescribeSpotPriceHistoryRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeSpotPriceHistoryRequest::setSpotDuration(int spotDuration) -{ - spotDuration_ = spotDuration; - setParameter("SpotDuration", std::to_string(spotDuration)); +int DescribeSpotPriceHistoryRequest::getSpotDuration() const { + return spotDuration_; } -std::string DescribeSpotPriceHistoryRequest::getZoneId()const -{ - return zoneId_; +void DescribeSpotPriceHistoryRequest::setSpotDuration(int spotDuration) { + spotDuration_ = spotDuration; + setParameter(std::string("SpotDuration"), std::to_string(spotDuration)); } -void DescribeSpotPriceHistoryRequest::setZoneId(const std::string& zoneId) -{ - zoneId_ = zoneId; - setParameter("ZoneId", zoneId); +std::string DescribeSpotPriceHistoryRequest::getZoneId() const { + return zoneId_; +} + +void DescribeSpotPriceHistoryRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); } diff --git a/ecs/src/model/DescribeSpotPriceHistoryResult.cc b/ecs/src/model/DescribeSpotPriceHistoryResult.cc index c3faa3700..3afeae507 100644 --- a/ecs/src/model/DescribeSpotPriceHistoryResult.cc +++ b/ecs/src/model/DescribeSpotPriceHistoryResult.cc @@ -43,26 +43,26 @@ void DescribeSpotPriceHistoryResult::parse(const std::string &payload) for (auto valueSpotPricesSpotPriceType : allSpotPricesNode) { SpotPriceType spotPricesObject; - if(!valueSpotPricesSpotPriceType["ZoneId"].isNull()) - spotPricesObject.zoneId = valueSpotPricesSpotPriceType["ZoneId"].asString(); - if(!valueSpotPricesSpotPriceType["InstanceType"].isNull()) - spotPricesObject.instanceType = valueSpotPricesSpotPriceType["InstanceType"].asString(); if(!valueSpotPricesSpotPriceType["IoOptimized"].isNull()) spotPricesObject.ioOptimized = valueSpotPricesSpotPriceType["IoOptimized"].asString(); + if(!valueSpotPricesSpotPriceType["ZoneId"].isNull()) + spotPricesObject.zoneId = valueSpotPricesSpotPriceType["ZoneId"].asString(); + if(!valueSpotPricesSpotPriceType["SpotPrice"].isNull()) + spotPricesObject.spotPrice = std::stof(valueSpotPricesSpotPriceType["SpotPrice"].asString()); if(!valueSpotPricesSpotPriceType["Timestamp"].isNull()) spotPricesObject.timestamp = valueSpotPricesSpotPriceType["Timestamp"].asString(); if(!valueSpotPricesSpotPriceType["NetworkType"].isNull()) spotPricesObject.networkType = valueSpotPricesSpotPriceType["NetworkType"].asString(); - if(!valueSpotPricesSpotPriceType["SpotPrice"].isNull()) - spotPricesObject.spotPrice = std::stof(valueSpotPricesSpotPriceType["SpotPrice"].asString()); + if(!valueSpotPricesSpotPriceType["InstanceType"].isNull()) + spotPricesObject.instanceType = valueSpotPricesSpotPriceType["InstanceType"].asString(); if(!valueSpotPricesSpotPriceType["OriginPrice"].isNull()) spotPricesObject.originPrice = std::stof(valueSpotPricesSpotPriceType["OriginPrice"].asString()); spotPrices_.push_back(spotPricesObject); } - if(!value["NextOffset"].isNull()) - nextOffset_ = std::stoi(value["NextOffset"].asString()); if(!value["Currency"].isNull()) currency_ = value["Currency"].asString(); + if(!value["NextOffset"].isNull()) + nextOffset_ = std::stoi(value["NextOffset"].asString()); } diff --git a/ecs/src/model/DescribeStorageCapacityUnitsRequest.cc b/ecs/src/model/DescribeStorageCapacityUnitsRequest.cc index 0caa121ae..f8a377e46 100644 --- a/ecs/src/model/DescribeStorageCapacityUnitsRequest.cc +++ b/ecs/src/model/DescribeStorageCapacityUnitsRequest.cc @@ -1,181 +1,147 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeStorageCapacityUnitsRequest; - -DescribeStorageCapacityUnitsRequest::DescribeStorageCapacityUnitsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeStorageCapacityUnits") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeStorageCapacityUnitsRequest::~DescribeStorageCapacityUnitsRequest() -{} - -long DescribeStorageCapacityUnitsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeStorageCapacityUnitsRequest; + +DescribeStorageCapacityUnitsRequest::DescribeStorageCapacityUnitsRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeStorageCapacityUnits") { + setMethod(HttpRequest::Method::Post); } -void DescribeStorageCapacityUnitsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeStorageCapacityUnitsRequest::~DescribeStorageCapacityUnitsRequest() {} + +long DescribeStorageCapacityUnitsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeStorageCapacityUnitsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeStorageCapacityUnitsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeStorageCapacityUnitsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeStorageCapacityUnitsRequest::getPageNumber() const { + return pageNumber_; } -int DescribeStorageCapacityUnitsRequest::getCapacity()const -{ - return capacity_; +void DescribeStorageCapacityUnitsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeStorageCapacityUnitsRequest::setCapacity(int capacity) -{ - capacity_ = capacity; - setParameter("Capacity", std::to_string(capacity)); +int DescribeStorageCapacityUnitsRequest::getCapacity() const { + return capacity_; } -std::vector DescribeStorageCapacityUnitsRequest::getStorageCapacityUnitId()const -{ - return storageCapacityUnitId_; +void DescribeStorageCapacityUnitsRequest::setCapacity(int capacity) { + capacity_ = capacity; + setParameter(std::string("Capacity"), std::to_string(capacity)); } -void DescribeStorageCapacityUnitsRequest::setStorageCapacityUnitId(const std::vector& storageCapacityUnitId) -{ - storageCapacityUnitId_ = storageCapacityUnitId; - for(int dep1 = 0; dep1!= storageCapacityUnitId.size(); dep1++) { - setParameter("StorageCapacityUnitId."+ std::to_string(dep1), storageCapacityUnitId.at(dep1)); - } +std::vector DescribeStorageCapacityUnitsRequest::getStorageCapacityUnitId() const { + return storageCapacityUnitId_; } -std::string DescribeStorageCapacityUnitsRequest::getRegionId()const -{ - return regionId_; +void DescribeStorageCapacityUnitsRequest::setStorageCapacityUnitId(const std::vector &storageCapacityUnitId) { + storageCapacityUnitId_ = storageCapacityUnitId; } -void DescribeStorageCapacityUnitsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeStorageCapacityUnitsRequest::getRegionId() const { + return regionId_; } -int DescribeStorageCapacityUnitsRequest::getPageSize()const -{ - return pageSize_; +void DescribeStorageCapacityUnitsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeStorageCapacityUnitsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeStorageCapacityUnitsRequest::getPageSize() const { + return pageSize_; } -std::vector DescribeStorageCapacityUnitsRequest::getTag()const -{ - return tag_; +void DescribeStorageCapacityUnitsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeStorageCapacityUnitsRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Key", tagObj.key); - setParameter(tagObjStr + ".Value", tagObj.value); - } +std::vector DescribeStorageCapacityUnitsRequest::getTag() const { + return tag_; } -std::string DescribeStorageCapacityUnitsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeStorageCapacityUnitsRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } } -void DescribeStorageCapacityUnitsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeStorageCapacityUnitsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeStorageCapacityUnitsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeStorageCapacityUnitsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeStorageCapacityUnitsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeStorageCapacityUnitsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeStorageCapacityUnitsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeStorageCapacityUnitsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeStorageCapacityUnitsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeStorageCapacityUnitsRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeStorageCapacityUnitsRequest::getName()const -{ - return name_; +void DescribeStorageCapacityUnitsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeStorageCapacityUnitsRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string DescribeStorageCapacityUnitsRequest::getName() const { + return name_; } -std::string DescribeStorageCapacityUnitsRequest::getAllocationType()const -{ - return allocationType_; +void DescribeStorageCapacityUnitsRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void DescribeStorageCapacityUnitsRequest::setAllocationType(const std::string& allocationType) -{ - allocationType_ = allocationType; - setParameter("AllocationType", allocationType); +std::string DescribeStorageCapacityUnitsRequest::getAllocationType() const { + return allocationType_; } -std::vector DescribeStorageCapacityUnitsRequest::getStatus()const -{ - return status_; +void DescribeStorageCapacityUnitsRequest::setAllocationType(const std::string &allocationType) { + allocationType_ = allocationType; + setParameter(std::string("AllocationType"), allocationType); } -void DescribeStorageCapacityUnitsRequest::setStatus(const std::vector& status) -{ - status_ = status; - for(int dep1 = 0; dep1!= status.size(); dep1++) { - setParameter("Status."+ std::to_string(dep1), status.at(dep1)); - } +std::vector DescribeStorageCapacityUnitsRequest::getStatus() const { + return status_; +} + +void DescribeStorageCapacityUnitsRequest::setStatus(const std::vector &status) { + status_ = status; } diff --git a/ecs/src/model/DescribeStorageSetDetailsRequest.cc b/ecs/src/model/DescribeStorageSetDetailsRequest.cc index 71154ab6c..2fcf4524f 100644 --- a/ecs/src/model/DescribeStorageSetDetailsRequest.cc +++ b/ecs/src/model/DescribeStorageSetDetailsRequest.cc @@ -1,150 +1,126 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeStorageSetDetailsRequest; - -DescribeStorageSetDetailsRequest::DescribeStorageSetDetailsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeStorageSetDetails") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeStorageSetDetailsRequest::~DescribeStorageSetDetailsRequest() -{} - -long DescribeStorageSetDetailsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeStorageSetDetailsRequest; + +DescribeStorageSetDetailsRequest::DescribeStorageSetDetailsRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeStorageSetDetails") { + setMethod(HttpRequest::Method::Post); } -void DescribeStorageSetDetailsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeStorageSetDetailsRequest::~DescribeStorageSetDetailsRequest() {} + +long DescribeStorageSetDetailsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeStorageSetDetailsRequest::getClientToken()const -{ - return clientToken_; +void DescribeStorageSetDetailsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeStorageSetDetailsRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DescribeStorageSetDetailsRequest::getClientToken() const { + return clientToken_; } -int DescribeStorageSetDetailsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeStorageSetDetailsRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DescribeStorageSetDetailsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeStorageSetDetailsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeStorageSetDetailsRequest::getRegionId()const -{ - return regionId_; +void DescribeStorageSetDetailsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeStorageSetDetailsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeStorageSetDetailsRequest::getRegionId() const { + return regionId_; } -int DescribeStorageSetDetailsRequest::getPageSize()const -{ - return pageSize_; +void DescribeStorageSetDetailsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeStorageSetDetailsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeStorageSetDetailsRequest::getPageSize() const { + return pageSize_; } -int DescribeStorageSetDetailsRequest::getStorageSetPartitionNumber()const -{ - return storageSetPartitionNumber_; +void DescribeStorageSetDetailsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeStorageSetDetailsRequest::setStorageSetPartitionNumber(int storageSetPartitionNumber) -{ - storageSetPartitionNumber_ = storageSetPartitionNumber; - setParameter("StorageSetPartitionNumber", std::to_string(storageSetPartitionNumber)); +int DescribeStorageSetDetailsRequest::getStorageSetPartitionNumber() const { + return storageSetPartitionNumber_; } -std::string DescribeStorageSetDetailsRequest::getDiskIds()const -{ - return diskIds_; +void DescribeStorageSetDetailsRequest::setStorageSetPartitionNumber(int storageSetPartitionNumber) { + storageSetPartitionNumber_ = storageSetPartitionNumber; + setParameter(std::string("StorageSetPartitionNumber"), std::to_string(storageSetPartitionNumber)); } -void DescribeStorageSetDetailsRequest::setDiskIds(const std::string& diskIds) -{ - diskIds_ = diskIds; - setParameter("DiskIds", diskIds); +std::string DescribeStorageSetDetailsRequest::getDiskIds() const { + return diskIds_; } -std::string DescribeStorageSetDetailsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeStorageSetDetailsRequest::setDiskIds(const std::string &diskIds) { + diskIds_ = diskIds; + setParameter(std::string("DiskIds"), diskIds); } -void DescribeStorageSetDetailsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeStorageSetDetailsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeStorageSetDetailsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeStorageSetDetailsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeStorageSetDetailsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeStorageSetDetailsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeStorageSetDetailsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeStorageSetDetailsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeStorageSetDetailsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeStorageSetDetailsRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeStorageSetDetailsRequest::getStorageSetId()const -{ - return storageSetId_; +void DescribeStorageSetDetailsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeStorageSetDetailsRequest::setStorageSetId(const std::string& storageSetId) -{ - storageSetId_ = storageSetId; - setParameter("StorageSetId", storageSetId); +std::string DescribeStorageSetDetailsRequest::getStorageSetId() const { + return storageSetId_; +} + +void DescribeStorageSetDetailsRequest::setStorageSetId(const std::string &storageSetId) { + storageSetId_ = storageSetId; + setParameter(std::string("StorageSetId"), storageSetId); } diff --git a/ecs/src/model/DescribeStorageSetDetailsResult.cc b/ecs/src/model/DescribeStorageSetDetailsResult.cc index 8fdf42eed..1f82f51ca 100644 --- a/ecs/src/model/DescribeStorageSetDetailsResult.cc +++ b/ecs/src/model/DescribeStorageSetDetailsResult.cc @@ -43,30 +43,30 @@ void DescribeStorageSetDetailsResult::parse(const std::string &payload) for (auto valueDisksDisk : allDisksNode) { Disk disksObject; - if(!valueDisksDisk["DiskId"].isNull()) - disksObject.diskId = valueDisksDisk["DiskId"].asString(); - if(!valueDisksDisk["DiskName"].isNull()) - disksObject.diskName = valueDisksDisk["DiskName"].asString(); - if(!valueDisksDisk["Category"].isNull()) - disksObject.category = valueDisksDisk["Category"].asString(); - if(!valueDisksDisk["StorageSetId"].isNull()) - disksObject.storageSetId = valueDisksDisk["StorageSetId"].asString(); if(!valueDisksDisk["CreationTime"].isNull()) disksObject.creationTime = valueDisksDisk["CreationTime"].asString(); + if(!valueDisksDisk["DiskName"].isNull()) + disksObject.diskName = valueDisksDisk["DiskName"].asString(); + if(!valueDisksDisk["ZoneId"].isNull()) + disksObject.zoneId = valueDisksDisk["ZoneId"].asString(); + if(!valueDisksDisk["StorageSetId"].isNull()) + disksObject.storageSetId = valueDisksDisk["StorageSetId"].asString(); + if(!valueDisksDisk["DiskId"].isNull()) + disksObject.diskId = valueDisksDisk["DiskId"].asString(); + if(!valueDisksDisk["Category"].isNull()) + disksObject.category = valueDisksDisk["Category"].asString(); if(!valueDisksDisk["StorageSetPartitionNumber"].isNull()) disksObject.storageSetPartitionNumber = std::stoi(valueDisksDisk["StorageSetPartitionNumber"].asString()); if(!valueDisksDisk["RegionId"].isNull()) disksObject.regionId = valueDisksDisk["RegionId"].asString(); - if(!valueDisksDisk["ZoneId"].isNull()) - disksObject.zoneId = valueDisksDisk["ZoneId"].asString(); disks_.push_back(disksObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/ecs/src/model/DescribeStorageSetsRequest.cc b/ecs/src/model/DescribeStorageSetsRequest.cc index d31434d69..60767f01c 100644 --- a/ecs/src/model/DescribeStorageSetsRequest.cc +++ b/ecs/src/model/DescribeStorageSetsRequest.cc @@ -1,150 +1,126 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeStorageSetsRequest; - -DescribeStorageSetsRequest::DescribeStorageSetsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeStorageSets") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeStorageSetsRequest::~DescribeStorageSetsRequest() -{} - -long DescribeStorageSetsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeStorageSetsRequest; + +DescribeStorageSetsRequest::DescribeStorageSetsRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeStorageSets") { + setMethod(HttpRequest::Method::Post); } -void DescribeStorageSetsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeStorageSetsRequest::~DescribeStorageSetsRequest() {} + +long DescribeStorageSetsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeStorageSetsRequest::getClientToken()const -{ - return clientToken_; +void DescribeStorageSetsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeStorageSetsRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string DescribeStorageSetsRequest::getClientToken() const { + return clientToken_; } -std::string DescribeStorageSetsRequest::getStorageSetIds()const -{ - return storageSetIds_; +void DescribeStorageSetsRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void DescribeStorageSetsRequest::setStorageSetIds(const std::string& storageSetIds) -{ - storageSetIds_ = storageSetIds; - setParameter("StorageSetIds", storageSetIds); +std::string DescribeStorageSetsRequest::getStorageSetIds() const { + return storageSetIds_; } -int DescribeStorageSetsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeStorageSetsRequest::setStorageSetIds(const std::string &storageSetIds) { + storageSetIds_ = storageSetIds; + setParameter(std::string("StorageSetIds"), storageSetIds); } -void DescribeStorageSetsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeStorageSetsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeStorageSetsRequest::getRegionId()const -{ - return regionId_; +void DescribeStorageSetsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeStorageSetsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeStorageSetsRequest::getRegionId() const { + return regionId_; } -int DescribeStorageSetsRequest::getPageSize()const -{ - return pageSize_; +void DescribeStorageSetsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeStorageSetsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeStorageSetsRequest::getPageSize() const { + return pageSize_; } -std::string DescribeStorageSetsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeStorageSetsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeStorageSetsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeStorageSetsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeStorageSetsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeStorageSetsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeStorageSetsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeStorageSetsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeStorageSetsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeStorageSetsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeStorageSetsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeStorageSetsRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeStorageSetsRequest::getZoneId()const -{ - return zoneId_; +void DescribeStorageSetsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeStorageSetsRequest::setZoneId(const std::string& zoneId) -{ - zoneId_ = zoneId; - setParameter("ZoneId", zoneId); +std::string DescribeStorageSetsRequest::getZoneId() const { + return zoneId_; } -std::string DescribeStorageSetsRequest::getStorageSetName()const -{ - return storageSetName_; +void DescribeStorageSetsRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); } -void DescribeStorageSetsRequest::setStorageSetName(const std::string& storageSetName) -{ - storageSetName_ = storageSetName; - setParameter("StorageSetName", storageSetName); +std::string DescribeStorageSetsRequest::getStorageSetName() const { + return storageSetName_; +} + +void DescribeStorageSetsRequest::setStorageSetName(const std::string &storageSetName) { + storageSetName_ = storageSetName; + setParameter(std::string("StorageSetName"), storageSetName); } diff --git a/ecs/src/model/DescribeStorageSetsResult.cc b/ecs/src/model/DescribeStorageSetsResult.cc index 0fc1b4c6a..48f94dc18 100644 --- a/ecs/src/model/DescribeStorageSetsResult.cc +++ b/ecs/src/model/DescribeStorageSetsResult.cc @@ -43,28 +43,28 @@ void DescribeStorageSetsResult::parse(const std::string &payload) for (auto valueStorageSetsStorageSet : allStorageSetsNode) { StorageSet storageSetsObject; - if(!valueStorageSetsStorageSet["StorageSetId"].isNull()) - storageSetsObject.storageSetId = valueStorageSetsStorageSet["StorageSetId"].asString(); if(!valueStorageSetsStorageSet["CreationTime"].isNull()) storageSetsObject.creationTime = valueStorageSetsStorageSet["CreationTime"].asString(); - if(!valueStorageSetsStorageSet["StorageSetName"].isNull()) - storageSetsObject.storageSetName = valueStorageSetsStorageSet["StorageSetName"].asString(); if(!valueStorageSetsStorageSet["Description"].isNull()) storageSetsObject.description = valueStorageSetsStorageSet["Description"].asString(); - if(!valueStorageSetsStorageSet["StorageSetPartitionNumber"].isNull()) - storageSetsObject.storageSetPartitionNumber = std::stoi(valueStorageSetsStorageSet["StorageSetPartitionNumber"].asString()); - if(!valueStorageSetsStorageSet["RegionId"].isNull()) - storageSetsObject.regionId = valueStorageSetsStorageSet["RegionId"].asString(); if(!valueStorageSetsStorageSet["ZoneId"].isNull()) storageSetsObject.zoneId = valueStorageSetsStorageSet["ZoneId"].asString(); + if(!valueStorageSetsStorageSet["StorageSetId"].isNull()) + storageSetsObject.storageSetId = valueStorageSetsStorageSet["StorageSetId"].asString(); + if(!valueStorageSetsStorageSet["StorageSetPartitionNumber"].isNull()) + storageSetsObject.storageSetPartitionNumber = std::stoi(valueStorageSetsStorageSet["StorageSetPartitionNumber"].asString()); + if(!valueStorageSetsStorageSet["StorageSetName"].isNull()) + storageSetsObject.storageSetName = valueStorageSetsStorageSet["StorageSetName"].asString(); + if(!valueStorageSetsStorageSet["RegionId"].isNull()) + storageSetsObject.regionId = valueStorageSetsStorageSet["RegionId"].asString(); storageSets_.push_back(storageSetsObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/ecs/src/model/DescribeTagsRequest.cc b/ecs/src/model/DescribeTagsRequest.cc index 66a1bd281..47c939a07 100644 --- a/ecs/src/model/DescribeTagsRequest.cc +++ b/ecs/src/model/DescribeTagsRequest.cc @@ -1,144 +1,122 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeTagsRequest; - -DescribeTagsRequest::DescribeTagsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeTags") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeTagsRequest::~DescribeTagsRequest() -{} - -long DescribeTagsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeTagsRequest; + +DescribeTagsRequest::DescribeTagsRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeTags") { + setMethod(HttpRequest::Method::Post); } -void DescribeTagsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeTagsRequest::~DescribeTagsRequest() {} + +long DescribeTagsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeTagsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeTagsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeTagsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeTagsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeTagsRequest::getRegionId()const -{ - return regionId_; +void DescribeTagsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeTagsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeTagsRequest::getRegionId() const { + return regionId_; } -int DescribeTagsRequest::getPageSize()const -{ - return pageSize_; +void DescribeTagsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeTagsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeTagsRequest::getPageSize() const { + return pageSize_; } -std::vector DescribeTagsRequest::getTag()const -{ - return tag_; +void DescribeTagsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeTagsRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Value", tagObj.value); - setParameter(tagObjStr + ".Key", tagObj.key); - } +std::vector DescribeTagsRequest::getTag() const { + return tag_; } -std::string DescribeTagsRequest::getResourceId()const -{ - return resourceId_; +void DescribeTagsRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } -void DescribeTagsRequest::setResourceId(const std::string& resourceId) -{ - resourceId_ = resourceId; - setParameter("ResourceId", resourceId); +std::string DescribeTagsRequest::getResourceId() const { + return resourceId_; } -std::string DescribeTagsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeTagsRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); } -void DescribeTagsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeTagsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long DescribeTagsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeTagsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeTagsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeTagsRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeTagsRequest::getResourceType()const -{ - return resourceType_; +void DescribeTagsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeTagsRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +std::string DescribeTagsRequest::getResourceType() const { + return resourceType_; } -std::string DescribeTagsRequest::getCategory()const -{ - return category_; +void DescribeTagsRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); } -void DescribeTagsRequest::setCategory(const std::string& category) -{ - category_ = category; - setParameter("Category", category); +std::string DescribeTagsRequest::getCategory() const { + return category_; +} + +void DescribeTagsRequest::setCategory(const std::string &category) { + category_ = category; + setParameter(std::string("Category"), category); } diff --git a/ecs/src/model/DescribeTagsResult.cc b/ecs/src/model/DescribeTagsResult.cc index 58fc01da0..5ace31800 100644 --- a/ecs/src/model/DescribeTagsResult.cc +++ b/ecs/src/model/DescribeTagsResult.cc @@ -43,35 +43,35 @@ void DescribeTagsResult::parse(const std::string &payload) for (auto valueTagsTag : allTagsNode) { Tag tagsObject; - if(!valueTagsTag["TagKey"].isNull()) - tagsObject.tagKey = valueTagsTag["TagKey"].asString(); if(!valueTagsTag["TagValue"].isNull()) tagsObject.tagValue = valueTagsTag["TagValue"].asString(); + if(!valueTagsTag["TagKey"].isNull()) + tagsObject.tagKey = valueTagsTag["TagKey"].asString(); auto resourceTypeCountNode = value["ResourceTypeCount"]; if(!resourceTypeCountNode["Instance"].isNull()) tagsObject.resourceTypeCount.instance = std::stoi(resourceTypeCountNode["Instance"].asString()); - if(!resourceTypeCountNode["Disk"].isNull()) - tagsObject.resourceTypeCount.disk = std::stoi(resourceTypeCountNode["Disk"].asString()); - if(!resourceTypeCountNode["Volume"].isNull()) - tagsObject.resourceTypeCount.volume = std::stoi(resourceTypeCountNode["Volume"].asString()); if(!resourceTypeCountNode["Image"].isNull()) tagsObject.resourceTypeCount.image = std::stoi(resourceTypeCountNode["Image"].asString()); - if(!resourceTypeCountNode["Snapshot"].isNull()) - tagsObject.resourceTypeCount.snapshot = std::stoi(resourceTypeCountNode["Snapshot"].asString()); + if(!resourceTypeCountNode["Ddh"].isNull()) + tagsObject.resourceTypeCount.ddh = std::stoi(resourceTypeCountNode["Ddh"].asString()); + if(!resourceTypeCountNode["SnapshotPolicy"].isNull()) + tagsObject.resourceTypeCount.snapshotPolicy = std::stoi(resourceTypeCountNode["SnapshotPolicy"].asString()); if(!resourceTypeCountNode["Securitygroup"].isNull()) tagsObject.resourceTypeCount.securitygroup = std::stoi(resourceTypeCountNode["Securitygroup"].asString()); + if(!resourceTypeCountNode["Snapshot"].isNull()) + tagsObject.resourceTypeCount.snapshot = std::stoi(resourceTypeCountNode["Snapshot"].asString()); + if(!resourceTypeCountNode["ReservedInstance"].isNull()) + tagsObject.resourceTypeCount.reservedInstance = std::stoi(resourceTypeCountNode["ReservedInstance"].asString()); if(!resourceTypeCountNode["LaunchTemplate"].isNull()) tagsObject.resourceTypeCount.launchTemplate = std::stoi(resourceTypeCountNode["LaunchTemplate"].asString()); if(!resourceTypeCountNode["Eni"].isNull()) tagsObject.resourceTypeCount.eni = std::stoi(resourceTypeCountNode["Eni"].asString()); - if(!resourceTypeCountNode["Ddh"].isNull()) - tagsObject.resourceTypeCount.ddh = std::stoi(resourceTypeCountNode["Ddh"].asString()); + if(!resourceTypeCountNode["Disk"].isNull()) + tagsObject.resourceTypeCount.disk = std::stoi(resourceTypeCountNode["Disk"].asString()); if(!resourceTypeCountNode["KeyPair"].isNull()) tagsObject.resourceTypeCount.keyPair = std::stoi(resourceTypeCountNode["KeyPair"].asString()); - if(!resourceTypeCountNode["SnapshotPolicy"].isNull()) - tagsObject.resourceTypeCount.snapshotPolicy = std::stoi(resourceTypeCountNode["SnapshotPolicy"].asString()); - if(!resourceTypeCountNode["ReservedInstance"].isNull()) - tagsObject.resourceTypeCount.reservedInstance = std::stoi(resourceTypeCountNode["ReservedInstance"].asString()); + if(!resourceTypeCountNode["Volume"].isNull()) + tagsObject.resourceTypeCount.volume = std::stoi(resourceTypeCountNode["Volume"].asString()); tags_.push_back(tagsObject); } if(!value["PageSize"].isNull()) diff --git a/ecs/src/model/DescribeTaskAttributeRequest.cc b/ecs/src/model/DescribeTaskAttributeRequest.cc index 9088ef3b4..be7f6160a 100644 --- a/ecs/src/model/DescribeTaskAttributeRequest.cc +++ b/ecs/src/model/DescribeTaskAttributeRequest.cc @@ -1,84 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeTaskAttributeRequest; - -DescribeTaskAttributeRequest::DescribeTaskAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeTaskAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeTaskAttributeRequest::~DescribeTaskAttributeRequest() -{} - -long DescribeTaskAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeTaskAttributeRequest; + +DescribeTaskAttributeRequest::DescribeTaskAttributeRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeTaskAttribute") { + setMethod(HttpRequest::Method::Post); } -void DescribeTaskAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeTaskAttributeRequest::~DescribeTaskAttributeRequest() {} + +long DescribeTaskAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeTaskAttributeRequest::getRegionId()const -{ - return regionId_; +void DescribeTaskAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeTaskAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeTaskAttributeRequest::getRegionId() const { + return regionId_; } -std::string DescribeTaskAttributeRequest::getTaskId()const -{ - return taskId_; +void DescribeTaskAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeTaskAttributeRequest::setTaskId(const std::string& taskId) -{ - taskId_ = taskId; - setParameter("TaskId", taskId); +std::string DescribeTaskAttributeRequest::getTaskId() const { + return taskId_; } -std::string DescribeTaskAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeTaskAttributeRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); } -void DescribeTaskAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeTaskAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long DescribeTaskAttributeRequest::getOwnerId()const -{ - return ownerId_; +void DescribeTaskAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeTaskAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeTaskAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeTaskAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/DescribeTaskAttributeResult.cc b/ecs/src/model/DescribeTaskAttributeResult.cc index 145396442..4a70aaaaa 100644 --- a/ecs/src/model/DescribeTaskAttributeResult.cc +++ b/ecs/src/model/DescribeTaskAttributeResult.cc @@ -43,12 +43,12 @@ void DescribeTaskAttributeResult::parse(const std::string &payload) for (auto valueOperationProgressSetOperationProgress : allOperationProgressSetNode) { OperationProgress operationProgressSetObject; - if(!valueOperationProgressSetOperationProgress["OperationStatus"].isNull()) - operationProgressSetObject.operationStatus = valueOperationProgressSetOperationProgress["OperationStatus"].asString(); - if(!valueOperationProgressSetOperationProgress["ErrorCode"].isNull()) - operationProgressSetObject.errorCode = valueOperationProgressSetOperationProgress["ErrorCode"].asString(); if(!valueOperationProgressSetOperationProgress["ErrorMsg"].isNull()) operationProgressSetObject.errorMsg = valueOperationProgressSetOperationProgress["ErrorMsg"].asString(); + if(!valueOperationProgressSetOperationProgress["ErrorCode"].isNull()) + operationProgressSetObject.errorCode = valueOperationProgressSetOperationProgress["ErrorCode"].asString(); + if(!valueOperationProgressSetOperationProgress["OperationStatus"].isNull()) + operationProgressSetObject.operationStatus = valueOperationProgressSetOperationProgress["OperationStatus"].asString(); auto allRelatedItemSetNode = valueOperationProgressSetOperationProgress["RelatedItemSet"]["RelatedItem"]; for (auto valueOperationProgressSetOperationProgressRelatedItemSetRelatedItem : allRelatedItemSetNode) { @@ -61,28 +61,28 @@ void DescribeTaskAttributeResult::parse(const std::string &payload) } operationProgressSet_.push_back(operationProgressSetObject); } - if(!value["TaskId"].isNull()) - taskId_ = value["TaskId"].asString(); - if(!value["RegionId"].isNull()) - regionId_ = value["RegionId"].asString(); - if(!value["TaskAction"].isNull()) - taskAction_ = value["TaskAction"].asString(); - if(!value["TaskStatus"].isNull()) - taskStatus_ = value["TaskStatus"].asString(); - if(!value["TaskProcess"].isNull()) - taskProcess_ = value["TaskProcess"].asString(); + if(!value["CreationTime"].isNull()) + creationTime_ = value["CreationTime"].asString(); if(!value["SupportCancel"].isNull()) supportCancel_ = value["SupportCancel"].asString(); if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); if(!value["SuccessCount"].isNull()) successCount_ = std::stoi(value["SuccessCount"].asString()); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["TaskAction"].isNull()) + taskAction_ = value["TaskAction"].asString(); if(!value["FailedCount"].isNull()) failedCount_ = std::stoi(value["FailedCount"].asString()); - if(!value["CreationTime"].isNull()) - creationTime_ = value["CreationTime"].asString(); + if(!value["TaskStatus"].isNull()) + taskStatus_ = value["TaskStatus"].asString(); + if(!value["TaskProcess"].isNull()) + taskProcess_ = value["TaskProcess"].asString(); if(!value["FinishedTime"].isNull()) finishedTime_ = value["FinishedTime"].asString(); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); } @@ -106,16 +106,16 @@ std::vector DescribeTaskAttribut return operationProgressSet_; } -std::string DescribeTaskAttributeResult::getTaskAction()const -{ - return taskAction_; -} - std::string DescribeTaskAttributeResult::getSupportCancel()const { return supportCancel_; } +std::string DescribeTaskAttributeResult::getTaskAction()const +{ + return taskAction_; +} + std::string DescribeTaskAttributeResult::getCreationTime()const { return creationTime_; @@ -131,16 +131,16 @@ std::string DescribeTaskAttributeResult::getRegionId()const return regionId_; } -std::string DescribeTaskAttributeResult::getTaskStatus()const -{ - return taskStatus_; -} - int DescribeTaskAttributeResult::getSuccessCount()const { return successCount_; } +std::string DescribeTaskAttributeResult::getTaskStatus()const +{ + return taskStatus_; +} + std::string DescribeTaskAttributeResult::getFinishedTime()const { return finishedTime_; diff --git a/ecs/src/model/DescribeTasksRequest.cc b/ecs/src/model/DescribeTasksRequest.cc index 4bc9d08a0..a10e683b4 100644 --- a/ecs/src/model/DescribeTasksRequest.cc +++ b/ecs/src/model/DescribeTasksRequest.cc @@ -1,161 +1,135 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeTasksRequest; - -DescribeTasksRequest::DescribeTasksRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeTasks") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeTasksRequest::~DescribeTasksRequest() -{} - -long DescribeTasksRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeTasksRequest; + +DescribeTasksRequest::DescribeTasksRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeTasks") { + setMethod(HttpRequest::Method::Post); } -void DescribeTasksRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeTasksRequest::~DescribeTasksRequest() {} + +long DescribeTasksRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeTasksRequest::getStartTime()const -{ - return startTime_; +void DescribeTasksRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeTasksRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string DescribeTasksRequest::getStartTime() const { + return startTime_; } -std::string DescribeTasksRequest::getTaskIds()const -{ - return taskIds_; +void DescribeTasksRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void DescribeTasksRequest::setTaskIds(const std::string& taskIds) -{ - taskIds_ = taskIds; - setParameter("TaskIds", taskIds); +std::string DescribeTasksRequest::getTaskIds() const { + return taskIds_; } -int DescribeTasksRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeTasksRequest::setTaskIds(const std::string &taskIds) { + taskIds_ = taskIds; + setParameter(std::string("TaskIds"), taskIds); } -void DescribeTasksRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeTasksRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeTasksRequest::getTaskStatus()const -{ - return taskStatus_; +void DescribeTasksRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeTasksRequest::setTaskStatus(const std::string& taskStatus) -{ - taskStatus_ = taskStatus; - setParameter("TaskStatus", taskStatus); +std::string DescribeTasksRequest::getTaskStatus() const { + return taskStatus_; } -std::string DescribeTasksRequest::getRegionId()const -{ - return regionId_; +void DescribeTasksRequest::setTaskStatus(const std::string &taskStatus) { + taskStatus_ = taskStatus; + setParameter(std::string("TaskStatus"), taskStatus); } -void DescribeTasksRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeTasksRequest::getRegionId() const { + return regionId_; } -int DescribeTasksRequest::getPageSize()const -{ - return pageSize_; +void DescribeTasksRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeTasksRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeTasksRequest::getPageSize() const { + return pageSize_; } -std::string DescribeTasksRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeTasksRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeTasksRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeTasksRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeTasksRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeTasksRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeTasksRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeTasksRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DescribeTasksRequest::getEndTime()const -{ - return endTime_; +void DescribeTasksRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeTasksRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +std::string DescribeTasksRequest::getEndTime() const { + return endTime_; } -long DescribeTasksRequest::getOwnerId()const -{ - return ownerId_; +void DescribeTasksRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void DescribeTasksRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeTasksRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeTasksRequest::getTaskAction()const -{ - return taskAction_; +void DescribeTasksRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeTasksRequest::setTaskAction(const std::string& taskAction) -{ - taskAction_ = taskAction; - setParameter("TaskAction", taskAction); +std::string DescribeTasksRequest::getTaskAction() const { + return taskAction_; +} + +void DescribeTasksRequest::setTaskAction(const std::string &taskAction) { + taskAction_ = taskAction; + setParameter(std::string("TaskAction"), taskAction); } diff --git a/ecs/src/model/DescribeTasksResult.cc b/ecs/src/model/DescribeTasksResult.cc index 67670d7af..777d2b2da 100644 --- a/ecs/src/model/DescribeTasksResult.cc +++ b/ecs/src/model/DescribeTasksResult.cc @@ -43,28 +43,28 @@ void DescribeTasksResult::parse(const std::string &payload) for (auto valueTaskSetTask : allTaskSetNode) { Task taskSetObject; + if(!valueTaskSetTask["CreationTime"].isNull()) + taskSetObject.creationTime = valueTaskSetTask["CreationTime"].asString(); + if(!valueTaskSetTask["TaskStatus"].isNull()) + taskSetObject.taskStatus = valueTaskSetTask["TaskStatus"].asString(); + if(!valueTaskSetTask["FinishedTime"].isNull()) + taskSetObject.finishedTime = valueTaskSetTask["FinishedTime"].asString(); + if(!valueTaskSetTask["SupportCancel"].isNull()) + taskSetObject.supportCancel = valueTaskSetTask["SupportCancel"].asString(); if(!valueTaskSetTask["TaskId"].isNull()) taskSetObject.taskId = valueTaskSetTask["TaskId"].asString(); if(!valueTaskSetTask["TaskAction"].isNull()) taskSetObject.taskAction = valueTaskSetTask["TaskAction"].asString(); - if(!valueTaskSetTask["TaskStatus"].isNull()) - taskSetObject.taskStatus = valueTaskSetTask["TaskStatus"].asString(); - if(!valueTaskSetTask["SupportCancel"].isNull()) - taskSetObject.supportCancel = valueTaskSetTask["SupportCancel"].asString(); - if(!valueTaskSetTask["CreationTime"].isNull()) - taskSetObject.creationTime = valueTaskSetTask["CreationTime"].asString(); - if(!valueTaskSetTask["FinishedTime"].isNull()) - taskSetObject.finishedTime = valueTaskSetTask["FinishedTime"].asString(); taskSet_.push_back(taskSetObject); } - if(!value["RegionId"].isNull()) - regionId_ = value["RegionId"].asString(); - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); } diff --git a/ecs/src/model/DescribeUserBusinessBehaviorRequest.cc b/ecs/src/model/DescribeUserBusinessBehaviorRequest.cc index c438dc960..19ffd15ac 100644 --- a/ecs/src/model/DescribeUserBusinessBehaviorRequest.cc +++ b/ecs/src/model/DescribeUserBusinessBehaviorRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeUserBusinessBehaviorRequest; - -DescribeUserBusinessBehaviorRequest::DescribeUserBusinessBehaviorRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeUserBusinessBehavior") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeUserBusinessBehaviorRequest::~DescribeUserBusinessBehaviorRequest() -{} - -long DescribeUserBusinessBehaviorRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeUserBusinessBehaviorRequest; + +DescribeUserBusinessBehaviorRequest::DescribeUserBusinessBehaviorRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeUserBusinessBehavior") { + setMethod(HttpRequest::Method::Post); } -void DescribeUserBusinessBehaviorRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeUserBusinessBehaviorRequest::~DescribeUserBusinessBehaviorRequest() {} + +long DescribeUserBusinessBehaviorRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeUserBusinessBehaviorRequest::getRegionId()const -{ - return regionId_; +void DescribeUserBusinessBehaviorRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeUserBusinessBehaviorRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeUserBusinessBehaviorRequest::getRegionId() const { + return regionId_; } -std::string DescribeUserBusinessBehaviorRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeUserBusinessBehaviorRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeUserBusinessBehaviorRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeUserBusinessBehaviorRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeUserBusinessBehaviorRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeUserBusinessBehaviorRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeUserBusinessBehaviorRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeUserBusinessBehaviorRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeUserBusinessBehaviorRequest::getOwnerId()const -{ - return ownerId_; +void DescribeUserBusinessBehaviorRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeUserBusinessBehaviorRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeUserBusinessBehaviorRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeUserBusinessBehaviorRequest::getStatusKey()const -{ - return statusKey_; +void DescribeUserBusinessBehaviorRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeUserBusinessBehaviorRequest::setStatusKey(const std::string& statusKey) -{ - statusKey_ = statusKey; - setParameter("StatusKey", statusKey); +std::string DescribeUserBusinessBehaviorRequest::getStatusKey() const { + return statusKey_; +} + +void DescribeUserBusinessBehaviorRequest::setStatusKey(const std::string &statusKey) { + statusKey_ = statusKey; + setParameter(std::string("statusKey"), statusKey); } diff --git a/ecs/src/model/DescribeUserDataRequest.cc b/ecs/src/model/DescribeUserDataRequest.cc index 7d013fcc4..ab0fb0efe 100644 --- a/ecs/src/model/DescribeUserDataRequest.cc +++ b/ecs/src/model/DescribeUserDataRequest.cc @@ -1,84 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeUserDataRequest; - -DescribeUserDataRequest::DescribeUserDataRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeUserData") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeUserDataRequest::~DescribeUserDataRequest() -{} - -long DescribeUserDataRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeUserDataRequest; + +DescribeUserDataRequest::DescribeUserDataRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeUserData") { + setMethod(HttpRequest::Method::Post); } -void DescribeUserDataRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeUserDataRequest::~DescribeUserDataRequest() {} + +long DescribeUserDataRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeUserDataRequest::getRegionId()const -{ - return regionId_; +void DescribeUserDataRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeUserDataRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeUserDataRequest::getRegionId() const { + return regionId_; } -std::string DescribeUserDataRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeUserDataRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeUserDataRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeUserDataRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long DescribeUserDataRequest::getOwnerId()const -{ - return ownerId_; +void DescribeUserDataRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeUserDataRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeUserDataRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeUserDataRequest::getInstanceId()const -{ - return instanceId_; +void DescribeUserDataRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeUserDataRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DescribeUserDataRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeUserDataRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/ecs/src/model/DescribeUserDataResult.cc b/ecs/src/model/DescribeUserDataResult.cc index 06f8f2292..b44641f52 100644 --- a/ecs/src/model/DescribeUserDataResult.cc +++ b/ecs/src/model/DescribeUserDataResult.cc @@ -39,12 +39,12 @@ void DescribeUserDataResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["RegionId"].isNull()) - regionId_ = value["RegionId"].asString(); if(!value["InstanceId"].isNull()) instanceId_ = value["InstanceId"].asString(); if(!value["UserData"].isNull()) userData_ = value["UserData"].asString(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); } diff --git a/ecs/src/model/DescribeVRoutersRequest.cc b/ecs/src/model/DescribeVRoutersRequest.cc index 3e430c3a4..81e91a01d 100644 --- a/ecs/src/model/DescribeVRoutersRequest.cc +++ b/ecs/src/model/DescribeVRoutersRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeVRoutersRequest; - -DescribeVRoutersRequest::DescribeVRoutersRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeVRouters") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeVRoutersRequest::~DescribeVRoutersRequest() -{} - -long DescribeVRoutersRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeVRoutersRequest; + +DescribeVRoutersRequest::DescribeVRoutersRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeVRouters") { + setMethod(HttpRequest::Method::Post); } -void DescribeVRoutersRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeVRoutersRequest::~DescribeVRoutersRequest() {} + +long DescribeVRoutersRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeVRoutersRequest::getVRouterId()const -{ - return vRouterId_; +void DescribeVRoutersRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeVRoutersRequest::setVRouterId(const std::string& vRouterId) -{ - vRouterId_ = vRouterId; - setParameter("VRouterId", vRouterId); +std::string DescribeVRoutersRequest::getVRouterId() const { + return vRouterId_; } -int DescribeVRoutersRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeVRoutersRequest::setVRouterId(const std::string &vRouterId) { + vRouterId_ = vRouterId; + setParameter(std::string("VRouterId"), vRouterId); } -void DescribeVRoutersRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeVRoutersRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeVRoutersRequest::getRegionId()const -{ - return regionId_; +void DescribeVRoutersRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeVRoutersRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeVRoutersRequest::getRegionId() const { + return regionId_; } -int DescribeVRoutersRequest::getPageSize()const -{ - return pageSize_; +void DescribeVRoutersRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeVRoutersRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeVRoutersRequest::getPageSize() const { + return pageSize_; } -std::string DescribeVRoutersRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeVRoutersRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeVRoutersRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeVRoutersRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeVRoutersRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeVRoutersRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeVRoutersRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeVRoutersRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeVRoutersRequest::getOwnerId()const -{ - return ownerId_; +void DescribeVRoutersRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeVRoutersRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeVRoutersRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeVRoutersRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/DescribeVRoutersResult.cc b/ecs/src/model/DescribeVRoutersResult.cc index 16623222d..be354d030 100644 --- a/ecs/src/model/DescribeVRoutersResult.cc +++ b/ecs/src/model/DescribeVRoutersResult.cc @@ -43,29 +43,29 @@ void DescribeVRoutersResult::parse(const std::string &payload) for (auto valueVRoutersVRouter : allVRoutersNode) { VRouter vRoutersObject; - if(!valueVRoutersVRouter["RegionId"].isNull()) - vRoutersObject.regionId = valueVRoutersVRouter["RegionId"].asString(); if(!valueVRoutersVRouter["VpcId"].isNull()) vRoutersObject.vpcId = valueVRoutersVRouter["VpcId"].asString(); - if(!valueVRoutersVRouter["VRouterName"].isNull()) - vRoutersObject.vRouterName = valueVRoutersVRouter["VRouterName"].asString(); - if(!valueVRoutersVRouter["Description"].isNull()) - vRoutersObject.description = valueVRoutersVRouter["Description"].asString(); - if(!valueVRoutersVRouter["VRouterId"].isNull()) - vRoutersObject.vRouterId = valueVRoutersVRouter["VRouterId"].asString(); if(!valueVRoutersVRouter["CreationTime"].isNull()) vRoutersObject.creationTime = valueVRoutersVRouter["CreationTime"].asString(); + if(!valueVRoutersVRouter["VRouterId"].isNull()) + vRoutersObject.vRouterId = valueVRoutersVRouter["VRouterId"].asString(); + if(!valueVRoutersVRouter["Description"].isNull()) + vRoutersObject.description = valueVRoutersVRouter["Description"].asString(); + if(!valueVRoutersVRouter["VRouterName"].isNull()) + vRoutersObject.vRouterName = valueVRoutersVRouter["VRouterName"].asString(); + if(!valueVRoutersVRouter["RegionId"].isNull()) + vRoutersObject.regionId = valueVRoutersVRouter["RegionId"].asString(); auto allRouteTableIds = value["RouteTableIds"]["RouteTableId"]; for (auto value : allRouteTableIds) vRoutersObject.routeTableIds.push_back(value.asString()); vRouters_.push_back(vRoutersObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/ecs/src/model/DescribeVSwitchesRequest.cc b/ecs/src/model/DescribeVSwitchesRequest.cc index e67d62747..b51f1680c 100644 --- a/ecs/src/model/DescribeVSwitchesRequest.cc +++ b/ecs/src/model/DescribeVSwitchesRequest.cc @@ -1,150 +1,126 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeVSwitchesRequest; - -DescribeVSwitchesRequest::DescribeVSwitchesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeVSwitches") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeVSwitchesRequest::~DescribeVSwitchesRequest() -{} - -long DescribeVSwitchesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeVSwitchesRequest; + +DescribeVSwitchesRequest::DescribeVSwitchesRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeVSwitches") { + setMethod(HttpRequest::Method::Post); } -void DescribeVSwitchesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeVSwitchesRequest::~DescribeVSwitchesRequest() {} + +long DescribeVSwitchesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeVSwitchesRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeVSwitchesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeVSwitchesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeVSwitchesRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeVSwitchesRequest::getRegionId()const -{ - return regionId_; +void DescribeVSwitchesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeVSwitchesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeVSwitchesRequest::getRegionId() const { + return regionId_; } -int DescribeVSwitchesRequest::getPageSize()const -{ - return pageSize_; +void DescribeVSwitchesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeVSwitchesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeVSwitchesRequest::getPageSize() const { + return pageSize_; } -bool DescribeVSwitchesRequest::getIsDefault()const -{ - return isDefault_; +void DescribeVSwitchesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeVSwitchesRequest::setIsDefault(bool isDefault) -{ - isDefault_ = isDefault; - setParameter("IsDefault", isDefault ? "true" : "false"); +bool DescribeVSwitchesRequest::getIsDefault() const { + return isDefault_; } -std::string DescribeVSwitchesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeVSwitchesRequest::setIsDefault(bool isDefault) { + isDefault_ = isDefault; + setParameter(std::string("IsDefault"), isDefault ? "true" : "false"); } -void DescribeVSwitchesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeVSwitchesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeVSwitchesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeVSwitchesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeVSwitchesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeVSwitchesRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeVSwitchesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeVSwitchesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeVSwitchesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeVSwitchesRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeVSwitchesRequest::getVSwitchId()const -{ - return vSwitchId_; +void DescribeVSwitchesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeVSwitchesRequest::setVSwitchId(const std::string& vSwitchId) -{ - vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); +std::string DescribeVSwitchesRequest::getVSwitchId() const { + return vSwitchId_; } -std::string DescribeVSwitchesRequest::getVpcId()const -{ - return vpcId_; +void DescribeVSwitchesRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); } -void DescribeVSwitchesRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +std::string DescribeVSwitchesRequest::getVpcId() const { + return vpcId_; } -std::string DescribeVSwitchesRequest::getZoneId()const -{ - return zoneId_; +void DescribeVSwitchesRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); } -void DescribeVSwitchesRequest::setZoneId(const std::string& zoneId) -{ - zoneId_ = zoneId; - setParameter("ZoneId", zoneId); +std::string DescribeVSwitchesRequest::getZoneId() const { + return zoneId_; +} + +void DescribeVSwitchesRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); } diff --git a/ecs/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.cc b/ecs/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.cc index 92a0ee2bd..52996530e 100644 --- a/ecs/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.cc +++ b/ecs/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionRequest.cc @@ -1,124 +1,103 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeVirtualBorderRoutersForPhysicalConnectionRequest; - -DescribeVirtualBorderRoutersForPhysicalConnectionRequest::DescribeVirtualBorderRoutersForPhysicalConnectionRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeVirtualBorderRoutersForPhysicalConnection") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeVirtualBorderRoutersForPhysicalConnectionRequest::~DescribeVirtualBorderRoutersForPhysicalConnectionRequest() -{} - -long DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeVirtualBorderRoutersForPhysicalConnectionRequest; + +DescribeVirtualBorderRoutersForPhysicalConnectionRequest::DescribeVirtualBorderRoutersForPhysicalConnectionRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeVirtualBorderRoutersForPhysicalConnection") { + setMethod(HttpRequest::Method::Post); } -void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeVirtualBorderRoutersForPhysicalConnectionRequest::~DescribeVirtualBorderRoutersForPhysicalConnectionRequest() {} + +long DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getRegionId()const -{ - return regionId_; +void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getRegionId() const { + return regionId_; } -int DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getPageSize()const -{ - return pageSize_; +void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getPageSize() const { + return pageSize_; } -std::string DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getOwnerId()const -{ - return ownerId_; +void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getOwnerId() const { + return ownerId_; } -std::vector DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getFilter()const -{ - return filter_; +void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setFilter(const std::vector& filter) -{ - filter_ = filter; - for(int dep1 = 0; dep1!= filter.size(); dep1++) { - auto filterObj = filter.at(dep1); - std::string filterObjStr = "Filter." + std::to_string(dep1 + 1); - for(int dep2 = 0; dep2!= filterObj.value.size(); dep2++) { - setParameter(filterObjStr + ".Value."+ std::to_string(dep2), filterObj.value.at(dep2)); - } - setParameter(filterObjStr + ".Key", filterObj.key); - } +std::vector DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getFilter() const { + return filter_; } -std::string DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getPhysicalConnectionId()const -{ - return physicalConnectionId_; +void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setFilter(const std::vector &filter) { + filter_ = filter; + for(int dep1 = 0; dep1 != filter.size(); dep1++) { + auto filterObj = filter.at(dep1); + std::string filterObjStr = std::string("Filter") + "." + std::to_string(dep1 + 1); + setParameter(filterObjStr + ".Key", filterObj.key); + } } -void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setPhysicalConnectionId(const std::string& physicalConnectionId) -{ - physicalConnectionId_ = physicalConnectionId; - setParameter("PhysicalConnectionId", physicalConnectionId); +std::string DescribeVirtualBorderRoutersForPhysicalConnectionRequest::getPhysicalConnectionId() const { + return physicalConnectionId_; +} + +void DescribeVirtualBorderRoutersForPhysicalConnectionRequest::setPhysicalConnectionId(const std::string &physicalConnectionId) { + physicalConnectionId_ = physicalConnectionId; + setParameter(std::string("PhysicalConnectionId"), physicalConnectionId); } diff --git a/ecs/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.cc b/ecs/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.cc index 12237c019..f56c2dd4e 100644 --- a/ecs/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.cc +++ b/ecs/src/model/DescribeVirtualBorderRoutersForPhysicalConnectionResult.cc @@ -43,22 +43,22 @@ void DescribeVirtualBorderRoutersForPhysicalConnectionResult::parse(const std::s for (auto valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType : allVirtualBorderRouterForPhysicalConnectionSetNode) { VirtualBorderRouterForPhysicalConnectionType virtualBorderRouterForPhysicalConnectionSetObject; - if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["VbrId"].isNull()) - virtualBorderRouterForPhysicalConnectionSetObject.vbrId = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["VbrId"].asString(); - if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["VbrOwnerUid"].isNull()) - virtualBorderRouterForPhysicalConnectionSetObject.vbrOwnerUid = std::stol(valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["VbrOwnerUid"].asString()); if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["CreationTime"].isNull()) virtualBorderRouterForPhysicalConnectionSetObject.creationTime = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["CreationTime"].asString(); - if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["ActivationTime"].isNull()) - virtualBorderRouterForPhysicalConnectionSetObject.activationTime = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["ActivationTime"].asString(); - if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["TerminationTime"].isNull()) - virtualBorderRouterForPhysicalConnectionSetObject.terminationTime = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["TerminationTime"].asString(); - if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["RecoveryTime"].isNull()) - virtualBorderRouterForPhysicalConnectionSetObject.recoveryTime = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["RecoveryTime"].asString(); - if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["VlanId"].isNull()) - virtualBorderRouterForPhysicalConnectionSetObject.vlanId = std::stoi(valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["VlanId"].asString()); if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["CircuitCode"].isNull()) virtualBorderRouterForPhysicalConnectionSetObject.circuitCode = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["CircuitCode"].asString(); + if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["RecoveryTime"].isNull()) + virtualBorderRouterForPhysicalConnectionSetObject.recoveryTime = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["RecoveryTime"].asString(); + if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["TerminationTime"].isNull()) + virtualBorderRouterForPhysicalConnectionSetObject.terminationTime = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["TerminationTime"].asString(); + if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["ActivationTime"].isNull()) + virtualBorderRouterForPhysicalConnectionSetObject.activationTime = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["ActivationTime"].asString(); + if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["VbrOwnerUid"].isNull()) + virtualBorderRouterForPhysicalConnectionSetObject.vbrOwnerUid = std::stol(valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["VbrOwnerUid"].asString()); + if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["VbrId"].isNull()) + virtualBorderRouterForPhysicalConnectionSetObject.vbrId = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["VbrId"].asString(); + if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["VlanId"].isNull()) + virtualBorderRouterForPhysicalConnectionSetObject.vlanId = std::stoi(valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["VlanId"].asString()); virtualBorderRouterForPhysicalConnectionSet_.push_back(virtualBorderRouterForPhysicalConnectionSetObject); } if(!value["PageNumber"].isNull()) diff --git a/ecs/src/model/DescribeVirtualBorderRoutersRequest.cc b/ecs/src/model/DescribeVirtualBorderRoutersRequest.cc index 80f788edb..12d4bc668 100644 --- a/ecs/src/model/DescribeVirtualBorderRoutersRequest.cc +++ b/ecs/src/model/DescribeVirtualBorderRoutersRequest.cc @@ -1,113 +1,94 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeVirtualBorderRoutersRequest; - -DescribeVirtualBorderRoutersRequest::DescribeVirtualBorderRoutersRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeVirtualBorderRouters") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeVirtualBorderRoutersRequest::~DescribeVirtualBorderRoutersRequest() -{} - -long DescribeVirtualBorderRoutersRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeVirtualBorderRoutersRequest; + +DescribeVirtualBorderRoutersRequest::DescribeVirtualBorderRoutersRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeVirtualBorderRouters") { + setMethod(HttpRequest::Method::Post); } -void DescribeVirtualBorderRoutersRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeVirtualBorderRoutersRequest::~DescribeVirtualBorderRoutersRequest() {} + +long DescribeVirtualBorderRoutersRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeVirtualBorderRoutersRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeVirtualBorderRoutersRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeVirtualBorderRoutersRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeVirtualBorderRoutersRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeVirtualBorderRoutersRequest::getRegionId()const -{ - return regionId_; +void DescribeVirtualBorderRoutersRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeVirtualBorderRoutersRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeVirtualBorderRoutersRequest::getRegionId() const { + return regionId_; } -int DescribeVirtualBorderRoutersRequest::getPageSize()const -{ - return pageSize_; +void DescribeVirtualBorderRoutersRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeVirtualBorderRoutersRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeVirtualBorderRoutersRequest::getPageSize() const { + return pageSize_; } -std::string DescribeVirtualBorderRoutersRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeVirtualBorderRoutersRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeVirtualBorderRoutersRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeVirtualBorderRoutersRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long DescribeVirtualBorderRoutersRequest::getOwnerId()const -{ - return ownerId_; +void DescribeVirtualBorderRoutersRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeVirtualBorderRoutersRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeVirtualBorderRoutersRequest::getOwnerId() const { + return ownerId_; } -std::vector DescribeVirtualBorderRoutersRequest::getFilter()const -{ - return filter_; +void DescribeVirtualBorderRoutersRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeVirtualBorderRoutersRequest::setFilter(const std::vector& filter) -{ - filter_ = filter; - for(int dep1 = 0; dep1!= filter.size(); dep1++) { - auto filterObj = filter.at(dep1); - std::string filterObjStr = "Filter." + std::to_string(dep1 + 1); - for(int dep2 = 0; dep2!= filterObj.value.size(); dep2++) { - setParameter(filterObjStr + ".Value."+ std::to_string(dep2), filterObj.value.at(dep2)); - } - setParameter(filterObjStr + ".Key", filterObj.key); - } +std::vector DescribeVirtualBorderRoutersRequest::getFilter() const { + return filter_; +} + +void DescribeVirtualBorderRoutersRequest::setFilter(const std::vector &filter) { + filter_ = filter; + for(int dep1 = 0; dep1 != filter.size(); dep1++) { + auto filterObj = filter.at(dep1); + std::string filterObjStr = std::string("Filter") + "." + std::to_string(dep1 + 1); + setParameter(filterObjStr + ".Key", filterObj.key); + } } diff --git a/ecs/src/model/DescribeVirtualBorderRoutersResult.cc b/ecs/src/model/DescribeVirtualBorderRoutersResult.cc index 8deb2ba97..5a72039a6 100644 --- a/ecs/src/model/DescribeVirtualBorderRoutersResult.cc +++ b/ecs/src/model/DescribeVirtualBorderRoutersResult.cc @@ -43,46 +43,46 @@ void DescribeVirtualBorderRoutersResult::parse(const std::string &payload) for (auto valueVirtualBorderRouterSetVirtualBorderRouterType : allVirtualBorderRouterSetNode) { VirtualBorderRouterType virtualBorderRouterSetObject; - if(!valueVirtualBorderRouterSetVirtualBorderRouterType["VbrId"].isNull()) - virtualBorderRouterSetObject.vbrId = valueVirtualBorderRouterSetVirtualBorderRouterType["VbrId"].asString(); - if(!valueVirtualBorderRouterSetVirtualBorderRouterType["CreationTime"].isNull()) - virtualBorderRouterSetObject.creationTime = valueVirtualBorderRouterSetVirtualBorderRouterType["CreationTime"].asString(); - if(!valueVirtualBorderRouterSetVirtualBorderRouterType["ActivationTime"].isNull()) - virtualBorderRouterSetObject.activationTime = valueVirtualBorderRouterSetVirtualBorderRouterType["ActivationTime"].asString(); - if(!valueVirtualBorderRouterSetVirtualBorderRouterType["TerminationTime"].isNull()) - virtualBorderRouterSetObject.terminationTime = valueVirtualBorderRouterSetVirtualBorderRouterType["TerminationTime"].asString(); - if(!valueVirtualBorderRouterSetVirtualBorderRouterType["RecoveryTime"].isNull()) - virtualBorderRouterSetObject.recoveryTime = valueVirtualBorderRouterSetVirtualBorderRouterType["RecoveryTime"].asString(); - if(!valueVirtualBorderRouterSetVirtualBorderRouterType["Status"].isNull()) - virtualBorderRouterSetObject.status = valueVirtualBorderRouterSetVirtualBorderRouterType["Status"].asString(); - if(!valueVirtualBorderRouterSetVirtualBorderRouterType["VlanId"].isNull()) - virtualBorderRouterSetObject.vlanId = std::stoi(valueVirtualBorderRouterSetVirtualBorderRouterType["VlanId"].asString()); - if(!valueVirtualBorderRouterSetVirtualBorderRouterType["CircuitCode"].isNull()) - virtualBorderRouterSetObject.circuitCode = valueVirtualBorderRouterSetVirtualBorderRouterType["CircuitCode"].asString(); - if(!valueVirtualBorderRouterSetVirtualBorderRouterType["RouteTableId"].isNull()) - virtualBorderRouterSetObject.routeTableId = valueVirtualBorderRouterSetVirtualBorderRouterType["RouteTableId"].asString(); if(!valueVirtualBorderRouterSetVirtualBorderRouterType["VlanInterfaceId"].isNull()) virtualBorderRouterSetObject.vlanInterfaceId = valueVirtualBorderRouterSetVirtualBorderRouterType["VlanInterfaceId"].asString(); - if(!valueVirtualBorderRouterSetVirtualBorderRouterType["LocalGatewayIp"].isNull()) - virtualBorderRouterSetObject.localGatewayIp = valueVirtualBorderRouterSetVirtualBorderRouterType["LocalGatewayIp"].asString(); - if(!valueVirtualBorderRouterSetVirtualBorderRouterType["PeerGatewayIp"].isNull()) - virtualBorderRouterSetObject.peerGatewayIp = valueVirtualBorderRouterSetVirtualBorderRouterType["PeerGatewayIp"].asString(); - if(!valueVirtualBorderRouterSetVirtualBorderRouterType["PeeringSubnetMask"].isNull()) - virtualBorderRouterSetObject.peeringSubnetMask = valueVirtualBorderRouterSetVirtualBorderRouterType["PeeringSubnetMask"].asString(); - if(!valueVirtualBorderRouterSetVirtualBorderRouterType["PhysicalConnectionId"].isNull()) - virtualBorderRouterSetObject.physicalConnectionId = valueVirtualBorderRouterSetVirtualBorderRouterType["PhysicalConnectionId"].asString(); - if(!valueVirtualBorderRouterSetVirtualBorderRouterType["PhysicalConnectionStatus"].isNull()) - virtualBorderRouterSetObject.physicalConnectionStatus = valueVirtualBorderRouterSetVirtualBorderRouterType["PhysicalConnectionStatus"].asString(); - if(!valueVirtualBorderRouterSetVirtualBorderRouterType["PhysicalConnectionBusinessStatus"].isNull()) - virtualBorderRouterSetObject.physicalConnectionBusinessStatus = valueVirtualBorderRouterSetVirtualBorderRouterType["PhysicalConnectionBusinessStatus"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["Status"].isNull()) + virtualBorderRouterSetObject.status = valueVirtualBorderRouterSetVirtualBorderRouterType["Status"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["CreationTime"].isNull()) + virtualBorderRouterSetObject.creationTime = valueVirtualBorderRouterSetVirtualBorderRouterType["CreationTime"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["CircuitCode"].isNull()) + virtualBorderRouterSetObject.circuitCode = valueVirtualBorderRouterSetVirtualBorderRouterType["CircuitCode"].asString(); if(!valueVirtualBorderRouterSetVirtualBorderRouterType["PhysicalConnectionOwnerUid"].isNull()) virtualBorderRouterSetObject.physicalConnectionOwnerUid = valueVirtualBorderRouterSetVirtualBorderRouterType["PhysicalConnectionOwnerUid"].asString(); - if(!valueVirtualBorderRouterSetVirtualBorderRouterType["AccessPointId"].isNull()) - virtualBorderRouterSetObject.accessPointId = valueVirtualBorderRouterSetVirtualBorderRouterType["AccessPointId"].asString(); - if(!valueVirtualBorderRouterSetVirtualBorderRouterType["Name"].isNull()) - virtualBorderRouterSetObject.name = valueVirtualBorderRouterSetVirtualBorderRouterType["Name"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["LocalGatewayIp"].isNull()) + virtualBorderRouterSetObject.localGatewayIp = valueVirtualBorderRouterSetVirtualBorderRouterType["LocalGatewayIp"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["ActivationTime"].isNull()) + virtualBorderRouterSetObject.activationTime = valueVirtualBorderRouterSetVirtualBorderRouterType["ActivationTime"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["PhysicalConnectionBusinessStatus"].isNull()) + virtualBorderRouterSetObject.physicalConnectionBusinessStatus = valueVirtualBorderRouterSetVirtualBorderRouterType["PhysicalConnectionBusinessStatus"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["PeeringSubnetMask"].isNull()) + virtualBorderRouterSetObject.peeringSubnetMask = valueVirtualBorderRouterSetVirtualBorderRouterType["PeeringSubnetMask"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["RouteTableId"].isNull()) + virtualBorderRouterSetObject.routeTableId = valueVirtualBorderRouterSetVirtualBorderRouterType["RouteTableId"].asString(); if(!valueVirtualBorderRouterSetVirtualBorderRouterType["Description"].isNull()) virtualBorderRouterSetObject.description = valueVirtualBorderRouterSetVirtualBorderRouterType["Description"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["PhysicalConnectionStatus"].isNull()) + virtualBorderRouterSetObject.physicalConnectionStatus = valueVirtualBorderRouterSetVirtualBorderRouterType["PhysicalConnectionStatus"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["RecoveryTime"].isNull()) + virtualBorderRouterSetObject.recoveryTime = valueVirtualBorderRouterSetVirtualBorderRouterType["RecoveryTime"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["TerminationTime"].isNull()) + virtualBorderRouterSetObject.terminationTime = valueVirtualBorderRouterSetVirtualBorderRouterType["TerminationTime"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["PeerGatewayIp"].isNull()) + virtualBorderRouterSetObject.peerGatewayIp = valueVirtualBorderRouterSetVirtualBorderRouterType["PeerGatewayIp"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["Name"].isNull()) + virtualBorderRouterSetObject.name = valueVirtualBorderRouterSetVirtualBorderRouterType["Name"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["AccessPointId"].isNull()) + virtualBorderRouterSetObject.accessPointId = valueVirtualBorderRouterSetVirtualBorderRouterType["AccessPointId"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["VbrId"].isNull()) + virtualBorderRouterSetObject.vbrId = valueVirtualBorderRouterSetVirtualBorderRouterType["VbrId"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["PhysicalConnectionId"].isNull()) + virtualBorderRouterSetObject.physicalConnectionId = valueVirtualBorderRouterSetVirtualBorderRouterType["PhysicalConnectionId"].asString(); + if(!valueVirtualBorderRouterSetVirtualBorderRouterType["VlanId"].isNull()) + virtualBorderRouterSetObject.vlanId = std::stoi(valueVirtualBorderRouterSetVirtualBorderRouterType["VlanId"].asString()); virtualBorderRouterSet_.push_back(virtualBorderRouterSetObject); } if(!value["PageNumber"].isNull()) diff --git a/ecs/src/model/DescribeVpcsRequest.cc b/ecs/src/model/DescribeVpcsRequest.cc index f172d985b..88bd732f1 100644 --- a/ecs/src/model/DescribeVpcsRequest.cc +++ b/ecs/src/model/DescribeVpcsRequest.cc @@ -1,128 +1,108 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeVpcsRequest; - -DescribeVpcsRequest::DescribeVpcsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeVpcs") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeVpcsRequest::~DescribeVpcsRequest() -{} - -long DescribeVpcsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeVpcsRequest; + +DescribeVpcsRequest::DescribeVpcsRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeVpcs") { + setMethod(HttpRequest::Method::Post); } -void DescribeVpcsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeVpcsRequest::~DescribeVpcsRequest() {} + +long DescribeVpcsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int DescribeVpcsRequest::getPageNumber()const -{ - return pageNumber_; +void DescribeVpcsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeVpcsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int DescribeVpcsRequest::getPageNumber() const { + return pageNumber_; } -std::string DescribeVpcsRequest::getRegionId()const -{ - return regionId_; +void DescribeVpcsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void DescribeVpcsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeVpcsRequest::getRegionId() const { + return regionId_; } -int DescribeVpcsRequest::getPageSize()const -{ - return pageSize_; +void DescribeVpcsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeVpcsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeVpcsRequest::getPageSize() const { + return pageSize_; } -bool DescribeVpcsRequest::getIsDefault()const -{ - return isDefault_; +void DescribeVpcsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeVpcsRequest::setIsDefault(bool isDefault) -{ - isDefault_ = isDefault; - setParameter("IsDefault", isDefault ? "true" : "false"); +bool DescribeVpcsRequest::getIsDefault() const { + return isDefault_; } -std::string DescribeVpcsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeVpcsRequest::setIsDefault(bool isDefault) { + isDefault_ = isDefault; + setParameter(std::string("IsDefault"), isDefault ? "true" : "false"); } -void DescribeVpcsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeVpcsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeVpcsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeVpcsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeVpcsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeVpcsRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeVpcsRequest::getOwnerId()const -{ - return ownerId_; +void DescribeVpcsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeVpcsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeVpcsRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeVpcsRequest::getVpcId()const -{ - return vpcId_; +void DescribeVpcsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeVpcsRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +std::string DescribeVpcsRequest::getVpcId() const { + return vpcId_; +} + +void DescribeVpcsRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); } diff --git a/ecs/src/model/DescribeVpcsResult.cc b/ecs/src/model/DescribeVpcsResult.cc index 90a5edc85..683788c9b 100644 --- a/ecs/src/model/DescribeVpcsResult.cc +++ b/ecs/src/model/DescribeVpcsResult.cc @@ -43,24 +43,24 @@ void DescribeVpcsResult::parse(const std::string &payload) for (auto valueVpcsVpc : allVpcsNode) { Vpc vpcsObject; - if(!valueVpcsVpc["VpcId"].isNull()) - vpcsObject.vpcId = valueVpcsVpc["VpcId"].asString(); - if(!valueVpcsVpc["RegionId"].isNull()) - vpcsObject.regionId = valueVpcsVpc["RegionId"].asString(); - if(!valueVpcsVpc["Status"].isNull()) - vpcsObject.status = valueVpcsVpc["Status"].asString(); - if(!valueVpcsVpc["VpcName"].isNull()) - vpcsObject.vpcName = valueVpcsVpc["VpcName"].asString(); if(!valueVpcsVpc["CreationTime"].isNull()) vpcsObject.creationTime = valueVpcsVpc["CreationTime"].asString(); - if(!valueVpcsVpc["CidrBlock"].isNull()) - vpcsObject.cidrBlock = valueVpcsVpc["CidrBlock"].asString(); + if(!valueVpcsVpc["VpcName"].isNull()) + vpcsObject.vpcName = valueVpcsVpc["VpcName"].asString(); + if(!valueVpcsVpc["Status"].isNull()) + vpcsObject.status = valueVpcsVpc["Status"].asString(); + if(!valueVpcsVpc["VpcId"].isNull()) + vpcsObject.vpcId = valueVpcsVpc["VpcId"].asString(); if(!valueVpcsVpc["VRouterId"].isNull()) vpcsObject.vRouterId = valueVpcsVpc["VRouterId"].asString(); - if(!valueVpcsVpc["Description"].isNull()) - vpcsObject.description = valueVpcsVpc["Description"].asString(); if(!valueVpcsVpc["IsDefault"].isNull()) vpcsObject.isDefault = valueVpcsVpc["IsDefault"].asString() == "true"; + if(!valueVpcsVpc["CidrBlock"].isNull()) + vpcsObject.cidrBlock = valueVpcsVpc["CidrBlock"].asString(); + if(!valueVpcsVpc["Description"].isNull()) + vpcsObject.description = valueVpcsVpc["Description"].asString(); + if(!valueVpcsVpc["RegionId"].isNull()) + vpcsObject.regionId = valueVpcsVpc["RegionId"].asString(); auto allVSwitchIds = value["VSwitchIds"]["VSwitchId"]; for (auto value : allVSwitchIds) vpcsObject.vSwitchIds.push_back(value.asString()); @@ -69,12 +69,12 @@ void DescribeVpcsResult::parse(const std::string &payload) vpcsObject.userCidrs.push_back(value.asString()); vpcs_.push_back(vpcsObject); } - 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()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/ecs/src/model/DescribeZonesRequest.cc b/ecs/src/model/DescribeZonesRequest.cc index 6e82b91fc..6a4d4afbc 100644 --- a/ecs/src/model/DescribeZonesRequest.cc +++ b/ecs/src/model/DescribeZonesRequest.cc @@ -1,128 +1,108 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DescribeZonesRequest; - -DescribeZonesRequest::DescribeZonesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DescribeZones") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeZonesRequest::~DescribeZonesRequest() -{} - -long DescribeZonesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DescribeZonesRequest; + +DescribeZonesRequest::DescribeZonesRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DescribeZones") { + setMethod(HttpRequest::Method::Post); } -void DescribeZonesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DescribeZonesRequest::~DescribeZonesRequest() {} + +long DescribeZonesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DescribeZonesRequest::getRegionId()const -{ - return regionId_; +void DescribeZonesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DescribeZonesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DescribeZonesRequest::getRegionId() const { + return regionId_; } -std::string DescribeZonesRequest::getInstanceChargeType()const -{ - return instanceChargeType_; +void DescribeZonesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DescribeZonesRequest::setInstanceChargeType(const std::string& instanceChargeType) -{ - instanceChargeType_ = instanceChargeType; - setParameter("InstanceChargeType", instanceChargeType); +std::string DescribeZonesRequest::getInstanceChargeType() const { + return instanceChargeType_; } -std::string DescribeZonesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DescribeZonesRequest::setInstanceChargeType(const std::string &instanceChargeType) { + instanceChargeType_ = instanceChargeType; + setParameter(std::string("InstanceChargeType"), instanceChargeType); } -void DescribeZonesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DescribeZonesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DescribeZonesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DescribeZonesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DescribeZonesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DescribeZonesRequest::getOwnerAccount() const { + return ownerAccount_; } -long DescribeZonesRequest::getOwnerId()const -{ - return ownerId_; +void DescribeZonesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DescribeZonesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DescribeZonesRequest::getOwnerId() const { + return ownerId_; } -bool DescribeZonesRequest::getVerbose()const -{ - return verbose_; +void DescribeZonesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeZonesRequest::setVerbose(bool verbose) -{ - verbose_ = verbose; - setParameter("Verbose", verbose ? "true" : "false"); +bool DescribeZonesRequest::getVerbose() const { + return verbose_; } -std::string DescribeZonesRequest::getSpotStrategy()const -{ - return spotStrategy_; +void DescribeZonesRequest::setVerbose(bool verbose) { + verbose_ = verbose; + setParameter(std::string("Verbose"), verbose ? "true" : "false"); } -void DescribeZonesRequest::setSpotStrategy(const std::string& spotStrategy) -{ - spotStrategy_ = spotStrategy; - setParameter("SpotStrategy", spotStrategy); +std::string DescribeZonesRequest::getSpotStrategy() const { + return spotStrategy_; } -std::string DescribeZonesRequest::getAcceptLanguage()const -{ - return acceptLanguage_; +void DescribeZonesRequest::setSpotStrategy(const std::string &spotStrategy) { + spotStrategy_ = spotStrategy; + setParameter(std::string("SpotStrategy"), spotStrategy); } -void DescribeZonesRequest::setAcceptLanguage(const std::string& acceptLanguage) -{ - acceptLanguage_ = acceptLanguage; - setParameter("AcceptLanguage", acceptLanguage); +std::string DescribeZonesRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void DescribeZonesRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); } diff --git a/ecs/src/model/DetachClassicLinkVpcRequest.cc b/ecs/src/model/DetachClassicLinkVpcRequest.cc index 4e82019ad..3f833f9e2 100644 --- a/ecs/src/model/DetachClassicLinkVpcRequest.cc +++ b/ecs/src/model/DetachClassicLinkVpcRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DetachClassicLinkVpcRequest; - -DetachClassicLinkVpcRequest::DetachClassicLinkVpcRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DetachClassicLinkVpc") -{ - setMethod(HttpRequest::Method::Post); -} - -DetachClassicLinkVpcRequest::~DetachClassicLinkVpcRequest() -{} - -long DetachClassicLinkVpcRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DetachClassicLinkVpcRequest; + +DetachClassicLinkVpcRequest::DetachClassicLinkVpcRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DetachClassicLinkVpc") { + setMethod(HttpRequest::Method::Post); } -void DetachClassicLinkVpcRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DetachClassicLinkVpcRequest::~DetachClassicLinkVpcRequest() {} + +long DetachClassicLinkVpcRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DetachClassicLinkVpcRequest::getRegionId()const -{ - return regionId_; +void DetachClassicLinkVpcRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DetachClassicLinkVpcRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DetachClassicLinkVpcRequest::getRegionId() const { + return regionId_; } -std::string DetachClassicLinkVpcRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DetachClassicLinkVpcRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DetachClassicLinkVpcRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DetachClassicLinkVpcRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long DetachClassicLinkVpcRequest::getOwnerId()const -{ - return ownerId_; +void DetachClassicLinkVpcRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DetachClassicLinkVpcRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DetachClassicLinkVpcRequest::getOwnerId() const { + return ownerId_; } -std::string DetachClassicLinkVpcRequest::getInstanceId()const -{ - return instanceId_; +void DetachClassicLinkVpcRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DetachClassicLinkVpcRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DetachClassicLinkVpcRequest::getInstanceId() const { + return instanceId_; } -std::string DetachClassicLinkVpcRequest::getVpcId()const -{ - return vpcId_; +void DetachClassicLinkVpcRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DetachClassicLinkVpcRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +std::string DetachClassicLinkVpcRequest::getVpcId() const { + return vpcId_; +} + +void DetachClassicLinkVpcRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); } diff --git a/ecs/src/model/DetachDiskRequest.cc b/ecs/src/model/DetachDiskRequest.cc index 9a93bf836..6c5eb57cf 100644 --- a/ecs/src/model/DetachDiskRequest.cc +++ b/ecs/src/model/DetachDiskRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DetachDiskRequest; - -DetachDiskRequest::DetachDiskRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DetachDisk") -{ - setMethod(HttpRequest::Method::Post); -} - -DetachDiskRequest::~DetachDiskRequest() -{} - -long DetachDiskRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DetachDiskRequest; + +DetachDiskRequest::DetachDiskRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DetachDisk") { + setMethod(HttpRequest::Method::Post); } -void DetachDiskRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DetachDiskRequest::~DetachDiskRequest() {} + +long DetachDiskRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DetachDiskRequest::getDiskId()const -{ - return diskId_; +void DetachDiskRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DetachDiskRequest::setDiskId(const std::string& diskId) -{ - diskId_ = diskId; - setParameter("DiskId", diskId); +std::string DetachDiskRequest::getDiskId() const { + return diskId_; } -bool DetachDiskRequest::getDeleteWithInstance()const -{ - return deleteWithInstance_; +void DetachDiskRequest::setDiskId(const std::string &diskId) { + diskId_ = diskId; + setParameter(std::string("DiskId"), diskId); } -void DetachDiskRequest::setDeleteWithInstance(bool deleteWithInstance) -{ - deleteWithInstance_ = deleteWithInstance; - setParameter("DeleteWithInstance", deleteWithInstance ? "true" : "false"); +bool DetachDiskRequest::getDeleteWithInstance() const { + return deleteWithInstance_; } -std::string DetachDiskRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DetachDiskRequest::setDeleteWithInstance(bool deleteWithInstance) { + deleteWithInstance_ = deleteWithInstance; + setParameter(std::string("DeleteWithInstance"), deleteWithInstance ? "true" : "false"); } -void DetachDiskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DetachDiskRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DetachDiskRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DetachDiskRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DetachDiskRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DetachDiskRequest::getOwnerAccount() const { + return ownerAccount_; } -long DetachDiskRequest::getOwnerId()const -{ - return ownerId_; +void DetachDiskRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DetachDiskRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DetachDiskRequest::getOwnerId() const { + return ownerId_; } -std::string DetachDiskRequest::getInstanceId()const -{ - return instanceId_; +void DetachDiskRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DetachDiskRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DetachDiskRequest::getInstanceId() const { + return instanceId_; +} + +void DetachDiskRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/ecs/src/model/DetachInstanceRamRoleRequest.cc b/ecs/src/model/DetachInstanceRamRoleRequest.cc index 64daa0e30..6a005a8b7 100644 --- a/ecs/src/model/DetachInstanceRamRoleRequest.cc +++ b/ecs/src/model/DetachInstanceRamRoleRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DetachInstanceRamRoleRequest; - -DetachInstanceRamRoleRequest::DetachInstanceRamRoleRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DetachInstanceRamRole") -{ - setMethod(HttpRequest::Method::Post); -} - -DetachInstanceRamRoleRequest::~DetachInstanceRamRoleRequest() -{} - -long DetachInstanceRamRoleRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DetachInstanceRamRoleRequest; + +DetachInstanceRamRoleRequest::DetachInstanceRamRoleRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DetachInstanceRamRole") { + setMethod(HttpRequest::Method::Post); } -void DetachInstanceRamRoleRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DetachInstanceRamRoleRequest::~DetachInstanceRamRoleRequest() {} + +long DetachInstanceRamRoleRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DetachInstanceRamRoleRequest::getRegionId()const -{ - return regionId_; +void DetachInstanceRamRoleRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DetachInstanceRamRoleRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DetachInstanceRamRoleRequest::getRegionId() const { + return regionId_; } -std::string DetachInstanceRamRoleRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DetachInstanceRamRoleRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DetachInstanceRamRoleRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DetachInstanceRamRoleRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DetachInstanceRamRoleRequest::getRamRoleName()const -{ - return ramRoleName_; +void DetachInstanceRamRoleRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DetachInstanceRamRoleRequest::setRamRoleName(const std::string& ramRoleName) -{ - ramRoleName_ = ramRoleName; - setParameter("RamRoleName", ramRoleName); +std::string DetachInstanceRamRoleRequest::getRamRoleName() const { + return ramRoleName_; } -long DetachInstanceRamRoleRequest::getOwnerId()const -{ - return ownerId_; +void DetachInstanceRamRoleRequest::setRamRoleName(const std::string &ramRoleName) { + ramRoleName_ = ramRoleName; + setParameter(std::string("RamRoleName"), ramRoleName); } -void DetachInstanceRamRoleRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DetachInstanceRamRoleRequest::getOwnerId() const { + return ownerId_; } -std::string DetachInstanceRamRoleRequest::getInstanceIds()const -{ - return instanceIds_; +void DetachInstanceRamRoleRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DetachInstanceRamRoleRequest::setInstanceIds(const std::string& instanceIds) -{ - instanceIds_ = instanceIds; - setParameter("InstanceIds", instanceIds); +std::string DetachInstanceRamRoleRequest::getInstanceIds() const { + return instanceIds_; +} + +void DetachInstanceRamRoleRequest::setInstanceIds(const std::string &instanceIds) { + instanceIds_ = instanceIds; + setParameter(std::string("InstanceIds"), instanceIds); } diff --git a/ecs/src/model/DetachInstanceRamRoleResult.cc b/ecs/src/model/DetachInstanceRamRoleResult.cc index 71dc2178b..7a477f818 100644 --- a/ecs/src/model/DetachInstanceRamRoleResult.cc +++ b/ecs/src/model/DetachInstanceRamRoleResult.cc @@ -43,32 +43,32 @@ void DetachInstanceRamRoleResult::parse(const std::string &payload) for (auto valueDetachInstanceRamRoleResultsDetachInstanceRamRoleResult : allDetachInstanceRamRoleResultsNode) { Result detachInstanceRamRoleResultsObject; - if(!valueDetachInstanceRamRoleResultsDetachInstanceRamRoleResult["InstanceId"].isNull()) - detachInstanceRamRoleResultsObject.instanceId = valueDetachInstanceRamRoleResultsDetachInstanceRamRoleResult["InstanceId"].asString(); - if(!valueDetachInstanceRamRoleResultsDetachInstanceRamRoleResult["Success"].isNull()) - detachInstanceRamRoleResultsObject.success = valueDetachInstanceRamRoleResultsDetachInstanceRamRoleResult["Success"].asString() == "true"; if(!valueDetachInstanceRamRoleResultsDetachInstanceRamRoleResult["Code"].isNull()) detachInstanceRamRoleResultsObject.code = valueDetachInstanceRamRoleResultsDetachInstanceRamRoleResult["Code"].asString(); if(!valueDetachInstanceRamRoleResultsDetachInstanceRamRoleResult["Message"].isNull()) detachInstanceRamRoleResultsObject.message = valueDetachInstanceRamRoleResultsDetachInstanceRamRoleResult["Message"].asString(); + if(!valueDetachInstanceRamRoleResultsDetachInstanceRamRoleResult["InstanceId"].isNull()) + detachInstanceRamRoleResultsObject.instanceId = valueDetachInstanceRamRoleResultsDetachInstanceRamRoleResult["InstanceId"].asString(); + if(!valueDetachInstanceRamRoleResultsDetachInstanceRamRoleResult["Success"].isNull()) + detachInstanceRamRoleResultsObject.success = valueDetachInstanceRamRoleResultsDetachInstanceRamRoleResult["Success"].asString() == "true"; auto allInstanceRamRoleSetsNode = valueDetachInstanceRamRoleResultsDetachInstanceRamRoleResult["InstanceRamRoleSets"]["InstanceRamRoleSet"]; for (auto valueDetachInstanceRamRoleResultsDetachInstanceRamRoleResultInstanceRamRoleSetsInstanceRamRoleSet : allInstanceRamRoleSetsNode) { Result::InstanceRamRoleSet instanceRamRoleSetsObject; - if(!valueDetachInstanceRamRoleResultsDetachInstanceRamRoleResultInstanceRamRoleSetsInstanceRamRoleSet["InstanceId"].isNull()) - instanceRamRoleSetsObject.instanceId = valueDetachInstanceRamRoleResultsDetachInstanceRamRoleResultInstanceRamRoleSetsInstanceRamRoleSet["InstanceId"].asString(); if(!valueDetachInstanceRamRoleResultsDetachInstanceRamRoleResultInstanceRamRoleSetsInstanceRamRoleSet["RamRoleName"].isNull()) instanceRamRoleSetsObject.ramRoleName = valueDetachInstanceRamRoleResultsDetachInstanceRamRoleResultInstanceRamRoleSetsInstanceRamRoleSet["RamRoleName"].asString(); + if(!valueDetachInstanceRamRoleResultsDetachInstanceRamRoleResultInstanceRamRoleSetsInstanceRamRoleSet["InstanceId"].isNull()) + instanceRamRoleSetsObject.instanceId = valueDetachInstanceRamRoleResultsDetachInstanceRamRoleResultInstanceRamRoleSetsInstanceRamRoleSet["InstanceId"].asString(); detachInstanceRamRoleResultsObject.instanceRamRoleSets.push_back(instanceRamRoleSetsObject); } detachInstanceRamRoleResults_.push_back(detachInstanceRamRoleResultsObject); } + if(!value["RamRoleName"].isNull()) + ramRoleName_ = value["RamRoleName"].asString(); if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); if(!value["FailCount"].isNull()) failCount_ = std::stoi(value["FailCount"].asString()); - if(!value["RamRoleName"].isNull()) - ramRoleName_ = value["RamRoleName"].asString(); } diff --git a/ecs/src/model/DetachKeyPairRequest.cc b/ecs/src/model/DetachKeyPairRequest.cc index b4151e03b..c5f388d11 100644 --- a/ecs/src/model/DetachKeyPairRequest.cc +++ b/ecs/src/model/DetachKeyPairRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DetachKeyPairRequest; - -DetachKeyPairRequest::DetachKeyPairRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DetachKeyPair") -{ - setMethod(HttpRequest::Method::Post); -} - -DetachKeyPairRequest::~DetachKeyPairRequest() -{} - -long DetachKeyPairRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DetachKeyPairRequest; + +DetachKeyPairRequest::DetachKeyPairRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DetachKeyPair") { + setMethod(HttpRequest::Method::Post); } -void DetachKeyPairRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DetachKeyPairRequest::~DetachKeyPairRequest() {} + +long DetachKeyPairRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DetachKeyPairRequest::getKeyPairName()const -{ - return keyPairName_; +void DetachKeyPairRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DetachKeyPairRequest::setKeyPairName(const std::string& keyPairName) -{ - keyPairName_ = keyPairName; - setParameter("KeyPairName", keyPairName); +std::string DetachKeyPairRequest::getKeyPairName() const { + return keyPairName_; } -std::string DetachKeyPairRequest::getRegionId()const -{ - return regionId_; +void DetachKeyPairRequest::setKeyPairName(const std::string &keyPairName) { + keyPairName_ = keyPairName; + setParameter(std::string("KeyPairName"), keyPairName); } -void DetachKeyPairRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DetachKeyPairRequest::getRegionId() const { + return regionId_; } -std::string DetachKeyPairRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DetachKeyPairRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DetachKeyPairRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DetachKeyPairRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long DetachKeyPairRequest::getOwnerId()const -{ - return ownerId_; +void DetachKeyPairRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DetachKeyPairRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DetachKeyPairRequest::getOwnerId() const { + return ownerId_; } -std::string DetachKeyPairRequest::getInstanceIds()const -{ - return instanceIds_; +void DetachKeyPairRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DetachKeyPairRequest::setInstanceIds(const std::string& instanceIds) -{ - instanceIds_ = instanceIds; - setParameter("InstanceIds", instanceIds); +std::string DetachKeyPairRequest::getInstanceIds() const { + return instanceIds_; +} + +void DetachKeyPairRequest::setInstanceIds(const std::string &instanceIds) { + instanceIds_ = instanceIds; + setParameter(std::string("InstanceIds"), instanceIds); } diff --git a/ecs/src/model/DetachKeyPairResult.cc b/ecs/src/model/DetachKeyPairResult.cc index 13ac79c5d..ad506e9c8 100644 --- a/ecs/src/model/DetachKeyPairResult.cc +++ b/ecs/src/model/DetachKeyPairResult.cc @@ -43,22 +43,22 @@ void DetachKeyPairResult::parse(const std::string &payload) for (auto valueResultsResult : allResultsNode) { Result resultsObject; - if(!valueResultsResult["InstanceId"].isNull()) - resultsObject.instanceId = valueResultsResult["InstanceId"].asString(); - if(!valueResultsResult["Success"].isNull()) - resultsObject.success = valueResultsResult["Success"].asString(); if(!valueResultsResult["Code"].isNull()) resultsObject.code = valueResultsResult["Code"].asString(); if(!valueResultsResult["Message"].isNull()) resultsObject.message = valueResultsResult["Message"].asString(); + if(!valueResultsResult["InstanceId"].isNull()) + resultsObject.instanceId = valueResultsResult["InstanceId"].asString(); + if(!valueResultsResult["Success"].isNull()) + resultsObject.success = valueResultsResult["Success"].asString(); results_.push_back(resultsObject); } + if(!value["KeyPairName"].isNull()) + keyPairName_ = value["KeyPairName"].asString(); if(!value["TotalCount"].isNull()) totalCount_ = value["TotalCount"].asString(); if(!value["FailCount"].isNull()) failCount_ = value["FailCount"].asString(); - if(!value["KeyPairName"].isNull()) - keyPairName_ = value["KeyPairName"].asString(); } diff --git a/ecs/src/model/DetachNetworkInterfaceRequest.cc b/ecs/src/model/DetachNetworkInterfaceRequest.cc index ec995c0a9..9133a3477 100644 --- a/ecs/src/model/DetachNetworkInterfaceRequest.cc +++ b/ecs/src/model/DetachNetworkInterfaceRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DetachNetworkInterfaceRequest; - -DetachNetworkInterfaceRequest::DetachNetworkInterfaceRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DetachNetworkInterface") -{ - setMethod(HttpRequest::Method::Post); -} - -DetachNetworkInterfaceRequest::~DetachNetworkInterfaceRequest() -{} - -long DetachNetworkInterfaceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DetachNetworkInterfaceRequest; + +DetachNetworkInterfaceRequest::DetachNetworkInterfaceRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DetachNetworkInterface") { + setMethod(HttpRequest::Method::Post); } -void DetachNetworkInterfaceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DetachNetworkInterfaceRequest::~DetachNetworkInterfaceRequest() {} + +long DetachNetworkInterfaceRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DetachNetworkInterfaceRequest::getRegionId()const -{ - return regionId_; +void DetachNetworkInterfaceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DetachNetworkInterfaceRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DetachNetworkInterfaceRequest::getRegionId() const { + return regionId_; } -std::string DetachNetworkInterfaceRequest::getTrunkNetworkInstanceId()const -{ - return trunkNetworkInstanceId_; +void DetachNetworkInterfaceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DetachNetworkInterfaceRequest::setTrunkNetworkInstanceId(const std::string& trunkNetworkInstanceId) -{ - trunkNetworkInstanceId_ = trunkNetworkInstanceId; - setParameter("TrunkNetworkInstanceId", trunkNetworkInstanceId); +std::string DetachNetworkInterfaceRequest::getTrunkNetworkInstanceId() const { + return trunkNetworkInstanceId_; } -std::string DetachNetworkInterfaceRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DetachNetworkInterfaceRequest::setTrunkNetworkInstanceId(const std::string &trunkNetworkInstanceId) { + trunkNetworkInstanceId_ = trunkNetworkInstanceId; + setParameter(std::string("TrunkNetworkInstanceId"), trunkNetworkInstanceId); } -void DetachNetworkInterfaceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DetachNetworkInterfaceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DetachNetworkInterfaceRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DetachNetworkInterfaceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DetachNetworkInterfaceRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DetachNetworkInterfaceRequest::getOwnerAccount() const { + return ownerAccount_; } -long DetachNetworkInterfaceRequest::getOwnerId()const -{ - return ownerId_; +void DetachNetworkInterfaceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DetachNetworkInterfaceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DetachNetworkInterfaceRequest::getOwnerId() const { + return ownerId_; } -std::string DetachNetworkInterfaceRequest::getInstanceId()const -{ - return instanceId_; +void DetachNetworkInterfaceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DetachNetworkInterfaceRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DetachNetworkInterfaceRequest::getInstanceId() const { + return instanceId_; } -std::string DetachNetworkInterfaceRequest::getNetworkInterfaceId()const -{ - return networkInterfaceId_; +void DetachNetworkInterfaceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DetachNetworkInterfaceRequest::setNetworkInterfaceId(const std::string& networkInterfaceId) -{ - networkInterfaceId_ = networkInterfaceId; - setParameter("NetworkInterfaceId", networkInterfaceId); +std::string DetachNetworkInterfaceRequest::getNetworkInterfaceId() const { + return networkInterfaceId_; +} + +void DetachNetworkInterfaceRequest::setNetworkInterfaceId(const std::string &networkInterfaceId) { + networkInterfaceId_ = networkInterfaceId; + setParameter(std::string("NetworkInterfaceId"), networkInterfaceId); } diff --git a/ecs/src/model/DisableActivationRequest.cc b/ecs/src/model/DisableActivationRequest.cc index 9ecd8f563..2630e87f9 100644 --- a/ecs/src/model/DisableActivationRequest.cc +++ b/ecs/src/model/DisableActivationRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::DisableActivationRequest; - -DisableActivationRequest::DisableActivationRequest() : - RpcServiceRequest("ecs", "2014-05-26", "DisableActivation") -{ - setMethod(HttpRequest::Method::Post); -} - -DisableActivationRequest::~DisableActivationRequest() -{} - -long DisableActivationRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::DisableActivationRequest; + +DisableActivationRequest::DisableActivationRequest() + : RpcServiceRequest("ecs", "2014-05-26", "DisableActivation") { + setMethod(HttpRequest::Method::Post); } -void DisableActivationRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DisableActivationRequest::~DisableActivationRequest() {} + +long DisableActivationRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DisableActivationRequest::getRegionId()const -{ - return regionId_; +void DisableActivationRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DisableActivationRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string DisableActivationRequest::getRegionId() const { + return regionId_; } -std::string DisableActivationRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DisableActivationRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void DisableActivationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DisableActivationRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DisableActivationRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DisableActivationRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DisableActivationRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DisableActivationRequest::getOwnerAccount() const { + return ownerAccount_; } -long DisableActivationRequest::getOwnerId()const -{ - return ownerId_; +void DisableActivationRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DisableActivationRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DisableActivationRequest::getOwnerId() const { + return ownerId_; } -std::string DisableActivationRequest::getActivationId()const -{ - return activationId_; +void DisableActivationRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DisableActivationRequest::setActivationId(const std::string& activationId) -{ - activationId_ = activationId; - setParameter("ActivationId", activationId); +std::string DisableActivationRequest::getActivationId() const { + return activationId_; +} + +void DisableActivationRequest::setActivationId(const std::string &activationId) { + activationId_ = activationId; + setParameter(std::string("ActivationId"), activationId); } diff --git a/ecs/src/model/DisableActivationResult.cc b/ecs/src/model/DisableActivationResult.cc index 56de36345..6864b9352 100644 --- a/ecs/src/model/DisableActivationResult.cc +++ b/ecs/src/model/DisableActivationResult.cc @@ -40,26 +40,26 @@ void DisableActivationResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto activationNode = value["Activation"]; - if(!activationNode["ActivationId"].isNull()) - activation_.activationId = activationNode["ActivationId"].asString(); - if(!activationNode["InstanceName"].isNull()) - activation_.instanceName = activationNode["InstanceName"].asString(); - if(!activationNode["Description"].isNull()) - activation_.description = activationNode["Description"].asString(); - if(!activationNode["InstanceCount"].isNull()) - activation_.instanceCount = std::stoi(activationNode["InstanceCount"].asString()); - if(!activationNode["TimeToLiveInHours"].isNull()) - activation_.timeToLiveInHours = std::stol(activationNode["TimeToLiveInHours"].asString()); - if(!activationNode["IpAddressRange"].isNull()) - activation_.ipAddressRange = activationNode["IpAddressRange"].asString(); - if(!activationNode["RegisteredCount"].isNull()) - activation_.registeredCount = std::stoi(activationNode["RegisteredCount"].asString()); - if(!activationNode["DeregisteredCount"].isNull()) - activation_.deregisteredCount = std::stoi(activationNode["DeregisteredCount"].asString()); - if(!activationNode["Disabled"].isNull()) - activation_.disabled = activationNode["Disabled"].asString() == "true"; if(!activationNode["CreationTime"].isNull()) activation_.creationTime = activationNode["CreationTime"].asString(); + if(!activationNode["DeregisteredCount"].isNull()) + activation_.deregisteredCount = std::stoi(activationNode["DeregisteredCount"].asString()); + if(!activationNode["InstanceCount"].isNull()) + activation_.instanceCount = std::stoi(activationNode["InstanceCount"].asString()); + if(!activationNode["Description"].isNull()) + activation_.description = activationNode["Description"].asString(); + if(!activationNode["RegisteredCount"].isNull()) + activation_.registeredCount = std::stoi(activationNode["RegisteredCount"].asString()); + if(!activationNode["InstanceName"].isNull()) + activation_.instanceName = activationNode["InstanceName"].asString(); + if(!activationNode["Disabled"].isNull()) + activation_.disabled = activationNode["Disabled"].asString() == "true"; + if(!activationNode["IpAddressRange"].isNull()) + activation_.ipAddressRange = activationNode["IpAddressRange"].asString(); + if(!activationNode["TimeToLiveInHours"].isNull()) + activation_.timeToLiveInHours = std::stol(activationNode["TimeToLiveInHours"].asString()); + if(!activationNode["ActivationId"].isNull()) + activation_.activationId = activationNode["ActivationId"].asString(); } diff --git a/ecs/src/model/EipFillParamsRequest.cc b/ecs/src/model/EipFillParamsRequest.cc index ecfb4931e..1c5424405 100644 --- a/ecs/src/model/EipFillParamsRequest.cc +++ b/ecs/src/model/EipFillParamsRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::EipFillParamsRequest; - -EipFillParamsRequest::EipFillParamsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "EipFillParams") -{ - setMethod(HttpRequest::Method::Post); -} - -EipFillParamsRequest::~EipFillParamsRequest() -{} - -long EipFillParamsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::EipFillParamsRequest; + +EipFillParamsRequest::EipFillParamsRequest() + : RpcServiceRequest("ecs", "2014-05-26", "EipFillParams") { + setMethod(HttpRequest::Method::Post); } -void EipFillParamsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +EipFillParamsRequest::~EipFillParamsRequest() {} + +long EipFillParamsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string EipFillParamsRequest::getData()const -{ - return data_; +void EipFillParamsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void EipFillParamsRequest::setData(const std::string& data) -{ - data_ = data; - setParameter("Data", data); +std::string EipFillParamsRequest::getData() const { + return data_; } -std::string EipFillParamsRequest::getClientToken()const -{ - return clientToken_; +void EipFillParamsRequest::setData(const std::string &data) { + data_ = data; + setParameter(std::string("data"), data); } -void EipFillParamsRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string EipFillParamsRequest::getClientToken() const { + return clientToken_; } -std::string EipFillParamsRequest::getUserCidr()const -{ - return userCidr_; +void EipFillParamsRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void EipFillParamsRequest::setUserCidr(const std::string& userCidr) -{ - userCidr_ = userCidr; - setParameter("UserCidr", userCidr); +std::string EipFillParamsRequest::getUserCidr() const { + return userCidr_; } -std::string EipFillParamsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void EipFillParamsRequest::setUserCidr(const std::string &userCidr) { + userCidr_ = userCidr; + setParameter(std::string("UserCidr"), userCidr); } -void EipFillParamsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string EipFillParamsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string EipFillParamsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void EipFillParamsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void EipFillParamsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string EipFillParamsRequest::getOwnerAccount() const { + return ownerAccount_; } -long EipFillParamsRequest::getOwnerId()const -{ - return ownerId_; +void EipFillParamsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void EipFillParamsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long EipFillParamsRequest::getOwnerId() const { + return ownerId_; +} + +void EipFillParamsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/EipFillParamsResult.cc b/ecs/src/model/EipFillParamsResult.cc index d0359ce15..cfcea6035 100644 --- a/ecs/src/model/EipFillParamsResult.cc +++ b/ecs/src/model/EipFillParamsResult.cc @@ -39,29 +39,29 @@ void EipFillParamsResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["requestId"].isNull()) - requestId_ = value["requestId"].asString(); - if(!value["data"].isNull()) - data_ = value["data"].asString(); if(!value["code"].isNull()) code_ = value["code"].asString(); if(!value["success"].isNull()) success_ = value["success"].asString() == "true"; if(!value["message"].isNull()) message_ = value["message"].asString(); + if(!value["data"].isNull()) + data_ = value["data"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); } -std::string EipFillParamsResult::getRequestId()const -{ - return requestId_; -} - std::string EipFillParamsResult::getMessage()const { return message_; } +std::string EipFillParamsResult::getRequestId()const +{ + return requestId_; +} + std::string EipFillParamsResult::getData()const { return data_; diff --git a/ecs/src/model/EipFillProductRequest.cc b/ecs/src/model/EipFillProductRequest.cc index 12c666dc7..815a9d3b9 100644 --- a/ecs/src/model/EipFillProductRequest.cc +++ b/ecs/src/model/EipFillProductRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::EipFillProductRequest; - -EipFillProductRequest::EipFillProductRequest() : - RpcServiceRequest("ecs", "2014-05-26", "EipFillProduct") -{ - setMethod(HttpRequest::Method::Post); -} - -EipFillProductRequest::~EipFillProductRequest() -{} - -long EipFillProductRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::EipFillProductRequest; + +EipFillProductRequest::EipFillProductRequest() + : RpcServiceRequest("ecs", "2014-05-26", "EipFillProduct") { + setMethod(HttpRequest::Method::Post); } -void EipFillProductRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +EipFillProductRequest::~EipFillProductRequest() {} + +long EipFillProductRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string EipFillProductRequest::getData()const -{ - return data_; +void EipFillProductRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void EipFillProductRequest::setData(const std::string& data) -{ - data_ = data; - setParameter("Data", data); +std::string EipFillProductRequest::getData() const { + return data_; } -std::string EipFillProductRequest::getClientToken()const -{ - return clientToken_; +void EipFillProductRequest::setData(const std::string &data) { + data_ = data; + setParameter(std::string("data"), data); } -void EipFillProductRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string EipFillProductRequest::getClientToken() const { + return clientToken_; } -std::string EipFillProductRequest::getUserCidr()const -{ - return userCidr_; +void EipFillProductRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void EipFillProductRequest::setUserCidr(const std::string& userCidr) -{ - userCidr_ = userCidr; - setParameter("UserCidr", userCidr); +std::string EipFillProductRequest::getUserCidr() const { + return userCidr_; } -std::string EipFillProductRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void EipFillProductRequest::setUserCidr(const std::string &userCidr) { + userCidr_ = userCidr; + setParameter(std::string("UserCidr"), userCidr); } -void EipFillProductRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string EipFillProductRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string EipFillProductRequest::getOwnerAccount()const -{ - return ownerAccount_; +void EipFillProductRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void EipFillProductRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string EipFillProductRequest::getOwnerAccount() const { + return ownerAccount_; } -long EipFillProductRequest::getOwnerId()const -{ - return ownerId_; +void EipFillProductRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void EipFillProductRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long EipFillProductRequest::getOwnerId() const { + return ownerId_; +} + +void EipFillProductRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/EipFillProductResult.cc b/ecs/src/model/EipFillProductResult.cc index d6b59f027..d05e54b40 100644 --- a/ecs/src/model/EipFillProductResult.cc +++ b/ecs/src/model/EipFillProductResult.cc @@ -39,29 +39,29 @@ void EipFillProductResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["requestId"].isNull()) - requestId_ = value["requestId"].asString(); - if(!value["data"].isNull()) - data_ = value["data"].asString(); if(!value["code"].isNull()) code_ = value["code"].asString(); if(!value["success"].isNull()) success_ = value["success"].asString() == "true"; if(!value["message"].isNull()) message_ = value["message"].asString(); + if(!value["data"].isNull()) + data_ = value["data"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); } -std::string EipFillProductResult::getRequestId()const -{ - return requestId_; -} - std::string EipFillProductResult::getMessage()const { return message_; } +std::string EipFillProductResult::getRequestId()const +{ + return requestId_; +} + std::string EipFillProductResult::getData()const { return data_; diff --git a/ecs/src/model/EipNotifyPaidRequest.cc b/ecs/src/model/EipNotifyPaidRequest.cc index 2f2eaffbf..4ac88b18d 100644 --- a/ecs/src/model/EipNotifyPaidRequest.cc +++ b/ecs/src/model/EipNotifyPaidRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::EipNotifyPaidRequest; - -EipNotifyPaidRequest::EipNotifyPaidRequest() : - RpcServiceRequest("ecs", "2014-05-26", "EipNotifyPaid") -{ - setMethod(HttpRequest::Method::Post); -} - -EipNotifyPaidRequest::~EipNotifyPaidRequest() -{} - -long EipNotifyPaidRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::EipNotifyPaidRequest; + +EipNotifyPaidRequest::EipNotifyPaidRequest() + : RpcServiceRequest("ecs", "2014-05-26", "EipNotifyPaid") { + setMethod(HttpRequest::Method::Post); } -void EipNotifyPaidRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +EipNotifyPaidRequest::~EipNotifyPaidRequest() {} + +long EipNotifyPaidRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string EipNotifyPaidRequest::getData()const -{ - return data_; +void EipNotifyPaidRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void EipNotifyPaidRequest::setData(const std::string& data) -{ - data_ = data; - setParameter("Data", data); +std::string EipNotifyPaidRequest::getData() const { + return data_; } -std::string EipNotifyPaidRequest::getClientToken()const -{ - return clientToken_; +void EipNotifyPaidRequest::setData(const std::string &data) { + data_ = data; + setParameter(std::string("data"), data); } -void EipNotifyPaidRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string EipNotifyPaidRequest::getClientToken() const { + return clientToken_; } -std::string EipNotifyPaidRequest::getUserCidr()const -{ - return userCidr_; +void EipNotifyPaidRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void EipNotifyPaidRequest::setUserCidr(const std::string& userCidr) -{ - userCidr_ = userCidr; - setParameter("UserCidr", userCidr); +std::string EipNotifyPaidRequest::getUserCidr() const { + return userCidr_; } -std::string EipNotifyPaidRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void EipNotifyPaidRequest::setUserCidr(const std::string &userCidr) { + userCidr_ = userCidr; + setParameter(std::string("UserCidr"), userCidr); } -void EipNotifyPaidRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string EipNotifyPaidRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string EipNotifyPaidRequest::getOwnerAccount()const -{ - return ownerAccount_; +void EipNotifyPaidRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void EipNotifyPaidRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string EipNotifyPaidRequest::getOwnerAccount() const { + return ownerAccount_; } -long EipNotifyPaidRequest::getOwnerId()const -{ - return ownerId_; +void EipNotifyPaidRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void EipNotifyPaidRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long EipNotifyPaidRequest::getOwnerId() const { + return ownerId_; +} + +void EipNotifyPaidRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/EipNotifyPaidResult.cc b/ecs/src/model/EipNotifyPaidResult.cc index 659783f68..99806888d 100644 --- a/ecs/src/model/EipNotifyPaidResult.cc +++ b/ecs/src/model/EipNotifyPaidResult.cc @@ -39,29 +39,29 @@ void EipNotifyPaidResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["requestId"].isNull()) - requestId_ = value["requestId"].asString(); - if(!value["data"].isNull()) - data_ = value["data"].asString(); if(!value["code"].isNull()) code_ = value["code"].asString(); - if(!value["message"].isNull()) - message_ = value["message"].asString(); if(!value["success"].isNull()) success_ = value["success"].asString() == "true"; + if(!value["message"].isNull()) + message_ = value["message"].asString(); + if(!value["data"].isNull()) + data_ = value["data"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); } -std::string EipNotifyPaidResult::getRequestId()const -{ - return requestId_; -} - std::string EipNotifyPaidResult::getMessage()const { return message_; } +std::string EipNotifyPaidResult::getRequestId()const +{ + return requestId_; +} + std::string EipNotifyPaidResult::getData()const { return data_; diff --git a/ecs/src/model/EnablePhysicalConnectionRequest.cc b/ecs/src/model/EnablePhysicalConnectionRequest.cc index 0959c5872..36a7d1289 100644 --- a/ecs/src/model/EnablePhysicalConnectionRequest.cc +++ b/ecs/src/model/EnablePhysicalConnectionRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::EnablePhysicalConnectionRequest; - -EnablePhysicalConnectionRequest::EnablePhysicalConnectionRequest() : - RpcServiceRequest("ecs", "2014-05-26", "EnablePhysicalConnection") -{ - setMethod(HttpRequest::Method::Post); -} - -EnablePhysicalConnectionRequest::~EnablePhysicalConnectionRequest() -{} - -long EnablePhysicalConnectionRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::EnablePhysicalConnectionRequest; + +EnablePhysicalConnectionRequest::EnablePhysicalConnectionRequest() + : RpcServiceRequest("ecs", "2014-05-26", "EnablePhysicalConnection") { + setMethod(HttpRequest::Method::Post); } -void EnablePhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +EnablePhysicalConnectionRequest::~EnablePhysicalConnectionRequest() {} + +long EnablePhysicalConnectionRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string EnablePhysicalConnectionRequest::getClientToken()const -{ - return clientToken_; +void EnablePhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void EnablePhysicalConnectionRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string EnablePhysicalConnectionRequest::getClientToken() const { + return clientToken_; } -std::string EnablePhysicalConnectionRequest::getRegionId()const -{ - return regionId_; +void EnablePhysicalConnectionRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void EnablePhysicalConnectionRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string EnablePhysicalConnectionRequest::getRegionId() const { + return regionId_; } -std::string EnablePhysicalConnectionRequest::getUserCidr()const -{ - return userCidr_; +void EnablePhysicalConnectionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void EnablePhysicalConnectionRequest::setUserCidr(const std::string& userCidr) -{ - userCidr_ = userCidr; - setParameter("UserCidr", userCidr); +std::string EnablePhysicalConnectionRequest::getUserCidr() const { + return userCidr_; } -std::string EnablePhysicalConnectionRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void EnablePhysicalConnectionRequest::setUserCidr(const std::string &userCidr) { + userCidr_ = userCidr; + setParameter(std::string("UserCidr"), userCidr); } -void EnablePhysicalConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string EnablePhysicalConnectionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string EnablePhysicalConnectionRequest::getOwnerAccount()const -{ - return ownerAccount_; +void EnablePhysicalConnectionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void EnablePhysicalConnectionRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string EnablePhysicalConnectionRequest::getOwnerAccount() const { + return ownerAccount_; } -long EnablePhysicalConnectionRequest::getOwnerId()const -{ - return ownerId_; +void EnablePhysicalConnectionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void EnablePhysicalConnectionRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long EnablePhysicalConnectionRequest::getOwnerId() const { + return ownerId_; } -std::string EnablePhysicalConnectionRequest::getPhysicalConnectionId()const -{ - return physicalConnectionId_; +void EnablePhysicalConnectionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void EnablePhysicalConnectionRequest::setPhysicalConnectionId(const std::string& physicalConnectionId) -{ - physicalConnectionId_ = physicalConnectionId; - setParameter("PhysicalConnectionId", physicalConnectionId); +std::string EnablePhysicalConnectionRequest::getPhysicalConnectionId() const { + return physicalConnectionId_; +} + +void EnablePhysicalConnectionRequest::setPhysicalConnectionId(const std::string &physicalConnectionId) { + physicalConnectionId_ = physicalConnectionId; + setParameter(std::string("PhysicalConnectionId"), physicalConnectionId); } diff --git a/ecs/src/model/ExportImageRequest.cc b/ecs/src/model/ExportImageRequest.cc index be71103c6..d34613134 100644 --- a/ecs/src/model/ExportImageRequest.cc +++ b/ecs/src/model/ExportImageRequest.cc @@ -1,128 +1,108 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ExportImageRequest; - -ExportImageRequest::ExportImageRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ExportImage") -{ - setMethod(HttpRequest::Method::Post); -} - -ExportImageRequest::~ExportImageRequest() -{} - -long ExportImageRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ExportImageRequest; + +ExportImageRequest::ExportImageRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ExportImage") { + setMethod(HttpRequest::Method::Post); } -void ExportImageRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ExportImageRequest::~ExportImageRequest() {} + +long ExportImageRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ExportImageRequest::getImageId()const -{ - return imageId_; +void ExportImageRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ExportImageRequest::setImageId(const std::string& imageId) -{ - imageId_ = imageId; - setParameter("ImageId", imageId); +std::string ExportImageRequest::getImageId() const { + return imageId_; } -std::string ExportImageRequest::getRegionId()const -{ - return regionId_; +void ExportImageRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("ImageId"), imageId); } -void ExportImageRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ExportImageRequest::getRegionId() const { + return regionId_; } -std::string ExportImageRequest::getImageFormat()const -{ - return imageFormat_; +void ExportImageRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ExportImageRequest::setImageFormat(const std::string& imageFormat) -{ - imageFormat_ = imageFormat; - setParameter("ImageFormat", imageFormat); +std::string ExportImageRequest::getImageFormat() const { + return imageFormat_; } -std::string ExportImageRequest::getOSSBucket()const -{ - return oSSBucket_; +void ExportImageRequest::setImageFormat(const std::string &imageFormat) { + imageFormat_ = imageFormat; + setParameter(std::string("ImageFormat"), imageFormat); } -void ExportImageRequest::setOSSBucket(const std::string& oSSBucket) -{ - oSSBucket_ = oSSBucket; - setParameter("OSSBucket", oSSBucket); +std::string ExportImageRequest::getOSSBucket() const { + return oSSBucket_; } -std::string ExportImageRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ExportImageRequest::setOSSBucket(const std::string &oSSBucket) { + oSSBucket_ = oSSBucket; + setParameter(std::string("OSSBucket"), oSSBucket); } -void ExportImageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ExportImageRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ExportImageRequest::getRoleName()const -{ - return roleName_; +void ExportImageRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ExportImageRequest::setRoleName(const std::string& roleName) -{ - roleName_ = roleName; - setParameter("RoleName", roleName); +std::string ExportImageRequest::getRoleName() const { + return roleName_; } -long ExportImageRequest::getOwnerId()const -{ - return ownerId_; +void ExportImageRequest::setRoleName(const std::string &roleName) { + roleName_ = roleName; + setParameter(std::string("RoleName"), roleName); } -void ExportImageRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ExportImageRequest::getOwnerId() const { + return ownerId_; } -std::string ExportImageRequest::getOSSPrefix()const -{ - return oSSPrefix_; +void ExportImageRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ExportImageRequest::setOSSPrefix(const std::string& oSSPrefix) -{ - oSSPrefix_ = oSSPrefix; - setParameter("OSSPrefix", oSSPrefix); +std::string ExportImageRequest::getOSSPrefix() const { + return oSSPrefix_; +} + +void ExportImageRequest::setOSSPrefix(const std::string &oSSPrefix) { + oSSPrefix_ = oSSPrefix; + setParameter(std::string("OSSPrefix"), oSSPrefix); } diff --git a/ecs/src/model/ExportSnapshotRequest.cc b/ecs/src/model/ExportSnapshotRequest.cc index 32cd8180e..9c5688a17 100644 --- a/ecs/src/model/ExportSnapshotRequest.cc +++ b/ecs/src/model/ExportSnapshotRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ExportSnapshotRequest; - -ExportSnapshotRequest::ExportSnapshotRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ExportSnapshot") -{ - setMethod(HttpRequest::Method::Post); -} - -ExportSnapshotRequest::~ExportSnapshotRequest() -{} - -long ExportSnapshotRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ExportSnapshotRequest; + +ExportSnapshotRequest::ExportSnapshotRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ExportSnapshot") { + setMethod(HttpRequest::Method::Post); } -void ExportSnapshotRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ExportSnapshotRequest::~ExportSnapshotRequest() {} + +long ExportSnapshotRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ExportSnapshotRequest::getSnapshotId()const -{ - return snapshotId_; +void ExportSnapshotRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ExportSnapshotRequest::setSnapshotId(const std::string& snapshotId) -{ - snapshotId_ = snapshotId; - setParameter("SnapshotId", snapshotId); +std::string ExportSnapshotRequest::getSnapshotId() const { + return snapshotId_; } -std::string ExportSnapshotRequest::getRegionId()const -{ - return regionId_; +void ExportSnapshotRequest::setSnapshotId(const std::string &snapshotId) { + snapshotId_ = snapshotId; + setParameter(std::string("SnapshotId"), snapshotId); } -void ExportSnapshotRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ExportSnapshotRequest::getRegionId() const { + return regionId_; } -std::string ExportSnapshotRequest::getOssBucket()const -{ - return ossBucket_; +void ExportSnapshotRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ExportSnapshotRequest::setOssBucket(const std::string& ossBucket) -{ - ossBucket_ = ossBucket; - setParameter("OssBucket", ossBucket); +std::string ExportSnapshotRequest::getOssBucket() const { + return ossBucket_; } -std::string ExportSnapshotRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ExportSnapshotRequest::setOssBucket(const std::string &ossBucket) { + ossBucket_ = ossBucket; + setParameter(std::string("OssBucket"), ossBucket); } -void ExportSnapshotRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ExportSnapshotRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ExportSnapshotRequest::getRoleName()const -{ - return roleName_; +void ExportSnapshotRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ExportSnapshotRequest::setRoleName(const std::string& roleName) -{ - roleName_ = roleName; - setParameter("RoleName", roleName); +std::string ExportSnapshotRequest::getRoleName() const { + return roleName_; } -long ExportSnapshotRequest::getOwnerId()const -{ - return ownerId_; +void ExportSnapshotRequest::setRoleName(const std::string &roleName) { + roleName_ = roleName; + setParameter(std::string("RoleName"), roleName); } -void ExportSnapshotRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ExportSnapshotRequest::getOwnerId() const { + return ownerId_; +} + +void ExportSnapshotRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/GetInstanceConsoleOutputRequest.cc b/ecs/src/model/GetInstanceConsoleOutputRequest.cc index 09cb02dc3..e91b06668 100644 --- a/ecs/src/model/GetInstanceConsoleOutputRequest.cc +++ b/ecs/src/model/GetInstanceConsoleOutputRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::GetInstanceConsoleOutputRequest; - -GetInstanceConsoleOutputRequest::GetInstanceConsoleOutputRequest() : - RpcServiceRequest("ecs", "2014-05-26", "GetInstanceConsoleOutput") -{ - setMethod(HttpRequest::Method::Post); -} - -GetInstanceConsoleOutputRequest::~GetInstanceConsoleOutputRequest() -{} - -long GetInstanceConsoleOutputRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::GetInstanceConsoleOutputRequest; + +GetInstanceConsoleOutputRequest::GetInstanceConsoleOutputRequest() + : RpcServiceRequest("ecs", "2014-05-26", "GetInstanceConsoleOutput") { + setMethod(HttpRequest::Method::Post); } -void GetInstanceConsoleOutputRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +GetInstanceConsoleOutputRequest::~GetInstanceConsoleOutputRequest() {} + +long GetInstanceConsoleOutputRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -bool GetInstanceConsoleOutputRequest::getRemoveSymbols()const -{ - return removeSymbols_; +void GetInstanceConsoleOutputRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void GetInstanceConsoleOutputRequest::setRemoveSymbols(bool removeSymbols) -{ - removeSymbols_ = removeSymbols; - setParameter("RemoveSymbols", removeSymbols ? "true" : "false"); +bool GetInstanceConsoleOutputRequest::getRemoveSymbols() const { + return removeSymbols_; } -std::string GetInstanceConsoleOutputRequest::getRegionId()const -{ - return regionId_; +void GetInstanceConsoleOutputRequest::setRemoveSymbols(bool removeSymbols) { + removeSymbols_ = removeSymbols; + setParameter(std::string("RemoveSymbols"), removeSymbols ? "true" : "false"); } -void GetInstanceConsoleOutputRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string GetInstanceConsoleOutputRequest::getRegionId() const { + return regionId_; } -std::string GetInstanceConsoleOutputRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void GetInstanceConsoleOutputRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void GetInstanceConsoleOutputRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string GetInstanceConsoleOutputRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string GetInstanceConsoleOutputRequest::getOwnerAccount()const -{ - return ownerAccount_; +void GetInstanceConsoleOutputRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void GetInstanceConsoleOutputRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string GetInstanceConsoleOutputRequest::getOwnerAccount() const { + return ownerAccount_; } -long GetInstanceConsoleOutputRequest::getOwnerId()const -{ - return ownerId_; +void GetInstanceConsoleOutputRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void GetInstanceConsoleOutputRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long GetInstanceConsoleOutputRequest::getOwnerId() const { + return ownerId_; } -std::string GetInstanceConsoleOutputRequest::getInstanceId()const -{ - return instanceId_; +void GetInstanceConsoleOutputRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void GetInstanceConsoleOutputRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string GetInstanceConsoleOutputRequest::getInstanceId() const { + return instanceId_; +} + +void GetInstanceConsoleOutputRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/ecs/src/model/GetInstanceConsoleOutputResult.cc b/ecs/src/model/GetInstanceConsoleOutputResult.cc index 8142de64d..f2d9196fd 100644 --- a/ecs/src/model/GetInstanceConsoleOutputResult.cc +++ b/ecs/src/model/GetInstanceConsoleOutputResult.cc @@ -39,12 +39,12 @@ void GetInstanceConsoleOutputResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["LastUpdateTime"].isNull()) + lastUpdateTime_ = value["LastUpdateTime"].asString(); if(!value["InstanceId"].isNull()) instanceId_ = value["InstanceId"].asString(); if(!value["ConsoleOutput"].isNull()) consoleOutput_ = value["ConsoleOutput"].asString(); - if(!value["LastUpdateTime"].isNull()) - lastUpdateTime_ = value["LastUpdateTime"].asString(); } @@ -53,13 +53,13 @@ std::string GetInstanceConsoleOutputResult::getConsoleOutput()const return consoleOutput_; } -std::string GetInstanceConsoleOutputResult::getInstanceId()const -{ - return instanceId_; -} - std::string GetInstanceConsoleOutputResult::getLastUpdateTime()const { return lastUpdateTime_; } +std::string GetInstanceConsoleOutputResult::getInstanceId()const +{ + return instanceId_; +} + diff --git a/ecs/src/model/GetInstanceScreenshotRequest.cc b/ecs/src/model/GetInstanceScreenshotRequest.cc index 1ea5ae0e6..d03a726d9 100644 --- a/ecs/src/model/GetInstanceScreenshotRequest.cc +++ b/ecs/src/model/GetInstanceScreenshotRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::GetInstanceScreenshotRequest; - -GetInstanceScreenshotRequest::GetInstanceScreenshotRequest() : - RpcServiceRequest("ecs", "2014-05-26", "GetInstanceScreenshot") -{ - setMethod(HttpRequest::Method::Post); -} - -GetInstanceScreenshotRequest::~GetInstanceScreenshotRequest() -{} - -long GetInstanceScreenshotRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::GetInstanceScreenshotRequest; + +GetInstanceScreenshotRequest::GetInstanceScreenshotRequest() + : RpcServiceRequest("ecs", "2014-05-26", "GetInstanceScreenshot") { + setMethod(HttpRequest::Method::Post); } -void GetInstanceScreenshotRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +GetInstanceScreenshotRequest::~GetInstanceScreenshotRequest() {} + +long GetInstanceScreenshotRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string GetInstanceScreenshotRequest::getRegionId()const -{ - return regionId_; +void GetInstanceScreenshotRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void GetInstanceScreenshotRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string GetInstanceScreenshotRequest::getRegionId() const { + return regionId_; } -std::string GetInstanceScreenshotRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void GetInstanceScreenshotRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void GetInstanceScreenshotRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string GetInstanceScreenshotRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -bool GetInstanceScreenshotRequest::getWakeUp()const -{ - return wakeUp_; +void GetInstanceScreenshotRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void GetInstanceScreenshotRequest::setWakeUp(bool wakeUp) -{ - wakeUp_ = wakeUp; - setParameter("WakeUp", wakeUp ? "true" : "false"); +bool GetInstanceScreenshotRequest::getWakeUp() const { + return wakeUp_; } -std::string GetInstanceScreenshotRequest::getOwnerAccount()const -{ - return ownerAccount_; +void GetInstanceScreenshotRequest::setWakeUp(bool wakeUp) { + wakeUp_ = wakeUp; + setParameter(std::string("WakeUp"), wakeUp ? "true" : "false"); } -void GetInstanceScreenshotRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string GetInstanceScreenshotRequest::getOwnerAccount() const { + return ownerAccount_; } -long GetInstanceScreenshotRequest::getOwnerId()const -{ - return ownerId_; +void GetInstanceScreenshotRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void GetInstanceScreenshotRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long GetInstanceScreenshotRequest::getOwnerId() const { + return ownerId_; } -std::string GetInstanceScreenshotRequest::getInstanceId()const -{ - return instanceId_; +void GetInstanceScreenshotRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void GetInstanceScreenshotRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string GetInstanceScreenshotRequest::getInstanceId() const { + return instanceId_; +} + +void GetInstanceScreenshotRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/ecs/src/model/ImportImageRequest.cc b/ecs/src/model/ImportImageRequest.cc index 4b11e1947..fae9168e1 100644 --- a/ecs/src/model/ImportImageRequest.cc +++ b/ecs/src/model/ImportImageRequest.cc @@ -1,208 +1,176 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ImportImageRequest; - -ImportImageRequest::ImportImageRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ImportImage") -{ - setMethod(HttpRequest::Method::Post); -} - -ImportImageRequest::~ImportImageRequest() -{} - -std::vector ImportImageRequest::getDiskDeviceMapping()const -{ - return diskDeviceMapping_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ImportImageRequest; + +ImportImageRequest::ImportImageRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ImportImage") { + setMethod(HttpRequest::Method::Post); } -void ImportImageRequest::setDiskDeviceMapping(const std::vector& diskDeviceMapping) -{ - diskDeviceMapping_ = diskDeviceMapping; - for(int dep1 = 0; dep1!= diskDeviceMapping.size(); dep1++) { - auto diskDeviceMappingObj = diskDeviceMapping.at(dep1); - std::string diskDeviceMappingObjStr = "DiskDeviceMapping." + std::to_string(dep1 + 1); - setParameter(diskDeviceMappingObjStr + ".OSSBucket", diskDeviceMappingObj.oSSBucket); - setParameter(diskDeviceMappingObjStr + ".DiskImSize", std::to_string(diskDeviceMappingObj.diskImSize)); - setParameter(diskDeviceMappingObjStr + ".Format", diskDeviceMappingObj.format); - setParameter(diskDeviceMappingObjStr + ".Device", diskDeviceMappingObj.device); - setParameter(diskDeviceMappingObjStr + ".OSSObject", diskDeviceMappingObj.oSSObject); - setParameter(diskDeviceMappingObjStr + ".DiskImageSize", std::to_string(diskDeviceMappingObj.diskImageSize)); - } +ImportImageRequest::~ImportImageRequest() {} + +std::vector ImportImageRequest::getDiskDeviceMapping() const { + return diskDeviceMapping_; } -long ImportImageRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void ImportImageRequest::setDiskDeviceMapping(const std::vector &diskDeviceMapping) { + diskDeviceMapping_ = diskDeviceMapping; + for(int dep1 = 0; dep1 != diskDeviceMapping.size(); dep1++) { + auto diskDeviceMappingObj = diskDeviceMapping.at(dep1); + std::string diskDeviceMappingObjStr = std::string("DiskDeviceMapping") + "." + std::to_string(dep1 + 1); + setParameter(diskDeviceMappingObjStr + ".OSSBucket", diskDeviceMappingObj.oSSBucket); + setParameter(diskDeviceMappingObjStr + ".DiskImSize", std::to_string(diskDeviceMappingObj.diskImSize)); + setParameter(diskDeviceMappingObjStr + ".Format", diskDeviceMappingObj.format); + setParameter(diskDeviceMappingObjStr + ".Device", diskDeviceMappingObj.device); + setParameter(diskDeviceMappingObjStr + ".OSSObject", diskDeviceMappingObj.oSSObject); + setParameter(diskDeviceMappingObjStr + ".DiskImageSize", std::to_string(diskDeviceMappingObj.diskImageSize)); + } } -void ImportImageRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long ImportImageRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ImportImageRequest::getDescription()const -{ - return description_; +void ImportImageRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ImportImageRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ImportImageRequest::getDescription() const { + return description_; } -std::string ImportImageRequest::getPlatform()const -{ - return platform_; +void ImportImageRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ImportImageRequest::setPlatform(const std::string& platform) -{ - platform_ = platform; - setParameter("Platform", platform); +std::string ImportImageRequest::getPlatform() const { + return platform_; } -std::string ImportImageRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void ImportImageRequest::setPlatform(const std::string &platform) { + platform_ = platform; + setParameter(std::string("Platform"), platform); } -void ImportImageRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string ImportImageRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string ImportImageRequest::getBootMode()const -{ - return bootMode_; +void ImportImageRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void ImportImageRequest::setBootMode(const std::string& bootMode) -{ - bootMode_ = bootMode; - setParameter("BootMode", bootMode); +std::string ImportImageRequest::getBootMode() const { + return bootMode_; } -std::string ImportImageRequest::getRegionId()const -{ - return regionId_; +void ImportImageRequest::setBootMode(const std::string &bootMode) { + bootMode_ = bootMode; + setParameter(std::string("BootMode"), bootMode); } -void ImportImageRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ImportImageRequest::getRegionId() const { + return regionId_; } -std::string ImportImageRequest::getImageName()const -{ - return imageName_; +void ImportImageRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ImportImageRequest::setImageName(const std::string& imageName) -{ - imageName_ = imageName; - setParameter("ImageName", imageName); +std::string ImportImageRequest::getImageName() const { + return imageName_; } -std::vector ImportImageRequest::getTag()const -{ - return tag_; +void ImportImageRequest::setImageName(const std::string &imageName) { + imageName_ = imageName; + setParameter(std::string("ImageName"), imageName); } -void ImportImageRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Value", tagObj.value); - setParameter(tagObjStr + ".Key", tagObj.key); - } +std::vector ImportImageRequest::getTag() const { + return tag_; } -std::string ImportImageRequest::getArchitecture()const -{ - return architecture_; +void ImportImageRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } -void ImportImageRequest::setArchitecture(const std::string& architecture) -{ - architecture_ = architecture; - setParameter("Architecture", architecture); +std::string ImportImageRequest::getArchitecture() const { + return architecture_; } -std::string ImportImageRequest::getLicenseType()const -{ - return licenseType_; +void ImportImageRequest::setArchitecture(const std::string &architecture) { + architecture_ = architecture; + setParameter(std::string("Architecture"), architecture); } -void ImportImageRequest::setLicenseType(const std::string& licenseType) -{ - licenseType_ = licenseType; - setParameter("LicenseType", licenseType); +std::string ImportImageRequest::getLicenseType() const { + return licenseType_; } -std::string ImportImageRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ImportImageRequest::setLicenseType(const std::string &licenseType) { + licenseType_ = licenseType; + setParameter(std::string("LicenseType"), licenseType); } -void ImportImageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ImportImageRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ImportImageRequest::getRoleName()const -{ - return roleName_; +void ImportImageRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ImportImageRequest::setRoleName(const std::string& roleName) -{ - roleName_ = roleName; - setParameter("RoleName", roleName); +std::string ImportImageRequest::getRoleName() const { + return roleName_; } -std::string ImportImageRequest::getOSType()const -{ - return oSType_; +void ImportImageRequest::setRoleName(const std::string &roleName) { + roleName_ = roleName; + setParameter(std::string("RoleName"), roleName); } -void ImportImageRequest::setOSType(const std::string& oSType) -{ - oSType_ = oSType; - setParameter("OSType", oSType); +std::string ImportImageRequest::getOSType() const { + return oSType_; } -long ImportImageRequest::getOwnerId()const -{ - return ownerId_; +void ImportImageRequest::setOSType(const std::string &oSType) { + oSType_ = oSType; + setParameter(std::string("OSType"), oSType); } -void ImportImageRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ImportImageRequest::getOwnerId() const { + return ownerId_; +} + +void ImportImageRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/ImportKeyPairRequest.cc b/ecs/src/model/ImportKeyPairRequest.cc index 1d1f39d7d..ee298ef53 100644 --- a/ecs/src/model/ImportKeyPairRequest.cc +++ b/ecs/src/model/ImportKeyPairRequest.cc @@ -1,122 +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::Ecs::Model::ImportKeyPairRequest; - -ImportKeyPairRequest::ImportKeyPairRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ImportKeyPair") -{ - setMethod(HttpRequest::Method::Post); -} - -ImportKeyPairRequest::~ImportKeyPairRequest() -{} - -long ImportKeyPairRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ImportKeyPairRequest; + +ImportKeyPairRequest::ImportKeyPairRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ImportKeyPair") { + setMethod(HttpRequest::Method::Post); } -void ImportKeyPairRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ImportKeyPairRequest::~ImportKeyPairRequest() {} + +long ImportKeyPairRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ImportKeyPairRequest::getKeyPairName()const -{ - return keyPairName_; +void ImportKeyPairRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ImportKeyPairRequest::setKeyPairName(const std::string& keyPairName) -{ - keyPairName_ = keyPairName; - setParameter("KeyPairName", keyPairName); +std::string ImportKeyPairRequest::getKeyPairName() const { + return keyPairName_; } -std::string ImportKeyPairRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void ImportKeyPairRequest::setKeyPairName(const std::string &keyPairName) { + keyPairName_ = keyPairName; + setParameter(std::string("KeyPairName"), keyPairName); } -void ImportKeyPairRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string ImportKeyPairRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string ImportKeyPairRequest::getRegionId()const -{ - return regionId_; +void ImportKeyPairRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void ImportKeyPairRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ImportKeyPairRequest::getRegionId() const { + return regionId_; } -std::vector ImportKeyPairRequest::getTag()const -{ - return tag_; +void ImportKeyPairRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ImportKeyPairRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Value", tagObj.value); - setParameter(tagObjStr + ".Key", tagObj.key); - } +std::vector ImportKeyPairRequest::getTag() const { + return tag_; } -std::string ImportKeyPairRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ImportKeyPairRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } -void ImportKeyPairRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ImportKeyPairRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ImportKeyPairRequest::getPublicKeyBody()const -{ - return publicKeyBody_; +void ImportKeyPairRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ImportKeyPairRequest::setPublicKeyBody(const std::string& publicKeyBody) -{ - publicKeyBody_ = publicKeyBody; - setParameter("PublicKeyBody", publicKeyBody); +std::string ImportKeyPairRequest::getPublicKeyBody() const { + return publicKeyBody_; } -long ImportKeyPairRequest::getOwnerId()const -{ - return ownerId_; +void ImportKeyPairRequest::setPublicKeyBody(const std::string &publicKeyBody) { + publicKeyBody_ = publicKeyBody; + setParameter(std::string("PublicKeyBody"), publicKeyBody); } -void ImportKeyPairRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ImportKeyPairRequest::getOwnerId() const { + return ownerId_; +} + +void ImportKeyPairRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/ImportSnapshotRequest.cc b/ecs/src/model/ImportSnapshotRequest.cc index 134e70378..e0738f5ea 100644 --- a/ecs/src/model/ImportSnapshotRequest.cc +++ b/ecs/src/model/ImportSnapshotRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ImportSnapshotRequest; - -ImportSnapshotRequest::ImportSnapshotRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ImportSnapshot") -{ - setMethod(HttpRequest::Method::Post); -} - -ImportSnapshotRequest::~ImportSnapshotRequest() -{} - -long ImportSnapshotRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ImportSnapshotRequest; + +ImportSnapshotRequest::ImportSnapshotRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ImportSnapshot") { + setMethod(HttpRequest::Method::Post); } -void ImportSnapshotRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ImportSnapshotRequest::~ImportSnapshotRequest() {} + +long ImportSnapshotRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ImportSnapshotRequest::getSnapshotName()const -{ - return snapshotName_; +void ImportSnapshotRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ImportSnapshotRequest::setSnapshotName(const std::string& snapshotName) -{ - snapshotName_ = snapshotName; - setParameter("SnapshotName", snapshotName); +std::string ImportSnapshotRequest::getSnapshotName() const { + return snapshotName_; } -std::string ImportSnapshotRequest::getOssObject()const -{ - return ossObject_; +void ImportSnapshotRequest::setSnapshotName(const std::string &snapshotName) { + snapshotName_ = snapshotName; + setParameter(std::string("SnapshotName"), snapshotName); } -void ImportSnapshotRequest::setOssObject(const std::string& ossObject) -{ - ossObject_ = ossObject; - setParameter("OssObject", ossObject); +std::string ImportSnapshotRequest::getOssObject() const { + return ossObject_; } -std::string ImportSnapshotRequest::getRegionId()const -{ - return regionId_; +void ImportSnapshotRequest::setOssObject(const std::string &ossObject) { + ossObject_ = ossObject; + setParameter(std::string("OssObject"), ossObject); } -void ImportSnapshotRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ImportSnapshotRequest::getRegionId() const { + return regionId_; } -std::string ImportSnapshotRequest::getOssBucket()const -{ - return ossBucket_; +void ImportSnapshotRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ImportSnapshotRequest::setOssBucket(const std::string& ossBucket) -{ - ossBucket_ = ossBucket; - setParameter("OssBucket", ossBucket); +std::string ImportSnapshotRequest::getOssBucket() const { + return ossBucket_; } -std::string ImportSnapshotRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ImportSnapshotRequest::setOssBucket(const std::string &ossBucket) { + ossBucket_ = ossBucket; + setParameter(std::string("OssBucket"), ossBucket); } -void ImportSnapshotRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ImportSnapshotRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ImportSnapshotRequest::getRoleName()const -{ - return roleName_; +void ImportSnapshotRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ImportSnapshotRequest::setRoleName(const std::string& roleName) -{ - roleName_ = roleName; - setParameter("RoleName", roleName); +std::string ImportSnapshotRequest::getRoleName() const { + return roleName_; } -long ImportSnapshotRequest::getOwnerId()const -{ - return ownerId_; +void ImportSnapshotRequest::setRoleName(const std::string &roleName) { + roleName_ = roleName; + setParameter(std::string("RoleName"), roleName); } -void ImportSnapshotRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ImportSnapshotRequest::getOwnerId() const { + return ownerId_; +} + +void ImportSnapshotRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/InstallCloudAssistantRequest.cc b/ecs/src/model/InstallCloudAssistantRequest.cc index 13b197782..d8a90eb34 100644 --- a/ecs/src/model/InstallCloudAssistantRequest.cc +++ b/ecs/src/model/InstallCloudAssistantRequest.cc @@ -1,97 +1,80 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::InstallCloudAssistantRequest; - -InstallCloudAssistantRequest::InstallCloudAssistantRequest() : - RpcServiceRequest("ecs", "2014-05-26", "InstallCloudAssistant") -{ - setMethod(HttpRequest::Method::Post); -} - -InstallCloudAssistantRequest::~InstallCloudAssistantRequest() -{} - -long InstallCloudAssistantRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::InstallCloudAssistantRequest; + +InstallCloudAssistantRequest::InstallCloudAssistantRequest() + : RpcServiceRequest("ecs", "2014-05-26", "InstallCloudAssistant") { + setMethod(HttpRequest::Method::Post); } -void InstallCloudAssistantRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +InstallCloudAssistantRequest::~InstallCloudAssistantRequest() {} + +long InstallCloudAssistantRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string InstallCloudAssistantRequest::getRegionId()const -{ - return regionId_; +void InstallCloudAssistantRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void InstallCloudAssistantRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string InstallCloudAssistantRequest::getRegionId() const { + return regionId_; } -std::string InstallCloudAssistantRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void InstallCloudAssistantRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void InstallCloudAssistantRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string InstallCloudAssistantRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string InstallCloudAssistantRequest::getOwnerAccount()const -{ - return ownerAccount_; +void InstallCloudAssistantRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void InstallCloudAssistantRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string InstallCloudAssistantRequest::getOwnerAccount() const { + return ownerAccount_; } -long InstallCloudAssistantRequest::getOwnerId()const -{ - return ownerId_; +void InstallCloudAssistantRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void InstallCloudAssistantRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long InstallCloudAssistantRequest::getOwnerId() const { + return ownerId_; } -std::vector InstallCloudAssistantRequest::getInstanceId()const -{ - return instanceId_; +void InstallCloudAssistantRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void InstallCloudAssistantRequest::setInstanceId(const std::vector& instanceId) -{ - instanceId_ = instanceId; - for(int dep1 = 0; dep1!= instanceId.size(); dep1++) { - setParameter("InstanceId."+ std::to_string(dep1), instanceId.at(dep1)); - } +std::vector InstallCloudAssistantRequest::getInstanceId() const { + return instanceId_; +} + +void InstallCloudAssistantRequest::setInstanceId(const std::vector &instanceId) { + instanceId_ = instanceId; } diff --git a/ecs/src/model/InvokeCommandRequest.cc b/ecs/src/model/InvokeCommandRequest.cc index 1b700e8c0..84c3f7eb7 100644 --- a/ecs/src/model/InvokeCommandRequest.cc +++ b/ecs/src/model/InvokeCommandRequest.cc @@ -1,174 +1,143 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::InvokeCommandRequest; - -InvokeCommandRequest::InvokeCommandRequest() : - RpcServiceRequest("ecs", "2014-05-26", "InvokeCommand") -{ - setMethod(HttpRequest::Method::Post); -} - -InvokeCommandRequest::~InvokeCommandRequest() -{} - -long InvokeCommandRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::InvokeCommandRequest; + +InvokeCommandRequest::InvokeCommandRequest() + : RpcServiceRequest("ecs", "2014-05-26", "InvokeCommand") { + setMethod(HttpRequest::Method::Post); } -void InvokeCommandRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +InvokeCommandRequest::~InvokeCommandRequest() {} + +long InvokeCommandRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string InvokeCommandRequest::getCommandId()const -{ - return commandId_; +void InvokeCommandRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void InvokeCommandRequest::setCommandId(const std::string& commandId) -{ - commandId_ = commandId; - setParameter("CommandId", commandId); +std::string InvokeCommandRequest::getCommandId() const { + return commandId_; } -std::string InvokeCommandRequest::getFrequency()const -{ - return frequency_; +void InvokeCommandRequest::setCommandId(const std::string &commandId) { + commandId_ = commandId; + setParameter(std::string("CommandId"), commandId); } -void InvokeCommandRequest::setFrequency(const std::string& frequency) -{ - frequency_ = frequency; - setParameter("Frequency", frequency); +std::string InvokeCommandRequest::getFrequency() const { + return frequency_; } -std::string InvokeCommandRequest::getRegionId()const -{ - return regionId_; +void InvokeCommandRequest::setFrequency(const std::string &frequency) { + frequency_ = frequency; + setParameter(std::string("Frequency"), frequency); } -void InvokeCommandRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string InvokeCommandRequest::getRegionId() const { + return regionId_; } -std::string InvokeCommandRequest::getRepeatMode()const -{ - return repeatMode_; +void InvokeCommandRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void InvokeCommandRequest::setRepeatMode(const std::string& repeatMode) -{ - repeatMode_ = repeatMode; - setParameter("RepeatMode", repeatMode); +std::string InvokeCommandRequest::getRepeatMode() const { + return repeatMode_; } -std::string InvokeCommandRequest::getWindowsPasswordName()const -{ - return windowsPasswordName_; +void InvokeCommandRequest::setRepeatMode(const std::string &repeatMode) { + repeatMode_ = repeatMode; + setParameter(std::string("RepeatMode"), repeatMode); } -void InvokeCommandRequest::setWindowsPasswordName(const std::string& windowsPasswordName) -{ - windowsPasswordName_ = windowsPasswordName; - setParameter("WindowsPasswordName", windowsPasswordName); +std::string InvokeCommandRequest::getWindowsPasswordName() const { + return windowsPasswordName_; } -bool InvokeCommandRequest::getTimed()const -{ - return timed_; +void InvokeCommandRequest::setWindowsPasswordName(const std::string &windowsPasswordName) { + windowsPasswordName_ = windowsPasswordName; + setParameter(std::string("WindowsPasswordName"), windowsPasswordName); } -void InvokeCommandRequest::setTimed(bool timed) -{ - timed_ = timed; - setParameter("Timed", timed ? "true" : "false"); +bool InvokeCommandRequest::getTimed() const { + return timed_; } -std::string InvokeCommandRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void InvokeCommandRequest::setTimed(bool timed) { + timed_ = timed; + setParameter(std::string("Timed"), timed ? "true" : "false"); } -void InvokeCommandRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string InvokeCommandRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string InvokeCommandRequest::getOwnerAccount()const -{ - return ownerAccount_; +void InvokeCommandRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void InvokeCommandRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string InvokeCommandRequest::getOwnerAccount() const { + return ownerAccount_; } -long InvokeCommandRequest::getOwnerId()const -{ - return ownerId_; +void InvokeCommandRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void InvokeCommandRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long InvokeCommandRequest::getOwnerId() const { + return ownerId_; } -std::vector InvokeCommandRequest::getInstanceId()const -{ - return instanceId_; +void InvokeCommandRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void InvokeCommandRequest::setInstanceId(const std::vector& instanceId) -{ - instanceId_ = instanceId; - for(int dep1 = 0; dep1!= instanceId.size(); dep1++) { - setParameter("InstanceId."+ std::to_string(dep1), instanceId.at(dep1)); - } +std::vector InvokeCommandRequest::getInstanceId() const { + return instanceId_; } -std::map InvokeCommandRequest::getParameters()const -{ - return parameters_; +void InvokeCommandRequest::setInstanceId(const std::vector &instanceId) { + instanceId_ = instanceId; } -void InvokeCommandRequest::setParameters(const std::map& parameters) -{ - parameters_ = parameters; - setJsonParameters("Parameters", parameters); +std::map InvokeCommandRequest::getParameters() const { + return parameters_; } -std::string InvokeCommandRequest::getUsername()const -{ - return username_; +void InvokeCommandRequest::setParameters(std::map parameters) { + parameters_ = parameters; + setParameter(std::string("Parameters"), parameters); } -void InvokeCommandRequest::setUsername(const std::string& username) -{ - username_ = username; - setParameter("Username", username); +std::string InvokeCommandRequest::getUsername() const { + return username_; +} + +void InvokeCommandRequest::setUsername(const std::string &username) { + username_ = username; + setParameter(std::string("Username"), username); } diff --git a/ecs/src/model/JoinResourceGroupRequest.cc b/ecs/src/model/JoinResourceGroupRequest.cc index fde68a09e..290423fac 100644 --- a/ecs/src/model/JoinResourceGroupRequest.cc +++ b/ecs/src/model/JoinResourceGroupRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::JoinResourceGroupRequest; - -JoinResourceGroupRequest::JoinResourceGroupRequest() : - RpcServiceRequest("ecs", "2014-05-26", "JoinResourceGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -JoinResourceGroupRequest::~JoinResourceGroupRequest() -{} - -long JoinResourceGroupRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::JoinResourceGroupRequest; + +JoinResourceGroupRequest::JoinResourceGroupRequest() + : RpcServiceRequest("ecs", "2014-05-26", "JoinResourceGroup") { + setMethod(HttpRequest::Method::Post); } -void JoinResourceGroupRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +JoinResourceGroupRequest::~JoinResourceGroupRequest() {} + +long JoinResourceGroupRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string JoinResourceGroupRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void JoinResourceGroupRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void JoinResourceGroupRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string JoinResourceGroupRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string JoinResourceGroupRequest::getRegionId()const -{ - return regionId_; +void JoinResourceGroupRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void JoinResourceGroupRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string JoinResourceGroupRequest::getRegionId() const { + return regionId_; } -std::string JoinResourceGroupRequest::getResourceId()const -{ - return resourceId_; +void JoinResourceGroupRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void JoinResourceGroupRequest::setResourceId(const std::string& resourceId) -{ - resourceId_ = resourceId; - setParameter("ResourceId", resourceId); +std::string JoinResourceGroupRequest::getResourceId() const { + return resourceId_; } -std::string JoinResourceGroupRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void JoinResourceGroupRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); } -void JoinResourceGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string JoinResourceGroupRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string JoinResourceGroupRequest::getOwnerAccount()const -{ - return ownerAccount_; +void JoinResourceGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void JoinResourceGroupRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string JoinResourceGroupRequest::getOwnerAccount() const { + return ownerAccount_; } -long JoinResourceGroupRequest::getOwnerId()const -{ - return ownerId_; +void JoinResourceGroupRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void JoinResourceGroupRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long JoinResourceGroupRequest::getOwnerId() const { + return ownerId_; } -std::string JoinResourceGroupRequest::getResourceType()const -{ - return resourceType_; +void JoinResourceGroupRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void JoinResourceGroupRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +std::string JoinResourceGroupRequest::getResourceType() const { + return resourceType_; +} + +void JoinResourceGroupRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); } diff --git a/ecs/src/model/JoinSecurityGroupRequest.cc b/ecs/src/model/JoinSecurityGroupRequest.cc index 6d80c3844..32804cac3 100644 --- a/ecs/src/model/JoinSecurityGroupRequest.cc +++ b/ecs/src/model/JoinSecurityGroupRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::JoinSecurityGroupRequest; - -JoinSecurityGroupRequest::JoinSecurityGroupRequest() : - RpcServiceRequest("ecs", "2014-05-26", "JoinSecurityGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -JoinSecurityGroupRequest::~JoinSecurityGroupRequest() -{} - -long JoinSecurityGroupRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::JoinSecurityGroupRequest; + +JoinSecurityGroupRequest::JoinSecurityGroupRequest() + : RpcServiceRequest("ecs", "2014-05-26", "JoinSecurityGroup") { + setMethod(HttpRequest::Method::Post); } -void JoinSecurityGroupRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +JoinSecurityGroupRequest::~JoinSecurityGroupRequest() {} + +long JoinSecurityGroupRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string JoinSecurityGroupRequest::getSecurityGroupId()const -{ - return securityGroupId_; +void JoinSecurityGroupRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void JoinSecurityGroupRequest::setSecurityGroupId(const std::string& securityGroupId) -{ - securityGroupId_ = securityGroupId; - setParameter("SecurityGroupId", securityGroupId); +std::string JoinSecurityGroupRequest::getSecurityGroupId() const { + return securityGroupId_; } -std::string JoinSecurityGroupRequest::getRegionId()const -{ - return regionId_; +void JoinSecurityGroupRequest::setSecurityGroupId(const std::string &securityGroupId) { + securityGroupId_ = securityGroupId; + setParameter(std::string("SecurityGroupId"), securityGroupId); } -void JoinSecurityGroupRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string JoinSecurityGroupRequest::getRegionId() const { + return regionId_; } -std::string JoinSecurityGroupRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void JoinSecurityGroupRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void JoinSecurityGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string JoinSecurityGroupRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string JoinSecurityGroupRequest::getOwnerAccount()const -{ - return ownerAccount_; +void JoinSecurityGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void JoinSecurityGroupRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string JoinSecurityGroupRequest::getOwnerAccount() const { + return ownerAccount_; } -long JoinSecurityGroupRequest::getOwnerId()const -{ - return ownerId_; +void JoinSecurityGroupRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void JoinSecurityGroupRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long JoinSecurityGroupRequest::getOwnerId() const { + return ownerId_; } -std::string JoinSecurityGroupRequest::getInstanceId()const -{ - return instanceId_; +void JoinSecurityGroupRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void JoinSecurityGroupRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string JoinSecurityGroupRequest::getInstanceId() const { + return instanceId_; } -std::string JoinSecurityGroupRequest::getNetworkInterfaceId()const -{ - return networkInterfaceId_; +void JoinSecurityGroupRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void JoinSecurityGroupRequest::setNetworkInterfaceId(const std::string& networkInterfaceId) -{ - networkInterfaceId_ = networkInterfaceId; - setParameter("NetworkInterfaceId", networkInterfaceId); +std::string JoinSecurityGroupRequest::getNetworkInterfaceId() const { + return networkInterfaceId_; +} + +void JoinSecurityGroupRequest::setNetworkInterfaceId(const std::string &networkInterfaceId) { + networkInterfaceId_ = networkInterfaceId; + setParameter(std::string("NetworkInterfaceId"), networkInterfaceId); } diff --git a/ecs/src/model/LeaveSecurityGroupRequest.cc b/ecs/src/model/LeaveSecurityGroupRequest.cc index b03b557b0..2b33be364 100644 --- a/ecs/src/model/LeaveSecurityGroupRequest.cc +++ b/ecs/src/model/LeaveSecurityGroupRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::LeaveSecurityGroupRequest; - -LeaveSecurityGroupRequest::LeaveSecurityGroupRequest() : - RpcServiceRequest("ecs", "2014-05-26", "LeaveSecurityGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -LeaveSecurityGroupRequest::~LeaveSecurityGroupRequest() -{} - -long LeaveSecurityGroupRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::LeaveSecurityGroupRequest; + +LeaveSecurityGroupRequest::LeaveSecurityGroupRequest() + : RpcServiceRequest("ecs", "2014-05-26", "LeaveSecurityGroup") { + setMethod(HttpRequest::Method::Post); } -void LeaveSecurityGroupRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +LeaveSecurityGroupRequest::~LeaveSecurityGroupRequest() {} + +long LeaveSecurityGroupRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string LeaveSecurityGroupRequest::getSecurityGroupId()const -{ - return securityGroupId_; +void LeaveSecurityGroupRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void LeaveSecurityGroupRequest::setSecurityGroupId(const std::string& securityGroupId) -{ - securityGroupId_ = securityGroupId; - setParameter("SecurityGroupId", securityGroupId); +std::string LeaveSecurityGroupRequest::getSecurityGroupId() const { + return securityGroupId_; } -std::string LeaveSecurityGroupRequest::getRegionId()const -{ - return regionId_; +void LeaveSecurityGroupRequest::setSecurityGroupId(const std::string &securityGroupId) { + securityGroupId_ = securityGroupId; + setParameter(std::string("SecurityGroupId"), securityGroupId); } -void LeaveSecurityGroupRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string LeaveSecurityGroupRequest::getRegionId() const { + return regionId_; } -std::string LeaveSecurityGroupRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void LeaveSecurityGroupRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void LeaveSecurityGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string LeaveSecurityGroupRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string LeaveSecurityGroupRequest::getOwnerAccount()const -{ - return ownerAccount_; +void LeaveSecurityGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void LeaveSecurityGroupRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string LeaveSecurityGroupRequest::getOwnerAccount() const { + return ownerAccount_; } -long LeaveSecurityGroupRequest::getOwnerId()const -{ - return ownerId_; +void LeaveSecurityGroupRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void LeaveSecurityGroupRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long LeaveSecurityGroupRequest::getOwnerId() const { + return ownerId_; } -std::string LeaveSecurityGroupRequest::getInstanceId()const -{ - return instanceId_; +void LeaveSecurityGroupRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void LeaveSecurityGroupRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string LeaveSecurityGroupRequest::getInstanceId() const { + return instanceId_; } -std::string LeaveSecurityGroupRequest::getNetworkInterfaceId()const -{ - return networkInterfaceId_; +void LeaveSecurityGroupRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void LeaveSecurityGroupRequest::setNetworkInterfaceId(const std::string& networkInterfaceId) -{ - networkInterfaceId_ = networkInterfaceId; - setParameter("NetworkInterfaceId", networkInterfaceId); +std::string LeaveSecurityGroupRequest::getNetworkInterfaceId() const { + return networkInterfaceId_; +} + +void LeaveSecurityGroupRequest::setNetworkInterfaceId(const std::string &networkInterfaceId) { + networkInterfaceId_ = networkInterfaceId; + setParameter(std::string("NetworkInterfaceId"), networkInterfaceId); } diff --git a/ecs/src/model/ListTagResourcesRequest.cc b/ecs/src/model/ListTagResourcesRequest.cc index 48139e4e6..f7928c386 100644 --- a/ecs/src/model/ListTagResourcesRequest.cc +++ b/ecs/src/model/ListTagResourcesRequest.cc @@ -1,153 +1,125 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ListTagResourcesRequest; - -ListTagResourcesRequest::ListTagResourcesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ListTagResources") -{ - setMethod(HttpRequest::Method::Post); -} - -ListTagResourcesRequest::~ListTagResourcesRequest() -{} - -long ListTagResourcesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ListTagResourcesRequest; + +ListTagResourcesRequest::ListTagResourcesRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ListTagResources") { + setMethod(HttpRequest::Method::Post); } -void ListTagResourcesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ListTagResourcesRequest::~ListTagResourcesRequest() {} + +long ListTagResourcesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ListTagResourcesRequest::getRegionId()const -{ - return regionId_; +void ListTagResourcesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ListTagResourcesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ListTagResourcesRequest::getRegionId() const { + return regionId_; } -std::string ListTagResourcesRequest::getNextToken()const -{ - return nextToken_; +void ListTagResourcesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ListTagResourcesRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +std::string ListTagResourcesRequest::getNextToken() const { + return nextToken_; } -std::vector ListTagResourcesRequest::getTag()const -{ - return tag_; +void ListTagResourcesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } -void ListTagResourcesRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Key", tagObj.key); - setParameter(tagObjStr + ".Value", tagObj.value); - } +std::vector ListTagResourcesRequest::getTag() const { + return tag_; } -std::vector ListTagResourcesRequest::getResourceId()const -{ - return resourceId_; +void ListTagResourcesRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } } -void ListTagResourcesRequest::setResourceId(const std::vector& resourceId) -{ - resourceId_ = resourceId; - for(int dep1 = 0; dep1!= resourceId.size(); dep1++) { - setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1)); - } +std::vector ListTagResourcesRequest::getResourceId() const { + return resourceId_; } -std::string ListTagResourcesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ListTagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; } -void ListTagResourcesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ListTagResourcesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ListTagResourcesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ListTagResourcesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ListTagResourcesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ListTagResourcesRequest::getOwnerAccount() const { + return ownerAccount_; } -long ListTagResourcesRequest::getOwnerId()const -{ - return ownerId_; +void ListTagResourcesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ListTagResourcesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ListTagResourcesRequest::getOwnerId() const { + return ownerId_; } -std::vector ListTagResourcesRequest::getTagFilter()const -{ - return tagFilter_; +void ListTagResourcesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ListTagResourcesRequest::setTagFilter(const std::vector& tagFilter) -{ - tagFilter_ = tagFilter; - for(int dep1 = 0; dep1!= tagFilter.size(); dep1++) { - auto tagFilterObj = tagFilter.at(dep1); - std::string tagFilterObjStr = "TagFilter." + std::to_string(dep1 + 1); - for(int dep2 = 0; dep2!= tagFilterObj.tagValues.size(); dep2++) { - setParameter(tagFilterObjStr + ".TagValues."+ std::to_string(dep2), tagFilterObj.tagValues.at(dep2)); - } - setParameter(tagFilterObjStr + ".TagKey", tagFilterObj.tagKey); - } +std::vector ListTagResourcesRequest::getTagFilter() const { + return tagFilter_; } -std::string ListTagResourcesRequest::getResourceType()const -{ - return resourceType_; +void ListTagResourcesRequest::setTagFilter(const std::vector &tagFilter) { + tagFilter_ = tagFilter; + for(int dep1 = 0; dep1 != tagFilter.size(); dep1++) { + auto tagFilterObj = tagFilter.at(dep1); + std::string tagFilterObjStr = std::string("TagFilter") + "." + std::to_string(dep1 + 1); + setParameter(tagFilterObjStr + ".TagKey", tagFilterObj.tagKey); + } } -void ListTagResourcesRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +std::string ListTagResourcesRequest::getResourceType() const { + return resourceType_; +} + +void ListTagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); } diff --git a/ecs/src/model/ModifyAutoProvisioningGroupRequest.cc b/ecs/src/model/ModifyAutoProvisioningGroupRequest.cc index 2b4754160..c5ab4eed9 100644 --- a/ecs/src/model/ModifyAutoProvisioningGroupRequest.cc +++ b/ecs/src/model/ModifyAutoProvisioningGroupRequest.cc @@ -1,202 +1,170 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyAutoProvisioningGroupRequest; - -ModifyAutoProvisioningGroupRequest::ModifyAutoProvisioningGroupRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyAutoProvisioningGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyAutoProvisioningGroupRequest::~ModifyAutoProvisioningGroupRequest() -{} - -long ModifyAutoProvisioningGroupRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyAutoProvisioningGroupRequest; + +ModifyAutoProvisioningGroupRequest::ModifyAutoProvisioningGroupRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyAutoProvisioningGroup") { + setMethod(HttpRequest::Method::Post); } -void ModifyAutoProvisioningGroupRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyAutoProvisioningGroupRequest::~ModifyAutoProvisioningGroupRequest() {} + +long ModifyAutoProvisioningGroupRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -bool ModifyAutoProvisioningGroupRequest::getTerminateInstancesWithExpiration()const -{ - return terminateInstancesWithExpiration_; +void ModifyAutoProvisioningGroupRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyAutoProvisioningGroupRequest::setTerminateInstancesWithExpiration(bool terminateInstancesWithExpiration) -{ - terminateInstancesWithExpiration_ = terminateInstancesWithExpiration; - setParameter("TerminateInstancesWithExpiration", terminateInstancesWithExpiration ? "true" : "false"); +bool ModifyAutoProvisioningGroupRequest::getTerminateInstancesWithExpiration() const { + return terminateInstancesWithExpiration_; } -std::string ModifyAutoProvisioningGroupRequest::getRegionId()const -{ - return regionId_; +void ModifyAutoProvisioningGroupRequest::setTerminateInstancesWithExpiration(bool terminateInstancesWithExpiration) { + terminateInstancesWithExpiration_ = terminateInstancesWithExpiration; + setParameter(std::string("TerminateInstancesWithExpiration"), terminateInstancesWithExpiration ? "true" : "false"); } -void ModifyAutoProvisioningGroupRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyAutoProvisioningGroupRequest::getRegionId() const { + return regionId_; } -std::string ModifyAutoProvisioningGroupRequest::getDefaultTargetCapacityType()const -{ - return defaultTargetCapacityType_; +void ModifyAutoProvisioningGroupRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyAutoProvisioningGroupRequest::setDefaultTargetCapacityType(const std::string& defaultTargetCapacityType) -{ - defaultTargetCapacityType_ = defaultTargetCapacityType; - setParameter("DefaultTargetCapacityType", defaultTargetCapacityType); +std::string ModifyAutoProvisioningGroupRequest::getDefaultTargetCapacityType() const { + return defaultTargetCapacityType_; } -std::string ModifyAutoProvisioningGroupRequest::getExcessCapacityTerminationPolicy()const -{ - return excessCapacityTerminationPolicy_; +void ModifyAutoProvisioningGroupRequest::setDefaultTargetCapacityType(const std::string &defaultTargetCapacityType) { + defaultTargetCapacityType_ = defaultTargetCapacityType; + setParameter(std::string("DefaultTargetCapacityType"), defaultTargetCapacityType); } -void ModifyAutoProvisioningGroupRequest::setExcessCapacityTerminationPolicy(const std::string& excessCapacityTerminationPolicy) -{ - excessCapacityTerminationPolicy_ = excessCapacityTerminationPolicy; - setParameter("ExcessCapacityTerminationPolicy", excessCapacityTerminationPolicy); +std::string ModifyAutoProvisioningGroupRequest::getExcessCapacityTerminationPolicy() const { + return excessCapacityTerminationPolicy_; } -std::vector ModifyAutoProvisioningGroupRequest::getLaunchTemplateConfig()const -{ - return launchTemplateConfig_; +void ModifyAutoProvisioningGroupRequest::setExcessCapacityTerminationPolicy(const std::string &excessCapacityTerminationPolicy) { + excessCapacityTerminationPolicy_ = excessCapacityTerminationPolicy; + setParameter(std::string("ExcessCapacityTerminationPolicy"), excessCapacityTerminationPolicy); } -void ModifyAutoProvisioningGroupRequest::setLaunchTemplateConfig(const std::vector& launchTemplateConfig) -{ - launchTemplateConfig_ = launchTemplateConfig; - for(int dep1 = 0; dep1!= launchTemplateConfig.size(); dep1++) { - auto launchTemplateConfigObj = launchTemplateConfig.at(dep1); - std::string launchTemplateConfigObjStr = "LaunchTemplateConfig." + std::to_string(dep1 + 1); - setParameter(launchTemplateConfigObjStr + ".InstanceType", launchTemplateConfigObj.instanceType); - setParameter(launchTemplateConfigObjStr + ".MaxPrice", std::to_string(launchTemplateConfigObj.maxPrice)); - setParameter(launchTemplateConfigObjStr + ".VSwitchId", launchTemplateConfigObj.vSwitchId); - setParameter(launchTemplateConfigObjStr + ".WeightedCapacity", std::to_string(launchTemplateConfigObj.weightedCapacity)); - setParameter(launchTemplateConfigObjStr + ".Priority", std::to_string(launchTemplateConfigObj.priority)); - } +std::vector ModifyAutoProvisioningGroupRequest::getLaunchTemplateConfig() const { + return launchTemplateConfig_; } -std::string ModifyAutoProvisioningGroupRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyAutoProvisioningGroupRequest::setLaunchTemplateConfig(const std::vector &launchTemplateConfig) { + launchTemplateConfig_ = launchTemplateConfig; + for(int dep1 = 0; dep1 != launchTemplateConfig.size(); dep1++) { + auto launchTemplateConfigObj = launchTemplateConfig.at(dep1); + std::string launchTemplateConfigObjStr = std::string("LaunchTemplateConfig") + "." + std::to_string(dep1 + 1); + setParameter(launchTemplateConfigObjStr + ".VSwitchId", launchTemplateConfigObj.vSwitchId); + setParameter(launchTemplateConfigObjStr + ".MaxPrice", std::to_string(launchTemplateConfigObj.maxPrice)); + setParameter(launchTemplateConfigObjStr + ".Priority", std::to_string(launchTemplateConfigObj.priority)); + setParameter(launchTemplateConfigObjStr + ".InstanceType", launchTemplateConfigObj.instanceType); + setParameter(launchTemplateConfigObjStr + ".WeightedCapacity", std::to_string(launchTemplateConfigObj.weightedCapacity)); + } } -void ModifyAutoProvisioningGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyAutoProvisioningGroupRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyAutoProvisioningGroupRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyAutoProvisioningGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyAutoProvisioningGroupRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyAutoProvisioningGroupRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyAutoProvisioningGroupRequest::getOwnerId()const -{ - return ownerId_; +void ModifyAutoProvisioningGroupRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyAutoProvisioningGroupRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyAutoProvisioningGroupRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyAutoProvisioningGroupRequest::getAutoProvisioningGroupId()const -{ - return autoProvisioningGroupId_; +void ModifyAutoProvisioningGroupRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyAutoProvisioningGroupRequest::setAutoProvisioningGroupId(const std::string& autoProvisioningGroupId) -{ - autoProvisioningGroupId_ = autoProvisioningGroupId; - setParameter("AutoProvisioningGroupId", autoProvisioningGroupId); +std::string ModifyAutoProvisioningGroupRequest::getAutoProvisioningGroupId() const { + return autoProvisioningGroupId_; } -std::string ModifyAutoProvisioningGroupRequest::getPayAsYouGoTargetCapacity()const -{ - return payAsYouGoTargetCapacity_; +void ModifyAutoProvisioningGroupRequest::setAutoProvisioningGroupId(const std::string &autoProvisioningGroupId) { + autoProvisioningGroupId_ = autoProvisioningGroupId; + setParameter(std::string("AutoProvisioningGroupId"), autoProvisioningGroupId); } -void ModifyAutoProvisioningGroupRequest::setPayAsYouGoTargetCapacity(const std::string& payAsYouGoTargetCapacity) -{ - payAsYouGoTargetCapacity_ = payAsYouGoTargetCapacity; - setParameter("PayAsYouGoTargetCapacity", payAsYouGoTargetCapacity); +std::string ModifyAutoProvisioningGroupRequest::getPayAsYouGoTargetCapacity() const { + return payAsYouGoTargetCapacity_; } -std::string ModifyAutoProvisioningGroupRequest::getTotalTargetCapacity()const -{ - return totalTargetCapacity_; +void ModifyAutoProvisioningGroupRequest::setPayAsYouGoTargetCapacity(const std::string &payAsYouGoTargetCapacity) { + payAsYouGoTargetCapacity_ = payAsYouGoTargetCapacity; + setParameter(std::string("PayAsYouGoTargetCapacity"), payAsYouGoTargetCapacity); } -void ModifyAutoProvisioningGroupRequest::setTotalTargetCapacity(const std::string& totalTargetCapacity) -{ - totalTargetCapacity_ = totalTargetCapacity; - setParameter("TotalTargetCapacity", totalTargetCapacity); +std::string ModifyAutoProvisioningGroupRequest::getTotalTargetCapacity() const { + return totalTargetCapacity_; } -std::string ModifyAutoProvisioningGroupRequest::getSpotTargetCapacity()const -{ - return spotTargetCapacity_; +void ModifyAutoProvisioningGroupRequest::setTotalTargetCapacity(const std::string &totalTargetCapacity) { + totalTargetCapacity_ = totalTargetCapacity; + setParameter(std::string("TotalTargetCapacity"), totalTargetCapacity); } -void ModifyAutoProvisioningGroupRequest::setSpotTargetCapacity(const std::string& spotTargetCapacity) -{ - spotTargetCapacity_ = spotTargetCapacity; - setParameter("SpotTargetCapacity", spotTargetCapacity); +std::string ModifyAutoProvisioningGroupRequest::getSpotTargetCapacity() const { + return spotTargetCapacity_; } -float ModifyAutoProvisioningGroupRequest::getMaxSpotPrice()const -{ - return maxSpotPrice_; +void ModifyAutoProvisioningGroupRequest::setSpotTargetCapacity(const std::string &spotTargetCapacity) { + spotTargetCapacity_ = spotTargetCapacity; + setParameter(std::string("SpotTargetCapacity"), spotTargetCapacity); } -void ModifyAutoProvisioningGroupRequest::setMaxSpotPrice(float maxSpotPrice) -{ - maxSpotPrice_ = maxSpotPrice; - setParameter("MaxSpotPrice", std::to_string(maxSpotPrice)); +float ModifyAutoProvisioningGroupRequest::getMaxSpotPrice() const { + return maxSpotPrice_; } -std::string ModifyAutoProvisioningGroupRequest::getAutoProvisioningGroupName()const -{ - return autoProvisioningGroupName_; +void ModifyAutoProvisioningGroupRequest::setMaxSpotPrice(float maxSpotPrice) { + maxSpotPrice_ = maxSpotPrice; + setParameter(std::string("MaxSpotPrice"), std::to_string(maxSpotPrice)); } -void ModifyAutoProvisioningGroupRequest::setAutoProvisioningGroupName(const std::string& autoProvisioningGroupName) -{ - autoProvisioningGroupName_ = autoProvisioningGroupName; - setParameter("AutoProvisioningGroupName", autoProvisioningGroupName); +std::string ModifyAutoProvisioningGroupRequest::getAutoProvisioningGroupName() const { + return autoProvisioningGroupName_; +} + +void ModifyAutoProvisioningGroupRequest::setAutoProvisioningGroupName(const std::string &autoProvisioningGroupName) { + autoProvisioningGroupName_ = autoProvisioningGroupName; + setParameter(std::string("AutoProvisioningGroupName"), autoProvisioningGroupName); } diff --git a/ecs/src/model/ModifyAutoSnapshotPolicyExRequest.cc b/ecs/src/model/ModifyAutoSnapshotPolicyExRequest.cc index 1c136bd29..5b3da2843 100644 --- a/ecs/src/model/ModifyAutoSnapshotPolicyExRequest.cc +++ b/ecs/src/model/ModifyAutoSnapshotPolicyExRequest.cc @@ -1,161 +1,135 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyAutoSnapshotPolicyExRequest; - -ModifyAutoSnapshotPolicyExRequest::ModifyAutoSnapshotPolicyExRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyAutoSnapshotPolicyEx") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyAutoSnapshotPolicyExRequest::~ModifyAutoSnapshotPolicyExRequest() -{} - -long ModifyAutoSnapshotPolicyExRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyAutoSnapshotPolicyExRequest; + +ModifyAutoSnapshotPolicyExRequest::ModifyAutoSnapshotPolicyExRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyAutoSnapshotPolicyEx") { + setMethod(HttpRequest::Method::Post); } -void ModifyAutoSnapshotPolicyExRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyAutoSnapshotPolicyExRequest::~ModifyAutoSnapshotPolicyExRequest() {} + +long ModifyAutoSnapshotPolicyExRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyAutoSnapshotPolicyExRequest::getAutoSnapshotPolicyId()const -{ - return autoSnapshotPolicyId_; +void ModifyAutoSnapshotPolicyExRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyAutoSnapshotPolicyExRequest::setAutoSnapshotPolicyId(const std::string& autoSnapshotPolicyId) -{ - autoSnapshotPolicyId_ = autoSnapshotPolicyId; - setParameter("AutoSnapshotPolicyId", autoSnapshotPolicyId); +std::string ModifyAutoSnapshotPolicyExRequest::getAutoSnapshotPolicyId() const { + return autoSnapshotPolicyId_; } -int ModifyAutoSnapshotPolicyExRequest::getCopiedSnapshotsRetentionDays()const -{ - return copiedSnapshotsRetentionDays_; +void ModifyAutoSnapshotPolicyExRequest::setAutoSnapshotPolicyId(const std::string &autoSnapshotPolicyId) { + autoSnapshotPolicyId_ = autoSnapshotPolicyId; + setParameter(std::string("autoSnapshotPolicyId"), autoSnapshotPolicyId); } -void ModifyAutoSnapshotPolicyExRequest::setCopiedSnapshotsRetentionDays(int copiedSnapshotsRetentionDays) -{ - copiedSnapshotsRetentionDays_ = copiedSnapshotsRetentionDays; - setParameter("CopiedSnapshotsRetentionDays", std::to_string(copiedSnapshotsRetentionDays)); +int ModifyAutoSnapshotPolicyExRequest::getCopiedSnapshotsRetentionDays() const { + return copiedSnapshotsRetentionDays_; } -std::string ModifyAutoSnapshotPolicyExRequest::getTimePoints()const -{ - return timePoints_; +void ModifyAutoSnapshotPolicyExRequest::setCopiedSnapshotsRetentionDays(int copiedSnapshotsRetentionDays) { + copiedSnapshotsRetentionDays_ = copiedSnapshotsRetentionDays; + setParameter(std::string("CopiedSnapshotsRetentionDays"), std::to_string(copiedSnapshotsRetentionDays)); } -void ModifyAutoSnapshotPolicyExRequest::setTimePoints(const std::string& timePoints) -{ - timePoints_ = timePoints; - setParameter("TimePoints", timePoints); +std::string ModifyAutoSnapshotPolicyExRequest::getTimePoints() const { + return timePoints_; } -std::string ModifyAutoSnapshotPolicyExRequest::getRepeatWeekdays()const -{ - return repeatWeekdays_; +void ModifyAutoSnapshotPolicyExRequest::setTimePoints(const std::string &timePoints) { + timePoints_ = timePoints; + setParameter(std::string("timePoints"), timePoints); } -void ModifyAutoSnapshotPolicyExRequest::setRepeatWeekdays(const std::string& repeatWeekdays) -{ - repeatWeekdays_ = repeatWeekdays; - setParameter("RepeatWeekdays", repeatWeekdays); +std::string ModifyAutoSnapshotPolicyExRequest::getRepeatWeekdays() const { + return repeatWeekdays_; } -std::string ModifyAutoSnapshotPolicyExRequest::getRegionId()const -{ - return regionId_; +void ModifyAutoSnapshotPolicyExRequest::setRepeatWeekdays(const std::string &repeatWeekdays) { + repeatWeekdays_ = repeatWeekdays; + setParameter(std::string("repeatWeekdays"), repeatWeekdays); } -void ModifyAutoSnapshotPolicyExRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyAutoSnapshotPolicyExRequest::getRegionId() const { + return regionId_; } -bool ModifyAutoSnapshotPolicyExRequest::getEnableCrossRegionCopy()const -{ - return enableCrossRegionCopy_; +void ModifyAutoSnapshotPolicyExRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("regionId"), regionId); } -void ModifyAutoSnapshotPolicyExRequest::setEnableCrossRegionCopy(bool enableCrossRegionCopy) -{ - enableCrossRegionCopy_ = enableCrossRegionCopy; - setParameter("EnableCrossRegionCopy", enableCrossRegionCopy ? "true" : "false"); +bool ModifyAutoSnapshotPolicyExRequest::getEnableCrossRegionCopy() const { + return enableCrossRegionCopy_; } -std::string ModifyAutoSnapshotPolicyExRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyAutoSnapshotPolicyExRequest::setEnableCrossRegionCopy(bool enableCrossRegionCopy) { + enableCrossRegionCopy_ = enableCrossRegionCopy; + setParameter(std::string("EnableCrossRegionCopy"), enableCrossRegionCopy ? "true" : "false"); } -void ModifyAutoSnapshotPolicyExRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyAutoSnapshotPolicyExRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long ModifyAutoSnapshotPolicyExRequest::getOwnerId()const -{ - return ownerId_; +void ModifyAutoSnapshotPolicyExRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyAutoSnapshotPolicyExRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyAutoSnapshotPolicyExRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyAutoSnapshotPolicyExRequest::getAutoSnapshotPolicyName()const -{ - return autoSnapshotPolicyName_; +void ModifyAutoSnapshotPolicyExRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyAutoSnapshotPolicyExRequest::setAutoSnapshotPolicyName(const std::string& autoSnapshotPolicyName) -{ - autoSnapshotPolicyName_ = autoSnapshotPolicyName; - setParameter("AutoSnapshotPolicyName", autoSnapshotPolicyName); +std::string ModifyAutoSnapshotPolicyExRequest::getAutoSnapshotPolicyName() const { + return autoSnapshotPolicyName_; } -int ModifyAutoSnapshotPolicyExRequest::getRetentionDays()const -{ - return retentionDays_; +void ModifyAutoSnapshotPolicyExRequest::setAutoSnapshotPolicyName(const std::string &autoSnapshotPolicyName) { + autoSnapshotPolicyName_ = autoSnapshotPolicyName; + setParameter(std::string("autoSnapshotPolicyName"), autoSnapshotPolicyName); } -void ModifyAutoSnapshotPolicyExRequest::setRetentionDays(int retentionDays) -{ - retentionDays_ = retentionDays; - setParameter("RetentionDays", std::to_string(retentionDays)); +int ModifyAutoSnapshotPolicyExRequest::getRetentionDays() const { + return retentionDays_; } -std::string ModifyAutoSnapshotPolicyExRequest::getTargetCopyRegions()const -{ - return targetCopyRegions_; +void ModifyAutoSnapshotPolicyExRequest::setRetentionDays(int retentionDays) { + retentionDays_ = retentionDays; + setParameter(std::string("retentionDays"), std::to_string(retentionDays)); } -void ModifyAutoSnapshotPolicyExRequest::setTargetCopyRegions(const std::string& targetCopyRegions) -{ - targetCopyRegions_ = targetCopyRegions; - setParameter("TargetCopyRegions", targetCopyRegions); +std::string ModifyAutoSnapshotPolicyExRequest::getTargetCopyRegions() const { + return targetCopyRegions_; +} + +void ModifyAutoSnapshotPolicyExRequest::setTargetCopyRegions(const std::string &targetCopyRegions) { + targetCopyRegions_ = targetCopyRegions; + setParameter(std::string("TargetCopyRegions"), targetCopyRegions); } diff --git a/ecs/src/model/ModifyAutoSnapshotPolicyRequest.cc b/ecs/src/model/ModifyAutoSnapshotPolicyRequest.cc index 1161ed510..68af342fa 100644 --- a/ecs/src/model/ModifyAutoSnapshotPolicyRequest.cc +++ b/ecs/src/model/ModifyAutoSnapshotPolicyRequest.cc @@ -1,161 +1,135 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyAutoSnapshotPolicyRequest; - -ModifyAutoSnapshotPolicyRequest::ModifyAutoSnapshotPolicyRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyAutoSnapshotPolicy") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyAutoSnapshotPolicyRequest::~ModifyAutoSnapshotPolicyRequest() -{} - -bool ModifyAutoSnapshotPolicyRequest::getDataDiskPolicyEnabled()const -{ - return dataDiskPolicyEnabled_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyAutoSnapshotPolicyRequest; + +ModifyAutoSnapshotPolicyRequest::ModifyAutoSnapshotPolicyRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyAutoSnapshotPolicy") { + setMethod(HttpRequest::Method::Post); } -void ModifyAutoSnapshotPolicyRequest::setDataDiskPolicyEnabled(bool dataDiskPolicyEnabled) -{ - dataDiskPolicyEnabled_ = dataDiskPolicyEnabled; - setParameter("DataDiskPolicyEnabled", dataDiskPolicyEnabled ? "true" : "false"); +ModifyAutoSnapshotPolicyRequest::~ModifyAutoSnapshotPolicyRequest() {} + +bool ModifyAutoSnapshotPolicyRequest::getDataDiskPolicyEnabled() const { + return dataDiskPolicyEnabled_; } -long ModifyAutoSnapshotPolicyRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void ModifyAutoSnapshotPolicyRequest::setDataDiskPolicyEnabled(bool dataDiskPolicyEnabled) { + dataDiskPolicyEnabled_ = dataDiskPolicyEnabled; + setParameter(std::string("DataDiskPolicyEnabled"), dataDiskPolicyEnabled ? "true" : "false"); } -void ModifyAutoSnapshotPolicyRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long ModifyAutoSnapshotPolicyRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int ModifyAutoSnapshotPolicyRequest::getDataDiskPolicyRetentionDays()const -{ - return dataDiskPolicyRetentionDays_; +void ModifyAutoSnapshotPolicyRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyAutoSnapshotPolicyRequest::setDataDiskPolicyRetentionDays(int dataDiskPolicyRetentionDays) -{ - dataDiskPolicyRetentionDays_ = dataDiskPolicyRetentionDays; - setParameter("DataDiskPolicyRetentionDays", std::to_string(dataDiskPolicyRetentionDays)); +int ModifyAutoSnapshotPolicyRequest::getDataDiskPolicyRetentionDays() const { + return dataDiskPolicyRetentionDays_; } -bool ModifyAutoSnapshotPolicyRequest::getSystemDiskPolicyRetentionLastWeek()const -{ - return systemDiskPolicyRetentionLastWeek_; +void ModifyAutoSnapshotPolicyRequest::setDataDiskPolicyRetentionDays(int dataDiskPolicyRetentionDays) { + dataDiskPolicyRetentionDays_ = dataDiskPolicyRetentionDays; + setParameter(std::string("DataDiskPolicyRetentionDays"), std::to_string(dataDiskPolicyRetentionDays)); } -void ModifyAutoSnapshotPolicyRequest::setSystemDiskPolicyRetentionLastWeek(bool systemDiskPolicyRetentionLastWeek) -{ - systemDiskPolicyRetentionLastWeek_ = systemDiskPolicyRetentionLastWeek; - setParameter("SystemDiskPolicyRetentionLastWeek", systemDiskPolicyRetentionLastWeek ? "true" : "false"); +bool ModifyAutoSnapshotPolicyRequest::getSystemDiskPolicyRetentionLastWeek() const { + return systemDiskPolicyRetentionLastWeek_; } -int ModifyAutoSnapshotPolicyRequest::getSystemDiskPolicyRetentionDays()const -{ - return systemDiskPolicyRetentionDays_; +void ModifyAutoSnapshotPolicyRequest::setSystemDiskPolicyRetentionLastWeek(bool systemDiskPolicyRetentionLastWeek) { + systemDiskPolicyRetentionLastWeek_ = systemDiskPolicyRetentionLastWeek; + setParameter(std::string("SystemDiskPolicyRetentionLastWeek"), systemDiskPolicyRetentionLastWeek ? "true" : "false"); } -void ModifyAutoSnapshotPolicyRequest::setSystemDiskPolicyRetentionDays(int systemDiskPolicyRetentionDays) -{ - systemDiskPolicyRetentionDays_ = systemDiskPolicyRetentionDays; - setParameter("SystemDiskPolicyRetentionDays", std::to_string(systemDiskPolicyRetentionDays)); +int ModifyAutoSnapshotPolicyRequest::getSystemDiskPolicyRetentionDays() const { + return systemDiskPolicyRetentionDays_; } -int ModifyAutoSnapshotPolicyRequest::getDataDiskPolicyTimePeriod()const -{ - return dataDiskPolicyTimePeriod_; +void ModifyAutoSnapshotPolicyRequest::setSystemDiskPolicyRetentionDays(int systemDiskPolicyRetentionDays) { + systemDiskPolicyRetentionDays_ = systemDiskPolicyRetentionDays; + setParameter(std::string("SystemDiskPolicyRetentionDays"), std::to_string(systemDiskPolicyRetentionDays)); } -void ModifyAutoSnapshotPolicyRequest::setDataDiskPolicyTimePeriod(int dataDiskPolicyTimePeriod) -{ - dataDiskPolicyTimePeriod_ = dataDiskPolicyTimePeriod; - setParameter("DataDiskPolicyTimePeriod", std::to_string(dataDiskPolicyTimePeriod)); +int ModifyAutoSnapshotPolicyRequest::getDataDiskPolicyTimePeriod() const { + return dataDiskPolicyTimePeriod_; } -std::string ModifyAutoSnapshotPolicyRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyAutoSnapshotPolicyRequest::setDataDiskPolicyTimePeriod(int dataDiskPolicyTimePeriod) { + dataDiskPolicyTimePeriod_ = dataDiskPolicyTimePeriod; + setParameter(std::string("DataDiskPolicyTimePeriod"), std::to_string(dataDiskPolicyTimePeriod)); } -void ModifyAutoSnapshotPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyAutoSnapshotPolicyRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyAutoSnapshotPolicyRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyAutoSnapshotPolicyRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyAutoSnapshotPolicyRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyAutoSnapshotPolicyRequest::getOwnerAccount() const { + return ownerAccount_; } -int ModifyAutoSnapshotPolicyRequest::getSystemDiskPolicyTimePeriod()const -{ - return systemDiskPolicyTimePeriod_; +void ModifyAutoSnapshotPolicyRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyAutoSnapshotPolicyRequest::setSystemDiskPolicyTimePeriod(int systemDiskPolicyTimePeriod) -{ - systemDiskPolicyTimePeriod_ = systemDiskPolicyTimePeriod; - setParameter("SystemDiskPolicyTimePeriod", std::to_string(systemDiskPolicyTimePeriod)); +int ModifyAutoSnapshotPolicyRequest::getSystemDiskPolicyTimePeriod() const { + return systemDiskPolicyTimePeriod_; } -long ModifyAutoSnapshotPolicyRequest::getOwnerId()const -{ - return ownerId_; +void ModifyAutoSnapshotPolicyRequest::setSystemDiskPolicyTimePeriod(int systemDiskPolicyTimePeriod) { + systemDiskPolicyTimePeriod_ = systemDiskPolicyTimePeriod; + setParameter(std::string("SystemDiskPolicyTimePeriod"), std::to_string(systemDiskPolicyTimePeriod)); } -void ModifyAutoSnapshotPolicyRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyAutoSnapshotPolicyRequest::getOwnerId() const { + return ownerId_; } -bool ModifyAutoSnapshotPolicyRequest::getDataDiskPolicyRetentionLastWeek()const -{ - return dataDiskPolicyRetentionLastWeek_; +void ModifyAutoSnapshotPolicyRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyAutoSnapshotPolicyRequest::setDataDiskPolicyRetentionLastWeek(bool dataDiskPolicyRetentionLastWeek) -{ - dataDiskPolicyRetentionLastWeek_ = dataDiskPolicyRetentionLastWeek; - setParameter("DataDiskPolicyRetentionLastWeek", dataDiskPolicyRetentionLastWeek ? "true" : "false"); +bool ModifyAutoSnapshotPolicyRequest::getDataDiskPolicyRetentionLastWeek() const { + return dataDiskPolicyRetentionLastWeek_; } -bool ModifyAutoSnapshotPolicyRequest::getSystemDiskPolicyEnabled()const -{ - return systemDiskPolicyEnabled_; +void ModifyAutoSnapshotPolicyRequest::setDataDiskPolicyRetentionLastWeek(bool dataDiskPolicyRetentionLastWeek) { + dataDiskPolicyRetentionLastWeek_ = dataDiskPolicyRetentionLastWeek; + setParameter(std::string("DataDiskPolicyRetentionLastWeek"), dataDiskPolicyRetentionLastWeek ? "true" : "false"); } -void ModifyAutoSnapshotPolicyRequest::setSystemDiskPolicyEnabled(bool systemDiskPolicyEnabled) -{ - systemDiskPolicyEnabled_ = systemDiskPolicyEnabled; - setParameter("SystemDiskPolicyEnabled", systemDiskPolicyEnabled ? "true" : "false"); +bool ModifyAutoSnapshotPolicyRequest::getSystemDiskPolicyEnabled() const { + return systemDiskPolicyEnabled_; +} + +void ModifyAutoSnapshotPolicyRequest::setSystemDiskPolicyEnabled(bool systemDiskPolicyEnabled) { + systemDiskPolicyEnabled_ = systemDiskPolicyEnabled; + setParameter(std::string("SystemDiskPolicyEnabled"), systemDiskPolicyEnabled ? "true" : "false"); } diff --git a/ecs/src/model/ModifyBandwidthPackageSpecRequest.cc b/ecs/src/model/ModifyBandwidthPackageSpecRequest.cc index d84a7ecbd..6120ddb5d 100644 --- a/ecs/src/model/ModifyBandwidthPackageSpecRequest.cc +++ b/ecs/src/model/ModifyBandwidthPackageSpecRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyBandwidthPackageSpecRequest; - -ModifyBandwidthPackageSpecRequest::ModifyBandwidthPackageSpecRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyBandwidthPackageSpec") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyBandwidthPackageSpecRequest::~ModifyBandwidthPackageSpecRequest() -{} - -long ModifyBandwidthPackageSpecRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyBandwidthPackageSpecRequest; + +ModifyBandwidthPackageSpecRequest::ModifyBandwidthPackageSpecRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyBandwidthPackageSpec") { + setMethod(HttpRequest::Method::Post); } -void ModifyBandwidthPackageSpecRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyBandwidthPackageSpecRequest::~ModifyBandwidthPackageSpecRequest() {} + +long ModifyBandwidthPackageSpecRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyBandwidthPackageSpecRequest::getRegionId()const -{ - return regionId_; +void ModifyBandwidthPackageSpecRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyBandwidthPackageSpecRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyBandwidthPackageSpecRequest::getRegionId() const { + return regionId_; } -std::string ModifyBandwidthPackageSpecRequest::getBandwidthPackageId()const -{ - return bandwidthPackageId_; +void ModifyBandwidthPackageSpecRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyBandwidthPackageSpecRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) -{ - bandwidthPackageId_ = bandwidthPackageId; - setParameter("BandwidthPackageId", bandwidthPackageId); +std::string ModifyBandwidthPackageSpecRequest::getBandwidthPackageId() const { + return bandwidthPackageId_; } -std::string ModifyBandwidthPackageSpecRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyBandwidthPackageSpecRequest::setBandwidthPackageId(const std::string &bandwidthPackageId) { + bandwidthPackageId_ = bandwidthPackageId; + setParameter(std::string("BandwidthPackageId"), bandwidthPackageId); } -void ModifyBandwidthPackageSpecRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyBandwidthPackageSpecRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyBandwidthPackageSpecRequest::getBandwidth()const -{ - return bandwidth_; +void ModifyBandwidthPackageSpecRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyBandwidthPackageSpecRequest::setBandwidth(const std::string& bandwidth) -{ - bandwidth_ = bandwidth; - setParameter("Bandwidth", bandwidth); +std::string ModifyBandwidthPackageSpecRequest::getBandwidth() const { + return bandwidth_; } -std::string ModifyBandwidthPackageSpecRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyBandwidthPackageSpecRequest::setBandwidth(const std::string &bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), bandwidth); } -void ModifyBandwidthPackageSpecRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyBandwidthPackageSpecRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyBandwidthPackageSpecRequest::getOwnerId()const -{ - return ownerId_; +void ModifyBandwidthPackageSpecRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyBandwidthPackageSpecRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyBandwidthPackageSpecRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyBandwidthPackageSpecRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/ModifyCapacityReservationRequest.cc b/ecs/src/model/ModifyCapacityReservationRequest.cc index 5110c2249..dcd4ed9ae 100644 --- a/ecs/src/model/ModifyCapacityReservationRequest.cc +++ b/ecs/src/model/ModifyCapacityReservationRequest.cc @@ -1,183 +1,153 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyCapacityReservationRequest; - -ModifyCapacityReservationRequest::ModifyCapacityReservationRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyCapacityReservation") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyCapacityReservationRequest::~ModifyCapacityReservationRequest() -{} - -long ModifyCapacityReservationRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyCapacityReservationRequest; + +ModifyCapacityReservationRequest::ModifyCapacityReservationRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyCapacityReservation") { + setMethod(HttpRequest::Method::Post); } -void ModifyCapacityReservationRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyCapacityReservationRequest::~ModifyCapacityReservationRequest() {} + +long ModifyCapacityReservationRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyCapacityReservationRequest::getDescription()const -{ - return description_; +void ModifyCapacityReservationRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyCapacityReservationRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyCapacityReservationRequest::getDescription() const { + return description_; } -std::string ModifyCapacityReservationRequest::getStartTime()const -{ - return startTime_; +void ModifyCapacityReservationRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyCapacityReservationRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string ModifyCapacityReservationRequest::getStartTime() const { + return startTime_; } -std::string ModifyCapacityReservationRequest::getPlatform()const -{ - return platform_; +void ModifyCapacityReservationRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void ModifyCapacityReservationRequest::setPlatform(const std::string& platform) -{ - platform_ = platform; - setParameter("Platform", platform); +std::string ModifyCapacityReservationRequest::getPlatform() const { + return platform_; } -std::string ModifyCapacityReservationRequest::getRegionId()const -{ - return regionId_; +void ModifyCapacityReservationRequest::setPlatform(const std::string &platform) { + platform_ = platform; + setParameter(std::string("Platform"), platform); } -void ModifyCapacityReservationRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyCapacityReservationRequest::getRegionId() const { + return regionId_; } -std::string ModifyCapacityReservationRequest::getPrivatePoolOptionsId()const -{ - return privatePoolOptionsId_; +void ModifyCapacityReservationRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyCapacityReservationRequest::setPrivatePoolOptionsId(const std::string& privatePoolOptionsId) -{ - privatePoolOptionsId_ = privatePoolOptionsId; - setParameter("PrivatePoolOptionsId", privatePoolOptionsId); +std::string ModifyCapacityReservationRequest::getPrivatePoolOptionsId() const { + return privatePoolOptionsId_; } -std::string ModifyCapacityReservationRequest::getEndTimeType()const -{ - return endTimeType_; +void ModifyCapacityReservationRequest::setPrivatePoolOptionsId(const std::string &privatePoolOptionsId) { + privatePoolOptionsId_ = privatePoolOptionsId; + setParameter(std::string("PrivatePoolOptions.Id"), privatePoolOptionsId); } -void ModifyCapacityReservationRequest::setEndTimeType(const std::string& endTimeType) -{ - endTimeType_ = endTimeType; - setParameter("EndTimeType", endTimeType); +std::string ModifyCapacityReservationRequest::getEndTimeType() const { + return endTimeType_; } -std::string ModifyCapacityReservationRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyCapacityReservationRequest::setEndTimeType(const std::string &endTimeType) { + endTimeType_ = endTimeType; + setParameter(std::string("EndTimeType"), endTimeType); } -void ModifyCapacityReservationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyCapacityReservationRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyCapacityReservationRequest::getPrivatePoolOptionsName()const -{ - return privatePoolOptionsName_; +void ModifyCapacityReservationRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyCapacityReservationRequest::setPrivatePoolOptionsName(const std::string& privatePoolOptionsName) -{ - privatePoolOptionsName_ = privatePoolOptionsName; - setParameter("PrivatePoolOptionsName", privatePoolOptionsName); +std::string ModifyCapacityReservationRequest::getPrivatePoolOptionsName() const { + return privatePoolOptionsName_; } -std::string ModifyCapacityReservationRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyCapacityReservationRequest::setPrivatePoolOptionsName(const std::string &privatePoolOptionsName) { + privatePoolOptionsName_ = privatePoolOptionsName; + setParameter(std::string("PrivatePoolOptions.Name"), privatePoolOptionsName); } -void ModifyCapacityReservationRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyCapacityReservationRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string ModifyCapacityReservationRequest::getEndTime()const -{ - return endTime_; +void ModifyCapacityReservationRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyCapacityReservationRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +std::string ModifyCapacityReservationRequest::getEndTime() const { + return endTime_; } -long ModifyCapacityReservationRequest::getOwnerId()const -{ - return ownerId_; +void ModifyCapacityReservationRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void ModifyCapacityReservationRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyCapacityReservationRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyCapacityReservationRequest::getPackageType()const -{ - return packageType_; +void ModifyCapacityReservationRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyCapacityReservationRequest::setPackageType(const std::string& packageType) -{ - packageType_ = packageType; - setParameter("PackageType", packageType); +std::string ModifyCapacityReservationRequest::getPackageType() const { + return packageType_; } -int ModifyCapacityReservationRequest::getInstanceAmount()const -{ - return instanceAmount_; +void ModifyCapacityReservationRequest::setPackageType(const std::string &packageType) { + packageType_ = packageType; + setParameter(std::string("PackageType"), packageType); } -void ModifyCapacityReservationRequest::setInstanceAmount(int instanceAmount) -{ - instanceAmount_ = instanceAmount; - setParameter("InstanceAmount", std::to_string(instanceAmount)); +int ModifyCapacityReservationRequest::getInstanceAmount() const { + return instanceAmount_; +} + +void ModifyCapacityReservationRequest::setInstanceAmount(int instanceAmount) { + instanceAmount_ = instanceAmount; + setParameter(std::string("InstanceAmount"), std::to_string(instanceAmount)); } diff --git a/ecs/src/model/ModifyCommandRequest.cc b/ecs/src/model/ModifyCommandRequest.cc index c2ed2d4ab..7b2169ef2 100644 --- a/ecs/src/model/ModifyCommandRequest.cc +++ b/ecs/src/model/ModifyCommandRequest.cc @@ -1,150 +1,126 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyCommandRequest; - -ModifyCommandRequest::ModifyCommandRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyCommand") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyCommandRequest::~ModifyCommandRequest() -{} - -long ModifyCommandRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyCommandRequest; + +ModifyCommandRequest::ModifyCommandRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyCommand") { + setMethod(HttpRequest::Method::Post); } -void ModifyCommandRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyCommandRequest::~ModifyCommandRequest() {} + +long ModifyCommandRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyCommandRequest::getWorkingDir()const -{ - return workingDir_; +void ModifyCommandRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyCommandRequest::setWorkingDir(const std::string& workingDir) -{ - workingDir_ = workingDir; - setParameter("WorkingDir", workingDir); +std::string ModifyCommandRequest::getWorkingDir() const { + return workingDir_; } -std::string ModifyCommandRequest::getDescription()const -{ - return description_; +void ModifyCommandRequest::setWorkingDir(const std::string &workingDir) { + workingDir_ = workingDir; + setParameter(std::string("WorkingDir"), workingDir); } -void ModifyCommandRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyCommandRequest::getDescription() const { + return description_; } -std::string ModifyCommandRequest::getCommandId()const -{ - return commandId_; +void ModifyCommandRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyCommandRequest::setCommandId(const std::string& commandId) -{ - commandId_ = commandId; - setParameter("CommandId", commandId); +std::string ModifyCommandRequest::getCommandId() const { + return commandId_; } -std::string ModifyCommandRequest::getCommandContent()const -{ - return commandContent_; +void ModifyCommandRequest::setCommandId(const std::string &commandId) { + commandId_ = commandId; + setParameter(std::string("CommandId"), commandId); } -void ModifyCommandRequest::setCommandContent(const std::string& commandContent) -{ - commandContent_ = commandContent; - setParameter("CommandContent", commandContent); +std::string ModifyCommandRequest::getCommandContent() const { + return commandContent_; } -long ModifyCommandRequest::getTimeout()const -{ - return timeout_; +void ModifyCommandRequest::setCommandContent(const std::string &commandContent) { + commandContent_ = commandContent; + setParameter(std::string("CommandContent"), commandContent); } -void ModifyCommandRequest::setTimeout(long timeout) -{ - timeout_ = timeout; - setParameter("Timeout", std::to_string(timeout)); +long ModifyCommandRequest::getTimeout() const { + return timeout_; } -std::string ModifyCommandRequest::getRegionId()const -{ - return regionId_; +void ModifyCommandRequest::setTimeout(long timeout) { + timeout_ = timeout; + setParameter(std::string("Timeout"), std::to_string(timeout)); } -void ModifyCommandRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyCommandRequest::getRegionId() const { + return regionId_; } -std::string ModifyCommandRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyCommandRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyCommandRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyCommandRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyCommandRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyCommandRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyCommandRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyCommandRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyCommandRequest::getOwnerId()const -{ - return ownerId_; +void ModifyCommandRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyCommandRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyCommandRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyCommandRequest::getName()const -{ - return name_; +void ModifyCommandRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyCommandRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string ModifyCommandRequest::getName() const { + return name_; +} + +void ModifyCommandRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/ecs/src/model/ModifyDedicatedHostAttributeRequest.cc b/ecs/src/model/ModifyDedicatedHostAttributeRequest.cc index da18ef906..ecf32446d 100644 --- a/ecs/src/model/ModifyDedicatedHostAttributeRequest.cc +++ b/ecs/src/model/ModifyDedicatedHostAttributeRequest.cc @@ -1,183 +1,153 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyDedicatedHostAttributeRequest; - -ModifyDedicatedHostAttributeRequest::ModifyDedicatedHostAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyDedicatedHostAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyDedicatedHostAttributeRequest::~ModifyDedicatedHostAttributeRequest() -{} - -long ModifyDedicatedHostAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyDedicatedHostAttributeRequest; + +ModifyDedicatedHostAttributeRequest::ModifyDedicatedHostAttributeRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyDedicatedHostAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifyDedicatedHostAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyDedicatedHostAttributeRequest::~ModifyDedicatedHostAttributeRequest() {} + +long ModifyDedicatedHostAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyDedicatedHostAttributeRequest::getDescription()const -{ - return description_; +void ModifyDedicatedHostAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyDedicatedHostAttributeRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyDedicatedHostAttributeRequest::getDescription() const { + return description_; } -float ModifyDedicatedHostAttributeRequest::getCpuOverCommitRatio()const -{ - return cpuOverCommitRatio_; +void ModifyDedicatedHostAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyDedicatedHostAttributeRequest::setCpuOverCommitRatio(float cpuOverCommitRatio) -{ - cpuOverCommitRatio_ = cpuOverCommitRatio; - setParameter("CpuOverCommitRatio", std::to_string(cpuOverCommitRatio)); +float ModifyDedicatedHostAttributeRequest::getCpuOverCommitRatio() const { + return cpuOverCommitRatio_; } -std::string ModifyDedicatedHostAttributeRequest::getRegionId()const -{ - return regionId_; +void ModifyDedicatedHostAttributeRequest::setCpuOverCommitRatio(float cpuOverCommitRatio) { + cpuOverCommitRatio_ = cpuOverCommitRatio; + setParameter(std::string("CpuOverCommitRatio"), std::to_string(cpuOverCommitRatio)); } -void ModifyDedicatedHostAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyDedicatedHostAttributeRequest::getRegionId() const { + return regionId_; } -std::string ModifyDedicatedHostAttributeRequest::getActionOnMaintenance()const -{ - return actionOnMaintenance_; +void ModifyDedicatedHostAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyDedicatedHostAttributeRequest::setActionOnMaintenance(const std::string& actionOnMaintenance) -{ - actionOnMaintenance_ = actionOnMaintenance; - setParameter("ActionOnMaintenance", actionOnMaintenance); +std::string ModifyDedicatedHostAttributeRequest::getActionOnMaintenance() const { + return actionOnMaintenance_; } -std::string ModifyDedicatedHostAttributeRequest::getDedicatedHostClusterId()const -{ - return dedicatedHostClusterId_; +void ModifyDedicatedHostAttributeRequest::setActionOnMaintenance(const std::string &actionOnMaintenance) { + actionOnMaintenance_ = actionOnMaintenance; + setParameter(std::string("ActionOnMaintenance"), actionOnMaintenance); } -void ModifyDedicatedHostAttributeRequest::setDedicatedHostClusterId(const std::string& dedicatedHostClusterId) -{ - dedicatedHostClusterId_ = dedicatedHostClusterId; - setParameter("DedicatedHostClusterId", dedicatedHostClusterId); +std::string ModifyDedicatedHostAttributeRequest::getDedicatedHostClusterId() const { + return dedicatedHostClusterId_; } -std::string ModifyDedicatedHostAttributeRequest::getDedicatedHostName()const -{ - return dedicatedHostName_; +void ModifyDedicatedHostAttributeRequest::setDedicatedHostClusterId(const std::string &dedicatedHostClusterId) { + dedicatedHostClusterId_ = dedicatedHostClusterId; + setParameter(std::string("DedicatedHostClusterId"), dedicatedHostClusterId); } -void ModifyDedicatedHostAttributeRequest::setDedicatedHostName(const std::string& dedicatedHostName) -{ - dedicatedHostName_ = dedicatedHostName; - setParameter("DedicatedHostName", dedicatedHostName); +std::string ModifyDedicatedHostAttributeRequest::getDedicatedHostName() const { + return dedicatedHostName_; } -std::string ModifyDedicatedHostAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyDedicatedHostAttributeRequest::setDedicatedHostName(const std::string &dedicatedHostName) { + dedicatedHostName_ = dedicatedHostName; + setParameter(std::string("DedicatedHostName"), dedicatedHostName); } -void ModifyDedicatedHostAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyDedicatedHostAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyDedicatedHostAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyDedicatedHostAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyDedicatedHostAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyDedicatedHostAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string ModifyDedicatedHostAttributeRequest::getDedicatedHostId()const -{ - return dedicatedHostId_; +void ModifyDedicatedHostAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyDedicatedHostAttributeRequest::setDedicatedHostId(const std::string& dedicatedHostId) -{ - dedicatedHostId_ = dedicatedHostId; - setParameter("DedicatedHostId", dedicatedHostId); +std::string ModifyDedicatedHostAttributeRequest::getDedicatedHostId() const { + return dedicatedHostId_; } -long ModifyDedicatedHostAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyDedicatedHostAttributeRequest::setDedicatedHostId(const std::string &dedicatedHostId) { + dedicatedHostId_ = dedicatedHostId; + setParameter(std::string("DedicatedHostId"), dedicatedHostId); } -void ModifyDedicatedHostAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyDedicatedHostAttributeRequest::getOwnerId() const { + return ownerId_; } -int ModifyDedicatedHostAttributeRequest::getNetworkAttributesSlbUdpTimeout()const -{ - return networkAttributesSlbUdpTimeout_; +void ModifyDedicatedHostAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyDedicatedHostAttributeRequest::setNetworkAttributesSlbUdpTimeout(int networkAttributesSlbUdpTimeout) -{ - networkAttributesSlbUdpTimeout_ = networkAttributesSlbUdpTimeout; - setParameter("NetworkAttributesSlbUdpTimeout", std::to_string(networkAttributesSlbUdpTimeout)); +int ModifyDedicatedHostAttributeRequest::getNetworkAttributesSlbUdpTimeout() const { + return networkAttributesSlbUdpTimeout_; } -std::string ModifyDedicatedHostAttributeRequest::getAutoPlacement()const -{ - return autoPlacement_; +void ModifyDedicatedHostAttributeRequest::setNetworkAttributesSlbUdpTimeout(int networkAttributesSlbUdpTimeout) { + networkAttributesSlbUdpTimeout_ = networkAttributesSlbUdpTimeout; + setParameter(std::string("NetworkAttributes.SlbUdpTimeout"), std::to_string(networkAttributesSlbUdpTimeout)); } -void ModifyDedicatedHostAttributeRequest::setAutoPlacement(const std::string& autoPlacement) -{ - autoPlacement_ = autoPlacement; - setParameter("AutoPlacement", autoPlacement); +std::string ModifyDedicatedHostAttributeRequest::getAutoPlacement() const { + return autoPlacement_; } -int ModifyDedicatedHostAttributeRequest::getNetworkAttributesUdpTimeout()const -{ - return networkAttributesUdpTimeout_; +void ModifyDedicatedHostAttributeRequest::setAutoPlacement(const std::string &autoPlacement) { + autoPlacement_ = autoPlacement; + setParameter(std::string("AutoPlacement"), autoPlacement); } -void ModifyDedicatedHostAttributeRequest::setNetworkAttributesUdpTimeout(int networkAttributesUdpTimeout) -{ - networkAttributesUdpTimeout_ = networkAttributesUdpTimeout; - setParameter("NetworkAttributesUdpTimeout", std::to_string(networkAttributesUdpTimeout)); +int ModifyDedicatedHostAttributeRequest::getNetworkAttributesUdpTimeout() const { + return networkAttributesUdpTimeout_; +} + +void ModifyDedicatedHostAttributeRequest::setNetworkAttributesUdpTimeout(int networkAttributesUdpTimeout) { + networkAttributesUdpTimeout_ = networkAttributesUdpTimeout; + setParameter(std::string("NetworkAttributes.UdpTimeout"), std::to_string(networkAttributesUdpTimeout)); } diff --git a/ecs/src/model/ModifyDedicatedHostAutoReleaseTimeRequest.cc b/ecs/src/model/ModifyDedicatedHostAutoReleaseTimeRequest.cc index e0aac8e2a..83b66c733 100644 --- a/ecs/src/model/ModifyDedicatedHostAutoReleaseTimeRequest.cc +++ b/ecs/src/model/ModifyDedicatedHostAutoReleaseTimeRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyDedicatedHostAutoReleaseTimeRequest; - -ModifyDedicatedHostAutoReleaseTimeRequest::ModifyDedicatedHostAutoReleaseTimeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyDedicatedHostAutoReleaseTime") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyDedicatedHostAutoReleaseTimeRequest::~ModifyDedicatedHostAutoReleaseTimeRequest() -{} - -long ModifyDedicatedHostAutoReleaseTimeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyDedicatedHostAutoReleaseTimeRequest; + +ModifyDedicatedHostAutoReleaseTimeRequest::ModifyDedicatedHostAutoReleaseTimeRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyDedicatedHostAutoReleaseTime") { + setMethod(HttpRequest::Method::Post); } -void ModifyDedicatedHostAutoReleaseTimeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyDedicatedHostAutoReleaseTimeRequest::~ModifyDedicatedHostAutoReleaseTimeRequest() {} + +long ModifyDedicatedHostAutoReleaseTimeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyDedicatedHostAutoReleaseTimeRequest::getRegionId()const -{ - return regionId_; +void ModifyDedicatedHostAutoReleaseTimeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyDedicatedHostAutoReleaseTimeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyDedicatedHostAutoReleaseTimeRequest::getRegionId() const { + return regionId_; } -std::string ModifyDedicatedHostAutoReleaseTimeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyDedicatedHostAutoReleaseTimeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyDedicatedHostAutoReleaseTimeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyDedicatedHostAutoReleaseTimeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyDedicatedHostAutoReleaseTimeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyDedicatedHostAutoReleaseTimeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyDedicatedHostAutoReleaseTimeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyDedicatedHostAutoReleaseTimeRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string ModifyDedicatedHostAutoReleaseTimeRequest::getAutoReleaseTime()const -{ - return autoReleaseTime_; +void ModifyDedicatedHostAutoReleaseTimeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyDedicatedHostAutoReleaseTimeRequest::setAutoReleaseTime(const std::string& autoReleaseTime) -{ - autoReleaseTime_ = autoReleaseTime; - setParameter("AutoReleaseTime", autoReleaseTime); +std::string ModifyDedicatedHostAutoReleaseTimeRequest::getAutoReleaseTime() const { + return autoReleaseTime_; } -std::string ModifyDedicatedHostAutoReleaseTimeRequest::getDedicatedHostId()const -{ - return dedicatedHostId_; +void ModifyDedicatedHostAutoReleaseTimeRequest::setAutoReleaseTime(const std::string &autoReleaseTime) { + autoReleaseTime_ = autoReleaseTime; + setParameter(std::string("AutoReleaseTime"), autoReleaseTime); } -void ModifyDedicatedHostAutoReleaseTimeRequest::setDedicatedHostId(const std::string& dedicatedHostId) -{ - dedicatedHostId_ = dedicatedHostId; - setParameter("DedicatedHostId", dedicatedHostId); +std::string ModifyDedicatedHostAutoReleaseTimeRequest::getDedicatedHostId() const { + return dedicatedHostId_; } -long ModifyDedicatedHostAutoReleaseTimeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyDedicatedHostAutoReleaseTimeRequest::setDedicatedHostId(const std::string &dedicatedHostId) { + dedicatedHostId_ = dedicatedHostId; + setParameter(std::string("DedicatedHostId"), dedicatedHostId); } -void ModifyDedicatedHostAutoReleaseTimeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyDedicatedHostAutoReleaseTimeRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyDedicatedHostAutoReleaseTimeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/ModifyDedicatedHostAutoRenewAttributeRequest.cc b/ecs/src/model/ModifyDedicatedHostAutoRenewAttributeRequest.cc index a5fefef87..80861becc 100644 --- a/ecs/src/model/ModifyDedicatedHostAutoRenewAttributeRequest.cc +++ b/ecs/src/model/ModifyDedicatedHostAutoRenewAttributeRequest.cc @@ -1,150 +1,126 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyDedicatedHostAutoRenewAttributeRequest; - -ModifyDedicatedHostAutoRenewAttributeRequest::ModifyDedicatedHostAutoRenewAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyDedicatedHostAutoRenewAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyDedicatedHostAutoRenewAttributeRequest::~ModifyDedicatedHostAutoRenewAttributeRequest() -{} - -std::string ModifyDedicatedHostAutoRenewAttributeRequest::getDedicatedHostIds()const -{ - return dedicatedHostIds_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyDedicatedHostAutoRenewAttributeRequest; + +ModifyDedicatedHostAutoRenewAttributeRequest::ModifyDedicatedHostAutoRenewAttributeRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyDedicatedHostAutoRenewAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifyDedicatedHostAutoRenewAttributeRequest::setDedicatedHostIds(const std::string& dedicatedHostIds) -{ - dedicatedHostIds_ = dedicatedHostIds; - setParameter("DedicatedHostIds", dedicatedHostIds); +ModifyDedicatedHostAutoRenewAttributeRequest::~ModifyDedicatedHostAutoRenewAttributeRequest() {} + +std::string ModifyDedicatedHostAutoRenewAttributeRequest::getDedicatedHostIds() const { + return dedicatedHostIds_; } -long ModifyDedicatedHostAutoRenewAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void ModifyDedicatedHostAutoRenewAttributeRequest::setDedicatedHostIds(const std::string &dedicatedHostIds) { + dedicatedHostIds_ = dedicatedHostIds; + setParameter(std::string("DedicatedHostIds"), dedicatedHostIds); } -void ModifyDedicatedHostAutoRenewAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long ModifyDedicatedHostAutoRenewAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int ModifyDedicatedHostAutoRenewAttributeRequest::getDuration()const -{ - return duration_; +void ModifyDedicatedHostAutoRenewAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyDedicatedHostAutoRenewAttributeRequest::setDuration(int duration) -{ - duration_ = duration; - setParameter("Duration", std::to_string(duration)); +int ModifyDedicatedHostAutoRenewAttributeRequest::getDuration() const { + return duration_; } -std::string ModifyDedicatedHostAutoRenewAttributeRequest::getRegionId()const -{ - return regionId_; +void ModifyDedicatedHostAutoRenewAttributeRequest::setDuration(int duration) { + duration_ = duration; + setParameter(std::string("Duration"), std::to_string(duration)); } -void ModifyDedicatedHostAutoRenewAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyDedicatedHostAutoRenewAttributeRequest::getRegionId() const { + return regionId_; } -std::string ModifyDedicatedHostAutoRenewAttributeRequest::getRenewalStatus()const -{ - return renewalStatus_; +void ModifyDedicatedHostAutoRenewAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyDedicatedHostAutoRenewAttributeRequest::setRenewalStatus(const std::string& renewalStatus) -{ - renewalStatus_ = renewalStatus; - setParameter("RenewalStatus", renewalStatus); +std::string ModifyDedicatedHostAutoRenewAttributeRequest::getRenewalStatus() const { + return renewalStatus_; } -std::string ModifyDedicatedHostAutoRenewAttributeRequest::getAutoRenewWithEcs()const -{ - return autoRenewWithEcs_; +void ModifyDedicatedHostAutoRenewAttributeRequest::setRenewalStatus(const std::string &renewalStatus) { + renewalStatus_ = renewalStatus; + setParameter(std::string("RenewalStatus"), renewalStatus); } -void ModifyDedicatedHostAutoRenewAttributeRequest::setAutoRenewWithEcs(const std::string& autoRenewWithEcs) -{ - autoRenewWithEcs_ = autoRenewWithEcs; - setParameter("AutoRenewWithEcs", autoRenewWithEcs); +std::string ModifyDedicatedHostAutoRenewAttributeRequest::getAutoRenewWithEcs() const { + return autoRenewWithEcs_; } -std::string ModifyDedicatedHostAutoRenewAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyDedicatedHostAutoRenewAttributeRequest::setAutoRenewWithEcs(const std::string &autoRenewWithEcs) { + autoRenewWithEcs_ = autoRenewWithEcs; + setParameter(std::string("AutoRenewWithEcs"), autoRenewWithEcs); } -void ModifyDedicatedHostAutoRenewAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyDedicatedHostAutoRenewAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyDedicatedHostAutoRenewAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyDedicatedHostAutoRenewAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyDedicatedHostAutoRenewAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyDedicatedHostAutoRenewAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyDedicatedHostAutoRenewAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyDedicatedHostAutoRenewAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyDedicatedHostAutoRenewAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyDedicatedHostAutoRenewAttributeRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyDedicatedHostAutoRenewAttributeRequest::getPeriodUnit()const -{ - return periodUnit_; +void ModifyDedicatedHostAutoRenewAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyDedicatedHostAutoRenewAttributeRequest::setPeriodUnit(const std::string& periodUnit) -{ - periodUnit_ = periodUnit; - setParameter("PeriodUnit", periodUnit); +std::string ModifyDedicatedHostAutoRenewAttributeRequest::getPeriodUnit() const { + return periodUnit_; } -bool ModifyDedicatedHostAutoRenewAttributeRequest::getAutoRenew()const -{ - return autoRenew_; +void ModifyDedicatedHostAutoRenewAttributeRequest::setPeriodUnit(const std::string &periodUnit) { + periodUnit_ = periodUnit; + setParameter(std::string("PeriodUnit"), periodUnit); } -void ModifyDedicatedHostAutoRenewAttributeRequest::setAutoRenew(bool autoRenew) -{ - autoRenew_ = autoRenew; - setParameter("AutoRenew", autoRenew ? "true" : "false"); +bool ModifyDedicatedHostAutoRenewAttributeRequest::getAutoRenew() const { + return autoRenew_; +} + +void ModifyDedicatedHostAutoRenewAttributeRequest::setAutoRenew(bool autoRenew) { + autoRenew_ = autoRenew; + setParameter(std::string("AutoRenew"), autoRenew ? "true" : "false"); } diff --git a/ecs/src/model/ModifyDedicatedHostClusterAttributeRequest.cc b/ecs/src/model/ModifyDedicatedHostClusterAttributeRequest.cc index 3c7b70cb6..6ff2e5f8e 100644 --- a/ecs/src/model/ModifyDedicatedHostClusterAttributeRequest.cc +++ b/ecs/src/model/ModifyDedicatedHostClusterAttributeRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyDedicatedHostClusterAttributeRequest; - -ModifyDedicatedHostClusterAttributeRequest::ModifyDedicatedHostClusterAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyDedicatedHostClusterAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyDedicatedHostClusterAttributeRequest::~ModifyDedicatedHostClusterAttributeRequest() -{} - -std::string ModifyDedicatedHostClusterAttributeRequest::getDedicatedHostClusterName()const -{ - return dedicatedHostClusterName_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyDedicatedHostClusterAttributeRequest; + +ModifyDedicatedHostClusterAttributeRequest::ModifyDedicatedHostClusterAttributeRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyDedicatedHostClusterAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifyDedicatedHostClusterAttributeRequest::setDedicatedHostClusterName(const std::string& dedicatedHostClusterName) -{ - dedicatedHostClusterName_ = dedicatedHostClusterName; - setParameter("DedicatedHostClusterName", dedicatedHostClusterName); +ModifyDedicatedHostClusterAttributeRequest::~ModifyDedicatedHostClusterAttributeRequest() {} + +std::string ModifyDedicatedHostClusterAttributeRequest::getDedicatedHostClusterName() const { + return dedicatedHostClusterName_; } -long ModifyDedicatedHostClusterAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void ModifyDedicatedHostClusterAttributeRequest::setDedicatedHostClusterName(const std::string &dedicatedHostClusterName) { + dedicatedHostClusterName_ = dedicatedHostClusterName; + setParameter(std::string("DedicatedHostClusterName"), dedicatedHostClusterName); } -void ModifyDedicatedHostClusterAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long ModifyDedicatedHostClusterAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyDedicatedHostClusterAttributeRequest::getDescription()const -{ - return description_; +void ModifyDedicatedHostClusterAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyDedicatedHostClusterAttributeRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyDedicatedHostClusterAttributeRequest::getDescription() const { + return description_; } -std::string ModifyDedicatedHostClusterAttributeRequest::getRegionId()const -{ - return regionId_; +void ModifyDedicatedHostClusterAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyDedicatedHostClusterAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyDedicatedHostClusterAttributeRequest::getRegionId() const { + return regionId_; } -std::string ModifyDedicatedHostClusterAttributeRequest::getDedicatedHostClusterId()const -{ - return dedicatedHostClusterId_; +void ModifyDedicatedHostClusterAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyDedicatedHostClusterAttributeRequest::setDedicatedHostClusterId(const std::string& dedicatedHostClusterId) -{ - dedicatedHostClusterId_ = dedicatedHostClusterId; - setParameter("DedicatedHostClusterId", dedicatedHostClusterId); +std::string ModifyDedicatedHostClusterAttributeRequest::getDedicatedHostClusterId() const { + return dedicatedHostClusterId_; } -std::string ModifyDedicatedHostClusterAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyDedicatedHostClusterAttributeRequest::setDedicatedHostClusterId(const std::string &dedicatedHostClusterId) { + dedicatedHostClusterId_ = dedicatedHostClusterId; + setParameter(std::string("DedicatedHostClusterId"), dedicatedHostClusterId); } -void ModifyDedicatedHostClusterAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyDedicatedHostClusterAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyDedicatedHostClusterAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyDedicatedHostClusterAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyDedicatedHostClusterAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyDedicatedHostClusterAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyDedicatedHostClusterAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyDedicatedHostClusterAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyDedicatedHostClusterAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyDedicatedHostClusterAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyDedicatedHostClusterAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/ModifyDedicatedHostsChargeTypeRequest.cc b/ecs/src/model/ModifyDedicatedHostsChargeTypeRequest.cc index cdc6b2798..97ad3ee7a 100644 --- a/ecs/src/model/ModifyDedicatedHostsChargeTypeRequest.cc +++ b/ecs/src/model/ModifyDedicatedHostsChargeTypeRequest.cc @@ -1,172 +1,144 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyDedicatedHostsChargeTypeRequest; - -ModifyDedicatedHostsChargeTypeRequest::ModifyDedicatedHostsChargeTypeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyDedicatedHostsChargeType") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyDedicatedHostsChargeTypeRequest::~ModifyDedicatedHostsChargeTypeRequest() -{} - -std::string ModifyDedicatedHostsChargeTypeRequest::getDedicatedHostIds()const -{ - return dedicatedHostIds_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyDedicatedHostsChargeTypeRequest; + +ModifyDedicatedHostsChargeTypeRequest::ModifyDedicatedHostsChargeTypeRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyDedicatedHostsChargeType") { + setMethod(HttpRequest::Method::Post); } -void ModifyDedicatedHostsChargeTypeRequest::setDedicatedHostIds(const std::string& dedicatedHostIds) -{ - dedicatedHostIds_ = dedicatedHostIds; - setParameter("DedicatedHostIds", dedicatedHostIds); +ModifyDedicatedHostsChargeTypeRequest::~ModifyDedicatedHostsChargeTypeRequest() {} + +std::string ModifyDedicatedHostsChargeTypeRequest::getDedicatedHostIds() const { + return dedicatedHostIds_; } -long ModifyDedicatedHostsChargeTypeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void ModifyDedicatedHostsChargeTypeRequest::setDedicatedHostIds(const std::string &dedicatedHostIds) { + dedicatedHostIds_ = dedicatedHostIds; + setParameter(std::string("DedicatedHostIds"), dedicatedHostIds); } -void ModifyDedicatedHostsChargeTypeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long ModifyDedicatedHostsChargeTypeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyDedicatedHostsChargeTypeRequest::getClientToken()const -{ - return clientToken_; +void ModifyDedicatedHostsChargeTypeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyDedicatedHostsChargeTypeRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ModifyDedicatedHostsChargeTypeRequest::getClientToken() const { + return clientToken_; } -std::string ModifyDedicatedHostsChargeTypeRequest::getDedicatedHostChargeType()const -{ - return dedicatedHostChargeType_; +void ModifyDedicatedHostsChargeTypeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ModifyDedicatedHostsChargeTypeRequest::setDedicatedHostChargeType(const std::string& dedicatedHostChargeType) -{ - dedicatedHostChargeType_ = dedicatedHostChargeType; - setParameter("DedicatedHostChargeType", dedicatedHostChargeType); +std::string ModifyDedicatedHostsChargeTypeRequest::getDedicatedHostChargeType() const { + return dedicatedHostChargeType_; } -std::string ModifyDedicatedHostsChargeTypeRequest::getRegionId()const -{ - return regionId_; +void ModifyDedicatedHostsChargeTypeRequest::setDedicatedHostChargeType(const std::string &dedicatedHostChargeType) { + dedicatedHostChargeType_ = dedicatedHostChargeType; + setParameter(std::string("DedicatedHostChargeType"), dedicatedHostChargeType); } -void ModifyDedicatedHostsChargeTypeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyDedicatedHostsChargeTypeRequest::getRegionId() const { + return regionId_; } -int ModifyDedicatedHostsChargeTypeRequest::getPeriod()const -{ - return period_; +void ModifyDedicatedHostsChargeTypeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyDedicatedHostsChargeTypeRequest::setPeriod(int period) -{ - period_ = period; - setParameter("Period", std::to_string(period)); +int ModifyDedicatedHostsChargeTypeRequest::getPeriod() const { + return period_; } -bool ModifyDedicatedHostsChargeTypeRequest::getDryRun()const -{ - return dryRun_; +void ModifyDedicatedHostsChargeTypeRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); } -void ModifyDedicatedHostsChargeTypeRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool ModifyDedicatedHostsChargeTypeRequest::getDryRun() const { + return dryRun_; } -bool ModifyDedicatedHostsChargeTypeRequest::getAutoPay()const -{ - return autoPay_; +void ModifyDedicatedHostsChargeTypeRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void ModifyDedicatedHostsChargeTypeRequest::setAutoPay(bool autoPay) -{ - autoPay_ = autoPay; - setParameter("AutoPay", autoPay ? "true" : "false"); +bool ModifyDedicatedHostsChargeTypeRequest::getAutoPay() const { + return autoPay_; } -std::string ModifyDedicatedHostsChargeTypeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyDedicatedHostsChargeTypeRequest::setAutoPay(bool autoPay) { + autoPay_ = autoPay; + setParameter(std::string("AutoPay"), autoPay ? "true" : "false"); } -void ModifyDedicatedHostsChargeTypeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyDedicatedHostsChargeTypeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyDedicatedHostsChargeTypeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyDedicatedHostsChargeTypeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyDedicatedHostsChargeTypeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyDedicatedHostsChargeTypeRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyDedicatedHostsChargeTypeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyDedicatedHostsChargeTypeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyDedicatedHostsChargeTypeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyDedicatedHostsChargeTypeRequest::getOwnerId() const { + return ownerId_; } -bool ModifyDedicatedHostsChargeTypeRequest::getDetailFee()const -{ - return detailFee_; +void ModifyDedicatedHostsChargeTypeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyDedicatedHostsChargeTypeRequest::setDetailFee(bool detailFee) -{ - detailFee_ = detailFee; - setParameter("DetailFee", detailFee ? "true" : "false"); +bool ModifyDedicatedHostsChargeTypeRequest::getDetailFee() const { + return detailFee_; } -std::string ModifyDedicatedHostsChargeTypeRequest::getPeriodUnit()const -{ - return periodUnit_; +void ModifyDedicatedHostsChargeTypeRequest::setDetailFee(bool detailFee) { + detailFee_ = detailFee; + setParameter(std::string("DetailFee"), detailFee ? "true" : "false"); } -void ModifyDedicatedHostsChargeTypeRequest::setPeriodUnit(const std::string& periodUnit) -{ - periodUnit_ = periodUnit; - setParameter("PeriodUnit", periodUnit); +std::string ModifyDedicatedHostsChargeTypeRequest::getPeriodUnit() const { + return periodUnit_; +} + +void ModifyDedicatedHostsChargeTypeRequest::setPeriodUnit(const std::string &periodUnit) { + periodUnit_ = periodUnit; + setParameter(std::string("PeriodUnit"), periodUnit); } diff --git a/ecs/src/model/ModifyDedicatedHostsChargeTypeResult.cc b/ecs/src/model/ModifyDedicatedHostsChargeTypeResult.cc index ba7793891..f278c8121 100644 --- a/ecs/src/model/ModifyDedicatedHostsChargeTypeResult.cc +++ b/ecs/src/model/ModifyDedicatedHostsChargeTypeResult.cc @@ -45,10 +45,10 @@ void ModifyDedicatedHostsChargeTypeResult::parse(const std::string &payload) FeeOfInstance feeOfInstancesObject; if(!valueFeeOfInstancesFeeOfInstance["InstanceId"].isNull()) feeOfInstancesObject.instanceId = valueFeeOfInstancesFeeOfInstance["InstanceId"].asString(); - if(!valueFeeOfInstancesFeeOfInstance["Fee"].isNull()) - feeOfInstancesObject.fee = valueFeeOfInstancesFeeOfInstance["Fee"].asString(); if(!valueFeeOfInstancesFeeOfInstance["Currency"].isNull()) feeOfInstancesObject.currency = valueFeeOfInstancesFeeOfInstance["Currency"].asString(); + if(!valueFeeOfInstancesFeeOfInstance["Fee"].isNull()) + feeOfInstancesObject.fee = valueFeeOfInstancesFeeOfInstance["Fee"].asString(); feeOfInstances_.push_back(feeOfInstancesObject); } if(!value["OrderId"].isNull()) diff --git a/ecs/src/model/ModifyDemandRequest.cc b/ecs/src/model/ModifyDemandRequest.cc index b7166751b..c85cc55b7 100644 --- a/ecs/src/model/ModifyDemandRequest.cc +++ b/ecs/src/model/ModifyDemandRequest.cc @@ -1,216 +1,180 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyDemandRequest; - -ModifyDemandRequest::ModifyDemandRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyDemand") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyDemandRequest::~ModifyDemandRequest() -{} - -long ModifyDemandRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyDemandRequest; + +ModifyDemandRequest::ModifyDemandRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyDemand") { + setMethod(HttpRequest::Method::Post); } -void ModifyDemandRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyDemandRequest::~ModifyDemandRequest() {} + +long ModifyDemandRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyDemandRequest::getClientToken()const -{ - return clientToken_; +void ModifyDemandRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyDemandRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ModifyDemandRequest::getClientToken() const { + return clientToken_; } -std::string ModifyDemandRequest::getStartTime()const -{ - return startTime_; +void ModifyDemandRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ModifyDemandRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string ModifyDemandRequest::getStartTime() const { + return startTime_; } -std::string ModifyDemandRequest::getDemandDescription()const -{ - return demandDescription_; +void ModifyDemandRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void ModifyDemandRequest::setDemandDescription(const std::string& demandDescription) -{ - demandDescription_ = demandDescription; - setParameter("DemandDescription", demandDescription); +std::string ModifyDemandRequest::getDemandDescription() const { + return demandDescription_; } -std::string ModifyDemandRequest::getRegionId()const -{ - return regionId_; +void ModifyDemandRequest::setDemandDescription(const std::string &demandDescription) { + demandDescription_ = demandDescription; + setParameter(std::string("DemandDescription"), demandDescription); } -void ModifyDemandRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyDemandRequest::getRegionId() const { + return regionId_; } -std::string ModifyDemandRequest::getInstanceType()const -{ - return instanceType_; +void ModifyDemandRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyDemandRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +std::string ModifyDemandRequest::getInstanceType() const { + return instanceType_; } -std::string ModifyDemandRequest::getInstanceChargeType()const -{ - return instanceChargeType_; +void ModifyDemandRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } -void ModifyDemandRequest::setInstanceChargeType(const std::string& instanceChargeType) -{ - instanceChargeType_ = instanceChargeType; - setParameter("InstanceChargeType", instanceChargeType); +std::string ModifyDemandRequest::getInstanceChargeType() const { + return instanceChargeType_; } -std::string ModifyDemandRequest::getDemandName()const -{ - return demandName_; +void ModifyDemandRequest::setInstanceChargeType(const std::string &instanceChargeType) { + instanceChargeType_ = instanceChargeType; + setParameter(std::string("InstanceChargeType"), instanceChargeType); } -void ModifyDemandRequest::setDemandName(const std::string& demandName) -{ - demandName_ = demandName; - setParameter("DemandName", demandName); +std::string ModifyDemandRequest::getDemandName() const { + return demandName_; } -int ModifyDemandRequest::getAmount()const -{ - return amount_; +void ModifyDemandRequest::setDemandName(const std::string &demandName) { + demandName_ = demandName; + setParameter(std::string("DemandName"), demandName); } -void ModifyDemandRequest::setAmount(int amount) -{ - amount_ = amount; - setParameter("Amount", std::to_string(amount)); +int ModifyDemandRequest::getAmount() const { + return amount_; } -int ModifyDemandRequest::getPeriod()const -{ - return period_; +void ModifyDemandRequest::setAmount(int amount) { + amount_ = amount; + setParameter(std::string("Amount"), std::to_string(amount)); } -void ModifyDemandRequest::setPeriod(int period) -{ - period_ = period; - setParameter("Period", std::to_string(period)); +int ModifyDemandRequest::getPeriod() const { + return period_; } -std::string ModifyDemandRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyDemandRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); } -void ModifyDemandRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyDemandRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyDemandRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyDemandRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyDemandRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyDemandRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string ModifyDemandRequest::getEndTime()const -{ - return endTime_; +void ModifyDemandRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyDemandRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +std::string ModifyDemandRequest::getEndTime() const { + return endTime_; } -long ModifyDemandRequest::getOwnerId()const -{ - return ownerId_; +void ModifyDemandRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void ModifyDemandRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyDemandRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyDemandRequest::getPeriodUnit()const -{ - return periodUnit_; +void ModifyDemandRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyDemandRequest::setPeriodUnit(const std::string& periodUnit) -{ - periodUnit_ = periodUnit; - setParameter("PeriodUnit", periodUnit); +std::string ModifyDemandRequest::getPeriodUnit() const { + return periodUnit_; } -std::string ModifyDemandRequest::getDemandId()const -{ - return demandId_; +void ModifyDemandRequest::setPeriodUnit(const std::string &periodUnit) { + periodUnit_ = periodUnit; + setParameter(std::string("PeriodUnit"), periodUnit); } -void ModifyDemandRequest::setDemandId(const std::string& demandId) -{ - demandId_ = demandId; - setParameter("DemandId", demandId); +std::string ModifyDemandRequest::getDemandId() const { + return demandId_; } -std::string ModifyDemandRequest::getZoneId()const -{ - return zoneId_; +void ModifyDemandRequest::setDemandId(const std::string &demandId) { + demandId_ = demandId; + setParameter(std::string("DemandId"), demandId); } -void ModifyDemandRequest::setZoneId(const std::string& zoneId) -{ - zoneId_ = zoneId; - setParameter("ZoneId", zoneId); +std::string ModifyDemandRequest::getZoneId() const { + return zoneId_; +} + +void ModifyDemandRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); } diff --git a/ecs/src/model/ModifyDeploymentSetAttributeRequest.cc b/ecs/src/model/ModifyDeploymentSetAttributeRequest.cc index 26212a33b..3d7be966a 100644 --- a/ecs/src/model/ModifyDeploymentSetAttributeRequest.cc +++ b/ecs/src/model/ModifyDeploymentSetAttributeRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyDeploymentSetAttributeRequest; - -ModifyDeploymentSetAttributeRequest::ModifyDeploymentSetAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyDeploymentSetAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyDeploymentSetAttributeRequest::~ModifyDeploymentSetAttributeRequest() -{} - -long ModifyDeploymentSetAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyDeploymentSetAttributeRequest; + +ModifyDeploymentSetAttributeRequest::ModifyDeploymentSetAttributeRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyDeploymentSetAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifyDeploymentSetAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyDeploymentSetAttributeRequest::~ModifyDeploymentSetAttributeRequest() {} + +long ModifyDeploymentSetAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyDeploymentSetAttributeRequest::getDescription()const -{ - return description_; +void ModifyDeploymentSetAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyDeploymentSetAttributeRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyDeploymentSetAttributeRequest::getDescription() const { + return description_; } -std::string ModifyDeploymentSetAttributeRequest::getRegionId()const -{ - return regionId_; +void ModifyDeploymentSetAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyDeploymentSetAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyDeploymentSetAttributeRequest::getRegionId() const { + return regionId_; } -std::string ModifyDeploymentSetAttributeRequest::getDeploymentSetId()const -{ - return deploymentSetId_; +void ModifyDeploymentSetAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyDeploymentSetAttributeRequest::setDeploymentSetId(const std::string& deploymentSetId) -{ - deploymentSetId_ = deploymentSetId; - setParameter("DeploymentSetId", deploymentSetId); +std::string ModifyDeploymentSetAttributeRequest::getDeploymentSetId() const { + return deploymentSetId_; } -std::string ModifyDeploymentSetAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyDeploymentSetAttributeRequest::setDeploymentSetId(const std::string &deploymentSetId) { + deploymentSetId_ = deploymentSetId; + setParameter(std::string("DeploymentSetId"), deploymentSetId); } -void ModifyDeploymentSetAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyDeploymentSetAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyDeploymentSetAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyDeploymentSetAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyDeploymentSetAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyDeploymentSetAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string ModifyDeploymentSetAttributeRequest::getDeploymentSetName()const -{ - return deploymentSetName_; +void ModifyDeploymentSetAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyDeploymentSetAttributeRequest::setDeploymentSetName(const std::string& deploymentSetName) -{ - deploymentSetName_ = deploymentSetName; - setParameter("DeploymentSetName", deploymentSetName); +std::string ModifyDeploymentSetAttributeRequest::getDeploymentSetName() const { + return deploymentSetName_; } -long ModifyDeploymentSetAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyDeploymentSetAttributeRequest::setDeploymentSetName(const std::string &deploymentSetName) { + deploymentSetName_ = deploymentSetName; + setParameter(std::string("DeploymentSetName"), deploymentSetName); } -void ModifyDeploymentSetAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyDeploymentSetAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyDeploymentSetAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/ModifyDiskAttributeRequest.cc b/ecs/src/model/ModifyDiskAttributeRequest.cc index 687c34568..e5bad561b 100644 --- a/ecs/src/model/ModifyDiskAttributeRequest.cc +++ b/ecs/src/model/ModifyDiskAttributeRequest.cc @@ -1,163 +1,134 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyDiskAttributeRequest; - -ModifyDiskAttributeRequest::ModifyDiskAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyDiskAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyDiskAttributeRequest::~ModifyDiskAttributeRequest() -{} - -long ModifyDiskAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyDiskAttributeRequest; + +ModifyDiskAttributeRequest::ModifyDiskAttributeRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyDiskAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifyDiskAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyDiskAttributeRequest::~ModifyDiskAttributeRequest() {} + +long ModifyDiskAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyDiskAttributeRequest::getDescription()const -{ - return description_; +void ModifyDiskAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyDiskAttributeRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyDiskAttributeRequest::getDescription() const { + return description_; } -std::string ModifyDiskAttributeRequest::getDiskName()const -{ - return diskName_; +void ModifyDiskAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyDiskAttributeRequest::setDiskName(const std::string& diskName) -{ - diskName_ = diskName; - setParameter("DiskName", diskName); +std::string ModifyDiskAttributeRequest::getDiskName() const { + return diskName_; } -bool ModifyDiskAttributeRequest::getDeleteAutoSnapshot()const -{ - return deleteAutoSnapshot_; +void ModifyDiskAttributeRequest::setDiskName(const std::string &diskName) { + diskName_ = diskName; + setParameter(std::string("DiskName"), diskName); } -void ModifyDiskAttributeRequest::setDeleteAutoSnapshot(bool deleteAutoSnapshot) -{ - deleteAutoSnapshot_ = deleteAutoSnapshot; - setParameter("DeleteAutoSnapshot", deleteAutoSnapshot ? "true" : "false"); +bool ModifyDiskAttributeRequest::getDeleteAutoSnapshot() const { + return deleteAutoSnapshot_; } -std::string ModifyDiskAttributeRequest::getRegionId()const -{ - return regionId_; +void ModifyDiskAttributeRequest::setDeleteAutoSnapshot(bool deleteAutoSnapshot) { + deleteAutoSnapshot_ = deleteAutoSnapshot; + setParameter(std::string("DeleteAutoSnapshot"), deleteAutoSnapshot ? "true" : "false"); } -void ModifyDiskAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyDiskAttributeRequest::getRegionId() const { + return regionId_; } -std::vector ModifyDiskAttributeRequest::getDiskIds()const -{ - return diskIds_; +void ModifyDiskAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyDiskAttributeRequest::setDiskIds(const std::vector& diskIds) -{ - diskIds_ = diskIds; - for(int dep1 = 0; dep1!= diskIds.size(); dep1++) { - setParameter("DiskIds."+ std::to_string(dep1), diskIds.at(dep1)); - } +std::vector ModifyDiskAttributeRequest::getDiskIds() const { + return diskIds_; } -std::string ModifyDiskAttributeRequest::getDiskId()const -{ - return diskId_; +void ModifyDiskAttributeRequest::setDiskIds(const std::vector &diskIds) { + diskIds_ = diskIds; } -void ModifyDiskAttributeRequest::setDiskId(const std::string& diskId) -{ - diskId_ = diskId; - setParameter("DiskId", diskId); +std::string ModifyDiskAttributeRequest::getDiskId() const { + return diskId_; } -bool ModifyDiskAttributeRequest::getDeleteWithInstance()const -{ - return deleteWithInstance_; +void ModifyDiskAttributeRequest::setDiskId(const std::string &diskId) { + diskId_ = diskId; + setParameter(std::string("DiskId"), diskId); } -void ModifyDiskAttributeRequest::setDeleteWithInstance(bool deleteWithInstance) -{ - deleteWithInstance_ = deleteWithInstance; - setParameter("DeleteWithInstance", deleteWithInstance ? "true" : "false"); +bool ModifyDiskAttributeRequest::getDeleteWithInstance() const { + return deleteWithInstance_; } -bool ModifyDiskAttributeRequest::getEnableAutoSnapshot()const -{ - return enableAutoSnapshot_; +void ModifyDiskAttributeRequest::setDeleteWithInstance(bool deleteWithInstance) { + deleteWithInstance_ = deleteWithInstance; + setParameter(std::string("DeleteWithInstance"), deleteWithInstance ? "true" : "false"); } -void ModifyDiskAttributeRequest::setEnableAutoSnapshot(bool enableAutoSnapshot) -{ - enableAutoSnapshot_ = enableAutoSnapshot; - setParameter("EnableAutoSnapshot", enableAutoSnapshot ? "true" : "false"); +bool ModifyDiskAttributeRequest::getEnableAutoSnapshot() const { + return enableAutoSnapshot_; } -std::string ModifyDiskAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyDiskAttributeRequest::setEnableAutoSnapshot(bool enableAutoSnapshot) { + enableAutoSnapshot_ = enableAutoSnapshot; + setParameter(std::string("EnableAutoSnapshot"), enableAutoSnapshot ? "true" : "false"); } -void ModifyDiskAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyDiskAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyDiskAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyDiskAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyDiskAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyDiskAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyDiskAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyDiskAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyDiskAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyDiskAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyDiskAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/ModifyDiskChargeTypeRequest.cc b/ecs/src/model/ModifyDiskChargeTypeRequest.cc index 010008a89..a99b5016a 100644 --- a/ecs/src/model/ModifyDiskChargeTypeRequest.cc +++ b/ecs/src/model/ModifyDiskChargeTypeRequest.cc @@ -1,139 +1,117 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyDiskChargeTypeRequest; - -ModifyDiskChargeTypeRequest::ModifyDiskChargeTypeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyDiskChargeType") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyDiskChargeTypeRequest::~ModifyDiskChargeTypeRequest() -{} - -long ModifyDiskChargeTypeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyDiskChargeTypeRequest; + +ModifyDiskChargeTypeRequest::ModifyDiskChargeTypeRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyDiskChargeType") { + setMethod(HttpRequest::Method::Post); } -void ModifyDiskChargeTypeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyDiskChargeTypeRequest::~ModifyDiskChargeTypeRequest() {} + +long ModifyDiskChargeTypeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyDiskChargeTypeRequest::getClientToken()const -{ - return clientToken_; +void ModifyDiskChargeTypeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyDiskChargeTypeRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ModifyDiskChargeTypeRequest::getClientToken() const { + return clientToken_; } -std::string ModifyDiskChargeTypeRequest::getDiskChargeType()const -{ - return diskChargeType_; +void ModifyDiskChargeTypeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ModifyDiskChargeTypeRequest::setDiskChargeType(const std::string& diskChargeType) -{ - diskChargeType_ = diskChargeType; - setParameter("DiskChargeType", diskChargeType); +std::string ModifyDiskChargeTypeRequest::getDiskChargeType() const { + return diskChargeType_; } -std::string ModifyDiskChargeTypeRequest::getRegionId()const -{ - return regionId_; +void ModifyDiskChargeTypeRequest::setDiskChargeType(const std::string &diskChargeType) { + diskChargeType_ = diskChargeType; + setParameter(std::string("DiskChargeType"), diskChargeType); } -void ModifyDiskChargeTypeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyDiskChargeTypeRequest::getRegionId() const { + return regionId_; } -std::string ModifyDiskChargeTypeRequest::getDiskIds()const -{ - return diskIds_; +void ModifyDiskChargeTypeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyDiskChargeTypeRequest::setDiskIds(const std::string& diskIds) -{ - diskIds_ = diskIds; - setParameter("DiskIds", diskIds); +std::string ModifyDiskChargeTypeRequest::getDiskIds() const { + return diskIds_; } -bool ModifyDiskChargeTypeRequest::getAutoPay()const -{ - return autoPay_; +void ModifyDiskChargeTypeRequest::setDiskIds(const std::string &diskIds) { + diskIds_ = diskIds; + setParameter(std::string("DiskIds"), diskIds); } -void ModifyDiskChargeTypeRequest::setAutoPay(bool autoPay) -{ - autoPay_ = autoPay; - setParameter("AutoPay", autoPay ? "true" : "false"); +bool ModifyDiskChargeTypeRequest::getAutoPay() const { + return autoPay_; } -std::string ModifyDiskChargeTypeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyDiskChargeTypeRequest::setAutoPay(bool autoPay) { + autoPay_ = autoPay; + setParameter(std::string("AutoPay"), autoPay ? "true" : "false"); } -void ModifyDiskChargeTypeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyDiskChargeTypeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyDiskChargeTypeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyDiskChargeTypeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyDiskChargeTypeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyDiskChargeTypeRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyDiskChargeTypeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyDiskChargeTypeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyDiskChargeTypeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyDiskChargeTypeRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyDiskChargeTypeRequest::getInstanceId()const -{ - return instanceId_; +void ModifyDiskChargeTypeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyDiskChargeTypeRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ModifyDiskChargeTypeRequest::getInstanceId() const { + return instanceId_; +} + +void ModifyDiskChargeTypeRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/ecs/src/model/ModifyDiskSpecRequest.cc b/ecs/src/model/ModifyDiskSpecRequest.cc index c3e18f825..53b3e2b45 100644 --- a/ecs/src/model/ModifyDiskSpecRequest.cc +++ b/ecs/src/model/ModifyDiskSpecRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyDiskSpecRequest; - -ModifyDiskSpecRequest::ModifyDiskSpecRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyDiskSpec") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyDiskSpecRequest::~ModifyDiskSpecRequest() -{} - -long ModifyDiskSpecRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyDiskSpecRequest; + +ModifyDiskSpecRequest::ModifyDiskSpecRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyDiskSpec") { + setMethod(HttpRequest::Method::Post); } -void ModifyDiskSpecRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyDiskSpecRequest::~ModifyDiskSpecRequest() {} + +long ModifyDiskSpecRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyDiskSpecRequest::getDiskCategory()const -{ - return diskCategory_; +void ModifyDiskSpecRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyDiskSpecRequest::setDiskCategory(const std::string& diskCategory) -{ - diskCategory_ = diskCategory; - setParameter("DiskCategory", diskCategory); +std::string ModifyDiskSpecRequest::getDiskCategory() const { + return diskCategory_; } -std::string ModifyDiskSpecRequest::getDiskId()const -{ - return diskId_; +void ModifyDiskSpecRequest::setDiskCategory(const std::string &diskCategory) { + diskCategory_ = diskCategory; + setParameter(std::string("DiskCategory"), diskCategory); } -void ModifyDiskSpecRequest::setDiskId(const std::string& diskId) -{ - diskId_ = diskId; - setParameter("DiskId", diskId); +std::string ModifyDiskSpecRequest::getDiskId() const { + return diskId_; } -bool ModifyDiskSpecRequest::getDryRun()const -{ - return dryRun_; +void ModifyDiskSpecRequest::setDiskId(const std::string &diskId) { + diskId_ = diskId; + setParameter(std::string("DiskId"), diskId); } -void ModifyDiskSpecRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool ModifyDiskSpecRequest::getDryRun() const { + return dryRun_; } -std::string ModifyDiskSpecRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyDiskSpecRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void ModifyDiskSpecRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyDiskSpecRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyDiskSpecRequest::getPerformanceLevel()const -{ - return performanceLevel_; +void ModifyDiskSpecRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyDiskSpecRequest::setPerformanceLevel(const std::string& performanceLevel) -{ - performanceLevel_ = performanceLevel; - setParameter("PerformanceLevel", performanceLevel); +std::string ModifyDiskSpecRequest::getPerformanceLevel() const { + return performanceLevel_; } -std::string ModifyDiskSpecRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyDiskSpecRequest::setPerformanceLevel(const std::string &performanceLevel) { + performanceLevel_ = performanceLevel; + setParameter(std::string("PerformanceLevel"), performanceLevel); } -void ModifyDiskSpecRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyDiskSpecRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyDiskSpecRequest::getOwnerId()const -{ - return ownerId_; +void ModifyDiskSpecRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyDiskSpecRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyDiskSpecRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyDiskSpecRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/ModifyEipAddressAttributeRequest.cc b/ecs/src/model/ModifyEipAddressAttributeRequest.cc index f04e7008e..e4663c9cd 100644 --- a/ecs/src/model/ModifyEipAddressAttributeRequest.cc +++ b/ecs/src/model/ModifyEipAddressAttributeRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyEipAddressAttributeRequest; - -ModifyEipAddressAttributeRequest::ModifyEipAddressAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyEipAddressAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyEipAddressAttributeRequest::~ModifyEipAddressAttributeRequest() -{} - -long ModifyEipAddressAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyEipAddressAttributeRequest; + +ModifyEipAddressAttributeRequest::ModifyEipAddressAttributeRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyEipAddressAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifyEipAddressAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyEipAddressAttributeRequest::~ModifyEipAddressAttributeRequest() {} + +long ModifyEipAddressAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyEipAddressAttributeRequest::getAllocationId()const -{ - return allocationId_; +void ModifyEipAddressAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyEipAddressAttributeRequest::setAllocationId(const std::string& allocationId) -{ - allocationId_ = allocationId; - setParameter("AllocationId", allocationId); +std::string ModifyEipAddressAttributeRequest::getAllocationId() const { + return allocationId_; } -std::string ModifyEipAddressAttributeRequest::getRegionId()const -{ - return regionId_; +void ModifyEipAddressAttributeRequest::setAllocationId(const std::string &allocationId) { + allocationId_ = allocationId; + setParameter(std::string("AllocationId"), allocationId); } -void ModifyEipAddressAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyEipAddressAttributeRequest::getRegionId() const { + return regionId_; } -std::string ModifyEipAddressAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyEipAddressAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyEipAddressAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyEipAddressAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyEipAddressAttributeRequest::getBandwidth()const -{ - return bandwidth_; +void ModifyEipAddressAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyEipAddressAttributeRequest::setBandwidth(const std::string& bandwidth) -{ - bandwidth_ = bandwidth; - setParameter("Bandwidth", bandwidth); +std::string ModifyEipAddressAttributeRequest::getBandwidth() const { + return bandwidth_; } -std::string ModifyEipAddressAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyEipAddressAttributeRequest::setBandwidth(const std::string &bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), bandwidth); } -void ModifyEipAddressAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyEipAddressAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyEipAddressAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyEipAddressAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyEipAddressAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyEipAddressAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyEipAddressAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/ModifyElasticityAssuranceRequest.cc b/ecs/src/model/ModifyElasticityAssuranceRequest.cc index d181960d0..00ed06ee9 100644 --- a/ecs/src/model/ModifyElasticityAssuranceRequest.cc +++ b/ecs/src/model/ModifyElasticityAssuranceRequest.cc @@ -1,128 +1,108 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyElasticityAssuranceRequest; - -ModifyElasticityAssuranceRequest::ModifyElasticityAssuranceRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyElasticityAssurance") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyElasticityAssuranceRequest::~ModifyElasticityAssuranceRequest() -{} - -long ModifyElasticityAssuranceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyElasticityAssuranceRequest; + +ModifyElasticityAssuranceRequest::ModifyElasticityAssuranceRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyElasticityAssurance") { + setMethod(HttpRequest::Method::Post); } -void ModifyElasticityAssuranceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyElasticityAssuranceRequest::~ModifyElasticityAssuranceRequest() {} + +long ModifyElasticityAssuranceRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyElasticityAssuranceRequest::getDescription()const -{ - return description_; +void ModifyElasticityAssuranceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyElasticityAssuranceRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyElasticityAssuranceRequest::getDescription() const { + return description_; } -std::string ModifyElasticityAssuranceRequest::getRegionId()const -{ - return regionId_; +void ModifyElasticityAssuranceRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyElasticityAssuranceRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyElasticityAssuranceRequest::getRegionId() const { + return regionId_; } -std::string ModifyElasticityAssuranceRequest::getPrivatePoolOptionsId()const -{ - return privatePoolOptionsId_; +void ModifyElasticityAssuranceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyElasticityAssuranceRequest::setPrivatePoolOptionsId(const std::string& privatePoolOptionsId) -{ - privatePoolOptionsId_ = privatePoolOptionsId; - setParameter("PrivatePoolOptionsId", privatePoolOptionsId); +std::string ModifyElasticityAssuranceRequest::getPrivatePoolOptionsId() const { + return privatePoolOptionsId_; } -std::string ModifyElasticityAssuranceRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyElasticityAssuranceRequest::setPrivatePoolOptionsId(const std::string &privatePoolOptionsId) { + privatePoolOptionsId_ = privatePoolOptionsId; + setParameter(std::string("PrivatePoolOptions.Id"), privatePoolOptionsId); } -void ModifyElasticityAssuranceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyElasticityAssuranceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyElasticityAssuranceRequest::getPrivatePoolOptionsName()const -{ - return privatePoolOptionsName_; +void ModifyElasticityAssuranceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyElasticityAssuranceRequest::setPrivatePoolOptionsName(const std::string& privatePoolOptionsName) -{ - privatePoolOptionsName_ = privatePoolOptionsName; - setParameter("PrivatePoolOptionsName", privatePoolOptionsName); +std::string ModifyElasticityAssuranceRequest::getPrivatePoolOptionsName() const { + return privatePoolOptionsName_; } -std::string ModifyElasticityAssuranceRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyElasticityAssuranceRequest::setPrivatePoolOptionsName(const std::string &privatePoolOptionsName) { + privatePoolOptionsName_ = privatePoolOptionsName; + setParameter(std::string("PrivatePoolOptions.Name"), privatePoolOptionsName); } -void ModifyElasticityAssuranceRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyElasticityAssuranceRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyElasticityAssuranceRequest::getOwnerId()const -{ - return ownerId_; +void ModifyElasticityAssuranceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyElasticityAssuranceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyElasticityAssuranceRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyElasticityAssuranceRequest::getPackageType()const -{ - return packageType_; +void ModifyElasticityAssuranceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyElasticityAssuranceRequest::setPackageType(const std::string& packageType) -{ - packageType_ = packageType; - setParameter("PackageType", packageType); +std::string ModifyElasticityAssuranceRequest::getPackageType() const { + return packageType_; +} + +void ModifyElasticityAssuranceRequest::setPackageType(const std::string &packageType) { + packageType_ = packageType; + setParameter(std::string("PackageType"), packageType); } diff --git a/ecs/src/model/ModifyForwardEntryRequest.cc b/ecs/src/model/ModifyForwardEntryRequest.cc index 5ce163a7e..a4a5e1500 100644 --- a/ecs/src/model/ModifyForwardEntryRequest.cc +++ b/ecs/src/model/ModifyForwardEntryRequest.cc @@ -1,161 +1,135 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyForwardEntryRequest; - -ModifyForwardEntryRequest::ModifyForwardEntryRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyForwardEntry") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyForwardEntryRequest::~ModifyForwardEntryRequest() -{} - -long ModifyForwardEntryRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyForwardEntryRequest; + +ModifyForwardEntryRequest::ModifyForwardEntryRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyForwardEntry") { + setMethod(HttpRequest::Method::Post); } -void ModifyForwardEntryRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyForwardEntryRequest::~ModifyForwardEntryRequest() {} + +long ModifyForwardEntryRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyForwardEntryRequest::getForwardTableId()const -{ - return forwardTableId_; +void ModifyForwardEntryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyForwardEntryRequest::setForwardTableId(const std::string& forwardTableId) -{ - forwardTableId_ = forwardTableId; - setParameter("ForwardTableId", forwardTableId); +std::string ModifyForwardEntryRequest::getForwardTableId() const { + return forwardTableId_; } -std::string ModifyForwardEntryRequest::getInternalIp()const -{ - return internalIp_; +void ModifyForwardEntryRequest::setForwardTableId(const std::string &forwardTableId) { + forwardTableId_ = forwardTableId; + setParameter(std::string("ForwardTableId"), forwardTableId); } -void ModifyForwardEntryRequest::setInternalIp(const std::string& internalIp) -{ - internalIp_ = internalIp; - setParameter("InternalIp", internalIp); +std::string ModifyForwardEntryRequest::getInternalIp() const { + return internalIp_; } -std::string ModifyForwardEntryRequest::getRegionId()const -{ - return regionId_; +void ModifyForwardEntryRequest::setInternalIp(const std::string &internalIp) { + internalIp_ = internalIp; + setParameter(std::string("InternalIp"), internalIp); } -void ModifyForwardEntryRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyForwardEntryRequest::getRegionId() const { + return regionId_; } -std::string ModifyForwardEntryRequest::getForwardEntryId()const -{ - return forwardEntryId_; +void ModifyForwardEntryRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyForwardEntryRequest::setForwardEntryId(const std::string& forwardEntryId) -{ - forwardEntryId_ = forwardEntryId; - setParameter("ForwardEntryId", forwardEntryId); +std::string ModifyForwardEntryRequest::getForwardEntryId() const { + return forwardEntryId_; } -std::string ModifyForwardEntryRequest::getExternalIp()const -{ - return externalIp_; +void ModifyForwardEntryRequest::setForwardEntryId(const std::string &forwardEntryId) { + forwardEntryId_ = forwardEntryId; + setParameter(std::string("ForwardEntryId"), forwardEntryId); } -void ModifyForwardEntryRequest::setExternalIp(const std::string& externalIp) -{ - externalIp_ = externalIp; - setParameter("ExternalIp", externalIp); +std::string ModifyForwardEntryRequest::getExternalIp() const { + return externalIp_; } -std::string ModifyForwardEntryRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyForwardEntryRequest::setExternalIp(const std::string &externalIp) { + externalIp_ = externalIp; + setParameter(std::string("ExternalIp"), externalIp); } -void ModifyForwardEntryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyForwardEntryRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyForwardEntryRequest::getIpProtocol()const -{ - return ipProtocol_; +void ModifyForwardEntryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyForwardEntryRequest::setIpProtocol(const std::string& ipProtocol) -{ - ipProtocol_ = ipProtocol; - setParameter("IpProtocol", ipProtocol); +std::string ModifyForwardEntryRequest::getIpProtocol() const { + return ipProtocol_; } -std::string ModifyForwardEntryRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyForwardEntryRequest::setIpProtocol(const std::string &ipProtocol) { + ipProtocol_ = ipProtocol; + setParameter(std::string("IpProtocol"), ipProtocol); } -void ModifyForwardEntryRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyForwardEntryRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyForwardEntryRequest::getOwnerId()const -{ - return ownerId_; +void ModifyForwardEntryRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyForwardEntryRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyForwardEntryRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyForwardEntryRequest::getInternalPort()const -{ - return internalPort_; +void ModifyForwardEntryRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyForwardEntryRequest::setInternalPort(const std::string& internalPort) -{ - internalPort_ = internalPort; - setParameter("InternalPort", internalPort); +std::string ModifyForwardEntryRequest::getInternalPort() const { + return internalPort_; } -std::string ModifyForwardEntryRequest::getExternalPort()const -{ - return externalPort_; +void ModifyForwardEntryRequest::setInternalPort(const std::string &internalPort) { + internalPort_ = internalPort; + setParameter(std::string("InternalPort"), internalPort); } -void ModifyForwardEntryRequest::setExternalPort(const std::string& externalPort) -{ - externalPort_ = externalPort; - setParameter("ExternalPort", externalPort); +std::string ModifyForwardEntryRequest::getExternalPort() const { + return externalPort_; +} + +void ModifyForwardEntryRequest::setExternalPort(const std::string &externalPort) { + externalPort_ = externalPort; + setParameter(std::string("ExternalPort"), externalPort); } diff --git a/ecs/src/model/ModifyHaVipAttributeRequest.cc b/ecs/src/model/ModifyHaVipAttributeRequest.cc index fd5619b9b..bc9a2d39d 100644 --- a/ecs/src/model/ModifyHaVipAttributeRequest.cc +++ b/ecs/src/model/ModifyHaVipAttributeRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyHaVipAttributeRequest; - -ModifyHaVipAttributeRequest::ModifyHaVipAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyHaVipAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyHaVipAttributeRequest::~ModifyHaVipAttributeRequest() -{} - -long ModifyHaVipAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyHaVipAttributeRequest; + +ModifyHaVipAttributeRequest::ModifyHaVipAttributeRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyHaVipAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifyHaVipAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyHaVipAttributeRequest::~ModifyHaVipAttributeRequest() {} + +long ModifyHaVipAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyHaVipAttributeRequest::getClientToken()const -{ - return clientToken_; +void ModifyHaVipAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyHaVipAttributeRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ModifyHaVipAttributeRequest::getClientToken() const { + return clientToken_; } -std::string ModifyHaVipAttributeRequest::getDescription()const -{ - return description_; +void ModifyHaVipAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ModifyHaVipAttributeRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyHaVipAttributeRequest::getDescription() const { + return description_; } -std::string ModifyHaVipAttributeRequest::getRegionId()const -{ - return regionId_; +void ModifyHaVipAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyHaVipAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyHaVipAttributeRequest::getRegionId() const { + return regionId_; } -std::string ModifyHaVipAttributeRequest::getHaVipId()const -{ - return haVipId_; +void ModifyHaVipAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyHaVipAttributeRequest::setHaVipId(const std::string& haVipId) -{ - haVipId_ = haVipId; - setParameter("HaVipId", haVipId); +std::string ModifyHaVipAttributeRequest::getHaVipId() const { + return haVipId_; } -std::string ModifyHaVipAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyHaVipAttributeRequest::setHaVipId(const std::string &haVipId) { + haVipId_ = haVipId; + setParameter(std::string("HaVipId"), haVipId); } -void ModifyHaVipAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyHaVipAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyHaVipAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyHaVipAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyHaVipAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyHaVipAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyHaVipAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyHaVipAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyHaVipAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyHaVipAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyHaVipAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/ModifyHpcClusterAttributeRequest.cc b/ecs/src/model/ModifyHpcClusterAttributeRequest.cc index f1022e272..030589d2a 100644 --- a/ecs/src/model/ModifyHpcClusterAttributeRequest.cc +++ b/ecs/src/model/ModifyHpcClusterAttributeRequest.cc @@ -1,128 +1,108 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyHpcClusterAttributeRequest; - -ModifyHpcClusterAttributeRequest::ModifyHpcClusterAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyHpcClusterAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyHpcClusterAttributeRequest::~ModifyHpcClusterAttributeRequest() -{} - -long ModifyHpcClusterAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyHpcClusterAttributeRequest; + +ModifyHpcClusterAttributeRequest::ModifyHpcClusterAttributeRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyHpcClusterAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifyHpcClusterAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyHpcClusterAttributeRequest::~ModifyHpcClusterAttributeRequest() {} + +long ModifyHpcClusterAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyHpcClusterAttributeRequest::getHpcClusterId()const -{ - return hpcClusterId_; +void ModifyHpcClusterAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyHpcClusterAttributeRequest::setHpcClusterId(const std::string& hpcClusterId) -{ - hpcClusterId_ = hpcClusterId; - setParameter("HpcClusterId", hpcClusterId); +std::string ModifyHpcClusterAttributeRequest::getHpcClusterId() const { + return hpcClusterId_; } -std::string ModifyHpcClusterAttributeRequest::getClientToken()const -{ - return clientToken_; +void ModifyHpcClusterAttributeRequest::setHpcClusterId(const std::string &hpcClusterId) { + hpcClusterId_ = hpcClusterId; + setParameter(std::string("HpcClusterId"), hpcClusterId); } -void ModifyHpcClusterAttributeRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ModifyHpcClusterAttributeRequest::getClientToken() const { + return clientToken_; } -std::string ModifyHpcClusterAttributeRequest::getDescription()const -{ - return description_; +void ModifyHpcClusterAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ModifyHpcClusterAttributeRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyHpcClusterAttributeRequest::getDescription() const { + return description_; } -std::string ModifyHpcClusterAttributeRequest::getRegionId()const -{ - return regionId_; +void ModifyHpcClusterAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyHpcClusterAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyHpcClusterAttributeRequest::getRegionId() const { + return regionId_; } -std::string ModifyHpcClusterAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyHpcClusterAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyHpcClusterAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyHpcClusterAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyHpcClusterAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyHpcClusterAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyHpcClusterAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyHpcClusterAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyHpcClusterAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyHpcClusterAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyHpcClusterAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyHpcClusterAttributeRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyHpcClusterAttributeRequest::getName()const -{ - return name_; +void ModifyHpcClusterAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyHpcClusterAttributeRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string ModifyHpcClusterAttributeRequest::getName() const { + return name_; +} + +void ModifyHpcClusterAttributeRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/ecs/src/model/ModifyImageAttributeRequest.cc b/ecs/src/model/ModifyImageAttributeRequest.cc index ae7043bb9..0d144dff2 100644 --- a/ecs/src/model/ModifyImageAttributeRequest.cc +++ b/ecs/src/model/ModifyImageAttributeRequest.cc @@ -1,161 +1,135 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyImageAttributeRequest; - -ModifyImageAttributeRequest::ModifyImageAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyImageAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyImageAttributeRequest::~ModifyImageAttributeRequest() -{} - -long ModifyImageAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyImageAttributeRequest; + +ModifyImageAttributeRequest::ModifyImageAttributeRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyImageAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifyImageAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyImageAttributeRequest::~ModifyImageAttributeRequest() {} + +long ModifyImageAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyImageAttributeRequest::getImageId()const -{ - return imageId_; +void ModifyImageAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyImageAttributeRequest::setImageId(const std::string& imageId) -{ - imageId_ = imageId; - setParameter("ImageId", imageId); +std::string ModifyImageAttributeRequest::getImageId() const { + return imageId_; } -std::string ModifyImageAttributeRequest::getDescription()const -{ - return description_; +void ModifyImageAttributeRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("ImageId"), imageId); } -void ModifyImageAttributeRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyImageAttributeRequest::getDescription() const { + return description_; } -std::string ModifyImageAttributeRequest::getBootMode()const -{ - return bootMode_; +void ModifyImageAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyImageAttributeRequest::setBootMode(const std::string& bootMode) -{ - bootMode_ = bootMode; - setParameter("BootMode", bootMode); +std::string ModifyImageAttributeRequest::getBootMode() const { + return bootMode_; } -std::string ModifyImageAttributeRequest::getRegionId()const -{ - return regionId_; +void ModifyImageAttributeRequest::setBootMode(const std::string &bootMode) { + bootMode_ = bootMode; + setParameter(std::string("BootMode"), bootMode); } -void ModifyImageAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyImageAttributeRequest::getRegionId() const { + return regionId_; } -std::string ModifyImageAttributeRequest::getImageName()const -{ - return imageName_; +void ModifyImageAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyImageAttributeRequest::setImageName(const std::string& imageName) -{ - imageName_ = imageName; - setParameter("ImageName", imageName); +std::string ModifyImageAttributeRequest::getImageName() const { + return imageName_; } -std::string ModifyImageAttributeRequest::getLicenseType()const -{ - return licenseType_; +void ModifyImageAttributeRequest::setImageName(const std::string &imageName) { + imageName_ = imageName; + setParameter(std::string("ImageName"), imageName); } -void ModifyImageAttributeRequest::setLicenseType(const std::string& licenseType) -{ - licenseType_ = licenseType; - setParameter("LicenseType", licenseType); +std::string ModifyImageAttributeRequest::getLicenseType() const { + return licenseType_; } -std::string ModifyImageAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyImageAttributeRequest::setLicenseType(const std::string &licenseType) { + licenseType_ = licenseType; + setParameter(std::string("LicenseType"), licenseType); } -void ModifyImageAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyImageAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyImageAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyImageAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyImageAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyImageAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyImageAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyImageAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyImageAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyImageAttributeRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyImageAttributeRequest::getImageFamily()const -{ - return imageFamily_; +void ModifyImageAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyImageAttributeRequest::setImageFamily(const std::string& imageFamily) -{ - imageFamily_ = imageFamily; - setParameter("ImageFamily", imageFamily); +std::string ModifyImageAttributeRequest::getImageFamily() const { + return imageFamily_; } -std::string ModifyImageAttributeRequest::getStatus()const -{ - return status_; +void ModifyImageAttributeRequest::setImageFamily(const std::string &imageFamily) { + imageFamily_ = imageFamily; + setParameter(std::string("ImageFamily"), imageFamily); } -void ModifyImageAttributeRequest::setStatus(const std::string& status) -{ - status_ = status; - setParameter("Status", status); +std::string ModifyImageAttributeRequest::getStatus() const { + return status_; +} + +void ModifyImageAttributeRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); } diff --git a/ecs/src/model/ModifyImageShareGroupPermissionRequest.cc b/ecs/src/model/ModifyImageShareGroupPermissionRequest.cc index 438f3a43a..224fb356e 100644 --- a/ecs/src/model/ModifyImageShareGroupPermissionRequest.cc +++ b/ecs/src/model/ModifyImageShareGroupPermissionRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyImageShareGroupPermissionRequest; - -ModifyImageShareGroupPermissionRequest::ModifyImageShareGroupPermissionRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyImageShareGroupPermission") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyImageShareGroupPermissionRequest::~ModifyImageShareGroupPermissionRequest() -{} - -long ModifyImageShareGroupPermissionRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyImageShareGroupPermissionRequest; + +ModifyImageShareGroupPermissionRequest::ModifyImageShareGroupPermissionRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyImageShareGroupPermission") { + setMethod(HttpRequest::Method::Post); } -void ModifyImageShareGroupPermissionRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyImageShareGroupPermissionRequest::~ModifyImageShareGroupPermissionRequest() {} + +long ModifyImageShareGroupPermissionRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyImageShareGroupPermissionRequest::getImageId()const -{ - return imageId_; +void ModifyImageShareGroupPermissionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyImageShareGroupPermissionRequest::setImageId(const std::string& imageId) -{ - imageId_ = imageId; - setParameter("ImageId", imageId); +std::string ModifyImageShareGroupPermissionRequest::getImageId() const { + return imageId_; } -std::string ModifyImageShareGroupPermissionRequest::getAddGroup1()const -{ - return addGroup1_; +void ModifyImageShareGroupPermissionRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("ImageId"), imageId); } -void ModifyImageShareGroupPermissionRequest::setAddGroup1(const std::string& addGroup1) -{ - addGroup1_ = addGroup1; - setParameter("AddGroup1", addGroup1); +std::string ModifyImageShareGroupPermissionRequest::getAddGroup1() const { + return addGroup1_; } -std::string ModifyImageShareGroupPermissionRequest::getRegionId()const -{ - return regionId_; +void ModifyImageShareGroupPermissionRequest::setAddGroup1(const std::string &addGroup1) { + addGroup1_ = addGroup1; + setParameter(std::string("AddGroup.1"), addGroup1); } -void ModifyImageShareGroupPermissionRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyImageShareGroupPermissionRequest::getRegionId() const { + return regionId_; } -std::string ModifyImageShareGroupPermissionRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyImageShareGroupPermissionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyImageShareGroupPermissionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyImageShareGroupPermissionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyImageShareGroupPermissionRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyImageShareGroupPermissionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyImageShareGroupPermissionRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyImageShareGroupPermissionRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyImageShareGroupPermissionRequest::getOwnerId()const -{ - return ownerId_; +void ModifyImageShareGroupPermissionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyImageShareGroupPermissionRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyImageShareGroupPermissionRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyImageShareGroupPermissionRequest::getRemoveGroup1()const -{ - return removeGroup1_; +void ModifyImageShareGroupPermissionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyImageShareGroupPermissionRequest::setRemoveGroup1(const std::string& removeGroup1) -{ - removeGroup1_ = removeGroup1; - setParameter("RemoveGroup1", removeGroup1); +std::string ModifyImageShareGroupPermissionRequest::getRemoveGroup1() const { + return removeGroup1_; +} + +void ModifyImageShareGroupPermissionRequest::setRemoveGroup1(const std::string &removeGroup1) { + removeGroup1_ = removeGroup1; + setParameter(std::string("RemoveGroup.1"), removeGroup1); } diff --git a/ecs/src/model/ModifyImageSharePermissionRequest.cc b/ecs/src/model/ModifyImageSharePermissionRequest.cc index 424807f14..72c7cfd0a 100644 --- a/ecs/src/model/ModifyImageSharePermissionRequest.cc +++ b/ecs/src/model/ModifyImageSharePermissionRequest.cc @@ -1,143 +1,115 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyImageSharePermissionRequest; - -ModifyImageSharePermissionRequest::ModifyImageSharePermissionRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyImageSharePermission") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyImageSharePermissionRequest::~ModifyImageSharePermissionRequest() -{} - -long ModifyImageSharePermissionRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyImageSharePermissionRequest; + +ModifyImageSharePermissionRequest::ModifyImageSharePermissionRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyImageSharePermission") { + setMethod(HttpRequest::Method::Post); } -void ModifyImageSharePermissionRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyImageSharePermissionRequest::~ModifyImageSharePermissionRequest() {} + +long ModifyImageSharePermissionRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyImageSharePermissionRequest::getImageId()const -{ - return imageId_; +void ModifyImageSharePermissionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyImageSharePermissionRequest::setImageId(const std::string& imageId) -{ - imageId_ = imageId; - setParameter("ImageId", imageId); +std::string ModifyImageSharePermissionRequest::getImageId() const { + return imageId_; } -std::string ModifyImageSharePermissionRequest::getRegionId()const -{ - return regionId_; +void ModifyImageSharePermissionRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("ImageId"), imageId); } -void ModifyImageSharePermissionRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyImageSharePermissionRequest::getRegionId() const { + return regionId_; } -bool ModifyImageSharePermissionRequest::getIsPublic()const -{ - return isPublic_; +void ModifyImageSharePermissionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyImageSharePermissionRequest::setIsPublic(bool isPublic) -{ - isPublic_ = isPublic; - setParameter("IsPublic", isPublic ? "true" : "false"); +bool ModifyImageSharePermissionRequest::getIsPublic() const { + return isPublic_; } -std::string ModifyImageSharePermissionRequest::getLaunchPermission()const -{ - return launchPermission_; +void ModifyImageSharePermissionRequest::setIsPublic(bool isPublic) { + isPublic_ = isPublic; + setParameter(std::string("IsPublic"), isPublic ? "true" : "false"); } -void ModifyImageSharePermissionRequest::setLaunchPermission(const std::string& launchPermission) -{ - launchPermission_ = launchPermission; - setParameter("LaunchPermission", launchPermission); +std::string ModifyImageSharePermissionRequest::getLaunchPermission() const { + return launchPermission_; } -std::string ModifyImageSharePermissionRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyImageSharePermissionRequest::setLaunchPermission(const std::string &launchPermission) { + launchPermission_ = launchPermission; + setParameter(std::string("LaunchPermission"), launchPermission); } -void ModifyImageSharePermissionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyImageSharePermissionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyImageSharePermissionRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyImageSharePermissionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyImageSharePermissionRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyImageSharePermissionRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyImageSharePermissionRequest::getOwnerId()const -{ - return ownerId_; +void ModifyImageSharePermissionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyImageSharePermissionRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyImageSharePermissionRequest::getOwnerId() const { + return ownerId_; } -std::vector ModifyImageSharePermissionRequest::getAddAccount()const -{ - return addAccount_; +void ModifyImageSharePermissionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyImageSharePermissionRequest::setAddAccount(const std::vector& addAccount) -{ - addAccount_ = addAccount; - for(int dep1 = 0; dep1!= addAccount.size(); dep1++) { - setParameter("AddAccount."+ std::to_string(dep1), addAccount.at(dep1)); - } +std::vector ModifyImageSharePermissionRequest::getAddAccount() const { + return addAccount_; } -std::vector ModifyImageSharePermissionRequest::getRemoveAccount()const -{ - return removeAccount_; +void ModifyImageSharePermissionRequest::setAddAccount(const std::vector &addAccount) { + addAccount_ = addAccount; } -void ModifyImageSharePermissionRequest::setRemoveAccount(const std::vector& removeAccount) -{ - removeAccount_ = removeAccount; - for(int dep1 = 0; dep1!= removeAccount.size(); dep1++) { - setParameter("RemoveAccount."+ std::to_string(dep1), removeAccount.at(dep1)); - } +std::vector ModifyImageSharePermissionRequest::getRemoveAccount() const { + return removeAccount_; +} + +void ModifyImageSharePermissionRequest::setRemoveAccount(const std::vector &removeAccount) { + removeAccount_ = removeAccount; } diff --git a/ecs/src/model/ModifyInstanceAttachmentAttributesRequest.cc b/ecs/src/model/ModifyInstanceAttachmentAttributesRequest.cc index e6ad673a9..576202ee1 100644 --- a/ecs/src/model/ModifyInstanceAttachmentAttributesRequest.cc +++ b/ecs/src/model/ModifyInstanceAttachmentAttributesRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyInstanceAttachmentAttributesRequest; - -ModifyInstanceAttachmentAttributesRequest::ModifyInstanceAttachmentAttributesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyInstanceAttachmentAttributes") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyInstanceAttachmentAttributesRequest::~ModifyInstanceAttachmentAttributesRequest() -{} - -long ModifyInstanceAttachmentAttributesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyInstanceAttachmentAttributesRequest; + +ModifyInstanceAttachmentAttributesRequest::ModifyInstanceAttachmentAttributesRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyInstanceAttachmentAttributes") { + setMethod(HttpRequest::Method::Post); } -void ModifyInstanceAttachmentAttributesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyInstanceAttachmentAttributesRequest::~ModifyInstanceAttachmentAttributesRequest() {} + +long ModifyInstanceAttachmentAttributesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyInstanceAttachmentAttributesRequest::getPrivatePoolOptionsMatchCriteria()const -{ - return privatePoolOptionsMatchCriteria_; +void ModifyInstanceAttachmentAttributesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyInstanceAttachmentAttributesRequest::setPrivatePoolOptionsMatchCriteria(const std::string& privatePoolOptionsMatchCriteria) -{ - privatePoolOptionsMatchCriteria_ = privatePoolOptionsMatchCriteria; - setParameter("PrivatePoolOptionsMatchCriteria", privatePoolOptionsMatchCriteria); +std::string ModifyInstanceAttachmentAttributesRequest::getPrivatePoolOptionsMatchCriteria() const { + return privatePoolOptionsMatchCriteria_; } -std::string ModifyInstanceAttachmentAttributesRequest::getRegionId()const -{ - return regionId_; +void ModifyInstanceAttachmentAttributesRequest::setPrivatePoolOptionsMatchCriteria(const std::string &privatePoolOptionsMatchCriteria) { + privatePoolOptionsMatchCriteria_ = privatePoolOptionsMatchCriteria; + setParameter(std::string("PrivatePoolOptions.MatchCriteria"), privatePoolOptionsMatchCriteria); } -void ModifyInstanceAttachmentAttributesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyInstanceAttachmentAttributesRequest::getRegionId() const { + return regionId_; } -std::string ModifyInstanceAttachmentAttributesRequest::getPrivatePoolOptionsId()const -{ - return privatePoolOptionsId_; +void ModifyInstanceAttachmentAttributesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyInstanceAttachmentAttributesRequest::setPrivatePoolOptionsId(const std::string& privatePoolOptionsId) -{ - privatePoolOptionsId_ = privatePoolOptionsId; - setParameter("PrivatePoolOptionsId", privatePoolOptionsId); +std::string ModifyInstanceAttachmentAttributesRequest::getPrivatePoolOptionsId() const { + return privatePoolOptionsId_; } -std::string ModifyInstanceAttachmentAttributesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyInstanceAttachmentAttributesRequest::setPrivatePoolOptionsId(const std::string &privatePoolOptionsId) { + privatePoolOptionsId_ = privatePoolOptionsId; + setParameter(std::string("PrivatePoolOptions.Id"), privatePoolOptionsId); } -void ModifyInstanceAttachmentAttributesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyInstanceAttachmentAttributesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyInstanceAttachmentAttributesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyInstanceAttachmentAttributesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyInstanceAttachmentAttributesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyInstanceAttachmentAttributesRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyInstanceAttachmentAttributesRequest::getOwnerId()const -{ - return ownerId_; +void ModifyInstanceAttachmentAttributesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyInstanceAttachmentAttributesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyInstanceAttachmentAttributesRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyInstanceAttachmentAttributesRequest::getInstanceId()const -{ - return instanceId_; +void ModifyInstanceAttachmentAttributesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyInstanceAttachmentAttributesRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ModifyInstanceAttachmentAttributesRequest::getInstanceId() const { + return instanceId_; +} + +void ModifyInstanceAttachmentAttributesRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/ecs/src/model/ModifyInstanceAttributeRequest.cc b/ecs/src/model/ModifyInstanceAttributeRequest.cc index 30319c937..4c6400473 100644 --- a/ecs/src/model/ModifyInstanceAttributeRequest.cc +++ b/ecs/src/model/ModifyInstanceAttributeRequest.cc @@ -1,196 +1,161 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyInstanceAttributeRequest; - -ModifyInstanceAttributeRequest::ModifyInstanceAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyInstanceAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyInstanceAttributeRequest::~ModifyInstanceAttributeRequest() -{} - -long ModifyInstanceAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyInstanceAttributeRequest; + +ModifyInstanceAttributeRequest::ModifyInstanceAttributeRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyInstanceAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifyInstanceAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyInstanceAttributeRequest::~ModifyInstanceAttributeRequest() {} + +long ModifyInstanceAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -bool ModifyInstanceAttributeRequest::getRecyclable()const -{ - return recyclable_; +void ModifyInstanceAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyInstanceAttributeRequest::setRecyclable(bool recyclable) -{ - recyclable_ = recyclable; - setParameter("Recyclable", recyclable ? "true" : "false"); +bool ModifyInstanceAttributeRequest::getRecyclable() const { + return recyclable_; } -int ModifyInstanceAttributeRequest::getNetworkInterfaceQueueNumber()const -{ - return networkInterfaceQueueNumber_; +void ModifyInstanceAttributeRequest::setRecyclable(bool recyclable) { + recyclable_ = recyclable; + setParameter(std::string("Recyclable"), recyclable ? "true" : "false"); } -void ModifyInstanceAttributeRequest::setNetworkInterfaceQueueNumber(int networkInterfaceQueueNumber) -{ - networkInterfaceQueueNumber_ = networkInterfaceQueueNumber; - setParameter("NetworkInterfaceQueueNumber", std::to_string(networkInterfaceQueueNumber)); +int ModifyInstanceAttributeRequest::getNetworkInterfaceQueueNumber() const { + return networkInterfaceQueueNumber_; } -std::string ModifyInstanceAttributeRequest::getDescription()const -{ - return description_; +void ModifyInstanceAttributeRequest::setNetworkInterfaceQueueNumber(int networkInterfaceQueueNumber) { + networkInterfaceQueueNumber_ = networkInterfaceQueueNumber; + setParameter(std::string("NetworkInterfaceQueueNumber"), std::to_string(networkInterfaceQueueNumber)); } -void ModifyInstanceAttributeRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyInstanceAttributeRequest::getDescription() const { + return description_; } -bool ModifyInstanceAttributeRequest::getDeletionProtection()const -{ - return deletionProtection_; +void ModifyInstanceAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyInstanceAttributeRequest::setDeletionProtection(bool deletionProtection) -{ - deletionProtection_ = deletionProtection; - setParameter("DeletionProtection", deletionProtection ? "true" : "false"); +bool ModifyInstanceAttributeRequest::getDeletionProtection() const { + return deletionProtection_; } -std::string ModifyInstanceAttributeRequest::getUserData()const -{ - return userData_; +void ModifyInstanceAttributeRequest::setDeletionProtection(bool deletionProtection) { + deletionProtection_ = deletionProtection; + setParameter(std::string("DeletionProtection"), deletionProtection ? "true" : "false"); } -void ModifyInstanceAttributeRequest::setUserData(const std::string& userData) -{ - userData_ = userData; - setParameter("UserData", userData); +std::string ModifyInstanceAttributeRequest::getUserData() const { + return userData_; } -std::string ModifyInstanceAttributeRequest::getPassword()const -{ - return password_; +void ModifyInstanceAttributeRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); } -void ModifyInstanceAttributeRequest::setPassword(const std::string& password) -{ - password_ = password; - setParameter("Password", password); +std::string ModifyInstanceAttributeRequest::getPassword() const { + return password_; } -std::string ModifyInstanceAttributeRequest::getHostName()const -{ - return hostName_; +void ModifyInstanceAttributeRequest::setPassword(const std::string &password) { + password_ = password; + setParameter(std::string("Password"), password); } -void ModifyInstanceAttributeRequest::setHostName(const std::string& hostName) -{ - hostName_ = hostName; - setParameter("HostName", hostName); +std::string ModifyInstanceAttributeRequest::getHostName() const { + return hostName_; } -std::string ModifyInstanceAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyInstanceAttributeRequest::setHostName(const std::string &hostName) { + hostName_ = hostName; + setParameter(std::string("HostName"), hostName); } -void ModifyInstanceAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyInstanceAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyInstanceAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyInstanceAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyInstanceAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyInstanceAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string ModifyInstanceAttributeRequest::getCreditSpecification()const -{ - return creditSpecification_; +void ModifyInstanceAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyInstanceAttributeRequest::setCreditSpecification(const std::string& creditSpecification) -{ - creditSpecification_ = creditSpecification; - setParameter("CreditSpecification", creditSpecification); +std::string ModifyInstanceAttributeRequest::getCreditSpecification() const { + return creditSpecification_; } -long ModifyInstanceAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyInstanceAttributeRequest::setCreditSpecification(const std::string &creditSpecification) { + creditSpecification_ = creditSpecification; + setParameter(std::string("CreditSpecification"), creditSpecification); } -void ModifyInstanceAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyInstanceAttributeRequest::getOwnerId() const { + return ownerId_; } -std::vector ModifyInstanceAttributeRequest::getSecurityGroupIds()const -{ - return securityGroupIds_; +void ModifyInstanceAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyInstanceAttributeRequest::setSecurityGroupIds(const std::vector& securityGroupIds) -{ - securityGroupIds_ = securityGroupIds; - for(int dep1 = 0; dep1!= securityGroupIds.size(); dep1++) { - setParameter("SecurityGroupIds."+ std::to_string(dep1), securityGroupIds.at(dep1)); - } +std::vector ModifyInstanceAttributeRequest::getSecurityGroupIds() const { + return securityGroupIds_; } -std::string ModifyInstanceAttributeRequest::getInstanceId()const -{ - return instanceId_; +void ModifyInstanceAttributeRequest::setSecurityGroupIds(const std::vector &securityGroupIds) { + securityGroupIds_ = securityGroupIds; } -void ModifyInstanceAttributeRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ModifyInstanceAttributeRequest::getInstanceId() const { + return instanceId_; } -std::string ModifyInstanceAttributeRequest::getInstanceName()const -{ - return instanceName_; +void ModifyInstanceAttributeRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void ModifyInstanceAttributeRequest::setInstanceName(const std::string& instanceName) -{ - instanceName_ = instanceName; - setParameter("InstanceName", instanceName); +std::string ModifyInstanceAttributeRequest::getInstanceName() const { + return instanceName_; +} + +void ModifyInstanceAttributeRequest::setInstanceName(const std::string &instanceName) { + instanceName_ = instanceName; + setParameter(std::string("InstanceName"), instanceName); } diff --git a/ecs/src/model/ModifyInstanceAutoReleaseTimeRequest.cc b/ecs/src/model/ModifyInstanceAutoReleaseTimeRequest.cc index 9f1c36ed8..fd2dda229 100644 --- a/ecs/src/model/ModifyInstanceAutoReleaseTimeRequest.cc +++ b/ecs/src/model/ModifyInstanceAutoReleaseTimeRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyInstanceAutoReleaseTimeRequest; - -ModifyInstanceAutoReleaseTimeRequest::ModifyInstanceAutoReleaseTimeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyInstanceAutoReleaseTime") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyInstanceAutoReleaseTimeRequest::~ModifyInstanceAutoReleaseTimeRequest() -{} - -long ModifyInstanceAutoReleaseTimeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyInstanceAutoReleaseTimeRequest; + +ModifyInstanceAutoReleaseTimeRequest::ModifyInstanceAutoReleaseTimeRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyInstanceAutoReleaseTime") { + setMethod(HttpRequest::Method::Post); } -void ModifyInstanceAutoReleaseTimeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyInstanceAutoReleaseTimeRequest::~ModifyInstanceAutoReleaseTimeRequest() {} + +long ModifyInstanceAutoReleaseTimeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyInstanceAutoReleaseTimeRequest::getRegionId()const -{ - return regionId_; +void ModifyInstanceAutoReleaseTimeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyInstanceAutoReleaseTimeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyInstanceAutoReleaseTimeRequest::getRegionId() const { + return regionId_; } -std::string ModifyInstanceAutoReleaseTimeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyInstanceAutoReleaseTimeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyInstanceAutoReleaseTimeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyInstanceAutoReleaseTimeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyInstanceAutoReleaseTimeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyInstanceAutoReleaseTimeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyInstanceAutoReleaseTimeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyInstanceAutoReleaseTimeRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string ModifyInstanceAutoReleaseTimeRequest::getAutoReleaseTime()const -{ - return autoReleaseTime_; +void ModifyInstanceAutoReleaseTimeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyInstanceAutoReleaseTimeRequest::setAutoReleaseTime(const std::string& autoReleaseTime) -{ - autoReleaseTime_ = autoReleaseTime; - setParameter("AutoReleaseTime", autoReleaseTime); +std::string ModifyInstanceAutoReleaseTimeRequest::getAutoReleaseTime() const { + return autoReleaseTime_; } -long ModifyInstanceAutoReleaseTimeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyInstanceAutoReleaseTimeRequest::setAutoReleaseTime(const std::string &autoReleaseTime) { + autoReleaseTime_ = autoReleaseTime; + setParameter(std::string("AutoReleaseTime"), autoReleaseTime); } -void ModifyInstanceAutoReleaseTimeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyInstanceAutoReleaseTimeRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyInstanceAutoReleaseTimeRequest::getInstanceId()const -{ - return instanceId_; +void ModifyInstanceAutoReleaseTimeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyInstanceAutoReleaseTimeRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ModifyInstanceAutoReleaseTimeRequest::getInstanceId() const { + return instanceId_; +} + +void ModifyInstanceAutoReleaseTimeRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/ecs/src/model/ModifyInstanceAutoRenewAttributeRequest.cc b/ecs/src/model/ModifyInstanceAutoRenewAttributeRequest.cc index 8f191ecd1..a84c1f121 100644 --- a/ecs/src/model/ModifyInstanceAutoRenewAttributeRequest.cc +++ b/ecs/src/model/ModifyInstanceAutoRenewAttributeRequest.cc @@ -1,139 +1,117 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyInstanceAutoRenewAttributeRequest; - -ModifyInstanceAutoRenewAttributeRequest::ModifyInstanceAutoRenewAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyInstanceAutoRenewAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyInstanceAutoRenewAttributeRequest::~ModifyInstanceAutoRenewAttributeRequest() -{} - -long ModifyInstanceAutoRenewAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyInstanceAutoRenewAttributeRequest; + +ModifyInstanceAutoRenewAttributeRequest::ModifyInstanceAutoRenewAttributeRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyInstanceAutoRenewAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifyInstanceAutoRenewAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyInstanceAutoRenewAttributeRequest::~ModifyInstanceAutoRenewAttributeRequest() {} + +long ModifyInstanceAutoRenewAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int ModifyInstanceAutoRenewAttributeRequest::getDuration()const -{ - return duration_; +void ModifyInstanceAutoRenewAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyInstanceAutoRenewAttributeRequest::setDuration(int duration) -{ - duration_ = duration; - setParameter("Duration", std::to_string(duration)); +int ModifyInstanceAutoRenewAttributeRequest::getDuration() const { + return duration_; } -std::string ModifyInstanceAutoRenewAttributeRequest::getRegionId()const -{ - return regionId_; +void ModifyInstanceAutoRenewAttributeRequest::setDuration(int duration) { + duration_ = duration; + setParameter(std::string("Duration"), std::to_string(duration)); } -void ModifyInstanceAutoRenewAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyInstanceAutoRenewAttributeRequest::getRegionId() const { + return regionId_; } -std::string ModifyInstanceAutoRenewAttributeRequest::getRenewalStatus()const -{ - return renewalStatus_; +void ModifyInstanceAutoRenewAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyInstanceAutoRenewAttributeRequest::setRenewalStatus(const std::string& renewalStatus) -{ - renewalStatus_ = renewalStatus; - setParameter("RenewalStatus", renewalStatus); +std::string ModifyInstanceAutoRenewAttributeRequest::getRenewalStatus() const { + return renewalStatus_; } -std::string ModifyInstanceAutoRenewAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyInstanceAutoRenewAttributeRequest::setRenewalStatus(const std::string &renewalStatus) { + renewalStatus_ = renewalStatus; + setParameter(std::string("RenewalStatus"), renewalStatus); } -void ModifyInstanceAutoRenewAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyInstanceAutoRenewAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyInstanceAutoRenewAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyInstanceAutoRenewAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyInstanceAutoRenewAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyInstanceAutoRenewAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyInstanceAutoRenewAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyInstanceAutoRenewAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyInstanceAutoRenewAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyInstanceAutoRenewAttributeRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyInstanceAutoRenewAttributeRequest::getPeriodUnit()const -{ - return periodUnit_; +void ModifyInstanceAutoRenewAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyInstanceAutoRenewAttributeRequest::setPeriodUnit(const std::string& periodUnit) -{ - periodUnit_ = periodUnit; - setParameter("PeriodUnit", periodUnit); +std::string ModifyInstanceAutoRenewAttributeRequest::getPeriodUnit() const { + return periodUnit_; } -std::string ModifyInstanceAutoRenewAttributeRequest::getInstanceId()const -{ - return instanceId_; +void ModifyInstanceAutoRenewAttributeRequest::setPeriodUnit(const std::string &periodUnit) { + periodUnit_ = periodUnit; + setParameter(std::string("PeriodUnit"), periodUnit); } -void ModifyInstanceAutoRenewAttributeRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ModifyInstanceAutoRenewAttributeRequest::getInstanceId() const { + return instanceId_; } -bool ModifyInstanceAutoRenewAttributeRequest::getAutoRenew()const -{ - return autoRenew_; +void ModifyInstanceAutoRenewAttributeRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void ModifyInstanceAutoRenewAttributeRequest::setAutoRenew(bool autoRenew) -{ - autoRenew_ = autoRenew; - setParameter("AutoRenew", autoRenew ? "true" : "false"); +bool ModifyInstanceAutoRenewAttributeRequest::getAutoRenew() const { + return autoRenew_; +} + +void ModifyInstanceAutoRenewAttributeRequest::setAutoRenew(bool autoRenew) { + autoRenew_ = autoRenew; + setParameter(std::string("AutoRenew"), autoRenew ? "true" : "false"); } diff --git a/ecs/src/model/ModifyInstanceChargeTypeRequest.cc b/ecs/src/model/ModifyInstanceChargeTypeRequest.cc index 0ce056433..80a0d4186 100644 --- a/ecs/src/model/ModifyInstanceChargeTypeRequest.cc +++ b/ecs/src/model/ModifyInstanceChargeTypeRequest.cc @@ -1,183 +1,153 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyInstanceChargeTypeRequest; - -ModifyInstanceChargeTypeRequest::ModifyInstanceChargeTypeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyInstanceChargeType") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyInstanceChargeTypeRequest::~ModifyInstanceChargeTypeRequest() -{} - -long ModifyInstanceChargeTypeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyInstanceChargeTypeRequest; + +ModifyInstanceChargeTypeRequest::ModifyInstanceChargeTypeRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyInstanceChargeType") { + setMethod(HttpRequest::Method::Post); } -void ModifyInstanceChargeTypeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyInstanceChargeTypeRequest::~ModifyInstanceChargeTypeRequest() {} + +long ModifyInstanceChargeTypeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyInstanceChargeTypeRequest::getClientToken()const -{ - return clientToken_; +void ModifyInstanceChargeTypeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyInstanceChargeTypeRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ModifyInstanceChargeTypeRequest::getClientToken() const { + return clientToken_; } -std::string ModifyInstanceChargeTypeRequest::getRegionId()const -{ - return regionId_; +void ModifyInstanceChargeTypeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ModifyInstanceChargeTypeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyInstanceChargeTypeRequest::getRegionId() const { + return regionId_; } -bool ModifyInstanceChargeTypeRequest::getIsDetailFee()const -{ - return isDetailFee_; +void ModifyInstanceChargeTypeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyInstanceChargeTypeRequest::setIsDetailFee(bool isDetailFee) -{ - isDetailFee_ = isDetailFee; - setParameter("IsDetailFee", isDetailFee ? "true" : "false"); +bool ModifyInstanceChargeTypeRequest::getIsDetailFee() const { + return isDetailFee_; } -std::string ModifyInstanceChargeTypeRequest::getInstanceChargeType()const -{ - return instanceChargeType_; +void ModifyInstanceChargeTypeRequest::setIsDetailFee(bool isDetailFee) { + isDetailFee_ = isDetailFee; + setParameter(std::string("IsDetailFee"), isDetailFee ? "true" : "false"); } -void ModifyInstanceChargeTypeRequest::setInstanceChargeType(const std::string& instanceChargeType) -{ - instanceChargeType_ = instanceChargeType; - setParameter("InstanceChargeType", instanceChargeType); +std::string ModifyInstanceChargeTypeRequest::getInstanceChargeType() const { + return instanceChargeType_; } -int ModifyInstanceChargeTypeRequest::getPeriod()const -{ - return period_; +void ModifyInstanceChargeTypeRequest::setInstanceChargeType(const std::string &instanceChargeType) { + instanceChargeType_ = instanceChargeType; + setParameter(std::string("InstanceChargeType"), instanceChargeType); } -void ModifyInstanceChargeTypeRequest::setPeriod(int period) -{ - period_ = period; - setParameter("Period", std::to_string(period)); +int ModifyInstanceChargeTypeRequest::getPeriod() const { + return period_; } -bool ModifyInstanceChargeTypeRequest::getDryRun()const -{ - return dryRun_; +void ModifyInstanceChargeTypeRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); } -void ModifyInstanceChargeTypeRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool ModifyInstanceChargeTypeRequest::getDryRun() const { + return dryRun_; } -bool ModifyInstanceChargeTypeRequest::getAutoPay()const -{ - return autoPay_; +void ModifyInstanceChargeTypeRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void ModifyInstanceChargeTypeRequest::setAutoPay(bool autoPay) -{ - autoPay_ = autoPay; - setParameter("AutoPay", autoPay ? "true" : "false"); +bool ModifyInstanceChargeTypeRequest::getAutoPay() const { + return autoPay_; } -bool ModifyInstanceChargeTypeRequest::getIncludeDataDisks()const -{ - return includeDataDisks_; +void ModifyInstanceChargeTypeRequest::setAutoPay(bool autoPay) { + autoPay_ = autoPay; + setParameter(std::string("AutoPay"), autoPay ? "true" : "false"); } -void ModifyInstanceChargeTypeRequest::setIncludeDataDisks(bool includeDataDisks) -{ - includeDataDisks_ = includeDataDisks; - setParameter("IncludeDataDisks", includeDataDisks ? "true" : "false"); +bool ModifyInstanceChargeTypeRequest::getIncludeDataDisks() const { + return includeDataDisks_; } -std::string ModifyInstanceChargeTypeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyInstanceChargeTypeRequest::setIncludeDataDisks(bool includeDataDisks) { + includeDataDisks_ = includeDataDisks; + setParameter(std::string("IncludeDataDisks"), includeDataDisks ? "true" : "false"); } -void ModifyInstanceChargeTypeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyInstanceChargeTypeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyInstanceChargeTypeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyInstanceChargeTypeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyInstanceChargeTypeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyInstanceChargeTypeRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyInstanceChargeTypeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyInstanceChargeTypeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyInstanceChargeTypeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyInstanceChargeTypeRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyInstanceChargeTypeRequest::getPeriodUnit()const -{ - return periodUnit_; +void ModifyInstanceChargeTypeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyInstanceChargeTypeRequest::setPeriodUnit(const std::string& periodUnit) -{ - periodUnit_ = periodUnit; - setParameter("PeriodUnit", periodUnit); +std::string ModifyInstanceChargeTypeRequest::getPeriodUnit() const { + return periodUnit_; } -std::string ModifyInstanceChargeTypeRequest::getInstanceIds()const -{ - return instanceIds_; +void ModifyInstanceChargeTypeRequest::setPeriodUnit(const std::string &periodUnit) { + periodUnit_ = periodUnit; + setParameter(std::string("PeriodUnit"), periodUnit); } -void ModifyInstanceChargeTypeRequest::setInstanceIds(const std::string& instanceIds) -{ - instanceIds_ = instanceIds; - setParameter("InstanceIds", instanceIds); +std::string ModifyInstanceChargeTypeRequest::getInstanceIds() const { + return instanceIds_; +} + +void ModifyInstanceChargeTypeRequest::setInstanceIds(const std::string &instanceIds) { + instanceIds_ = instanceIds; + setParameter(std::string("InstanceIds"), instanceIds); } diff --git a/ecs/src/model/ModifyInstanceDeploymentRequest.cc b/ecs/src/model/ModifyInstanceDeploymentRequest.cc index f03f070ec..03392a597 100644 --- a/ecs/src/model/ModifyInstanceDeploymentRequest.cc +++ b/ecs/src/model/ModifyInstanceDeploymentRequest.cc @@ -1,194 +1,162 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyInstanceDeploymentRequest; - -ModifyInstanceDeploymentRequest::ModifyInstanceDeploymentRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyInstanceDeployment") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyInstanceDeploymentRequest::~ModifyInstanceDeploymentRequest() -{} - -long ModifyInstanceDeploymentRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyInstanceDeploymentRequest; + +ModifyInstanceDeploymentRequest::ModifyInstanceDeploymentRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyInstanceDeployment") { + setMethod(HttpRequest::Method::Post); } -void ModifyInstanceDeploymentRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyInstanceDeploymentRequest::~ModifyInstanceDeploymentRequest() {} + +long ModifyInstanceDeploymentRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyInstanceDeploymentRequest::getRegionId()const -{ - return regionId_; +void ModifyInstanceDeploymentRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyInstanceDeploymentRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyInstanceDeploymentRequest::getRegionId() const { + return regionId_; } -int ModifyInstanceDeploymentRequest::getDeploymentSetGroupNo()const -{ - return deploymentSetGroupNo_; +void ModifyInstanceDeploymentRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyInstanceDeploymentRequest::setDeploymentSetGroupNo(int deploymentSetGroupNo) -{ - deploymentSetGroupNo_ = deploymentSetGroupNo; - setParameter("DeploymentSetGroupNo", std::to_string(deploymentSetGroupNo)); +int ModifyInstanceDeploymentRequest::getDeploymentSetGroupNo() const { + return deploymentSetGroupNo_; } -std::string ModifyInstanceDeploymentRequest::getDedicatedHostClusterId()const -{ - return dedicatedHostClusterId_; +void ModifyInstanceDeploymentRequest::setDeploymentSetGroupNo(int deploymentSetGroupNo) { + deploymentSetGroupNo_ = deploymentSetGroupNo; + setParameter(std::string("DeploymentSetGroupNo"), std::to_string(deploymentSetGroupNo)); } -void ModifyInstanceDeploymentRequest::setDedicatedHostClusterId(const std::string& dedicatedHostClusterId) -{ - dedicatedHostClusterId_ = dedicatedHostClusterId; - setParameter("DedicatedHostClusterId", dedicatedHostClusterId); +std::string ModifyInstanceDeploymentRequest::getDedicatedHostClusterId() const { + return dedicatedHostClusterId_; } -std::string ModifyInstanceDeploymentRequest::getInstanceType()const -{ - return instanceType_; +void ModifyInstanceDeploymentRequest::setDedicatedHostClusterId(const std::string &dedicatedHostClusterId) { + dedicatedHostClusterId_ = dedicatedHostClusterId; + setParameter(std::string("DedicatedHostClusterId"), dedicatedHostClusterId); } -void ModifyInstanceDeploymentRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +std::string ModifyInstanceDeploymentRequest::getInstanceType() const { + return instanceType_; } -std::string ModifyInstanceDeploymentRequest::getDeploymentSetId()const -{ - return deploymentSetId_; +void ModifyInstanceDeploymentRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } -void ModifyInstanceDeploymentRequest::setDeploymentSetId(const std::string& deploymentSetId) -{ - deploymentSetId_ = deploymentSetId; - setParameter("DeploymentSetId", deploymentSetId); +std::string ModifyInstanceDeploymentRequest::getDeploymentSetId() const { + return deploymentSetId_; } -std::string ModifyInstanceDeploymentRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyInstanceDeploymentRequest::setDeploymentSetId(const std::string &deploymentSetId) { + deploymentSetId_ = deploymentSetId; + setParameter(std::string("DeploymentSetId"), deploymentSetId); } -void ModifyInstanceDeploymentRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyInstanceDeploymentRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyInstanceDeploymentRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyInstanceDeploymentRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyInstanceDeploymentRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyInstanceDeploymentRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string ModifyInstanceDeploymentRequest::getTenancy()const -{ - return tenancy_; +void ModifyInstanceDeploymentRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyInstanceDeploymentRequest::setTenancy(const std::string& tenancy) -{ - tenancy_ = tenancy; - setParameter("Tenancy", tenancy); +std::string ModifyInstanceDeploymentRequest::getTenancy() const { + return tenancy_; } -std::string ModifyInstanceDeploymentRequest::getDedicatedHostId()const -{ - return dedicatedHostId_; +void ModifyInstanceDeploymentRequest::setTenancy(const std::string &tenancy) { + tenancy_ = tenancy; + setParameter(std::string("Tenancy"), tenancy); } -void ModifyInstanceDeploymentRequest::setDedicatedHostId(const std::string& dedicatedHostId) -{ - dedicatedHostId_ = dedicatedHostId; - setParameter("DedicatedHostId", dedicatedHostId); +std::string ModifyInstanceDeploymentRequest::getDedicatedHostId() const { + return dedicatedHostId_; } -long ModifyInstanceDeploymentRequest::getOwnerId()const -{ - return ownerId_; +void ModifyInstanceDeploymentRequest::setDedicatedHostId(const std::string &dedicatedHostId) { + dedicatedHostId_ = dedicatedHostId; + setParameter(std::string("DedicatedHostId"), dedicatedHostId); } -void ModifyInstanceDeploymentRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyInstanceDeploymentRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyInstanceDeploymentRequest::getInstanceId()const -{ - return instanceId_; +void ModifyInstanceDeploymentRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyInstanceDeploymentRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ModifyInstanceDeploymentRequest::getInstanceId() const { + return instanceId_; } -bool ModifyInstanceDeploymentRequest::getForce()const -{ - return force_; +void ModifyInstanceDeploymentRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void ModifyInstanceDeploymentRequest::setForce(bool force) -{ - force_ = force; - setParameter("Force", force ? "true" : "false"); +bool ModifyInstanceDeploymentRequest::getForce() const { + return force_; } -std::string ModifyInstanceDeploymentRequest::getMigrationType()const -{ - return migrationType_; +void ModifyInstanceDeploymentRequest::setForce(bool force) { + force_ = force; + setParameter(std::string("Force"), force ? "true" : "false"); } -void ModifyInstanceDeploymentRequest::setMigrationType(const std::string& migrationType) -{ - migrationType_ = migrationType; - setParameter("MigrationType", migrationType); +std::string ModifyInstanceDeploymentRequest::getMigrationType() const { + return migrationType_; } -std::string ModifyInstanceDeploymentRequest::getAffinity()const -{ - return affinity_; +void ModifyInstanceDeploymentRequest::setMigrationType(const std::string &migrationType) { + migrationType_ = migrationType; + setParameter(std::string("MigrationType"), migrationType); } -void ModifyInstanceDeploymentRequest::setAffinity(const std::string& affinity) -{ - affinity_ = affinity; - setParameter("Affinity", affinity); +std::string ModifyInstanceDeploymentRequest::getAffinity() const { + return affinity_; +} + +void ModifyInstanceDeploymentRequest::setAffinity(const std::string &affinity) { + affinity_ = affinity; + setParameter(std::string("Affinity"), affinity); } diff --git a/ecs/src/model/ModifyInstanceMaintenanceAttributesRequest.cc b/ecs/src/model/ModifyInstanceMaintenanceAttributesRequest.cc index 9b67974c0..e7344e1af 100644 --- a/ecs/src/model/ModifyInstanceMaintenanceAttributesRequest.cc +++ b/ecs/src/model/ModifyInstanceMaintenanceAttributesRequest.cc @@ -1,135 +1,112 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyInstanceMaintenanceAttributesRequest; - -ModifyInstanceMaintenanceAttributesRequest::ModifyInstanceMaintenanceAttributesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyInstanceMaintenanceAttributes") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyInstanceMaintenanceAttributesRequest::~ModifyInstanceMaintenanceAttributesRequest() -{} - -long ModifyInstanceMaintenanceAttributesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyInstanceMaintenanceAttributesRequest; + +ModifyInstanceMaintenanceAttributesRequest::ModifyInstanceMaintenanceAttributesRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyInstanceMaintenanceAttributes") { + setMethod(HttpRequest::Method::Post); } -void ModifyInstanceMaintenanceAttributesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyInstanceMaintenanceAttributesRequest::~ModifyInstanceMaintenanceAttributesRequest() {} + +long ModifyInstanceMaintenanceAttributesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::vector ModifyInstanceMaintenanceAttributesRequest::getMaintenanceWindow()const -{ - return maintenanceWindow_; +void ModifyInstanceMaintenanceAttributesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyInstanceMaintenanceAttributesRequest::setMaintenanceWindow(const std::vector& maintenanceWindow) -{ - maintenanceWindow_ = maintenanceWindow; - for(int dep1 = 0; dep1!= maintenanceWindow.size(); dep1++) { - auto maintenanceWindowObj = maintenanceWindow.at(dep1); - std::string maintenanceWindowObjStr = "MaintenanceWindow." + std::to_string(dep1 + 1); - setParameter(maintenanceWindowObjStr + ".StartTime", maintenanceWindowObj.startTime); - setParameter(maintenanceWindowObjStr + ".EndTime", maintenanceWindowObj.endTime); - } +std::vector ModifyInstanceMaintenanceAttributesRequest::getMaintenanceWindow() const { + return maintenanceWindow_; } -std::string ModifyInstanceMaintenanceAttributesRequest::getRegionId()const -{ - return regionId_; +void ModifyInstanceMaintenanceAttributesRequest::setMaintenanceWindow(const std::vector &maintenanceWindow) { + maintenanceWindow_ = maintenanceWindow; + for(int dep1 = 0; dep1 != maintenanceWindow.size(); dep1++) { + auto maintenanceWindowObj = maintenanceWindow.at(dep1); + std::string maintenanceWindowObjStr = std::string("MaintenanceWindow") + "." + std::to_string(dep1 + 1); + setParameter(maintenanceWindowObjStr + ".EndTime", maintenanceWindowObj.endTime); + setParameter(maintenanceWindowObjStr + ".StartTime", maintenanceWindowObj.startTime); + } } -void ModifyInstanceMaintenanceAttributesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyInstanceMaintenanceAttributesRequest::getRegionId() const { + return regionId_; } -std::string ModifyInstanceMaintenanceAttributesRequest::getActionOnMaintenance()const -{ - return actionOnMaintenance_; +void ModifyInstanceMaintenanceAttributesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyInstanceMaintenanceAttributesRequest::setActionOnMaintenance(const std::string& actionOnMaintenance) -{ - actionOnMaintenance_ = actionOnMaintenance; - setParameter("ActionOnMaintenance", actionOnMaintenance); +std::string ModifyInstanceMaintenanceAttributesRequest::getActionOnMaintenance() const { + return actionOnMaintenance_; } -std::string ModifyInstanceMaintenanceAttributesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyInstanceMaintenanceAttributesRequest::setActionOnMaintenance(const std::string &actionOnMaintenance) { + actionOnMaintenance_ = actionOnMaintenance; + setParameter(std::string("ActionOnMaintenance"), actionOnMaintenance); } -void ModifyInstanceMaintenanceAttributesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyInstanceMaintenanceAttributesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyInstanceMaintenanceAttributesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyInstanceMaintenanceAttributesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyInstanceMaintenanceAttributesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyInstanceMaintenanceAttributesRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyInstanceMaintenanceAttributesRequest::getOwnerId()const -{ - return ownerId_; +void ModifyInstanceMaintenanceAttributesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyInstanceMaintenanceAttributesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyInstanceMaintenanceAttributesRequest::getOwnerId() const { + return ownerId_; } -std::vector ModifyInstanceMaintenanceAttributesRequest::getInstanceId()const -{ - return instanceId_; +void ModifyInstanceMaintenanceAttributesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyInstanceMaintenanceAttributesRequest::setInstanceId(const std::vector& instanceId) -{ - instanceId_ = instanceId; - for(int dep1 = 0; dep1!= instanceId.size(); dep1++) { - setParameter("InstanceId."+ std::to_string(dep1), instanceId.at(dep1)); - } +bool ModifyInstanceMaintenanceAttributesRequest::getNotifyOnMaintenance() const { + return notifyOnMaintenance_; } -bool ModifyInstanceMaintenanceAttributesRequest::getNotifyOnMaintenance()const -{ - return notifyOnMaintenance_; +void ModifyInstanceMaintenanceAttributesRequest::setNotifyOnMaintenance(bool notifyOnMaintenance) { + notifyOnMaintenance_ = notifyOnMaintenance; + setParameter(std::string("NotifyOnMaintenance"), notifyOnMaintenance ? "true" : "false"); } -void ModifyInstanceMaintenanceAttributesRequest::setNotifyOnMaintenance(bool notifyOnMaintenance) -{ - notifyOnMaintenance_ = notifyOnMaintenance; - setParameter("NotifyOnMaintenance", notifyOnMaintenance ? "true" : "false"); +std::vector ModifyInstanceMaintenanceAttributesRequest::getInstanceId() const { + return instanceId_; +} + +void ModifyInstanceMaintenanceAttributesRequest::setInstanceId(const std::vector &instanceId) { + instanceId_ = instanceId; } diff --git a/ecs/src/model/ModifyInstanceMetadataOptionsRequest.cc b/ecs/src/model/ModifyInstanceMetadataOptionsRequest.cc index 7fb8bfaf2..4e02e4137 100644 --- a/ecs/src/model/ModifyInstanceMetadataOptionsRequest.cc +++ b/ecs/src/model/ModifyInstanceMetadataOptionsRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyInstanceMetadataOptionsRequest; - -ModifyInstanceMetadataOptionsRequest::ModifyInstanceMetadataOptionsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyInstanceMetadataOptions") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyInstanceMetadataOptionsRequest::~ModifyInstanceMetadataOptionsRequest() -{} - -long ModifyInstanceMetadataOptionsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyInstanceMetadataOptionsRequest; + +ModifyInstanceMetadataOptionsRequest::ModifyInstanceMetadataOptionsRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyInstanceMetadataOptions") { + setMethod(HttpRequest::Method::Post); } -void ModifyInstanceMetadataOptionsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyInstanceMetadataOptionsRequest::~ModifyInstanceMetadataOptionsRequest() {} + +long ModifyInstanceMetadataOptionsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -int ModifyInstanceMetadataOptionsRequest::getHttpPutResponseHopLimit()const -{ - return httpPutResponseHopLimit_; +void ModifyInstanceMetadataOptionsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyInstanceMetadataOptionsRequest::setHttpPutResponseHopLimit(int httpPutResponseHopLimit) -{ - httpPutResponseHopLimit_ = httpPutResponseHopLimit; - setParameter("HttpPutResponseHopLimit", std::to_string(httpPutResponseHopLimit)); +int ModifyInstanceMetadataOptionsRequest::getHttpPutResponseHopLimit() const { + return httpPutResponseHopLimit_; } -std::string ModifyInstanceMetadataOptionsRequest::getRegionId()const -{ - return regionId_; +void ModifyInstanceMetadataOptionsRequest::setHttpPutResponseHopLimit(int httpPutResponseHopLimit) { + httpPutResponseHopLimit_ = httpPutResponseHopLimit; + setParameter(std::string("HttpPutResponseHopLimit"), std::to_string(httpPutResponseHopLimit)); } -void ModifyInstanceMetadataOptionsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyInstanceMetadataOptionsRequest::getRegionId() const { + return regionId_; } -std::string ModifyInstanceMetadataOptionsRequest::getHttpEndpoint()const -{ - return httpEndpoint_; +void ModifyInstanceMetadataOptionsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyInstanceMetadataOptionsRequest::setHttpEndpoint(const std::string& httpEndpoint) -{ - httpEndpoint_ = httpEndpoint; - setParameter("HttpEndpoint", httpEndpoint); +std::string ModifyInstanceMetadataOptionsRequest::getHttpEndpoint() const { + return httpEndpoint_; } -std::string ModifyInstanceMetadataOptionsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyInstanceMetadataOptionsRequest::setHttpEndpoint(const std::string &httpEndpoint) { + httpEndpoint_ = httpEndpoint; + setParameter(std::string("HttpEndpoint"), httpEndpoint); } -void ModifyInstanceMetadataOptionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyInstanceMetadataOptionsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long ModifyInstanceMetadataOptionsRequest::getOwnerId()const -{ - return ownerId_; +void ModifyInstanceMetadataOptionsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyInstanceMetadataOptionsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyInstanceMetadataOptionsRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyInstanceMetadataOptionsRequest::getInstanceId()const -{ - return instanceId_; +void ModifyInstanceMetadataOptionsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyInstanceMetadataOptionsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ModifyInstanceMetadataOptionsRequest::getInstanceId() const { + return instanceId_; } -std::string ModifyInstanceMetadataOptionsRequest::getHttpTokens()const -{ - return httpTokens_; +void ModifyInstanceMetadataOptionsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void ModifyInstanceMetadataOptionsRequest::setHttpTokens(const std::string& httpTokens) -{ - httpTokens_ = httpTokens; - setParameter("HttpTokens", httpTokens); +std::string ModifyInstanceMetadataOptionsRequest::getHttpTokens() const { + return httpTokens_; +} + +void ModifyInstanceMetadataOptionsRequest::setHttpTokens(const std::string &httpTokens) { + httpTokens_ = httpTokens; + setParameter(std::string("HttpTokens"), httpTokens); } diff --git a/ecs/src/model/ModifyInstanceNetworkSpecRequest.cc b/ecs/src/model/ModifyInstanceNetworkSpecRequest.cc index 6186f203e..7a4312ef8 100644 --- a/ecs/src/model/ModifyInstanceNetworkSpecRequest.cc +++ b/ecs/src/model/ModifyInstanceNetworkSpecRequest.cc @@ -1,183 +1,153 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyInstanceNetworkSpecRequest; - -ModifyInstanceNetworkSpecRequest::ModifyInstanceNetworkSpecRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyInstanceNetworkSpec") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyInstanceNetworkSpecRequest::~ModifyInstanceNetworkSpecRequest() -{} - -long ModifyInstanceNetworkSpecRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyInstanceNetworkSpecRequest; + +ModifyInstanceNetworkSpecRequest::ModifyInstanceNetworkSpecRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyInstanceNetworkSpec") { + setMethod(HttpRequest::Method::Post); } -void ModifyInstanceNetworkSpecRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyInstanceNetworkSpecRequest::~ModifyInstanceNetworkSpecRequest() {} + +long ModifyInstanceNetworkSpecRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyInstanceNetworkSpecRequest::getClientToken()const -{ - return clientToken_; +void ModifyInstanceNetworkSpecRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyInstanceNetworkSpecRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ModifyInstanceNetworkSpecRequest::getClientToken() const { + return clientToken_; } -std::string ModifyInstanceNetworkSpecRequest::getISP()const -{ - return iSP_; +void ModifyInstanceNetworkSpecRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ModifyInstanceNetworkSpecRequest::setISP(const std::string& iSP) -{ - iSP_ = iSP; - setParameter("ISP", iSP); +std::string ModifyInstanceNetworkSpecRequest::getISP() const { + return iSP_; } -int ModifyInstanceNetworkSpecRequest::getInternetMaxBandwidthOut()const -{ - return internetMaxBandwidthOut_; +void ModifyInstanceNetworkSpecRequest::setISP(const std::string &iSP) { + iSP_ = iSP; + setParameter(std::string("ISP"), iSP); } -void ModifyInstanceNetworkSpecRequest::setInternetMaxBandwidthOut(int internetMaxBandwidthOut) -{ - internetMaxBandwidthOut_ = internetMaxBandwidthOut; - setParameter("InternetMaxBandwidthOut", std::to_string(internetMaxBandwidthOut)); +int ModifyInstanceNetworkSpecRequest::getInternetMaxBandwidthOut() const { + return internetMaxBandwidthOut_; } -std::string ModifyInstanceNetworkSpecRequest::getStartTime()const -{ - return startTime_; +void ModifyInstanceNetworkSpecRequest::setInternetMaxBandwidthOut(int internetMaxBandwidthOut) { + internetMaxBandwidthOut_ = internetMaxBandwidthOut; + setParameter(std::string("InternetMaxBandwidthOut"), std::to_string(internetMaxBandwidthOut)); } -void ModifyInstanceNetworkSpecRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string ModifyInstanceNetworkSpecRequest::getStartTime() const { + return startTime_; } -bool ModifyInstanceNetworkSpecRequest::getAutoPay()const -{ - return autoPay_; +void ModifyInstanceNetworkSpecRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void ModifyInstanceNetworkSpecRequest::setAutoPay(bool autoPay) -{ - autoPay_ = autoPay; - setParameter("AutoPay", autoPay ? "true" : "false"); +bool ModifyInstanceNetworkSpecRequest::getAutoPay() const { + return autoPay_; } -std::string ModifyInstanceNetworkSpecRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyInstanceNetworkSpecRequest::setAutoPay(bool autoPay) { + autoPay_ = autoPay; + setParameter(std::string("AutoPay"), autoPay ? "true" : "false"); } -void ModifyInstanceNetworkSpecRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyInstanceNetworkSpecRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyInstanceNetworkSpecRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyInstanceNetworkSpecRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyInstanceNetworkSpecRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyInstanceNetworkSpecRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string ModifyInstanceNetworkSpecRequest::getEndTime()const -{ - return endTime_; +void ModifyInstanceNetworkSpecRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyInstanceNetworkSpecRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +std::string ModifyInstanceNetworkSpecRequest::getEndTime() const { + return endTime_; } -long ModifyInstanceNetworkSpecRequest::getOwnerId()const -{ - return ownerId_; +void ModifyInstanceNetworkSpecRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void ModifyInstanceNetworkSpecRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyInstanceNetworkSpecRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyInstanceNetworkSpecRequest::getInstanceId()const -{ - return instanceId_; +void ModifyInstanceNetworkSpecRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyInstanceNetworkSpecRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ModifyInstanceNetworkSpecRequest::getInstanceId() const { + return instanceId_; } -std::string ModifyInstanceNetworkSpecRequest::getNetworkChargeType()const -{ - return networkChargeType_; +void ModifyInstanceNetworkSpecRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void ModifyInstanceNetworkSpecRequest::setNetworkChargeType(const std::string& networkChargeType) -{ - networkChargeType_ = networkChargeType; - setParameter("NetworkChargeType", networkChargeType); +std::string ModifyInstanceNetworkSpecRequest::getNetworkChargeType() const { + return networkChargeType_; } -int ModifyInstanceNetworkSpecRequest::getInternetMaxBandwidthIn()const -{ - return internetMaxBandwidthIn_; +void ModifyInstanceNetworkSpecRequest::setNetworkChargeType(const std::string &networkChargeType) { + networkChargeType_ = networkChargeType; + setParameter(std::string("NetworkChargeType"), networkChargeType); } -void ModifyInstanceNetworkSpecRequest::setInternetMaxBandwidthIn(int internetMaxBandwidthIn) -{ - internetMaxBandwidthIn_ = internetMaxBandwidthIn; - setParameter("InternetMaxBandwidthIn", std::to_string(internetMaxBandwidthIn)); +int ModifyInstanceNetworkSpecRequest::getInternetMaxBandwidthIn() const { + return internetMaxBandwidthIn_; } -bool ModifyInstanceNetworkSpecRequest::getAllocatePublicIp()const -{ - return allocatePublicIp_; +void ModifyInstanceNetworkSpecRequest::setInternetMaxBandwidthIn(int internetMaxBandwidthIn) { + internetMaxBandwidthIn_ = internetMaxBandwidthIn; + setParameter(std::string("InternetMaxBandwidthIn"), std::to_string(internetMaxBandwidthIn)); } -void ModifyInstanceNetworkSpecRequest::setAllocatePublicIp(bool allocatePublicIp) -{ - allocatePublicIp_ = allocatePublicIp; - setParameter("AllocatePublicIp", allocatePublicIp ? "true" : "false"); +bool ModifyInstanceNetworkSpecRequest::getAllocatePublicIp() const { + return allocatePublicIp_; +} + +void ModifyInstanceNetworkSpecRequest::setAllocatePublicIp(bool allocatePublicIp) { + allocatePublicIp_ = allocatePublicIp; + setParameter(std::string("AllocatePublicIp"), allocatePublicIp ? "true" : "false"); } diff --git a/ecs/src/model/ModifyInstanceSpecRequest.cc b/ecs/src/model/ModifyInstanceSpecRequest.cc index 7e7266819..043b594eb 100644 --- a/ecs/src/model/ModifyInstanceSpecRequest.cc +++ b/ecs/src/model/ModifyInstanceSpecRequest.cc @@ -1,194 +1,162 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyInstanceSpecRequest; - -ModifyInstanceSpecRequest::ModifyInstanceSpecRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyInstanceSpec") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyInstanceSpecRequest::~ModifyInstanceSpecRequest() -{} - -long ModifyInstanceSpecRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyInstanceSpecRequest; + +ModifyInstanceSpecRequest::ModifyInstanceSpecRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyInstanceSpec") { + setMethod(HttpRequest::Method::Post); } -void ModifyInstanceSpecRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyInstanceSpecRequest::~ModifyInstanceSpecRequest() {} + +long ModifyInstanceSpecRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyInstanceSpecRequest::getClientToken()const -{ - return clientToken_; +void ModifyInstanceSpecRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyInstanceSpecRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ModifyInstanceSpecRequest::getClientToken() const { + return clientToken_; } -bool ModifyInstanceSpecRequest::getAllowMigrateAcrossZone()const -{ - return allowMigrateAcrossZone_; +void ModifyInstanceSpecRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ModifyInstanceSpecRequest::setAllowMigrateAcrossZone(bool allowMigrateAcrossZone) -{ - allowMigrateAcrossZone_ = allowMigrateAcrossZone; - setParameter("AllowMigrateAcrossZone", allowMigrateAcrossZone ? "true" : "false"); +bool ModifyInstanceSpecRequest::getAllowMigrateAcrossZone() const { + return allowMigrateAcrossZone_; } -int ModifyInstanceSpecRequest::getInternetMaxBandwidthOut()const -{ - return internetMaxBandwidthOut_; +void ModifyInstanceSpecRequest::setAllowMigrateAcrossZone(bool allowMigrateAcrossZone) { + allowMigrateAcrossZone_ = allowMigrateAcrossZone; + setParameter(std::string("AllowMigrateAcrossZone"), allowMigrateAcrossZone ? "true" : "false"); } -void ModifyInstanceSpecRequest::setInternetMaxBandwidthOut(int internetMaxBandwidthOut) -{ - internetMaxBandwidthOut_ = internetMaxBandwidthOut; - setParameter("InternetMaxBandwidthOut", std::to_string(internetMaxBandwidthOut)); +int ModifyInstanceSpecRequest::getInternetMaxBandwidthOut() const { + return internetMaxBandwidthOut_; } -std::string ModifyInstanceSpecRequest::getSystemDiskCategory()const -{ - return systemDiskCategory_; +void ModifyInstanceSpecRequest::setInternetMaxBandwidthOut(int internetMaxBandwidthOut) { + internetMaxBandwidthOut_ = internetMaxBandwidthOut; + setParameter(std::string("InternetMaxBandwidthOut"), std::to_string(internetMaxBandwidthOut)); } -void ModifyInstanceSpecRequest::setSystemDiskCategory(const std::string& systemDiskCategory) -{ - systemDiskCategory_ = systemDiskCategory; - setParameter("SystemDiskCategory", systemDiskCategory); +std::string ModifyInstanceSpecRequest::getSystemDiskCategory() const { + return systemDiskCategory_; } -std::string ModifyInstanceSpecRequest::getInstanceType()const -{ - return instanceType_; +void ModifyInstanceSpecRequest::setSystemDiskCategory(const std::string &systemDiskCategory) { + systemDiskCategory_ = systemDiskCategory; + setParameter(std::string("SystemDisk.Category"), systemDiskCategory); } -void ModifyInstanceSpecRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +std::string ModifyInstanceSpecRequest::getInstanceType() const { + return instanceType_; } -std::string ModifyInstanceSpecRequest::getTemporaryEndTime()const -{ - return temporaryEndTime_; +void ModifyInstanceSpecRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } -void ModifyInstanceSpecRequest::setTemporaryEndTime(const std::string& temporaryEndTime) -{ - temporaryEndTime_ = temporaryEndTime; - setParameter("TemporaryEndTime", temporaryEndTime); +std::string ModifyInstanceSpecRequest::getTemporaryEndTime() const { + return temporaryEndTime_; } -std::string ModifyInstanceSpecRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyInstanceSpecRequest::setTemporaryEndTime(const std::string &temporaryEndTime) { + temporaryEndTime_ = temporaryEndTime; + setParameter(std::string("Temporary.EndTime"), temporaryEndTime); } -void ModifyInstanceSpecRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyInstanceSpecRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyInstanceSpecRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyInstanceSpecRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyInstanceSpecRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyInstanceSpecRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyInstanceSpecRequest::getOwnerId()const -{ - return ownerId_; +void ModifyInstanceSpecRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyInstanceSpecRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyInstanceSpecRequest::getOwnerId() const { + return ownerId_; } -int ModifyInstanceSpecRequest::getTemporaryInternetMaxBandwidthOut()const -{ - return temporaryInternetMaxBandwidthOut_; +void ModifyInstanceSpecRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyInstanceSpecRequest::setTemporaryInternetMaxBandwidthOut(int temporaryInternetMaxBandwidthOut) -{ - temporaryInternetMaxBandwidthOut_ = temporaryInternetMaxBandwidthOut; - setParameter("TemporaryInternetMaxBandwidthOut", std::to_string(temporaryInternetMaxBandwidthOut)); +int ModifyInstanceSpecRequest::getTemporaryInternetMaxBandwidthOut() const { + return temporaryInternetMaxBandwidthOut_; } -std::string ModifyInstanceSpecRequest::getTemporaryStartTime()const -{ - return temporaryStartTime_; +void ModifyInstanceSpecRequest::setTemporaryInternetMaxBandwidthOut(int temporaryInternetMaxBandwidthOut) { + temporaryInternetMaxBandwidthOut_ = temporaryInternetMaxBandwidthOut; + setParameter(std::string("Temporary.InternetMaxBandwidthOut"), std::to_string(temporaryInternetMaxBandwidthOut)); } -void ModifyInstanceSpecRequest::setTemporaryStartTime(const std::string& temporaryStartTime) -{ - temporaryStartTime_ = temporaryStartTime; - setParameter("TemporaryStartTime", temporaryStartTime); +std::string ModifyInstanceSpecRequest::getTemporaryStartTime() const { + return temporaryStartTime_; } -bool ModifyInstanceSpecRequest::getAsync()const -{ - return async_; +void ModifyInstanceSpecRequest::setTemporaryStartTime(const std::string &temporaryStartTime) { + temporaryStartTime_ = temporaryStartTime; + setParameter(std::string("Temporary.StartTime"), temporaryStartTime); } -void ModifyInstanceSpecRequest::setAsync(bool async) -{ - async_ = async; - setParameter("Async", async ? "true" : "false"); +bool ModifyInstanceSpecRequest::getAsync() const { + return async_; } -std::string ModifyInstanceSpecRequest::getInstanceId()const -{ - return instanceId_; +void ModifyInstanceSpecRequest::setAsync(bool async) { + async_ = async; + setParameter(std::string("Async"), async ? "true" : "false"); } -void ModifyInstanceSpecRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ModifyInstanceSpecRequest::getInstanceId() const { + return instanceId_; } -int ModifyInstanceSpecRequest::getInternetMaxBandwidthIn()const -{ - return internetMaxBandwidthIn_; +void ModifyInstanceSpecRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void ModifyInstanceSpecRequest::setInternetMaxBandwidthIn(int internetMaxBandwidthIn) -{ - internetMaxBandwidthIn_ = internetMaxBandwidthIn; - setParameter("InternetMaxBandwidthIn", std::to_string(internetMaxBandwidthIn)); +int ModifyInstanceSpecRequest::getInternetMaxBandwidthIn() const { + return internetMaxBandwidthIn_; +} + +void ModifyInstanceSpecRequest::setInternetMaxBandwidthIn(int internetMaxBandwidthIn) { + internetMaxBandwidthIn_ = internetMaxBandwidthIn; + setParameter(std::string("InternetMaxBandwidthIn"), std::to_string(internetMaxBandwidthIn)); } diff --git a/ecs/src/model/ModifyInstanceVncPasswdRequest.cc b/ecs/src/model/ModifyInstanceVncPasswdRequest.cc index 3fc16e367..29c196c2f 100644 --- a/ecs/src/model/ModifyInstanceVncPasswdRequest.cc +++ b/ecs/src/model/ModifyInstanceVncPasswdRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyInstanceVncPasswdRequest; - -ModifyInstanceVncPasswdRequest::ModifyInstanceVncPasswdRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyInstanceVncPasswd") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyInstanceVncPasswdRequest::~ModifyInstanceVncPasswdRequest() -{} - -long ModifyInstanceVncPasswdRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyInstanceVncPasswdRequest; + +ModifyInstanceVncPasswdRequest::ModifyInstanceVncPasswdRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyInstanceVncPasswd") { + setMethod(HttpRequest::Method::Post); } -void ModifyInstanceVncPasswdRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyInstanceVncPasswdRequest::~ModifyInstanceVncPasswdRequest() {} + +long ModifyInstanceVncPasswdRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyInstanceVncPasswdRequest::getRegionId()const -{ - return regionId_; +void ModifyInstanceVncPasswdRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyInstanceVncPasswdRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyInstanceVncPasswdRequest::getRegionId() const { + return regionId_; } -std::string ModifyInstanceVncPasswdRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyInstanceVncPasswdRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyInstanceVncPasswdRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyInstanceVncPasswdRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyInstanceVncPasswdRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyInstanceVncPasswdRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyInstanceVncPasswdRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyInstanceVncPasswdRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyInstanceVncPasswdRequest::getOwnerId()const -{ - return ownerId_; +void ModifyInstanceVncPasswdRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyInstanceVncPasswdRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyInstanceVncPasswdRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyInstanceVncPasswdRequest::getInstanceId()const -{ - return instanceId_; +void ModifyInstanceVncPasswdRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyInstanceVncPasswdRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ModifyInstanceVncPasswdRequest::getInstanceId() const { + return instanceId_; } -std::string ModifyInstanceVncPasswdRequest::getVncPassword()const -{ - return vncPassword_; +void ModifyInstanceVncPasswdRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void ModifyInstanceVncPasswdRequest::setVncPassword(const std::string& vncPassword) -{ - vncPassword_ = vncPassword; - setParameter("VncPassword", vncPassword); +std::string ModifyInstanceVncPasswdRequest::getVncPassword() const { + return vncPassword_; +} + +void ModifyInstanceVncPasswdRequest::setVncPassword(const std::string &vncPassword) { + vncPassword_ = vncPassword; + setParameter(std::string("VncPassword"), vncPassword); } diff --git a/ecs/src/model/ModifyInstanceVpcAttributeRequest.cc b/ecs/src/model/ModifyInstanceVpcAttributeRequest.cc index da34ba2ba..be1ee11bd 100644 --- a/ecs/src/model/ModifyInstanceVpcAttributeRequest.cc +++ b/ecs/src/model/ModifyInstanceVpcAttributeRequest.cc @@ -1,130 +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 - -using AlibabaCloud::Ecs::Model::ModifyInstanceVpcAttributeRequest; - -ModifyInstanceVpcAttributeRequest::ModifyInstanceVpcAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyInstanceVpcAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyInstanceVpcAttributeRequest::~ModifyInstanceVpcAttributeRequest() -{} - -long ModifyInstanceVpcAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyInstanceVpcAttributeRequest; + +ModifyInstanceVpcAttributeRequest::ModifyInstanceVpcAttributeRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyInstanceVpcAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifyInstanceVpcAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyInstanceVpcAttributeRequest::~ModifyInstanceVpcAttributeRequest() {} + +long ModifyInstanceVpcAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::vector ModifyInstanceVpcAttributeRequest::getSecurityGroupId()const -{ - return securityGroupId_; +void ModifyInstanceVpcAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyInstanceVpcAttributeRequest::setSecurityGroupId(const std::vector& securityGroupId) -{ - securityGroupId_ = securityGroupId; - for(int dep1 = 0; dep1!= securityGroupId.size(); dep1++) { - setParameter("SecurityGroupId."+ std::to_string(dep1), securityGroupId.at(dep1)); - } +std::vector ModifyInstanceVpcAttributeRequest::getSecurityGroupId() const { + return securityGroupId_; } -std::string ModifyInstanceVpcAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyInstanceVpcAttributeRequest::setSecurityGroupId(const std::vector &securityGroupId) { + securityGroupId_ = securityGroupId; } -void ModifyInstanceVpcAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyInstanceVpcAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyInstanceVpcAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyInstanceVpcAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyInstanceVpcAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyInstanceVpcAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyInstanceVpcAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyInstanceVpcAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyInstanceVpcAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyInstanceVpcAttributeRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyInstanceVpcAttributeRequest::getVSwitchId()const -{ - return vSwitchId_; +void ModifyInstanceVpcAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyInstanceVpcAttributeRequest::setVSwitchId(const std::string& vSwitchId) -{ - vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); +std::string ModifyInstanceVpcAttributeRequest::getVSwitchId() const { + return vSwitchId_; } -std::string ModifyInstanceVpcAttributeRequest::getPrivateIpAddress()const -{ - return privateIpAddress_; +void ModifyInstanceVpcAttributeRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); } -void ModifyInstanceVpcAttributeRequest::setPrivateIpAddress(const std::string& privateIpAddress) -{ - privateIpAddress_ = privateIpAddress; - setParameter("PrivateIpAddress", privateIpAddress); +std::string ModifyInstanceVpcAttributeRequest::getPrivateIpAddress() const { + return privateIpAddress_; } -std::string ModifyInstanceVpcAttributeRequest::getInstanceId()const -{ - return instanceId_; +void ModifyInstanceVpcAttributeRequest::setPrivateIpAddress(const std::string &privateIpAddress) { + privateIpAddress_ = privateIpAddress; + setParameter(std::string("PrivateIpAddress"), privateIpAddress); } -void ModifyInstanceVpcAttributeRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ModifyInstanceVpcAttributeRequest::getInstanceId() const { + return instanceId_; } -std::string ModifyInstanceVpcAttributeRequest::getVpcId()const -{ - return vpcId_; +void ModifyInstanceVpcAttributeRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void ModifyInstanceVpcAttributeRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +std::string ModifyInstanceVpcAttributeRequest::getVpcId() const { + return vpcId_; +} + +void ModifyInstanceVpcAttributeRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); } diff --git a/ecs/src/model/ModifyLaunchTemplateDefaultVersionRequest.cc b/ecs/src/model/ModifyLaunchTemplateDefaultVersionRequest.cc index 989ec8139..b9c8ed0b7 100644 --- a/ecs/src/model/ModifyLaunchTemplateDefaultVersionRequest.cc +++ b/ecs/src/model/ModifyLaunchTemplateDefaultVersionRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyLaunchTemplateDefaultVersionRequest; - -ModifyLaunchTemplateDefaultVersionRequest::ModifyLaunchTemplateDefaultVersionRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyLaunchTemplateDefaultVersion") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyLaunchTemplateDefaultVersionRequest::~ModifyLaunchTemplateDefaultVersionRequest() -{} - -std::string ModifyLaunchTemplateDefaultVersionRequest::getLaunchTemplateName()const -{ - return launchTemplateName_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyLaunchTemplateDefaultVersionRequest; + +ModifyLaunchTemplateDefaultVersionRequest::ModifyLaunchTemplateDefaultVersionRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyLaunchTemplateDefaultVersion") { + setMethod(HttpRequest::Method::Post); } -void ModifyLaunchTemplateDefaultVersionRequest::setLaunchTemplateName(const std::string& launchTemplateName) -{ - launchTemplateName_ = launchTemplateName; - setParameter("LaunchTemplateName", launchTemplateName); +ModifyLaunchTemplateDefaultVersionRequest::~ModifyLaunchTemplateDefaultVersionRequest() {} + +std::string ModifyLaunchTemplateDefaultVersionRequest::getLaunchTemplateName() const { + return launchTemplateName_; } -long ModifyLaunchTemplateDefaultVersionRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void ModifyLaunchTemplateDefaultVersionRequest::setLaunchTemplateName(const std::string &launchTemplateName) { + launchTemplateName_ = launchTemplateName; + setParameter(std::string("LaunchTemplateName"), launchTemplateName); } -void ModifyLaunchTemplateDefaultVersionRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long ModifyLaunchTemplateDefaultVersionRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyLaunchTemplateDefaultVersionRequest::getRegionId()const -{ - return regionId_; +void ModifyLaunchTemplateDefaultVersionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyLaunchTemplateDefaultVersionRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyLaunchTemplateDefaultVersionRequest::getRegionId() const { + return regionId_; } -std::string ModifyLaunchTemplateDefaultVersionRequest::getLaunchTemplateId()const -{ - return launchTemplateId_; +void ModifyLaunchTemplateDefaultVersionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyLaunchTemplateDefaultVersionRequest::setLaunchTemplateId(const std::string& launchTemplateId) -{ - launchTemplateId_ = launchTemplateId; - setParameter("LaunchTemplateId", launchTemplateId); +std::string ModifyLaunchTemplateDefaultVersionRequest::getLaunchTemplateId() const { + return launchTemplateId_; } -std::string ModifyLaunchTemplateDefaultVersionRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyLaunchTemplateDefaultVersionRequest::setLaunchTemplateId(const std::string &launchTemplateId) { + launchTemplateId_ = launchTemplateId; + setParameter(std::string("LaunchTemplateId"), launchTemplateId); } -void ModifyLaunchTemplateDefaultVersionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyLaunchTemplateDefaultVersionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyLaunchTemplateDefaultVersionRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyLaunchTemplateDefaultVersionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyLaunchTemplateDefaultVersionRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyLaunchTemplateDefaultVersionRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyLaunchTemplateDefaultVersionRequest::getOwnerId()const -{ - return ownerId_; +void ModifyLaunchTemplateDefaultVersionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyLaunchTemplateDefaultVersionRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyLaunchTemplateDefaultVersionRequest::getOwnerId() const { + return ownerId_; } -long ModifyLaunchTemplateDefaultVersionRequest::getDefaultVersionNumber()const -{ - return defaultVersionNumber_; +void ModifyLaunchTemplateDefaultVersionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyLaunchTemplateDefaultVersionRequest::setDefaultVersionNumber(long defaultVersionNumber) -{ - defaultVersionNumber_ = defaultVersionNumber; - setParameter("DefaultVersionNumber", std::to_string(defaultVersionNumber)); +long ModifyLaunchTemplateDefaultVersionRequest::getDefaultVersionNumber() const { + return defaultVersionNumber_; +} + +void ModifyLaunchTemplateDefaultVersionRequest::setDefaultVersionNumber(long defaultVersionNumber) { + defaultVersionNumber_ = defaultVersionNumber; + setParameter(std::string("DefaultVersionNumber"), std::to_string(defaultVersionNumber)); } diff --git a/ecs/src/model/ModifyManagedInstanceRequest.cc b/ecs/src/model/ModifyManagedInstanceRequest.cc index 3e39abc37..12d0126db 100644 --- a/ecs/src/model/ModifyManagedInstanceRequest.cc +++ b/ecs/src/model/ModifyManagedInstanceRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyManagedInstanceRequest; - -ModifyManagedInstanceRequest::ModifyManagedInstanceRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyManagedInstance") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyManagedInstanceRequest::~ModifyManagedInstanceRequest() -{} - -long ModifyManagedInstanceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyManagedInstanceRequest; + +ModifyManagedInstanceRequest::ModifyManagedInstanceRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyManagedInstance") { + setMethod(HttpRequest::Method::Post); } -void ModifyManagedInstanceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyManagedInstanceRequest::~ModifyManagedInstanceRequest() {} + +long ModifyManagedInstanceRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyManagedInstanceRequest::getRegionId()const -{ - return regionId_; +void ModifyManagedInstanceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyManagedInstanceRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyManagedInstanceRequest::getRegionId() const { + return regionId_; } -std::string ModifyManagedInstanceRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyManagedInstanceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyManagedInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyManagedInstanceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyManagedInstanceRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyManagedInstanceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyManagedInstanceRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyManagedInstanceRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyManagedInstanceRequest::getOwnerId()const -{ - return ownerId_; +void ModifyManagedInstanceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyManagedInstanceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyManagedInstanceRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyManagedInstanceRequest::getInstanceId()const -{ - return instanceId_; +void ModifyManagedInstanceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyManagedInstanceRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ModifyManagedInstanceRequest::getInstanceId() const { + return instanceId_; } -std::string ModifyManagedInstanceRequest::getInstanceName()const -{ - return instanceName_; +void ModifyManagedInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void ModifyManagedInstanceRequest::setInstanceName(const std::string& instanceName) -{ - instanceName_ = instanceName; - setParameter("InstanceName", instanceName); +std::string ModifyManagedInstanceRequest::getInstanceName() const { + return instanceName_; +} + +void ModifyManagedInstanceRequest::setInstanceName(const std::string &instanceName) { + instanceName_ = instanceName; + setParameter(std::string("InstanceName"), instanceName); } diff --git a/ecs/src/model/ModifyManagedInstanceResult.cc b/ecs/src/model/ModifyManagedInstanceResult.cc index be982904d..8078b911c 100644 --- a/ecs/src/model/ModifyManagedInstanceResult.cc +++ b/ecs/src/model/ModifyManagedInstanceResult.cc @@ -40,10 +40,10 @@ void ModifyManagedInstanceResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto instanceNode = value["Instance"]; - if(!instanceNode["InstanceId"].isNull()) - instance_.instanceId = instanceNode["InstanceId"].asString(); if(!instanceNode["InstanceName"].isNull()) instance_.instanceName = instanceNode["InstanceName"].asString(); + if(!instanceNode["InstanceId"].isNull()) + instance_.instanceId = instanceNode["InstanceId"].asString(); } diff --git a/ecs/src/model/ModifyNetworkInterfaceAttributeRequest.cc b/ecs/src/model/ModifyNetworkInterfaceAttributeRequest.cc index aa7d03cd4..2f8e8e8a3 100644 --- a/ecs/src/model/ModifyNetworkInterfaceAttributeRequest.cc +++ b/ecs/src/model/ModifyNetworkInterfaceAttributeRequest.cc @@ -1,141 +1,116 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyNetworkInterfaceAttributeRequest; - -ModifyNetworkInterfaceAttributeRequest::ModifyNetworkInterfaceAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyNetworkInterfaceAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyNetworkInterfaceAttributeRequest::~ModifyNetworkInterfaceAttributeRequest() -{} - -int ModifyNetworkInterfaceAttributeRequest::getQueueNumber()const -{ - return queueNumber_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyNetworkInterfaceAttributeRequest; + +ModifyNetworkInterfaceAttributeRequest::ModifyNetworkInterfaceAttributeRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyNetworkInterfaceAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifyNetworkInterfaceAttributeRequest::setQueueNumber(int queueNumber) -{ - queueNumber_ = queueNumber; - setParameter("QueueNumber", std::to_string(queueNumber)); +ModifyNetworkInterfaceAttributeRequest::~ModifyNetworkInterfaceAttributeRequest() {} + +int ModifyNetworkInterfaceAttributeRequest::getQueueNumber() const { + return queueNumber_; } -long ModifyNetworkInterfaceAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void ModifyNetworkInterfaceAttributeRequest::setQueueNumber(int queueNumber) { + queueNumber_ = queueNumber; + setParameter(std::string("QueueNumber"), std::to_string(queueNumber)); } -void ModifyNetworkInterfaceAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long ModifyNetworkInterfaceAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::vector ModifyNetworkInterfaceAttributeRequest::getSecurityGroupId()const -{ - return securityGroupId_; +void ModifyNetworkInterfaceAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyNetworkInterfaceAttributeRequest::setSecurityGroupId(const std::vector& securityGroupId) -{ - securityGroupId_ = securityGroupId; - for(int dep1 = 0; dep1!= securityGroupId.size(); dep1++) { - setParameter("SecurityGroupId."+ std::to_string(dep1), securityGroupId.at(dep1)); - } +std::vector ModifyNetworkInterfaceAttributeRequest::getSecurityGroupId() const { + return securityGroupId_; } -std::string ModifyNetworkInterfaceAttributeRequest::getDescription()const -{ - return description_; +void ModifyNetworkInterfaceAttributeRequest::setSecurityGroupId(const std::vector &securityGroupId) { + securityGroupId_ = securityGroupId; } -void ModifyNetworkInterfaceAttributeRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyNetworkInterfaceAttributeRequest::getDescription() const { + return description_; } -std::string ModifyNetworkInterfaceAttributeRequest::getRegionId()const -{ - return regionId_; +void ModifyNetworkInterfaceAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyNetworkInterfaceAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyNetworkInterfaceAttributeRequest::getRegionId() const { + return regionId_; } -std::string ModifyNetworkInterfaceAttributeRequest::getNetworkInterfaceName()const -{ - return networkInterfaceName_; +void ModifyNetworkInterfaceAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyNetworkInterfaceAttributeRequest::setNetworkInterfaceName(const std::string& networkInterfaceName) -{ - networkInterfaceName_ = networkInterfaceName; - setParameter("NetworkInterfaceName", networkInterfaceName); +std::string ModifyNetworkInterfaceAttributeRequest::getNetworkInterfaceName() const { + return networkInterfaceName_; } -std::string ModifyNetworkInterfaceAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyNetworkInterfaceAttributeRequest::setNetworkInterfaceName(const std::string &networkInterfaceName) { + networkInterfaceName_ = networkInterfaceName; + setParameter(std::string("NetworkInterfaceName"), networkInterfaceName); } -void ModifyNetworkInterfaceAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyNetworkInterfaceAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyNetworkInterfaceAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyNetworkInterfaceAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyNetworkInterfaceAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyNetworkInterfaceAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyNetworkInterfaceAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyNetworkInterfaceAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyNetworkInterfaceAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyNetworkInterfaceAttributeRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyNetworkInterfaceAttributeRequest::getNetworkInterfaceId()const -{ - return networkInterfaceId_; +void ModifyNetworkInterfaceAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyNetworkInterfaceAttributeRequest::setNetworkInterfaceId(const std::string& networkInterfaceId) -{ - networkInterfaceId_ = networkInterfaceId; - setParameter("NetworkInterfaceId", networkInterfaceId); +std::string ModifyNetworkInterfaceAttributeRequest::getNetworkInterfaceId() const { + return networkInterfaceId_; +} + +void ModifyNetworkInterfaceAttributeRequest::setNetworkInterfaceId(const std::string &networkInterfaceId) { + networkInterfaceId_ = networkInterfaceId; + setParameter(std::string("NetworkInterfaceId"), networkInterfaceId); } diff --git a/ecs/src/model/ModifyPhysicalConnectionAttributeRequest.cc b/ecs/src/model/ModifyPhysicalConnectionAttributeRequest.cc index 0276020ee..0287ff098 100644 --- a/ecs/src/model/ModifyPhysicalConnectionAttributeRequest.cc +++ b/ecs/src/model/ModifyPhysicalConnectionAttributeRequest.cc @@ -1,205 +1,171 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyPhysicalConnectionAttributeRequest; - -ModifyPhysicalConnectionAttributeRequest::ModifyPhysicalConnectionAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyPhysicalConnectionAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyPhysicalConnectionAttributeRequest::~ModifyPhysicalConnectionAttributeRequest() -{} - -long ModifyPhysicalConnectionAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyPhysicalConnectionAttributeRequest; + +ModifyPhysicalConnectionAttributeRequest::ModifyPhysicalConnectionAttributeRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyPhysicalConnectionAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifyPhysicalConnectionAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyPhysicalConnectionAttributeRequest::~ModifyPhysicalConnectionAttributeRequest() {} + +long ModifyPhysicalConnectionAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyPhysicalConnectionAttributeRequest::getPortType()const -{ - return portType_; +void ModifyPhysicalConnectionAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyPhysicalConnectionAttributeRequest::setPortType(const std::string& portType) -{ - portType_ = portType; - setParameter("PortType", portType); +std::string ModifyPhysicalConnectionAttributeRequest::getPortType() const { + return portType_; } -std::string ModifyPhysicalConnectionAttributeRequest::getCircuitCode()const -{ - return circuitCode_; +void ModifyPhysicalConnectionAttributeRequest::setPortType(const std::string &portType) { + portType_ = portType; + setParameter(std::string("PortType"), portType); } -void ModifyPhysicalConnectionAttributeRequest::setCircuitCode(const std::string& circuitCode) -{ - circuitCode_ = circuitCode; - setParameter("CircuitCode", circuitCode); +std::string ModifyPhysicalConnectionAttributeRequest::getCircuitCode() const { + return circuitCode_; } -std::string ModifyPhysicalConnectionAttributeRequest::getClientToken()const -{ - return clientToken_; +void ModifyPhysicalConnectionAttributeRequest::setCircuitCode(const std::string &circuitCode) { + circuitCode_ = circuitCode; + setParameter(std::string("CircuitCode"), circuitCode); } -void ModifyPhysicalConnectionAttributeRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ModifyPhysicalConnectionAttributeRequest::getClientToken() const { + return clientToken_; } -std::string ModifyPhysicalConnectionAttributeRequest::getDescription()const -{ - return description_; +void ModifyPhysicalConnectionAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ModifyPhysicalConnectionAttributeRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyPhysicalConnectionAttributeRequest::getDescription() const { + return description_; } -std::string ModifyPhysicalConnectionAttributeRequest::getRegionId()const -{ - return regionId_; +void ModifyPhysicalConnectionAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyPhysicalConnectionAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyPhysicalConnectionAttributeRequest::getRegionId() const { + return regionId_; } -std::string ModifyPhysicalConnectionAttributeRequest::getUserCidr()const -{ - return userCidr_; +void ModifyPhysicalConnectionAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyPhysicalConnectionAttributeRequest::setUserCidr(const std::string& userCidr) -{ - userCidr_ = userCidr; - setParameter("UserCidr", userCidr); +std::string ModifyPhysicalConnectionAttributeRequest::getUserCidr() const { + return userCidr_; } -std::string ModifyPhysicalConnectionAttributeRequest::getRedundantPhysicalConnectionId()const -{ - return redundantPhysicalConnectionId_; +void ModifyPhysicalConnectionAttributeRequest::setUserCidr(const std::string &userCidr) { + userCidr_ = userCidr; + setParameter(std::string("UserCidr"), userCidr); } -void ModifyPhysicalConnectionAttributeRequest::setRedundantPhysicalConnectionId(const std::string& redundantPhysicalConnectionId) -{ - redundantPhysicalConnectionId_ = redundantPhysicalConnectionId; - setParameter("RedundantPhysicalConnectionId", redundantPhysicalConnectionId); +std::string ModifyPhysicalConnectionAttributeRequest::getRedundantPhysicalConnectionId() const { + return redundantPhysicalConnectionId_; } -std::string ModifyPhysicalConnectionAttributeRequest::getPeerLocation()const -{ - return peerLocation_; +void ModifyPhysicalConnectionAttributeRequest::setRedundantPhysicalConnectionId(const std::string &redundantPhysicalConnectionId) { + redundantPhysicalConnectionId_ = redundantPhysicalConnectionId; + setParameter(std::string("RedundantPhysicalConnectionId"), redundantPhysicalConnectionId); } -void ModifyPhysicalConnectionAttributeRequest::setPeerLocation(const std::string& peerLocation) -{ - peerLocation_ = peerLocation; - setParameter("PeerLocation", peerLocation); +std::string ModifyPhysicalConnectionAttributeRequest::getPeerLocation() const { + return peerLocation_; } -int ModifyPhysicalConnectionAttributeRequest::getBandwidth()const -{ - return bandwidth_; +void ModifyPhysicalConnectionAttributeRequest::setPeerLocation(const std::string &peerLocation) { + peerLocation_ = peerLocation; + setParameter(std::string("PeerLocation"), peerLocation); } -void ModifyPhysicalConnectionAttributeRequest::setBandwidth(int bandwidth) -{ - bandwidth_ = bandwidth; - setParameter("Bandwidth", std::to_string(bandwidth)); +int ModifyPhysicalConnectionAttributeRequest::getBandwidth() const { + return bandwidth_; } -std::string ModifyPhysicalConnectionAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyPhysicalConnectionAttributeRequest::setBandwidth(int bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("bandwidth"), std::to_string(bandwidth)); } -void ModifyPhysicalConnectionAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyPhysicalConnectionAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyPhysicalConnectionAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyPhysicalConnectionAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyPhysicalConnectionAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyPhysicalConnectionAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyPhysicalConnectionAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyPhysicalConnectionAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyPhysicalConnectionAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyPhysicalConnectionAttributeRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyPhysicalConnectionAttributeRequest::getLineOperator()const -{ - return lineOperator_; +void ModifyPhysicalConnectionAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyPhysicalConnectionAttributeRequest::setLineOperator(const std::string& lineOperator) -{ - lineOperator_ = lineOperator; - setParameter("LineOperator", lineOperator); +std::string ModifyPhysicalConnectionAttributeRequest::getLineOperator() const { + return lineOperator_; } -std::string ModifyPhysicalConnectionAttributeRequest::getPhysicalConnectionId()const -{ - return physicalConnectionId_; +void ModifyPhysicalConnectionAttributeRequest::setLineOperator(const std::string &lineOperator) { + lineOperator_ = lineOperator; + setParameter(std::string("LineOperator"), lineOperator); } -void ModifyPhysicalConnectionAttributeRequest::setPhysicalConnectionId(const std::string& physicalConnectionId) -{ - physicalConnectionId_ = physicalConnectionId; - setParameter("PhysicalConnectionId", physicalConnectionId); +std::string ModifyPhysicalConnectionAttributeRequest::getPhysicalConnectionId() const { + return physicalConnectionId_; } -std::string ModifyPhysicalConnectionAttributeRequest::getName()const -{ - return name_; +void ModifyPhysicalConnectionAttributeRequest::setPhysicalConnectionId(const std::string &physicalConnectionId) { + physicalConnectionId_ = physicalConnectionId; + setParameter(std::string("PhysicalConnectionId"), physicalConnectionId); } -void ModifyPhysicalConnectionAttributeRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string ModifyPhysicalConnectionAttributeRequest::getName() const { + return name_; +} + +void ModifyPhysicalConnectionAttributeRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/ecs/src/model/ModifyPrefixListRequest.cc b/ecs/src/model/ModifyPrefixListRequest.cc index b8f67d22b..113bffa0a 100644 --- a/ecs/src/model/ModifyPrefixListRequest.cc +++ b/ecs/src/model/ModifyPrefixListRequest.cc @@ -1,148 +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::Ecs::Model::ModifyPrefixListRequest; - -ModifyPrefixListRequest::ModifyPrefixListRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyPrefixList") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyPrefixListRequest::~ModifyPrefixListRequest() -{} - -long ModifyPrefixListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyPrefixListRequest; + +ModifyPrefixListRequest::ModifyPrefixListRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyPrefixList") { + setMethod(HttpRequest::Method::Post); } -void ModifyPrefixListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyPrefixListRequest::~ModifyPrefixListRequest() {} + +long ModifyPrefixListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyPrefixListRequest::getDescription()const -{ - return description_; +void ModifyPrefixListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyPrefixListRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyPrefixListRequest::getDescription() const { + return description_; } -std::string ModifyPrefixListRequest::getRegionId()const -{ - return regionId_; +void ModifyPrefixListRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyPrefixListRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyPrefixListRequest::getRegionId() const { + return regionId_; } -std::string ModifyPrefixListRequest::getPrefixListId()const -{ - return prefixListId_; +void ModifyPrefixListRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyPrefixListRequest::setPrefixListId(const std::string& prefixListId) -{ - prefixListId_ = prefixListId; - setParameter("PrefixListId", prefixListId); +std::string ModifyPrefixListRequest::getPrefixListId() const { + return prefixListId_; } -std::vector ModifyPrefixListRequest::getAddEntry()const -{ - return addEntry_; +void ModifyPrefixListRequest::setPrefixListId(const std::string &prefixListId) { + prefixListId_ = prefixListId; + setParameter(std::string("PrefixListId"), prefixListId); } -void ModifyPrefixListRequest::setAddEntry(const std::vector& addEntry) -{ - addEntry_ = addEntry; - for(int dep1 = 0; dep1!= addEntry.size(); dep1++) { - auto addEntryObj = addEntry.at(dep1); - std::string addEntryObjStr = "AddEntry." + std::to_string(dep1 + 1); - setParameter(addEntryObjStr + ".Cidr", addEntryObj.cidr); - setParameter(addEntryObjStr + ".Description", addEntryObj.description); - } +std::vector ModifyPrefixListRequest::getAddEntry() const { + return addEntry_; } -std::string ModifyPrefixListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyPrefixListRequest::setAddEntry(const std::vector &addEntry) { + addEntry_ = addEntry; + for(int dep1 = 0; dep1 != addEntry.size(); dep1++) { + auto addEntryObj = addEntry.at(dep1); + std::string addEntryObjStr = std::string("AddEntry") + "." + std::to_string(dep1 + 1); + setParameter(addEntryObjStr + ".Description", addEntryObj.description); + setParameter(addEntryObjStr + ".Cidr", addEntryObj.cidr); + } } -void ModifyPrefixListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyPrefixListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyPrefixListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyPrefixListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyPrefixListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyPrefixListRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyPrefixListRequest::getOwnerId()const -{ - return ownerId_; +void ModifyPrefixListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyPrefixListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyPrefixListRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyPrefixListRequest::getPrefixListName()const -{ - return prefixListName_; +void ModifyPrefixListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyPrefixListRequest::setPrefixListName(const std::string& prefixListName) -{ - prefixListName_ = prefixListName; - setParameter("PrefixListName", prefixListName); +std::string ModifyPrefixListRequest::getPrefixListName() const { + return prefixListName_; } -std::vector ModifyPrefixListRequest::getRemoveEntry()const -{ - return removeEntry_; +void ModifyPrefixListRequest::setPrefixListName(const std::string &prefixListName) { + prefixListName_ = prefixListName; + setParameter(std::string("PrefixListName"), prefixListName); } -void ModifyPrefixListRequest::setRemoveEntry(const std::vector& removeEntry) -{ - removeEntry_ = removeEntry; - for(int dep1 = 0; dep1!= removeEntry.size(); dep1++) { - auto removeEntryObj = removeEntry.at(dep1); - std::string removeEntryObjStr = "RemoveEntry." + std::to_string(dep1 + 1); - setParameter(removeEntryObjStr + ".Cidr", removeEntryObj.cidr); - } +std::vector ModifyPrefixListRequest::getRemoveEntry() const { + return removeEntry_; +} + +void ModifyPrefixListRequest::setRemoveEntry(const std::vector &removeEntry) { + removeEntry_ = removeEntry; + for(int dep1 = 0; dep1 != removeEntry.size(); dep1++) { + auto removeEntryObj = removeEntry.at(dep1); + std::string removeEntryObjStr = std::string("RemoveEntry") + "." + std::to_string(dep1 + 1); + setParameter(removeEntryObjStr + ".Cidr", removeEntryObj.cidr); + } } diff --git a/ecs/src/model/ModifyPrepayInstanceSpecRequest.cc b/ecs/src/model/ModifyPrepayInstanceSpecRequest.cc index b4cf14187..6e75cd919 100644 --- a/ecs/src/model/ModifyPrepayInstanceSpecRequest.cc +++ b/ecs/src/model/ModifyPrepayInstanceSpecRequest.cc @@ -1,194 +1,162 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyPrepayInstanceSpecRequest; - -ModifyPrepayInstanceSpecRequest::ModifyPrepayInstanceSpecRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyPrepayInstanceSpec") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyPrepayInstanceSpecRequest::~ModifyPrepayInstanceSpecRequest() -{} - -long ModifyPrepayInstanceSpecRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyPrepayInstanceSpecRequest; + +ModifyPrepayInstanceSpecRequest::ModifyPrepayInstanceSpecRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyPrepayInstanceSpec") { + setMethod(HttpRequest::Method::Post); } -void ModifyPrepayInstanceSpecRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyPrepayInstanceSpecRequest::~ModifyPrepayInstanceSpecRequest() {} + +long ModifyPrepayInstanceSpecRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyPrepayInstanceSpecRequest::getClientToken()const -{ - return clientToken_; +void ModifyPrepayInstanceSpecRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyPrepayInstanceSpecRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ModifyPrepayInstanceSpecRequest::getClientToken() const { + return clientToken_; } -std::string ModifyPrepayInstanceSpecRequest::getOperatorType()const -{ - return operatorType_; +void ModifyPrepayInstanceSpecRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ModifyPrepayInstanceSpecRequest::setOperatorType(const std::string& operatorType) -{ - operatorType_ = operatorType; - setParameter("OperatorType", operatorType); +std::string ModifyPrepayInstanceSpecRequest::getOperatorType() const { + return operatorType_; } -std::string ModifyPrepayInstanceSpecRequest::getSystemDiskCategory()const -{ - return systemDiskCategory_; +void ModifyPrepayInstanceSpecRequest::setOperatorType(const std::string &operatorType) { + operatorType_ = operatorType; + setParameter(std::string("OperatorType"), operatorType); } -void ModifyPrepayInstanceSpecRequest::setSystemDiskCategory(const std::string& systemDiskCategory) -{ - systemDiskCategory_ = systemDiskCategory; - setParameter("SystemDiskCategory", systemDiskCategory); +std::string ModifyPrepayInstanceSpecRequest::getSystemDiskCategory() const { + return systemDiskCategory_; } -std::string ModifyPrepayInstanceSpecRequest::getRebootTime()const -{ - return rebootTime_; +void ModifyPrepayInstanceSpecRequest::setSystemDiskCategory(const std::string &systemDiskCategory) { + systemDiskCategory_ = systemDiskCategory; + setParameter(std::string("SystemDisk.Category"), systemDiskCategory); } -void ModifyPrepayInstanceSpecRequest::setRebootTime(const std::string& rebootTime) -{ - rebootTime_ = rebootTime; - setParameter("RebootTime", rebootTime); +std::string ModifyPrepayInstanceSpecRequest::getRebootTime() const { + return rebootTime_; } -std::string ModifyPrepayInstanceSpecRequest::getRegionId()const -{ - return regionId_; +void ModifyPrepayInstanceSpecRequest::setRebootTime(const std::string &rebootTime) { + rebootTime_ = rebootTime; + setParameter(std::string("RebootTime"), rebootTime); } -void ModifyPrepayInstanceSpecRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyPrepayInstanceSpecRequest::getRegionId() const { + return regionId_; } -bool ModifyPrepayInstanceSpecRequest::getMigrateAcrossZone()const -{ - return migrateAcrossZone_; +void ModifyPrepayInstanceSpecRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyPrepayInstanceSpecRequest::setMigrateAcrossZone(bool migrateAcrossZone) -{ - migrateAcrossZone_ = migrateAcrossZone; - setParameter("MigrateAcrossZone", migrateAcrossZone ? "true" : "false"); +bool ModifyPrepayInstanceSpecRequest::getMigrateAcrossZone() const { + return migrateAcrossZone_; } -std::string ModifyPrepayInstanceSpecRequest::getInstanceType()const -{ - return instanceType_; +void ModifyPrepayInstanceSpecRequest::setMigrateAcrossZone(bool migrateAcrossZone) { + migrateAcrossZone_ = migrateAcrossZone; + setParameter(std::string("MigrateAcrossZone"), migrateAcrossZone ? "true" : "false"); } -void ModifyPrepayInstanceSpecRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +std::string ModifyPrepayInstanceSpecRequest::getInstanceType() const { + return instanceType_; } -bool ModifyPrepayInstanceSpecRequest::getAutoPay()const -{ - return autoPay_; +void ModifyPrepayInstanceSpecRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } -void ModifyPrepayInstanceSpecRequest::setAutoPay(bool autoPay) -{ - autoPay_ = autoPay; - setParameter("AutoPay", autoPay ? "true" : "false"); +bool ModifyPrepayInstanceSpecRequest::getAutoPay() const { + return autoPay_; } -bool ModifyPrepayInstanceSpecRequest::getRebootWhenFinished()const -{ - return rebootWhenFinished_; +void ModifyPrepayInstanceSpecRequest::setAutoPay(bool autoPay) { + autoPay_ = autoPay; + setParameter(std::string("AutoPay"), autoPay ? "true" : "false"); } -void ModifyPrepayInstanceSpecRequest::setRebootWhenFinished(bool rebootWhenFinished) -{ - rebootWhenFinished_ = rebootWhenFinished; - setParameter("RebootWhenFinished", rebootWhenFinished ? "true" : "false"); +bool ModifyPrepayInstanceSpecRequest::getRebootWhenFinished() const { + return rebootWhenFinished_; } -std::string ModifyPrepayInstanceSpecRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyPrepayInstanceSpecRequest::setRebootWhenFinished(bool rebootWhenFinished) { + rebootWhenFinished_ = rebootWhenFinished; + setParameter(std::string("RebootWhenFinished"), rebootWhenFinished ? "true" : "false"); } -void ModifyPrepayInstanceSpecRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyPrepayInstanceSpecRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyPrepayInstanceSpecRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyPrepayInstanceSpecRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyPrepayInstanceSpecRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyPrepayInstanceSpecRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string ModifyPrepayInstanceSpecRequest::getEndTime()const -{ - return endTime_; +void ModifyPrepayInstanceSpecRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyPrepayInstanceSpecRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +std::string ModifyPrepayInstanceSpecRequest::getEndTime() const { + return endTime_; } -long ModifyPrepayInstanceSpecRequest::getOwnerId()const -{ - return ownerId_; +void ModifyPrepayInstanceSpecRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void ModifyPrepayInstanceSpecRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyPrepayInstanceSpecRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyPrepayInstanceSpecRequest::getInstanceId()const -{ - return instanceId_; +void ModifyPrepayInstanceSpecRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyPrepayInstanceSpecRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ModifyPrepayInstanceSpecRequest::getInstanceId() const { + return instanceId_; +} + +void ModifyPrepayInstanceSpecRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/ecs/src/model/ModifyReservedInstanceAttributeRequest.cc b/ecs/src/model/ModifyReservedInstanceAttributeRequest.cc index c89ebc677..1ff66e36f 100644 --- a/ecs/src/model/ModifyReservedInstanceAttributeRequest.cc +++ b/ecs/src/model/ModifyReservedInstanceAttributeRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyReservedInstanceAttributeRequest; - -ModifyReservedInstanceAttributeRequest::ModifyReservedInstanceAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyReservedInstanceAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyReservedInstanceAttributeRequest::~ModifyReservedInstanceAttributeRequest() -{} - -long ModifyReservedInstanceAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyReservedInstanceAttributeRequest; + +ModifyReservedInstanceAttributeRequest::ModifyReservedInstanceAttributeRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyReservedInstanceAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifyReservedInstanceAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyReservedInstanceAttributeRequest::~ModifyReservedInstanceAttributeRequest() {} + +long ModifyReservedInstanceAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyReservedInstanceAttributeRequest::getDescription()const -{ - return description_; +void ModifyReservedInstanceAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyReservedInstanceAttributeRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyReservedInstanceAttributeRequest::getDescription() const { + return description_; } -std::string ModifyReservedInstanceAttributeRequest::getRegionId()const -{ - return regionId_; +void ModifyReservedInstanceAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyReservedInstanceAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyReservedInstanceAttributeRequest::getRegionId() const { + return regionId_; } -std::string ModifyReservedInstanceAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyReservedInstanceAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyReservedInstanceAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyReservedInstanceAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyReservedInstanceAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyReservedInstanceAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyReservedInstanceAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyReservedInstanceAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyReservedInstanceAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyReservedInstanceAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyReservedInstanceAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyReservedInstanceAttributeRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyReservedInstanceAttributeRequest::getReservedInstanceId()const -{ - return reservedInstanceId_; +void ModifyReservedInstanceAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyReservedInstanceAttributeRequest::setReservedInstanceId(const std::string& reservedInstanceId) -{ - reservedInstanceId_ = reservedInstanceId; - setParameter("ReservedInstanceId", reservedInstanceId); +std::string ModifyReservedInstanceAttributeRequest::getReservedInstanceId() const { + return reservedInstanceId_; } -std::string ModifyReservedInstanceAttributeRequest::getReservedInstanceName()const -{ - return reservedInstanceName_; +void ModifyReservedInstanceAttributeRequest::setReservedInstanceId(const std::string &reservedInstanceId) { + reservedInstanceId_ = reservedInstanceId; + setParameter(std::string("ReservedInstanceId"), reservedInstanceId); } -void ModifyReservedInstanceAttributeRequest::setReservedInstanceName(const std::string& reservedInstanceName) -{ - reservedInstanceName_ = reservedInstanceName; - setParameter("ReservedInstanceName", reservedInstanceName); +std::string ModifyReservedInstanceAttributeRequest::getReservedInstanceName() const { + return reservedInstanceName_; +} + +void ModifyReservedInstanceAttributeRequest::setReservedInstanceName(const std::string &reservedInstanceName) { + reservedInstanceName_ = reservedInstanceName; + setParameter(std::string("ReservedInstanceName"), reservedInstanceName); } diff --git a/ecs/src/model/ModifyReservedInstanceAttributeResult.cc b/ecs/src/model/ModifyReservedInstanceAttributeResult.cc index 829a03527..fccadaf34 100644 --- a/ecs/src/model/ModifyReservedInstanceAttributeResult.cc +++ b/ecs/src/model/ModifyReservedInstanceAttributeResult.cc @@ -39,12 +39,12 @@ void ModifyReservedInstanceAttributeResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); } diff --git a/ecs/src/model/ModifyReservedInstancesRequest.cc b/ecs/src/model/ModifyReservedInstancesRequest.cc index 6fdb2c542..a046822ac 100644 --- a/ecs/src/model/ModifyReservedInstancesRequest.cc +++ b/ecs/src/model/ModifyReservedInstancesRequest.cc @@ -1,116 +1,97 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyReservedInstancesRequest; - -ModifyReservedInstancesRequest::ModifyReservedInstancesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyReservedInstances") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyReservedInstancesRequest::~ModifyReservedInstancesRequest() -{} - -long ModifyReservedInstancesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyReservedInstancesRequest; + +ModifyReservedInstancesRequest::ModifyReservedInstancesRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyReservedInstances") { + setMethod(HttpRequest::Method::Post); } -void ModifyReservedInstancesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyReservedInstancesRequest::~ModifyReservedInstancesRequest() {} + +long ModifyReservedInstancesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::vector ModifyReservedInstancesRequest::getConfiguration()const -{ - return configuration_; +void ModifyReservedInstancesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyReservedInstancesRequest::setConfiguration(const std::vector& configuration) -{ - configuration_ = configuration; - for(int dep1 = 0; dep1!= configuration.size(); dep1++) { - auto configurationObj = configuration.at(dep1); - std::string configurationObjStr = "Configuration." + std::to_string(dep1 + 1); - setParameter(configurationObjStr + ".ZoneId", configurationObj.zoneId); - setParameter(configurationObjStr + ".ReservedInstanceName", configurationObj.reservedInstanceName); - setParameter(configurationObjStr + ".InstanceType", configurationObj.instanceType); - setParameter(configurationObjStr + ".Scope", configurationObj.scope); - setParameter(configurationObjStr + ".InstanceAmount", std::to_string(configurationObj.instanceAmount)); - } +std::vector ModifyReservedInstancesRequest::getConfiguration() const { + return configuration_; } -std::string ModifyReservedInstancesRequest::getRegionId()const -{ - return regionId_; +void ModifyReservedInstancesRequest::setConfiguration(const std::vector &configuration) { + configuration_ = configuration; + for(int dep1 = 0; dep1 != configuration.size(); dep1++) { + auto configurationObj = configuration.at(dep1); + std::string configurationObjStr = std::string("Configuration") + "." + std::to_string(dep1 + 1); + setParameter(configurationObjStr + ".ReservedInstanceName", configurationObj.reservedInstanceName); + setParameter(configurationObjStr + ".ZoneId", configurationObj.zoneId); + setParameter(configurationObjStr + ".Scope", configurationObj.scope); + setParameter(configurationObjStr + ".InstanceType", configurationObj.instanceType); + setParameter(configurationObjStr + ".InstanceAmount", std::to_string(configurationObj.instanceAmount)); + } } -void ModifyReservedInstancesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyReservedInstancesRequest::getRegionId() const { + return regionId_; } -std::string ModifyReservedInstancesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyReservedInstancesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyReservedInstancesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyReservedInstancesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyReservedInstancesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyReservedInstancesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyReservedInstancesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyReservedInstancesRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyReservedInstancesRequest::getOwnerId()const -{ - return ownerId_; +void ModifyReservedInstancesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyReservedInstancesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyReservedInstancesRequest::getOwnerId() const { + return ownerId_; } -std::vector ModifyReservedInstancesRequest::getReservedInstanceId()const -{ - return reservedInstanceId_; +void ModifyReservedInstancesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyReservedInstancesRequest::setReservedInstanceId(const std::vector& reservedInstanceId) -{ - reservedInstanceId_ = reservedInstanceId; - for(int dep1 = 0; dep1!= reservedInstanceId.size(); dep1++) { - setParameter("ReservedInstanceId."+ std::to_string(dep1), reservedInstanceId.at(dep1)); - } +std::vector ModifyReservedInstancesRequest::getReservedInstanceId() const { + return reservedInstanceId_; +} + +void ModifyReservedInstancesRequest::setReservedInstanceId(const std::vector &reservedInstanceId) { + reservedInstanceId_ = reservedInstanceId; } diff --git a/ecs/src/model/ModifyRouterInterfaceAttributeRequest.cc b/ecs/src/model/ModifyRouterInterfaceAttributeRequest.cc index b8e62c74c..bc219ab54 100644 --- a/ecs/src/model/ModifyRouterInterfaceAttributeRequest.cc +++ b/ecs/src/model/ModifyRouterInterfaceAttributeRequest.cc @@ -1,172 +1,144 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyRouterInterfaceAttributeRequest; - -ModifyRouterInterfaceAttributeRequest::ModifyRouterInterfaceAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyRouterInterfaceAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyRouterInterfaceAttributeRequest::~ModifyRouterInterfaceAttributeRequest() -{} - -std::string ModifyRouterInterfaceAttributeRequest::getOppositeRouterId()const -{ - return oppositeRouterId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyRouterInterfaceAttributeRequest; + +ModifyRouterInterfaceAttributeRequest::ModifyRouterInterfaceAttributeRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyRouterInterfaceAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifyRouterInterfaceAttributeRequest::setOppositeRouterId(const std::string& oppositeRouterId) -{ - oppositeRouterId_ = oppositeRouterId; - setParameter("OppositeRouterId", oppositeRouterId); +ModifyRouterInterfaceAttributeRequest::~ModifyRouterInterfaceAttributeRequest() {} + +std::string ModifyRouterInterfaceAttributeRequest::getOppositeRouterId() const { + return oppositeRouterId_; } -long ModifyRouterInterfaceAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void ModifyRouterInterfaceAttributeRequest::setOppositeRouterId(const std::string &oppositeRouterId) { + oppositeRouterId_ = oppositeRouterId; + setParameter(std::string("OppositeRouterId"), oppositeRouterId); } -void ModifyRouterInterfaceAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long ModifyRouterInterfaceAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyRouterInterfaceAttributeRequest::getDescription()const -{ - return description_; +void ModifyRouterInterfaceAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyRouterInterfaceAttributeRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyRouterInterfaceAttributeRequest::getDescription() const { + return description_; } -std::string ModifyRouterInterfaceAttributeRequest::getHealthCheckTargetIp()const -{ - return healthCheckTargetIp_; +void ModifyRouterInterfaceAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyRouterInterfaceAttributeRequest::setHealthCheckTargetIp(const std::string& healthCheckTargetIp) -{ - healthCheckTargetIp_ = healthCheckTargetIp; - setParameter("HealthCheckTargetIp", healthCheckTargetIp); +std::string ModifyRouterInterfaceAttributeRequest::getHealthCheckTargetIp() const { + return healthCheckTargetIp_; } -std::string ModifyRouterInterfaceAttributeRequest::getRegionId()const -{ - return regionId_; +void ModifyRouterInterfaceAttributeRequest::setHealthCheckTargetIp(const std::string &healthCheckTargetIp) { + healthCheckTargetIp_ = healthCheckTargetIp; + setParameter(std::string("HealthCheckTargetIp"), healthCheckTargetIp); } -void ModifyRouterInterfaceAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyRouterInterfaceAttributeRequest::getRegionId() const { + return regionId_; } -std::string ModifyRouterInterfaceAttributeRequest::getOppositeInterfaceId()const -{ - return oppositeInterfaceId_; +void ModifyRouterInterfaceAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyRouterInterfaceAttributeRequest::setOppositeInterfaceId(const std::string& oppositeInterfaceId) -{ - oppositeInterfaceId_ = oppositeInterfaceId; - setParameter("OppositeInterfaceId", oppositeInterfaceId); +std::string ModifyRouterInterfaceAttributeRequest::getOppositeInterfaceId() const { + return oppositeInterfaceId_; } -std::string ModifyRouterInterfaceAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyRouterInterfaceAttributeRequest::setOppositeInterfaceId(const std::string &oppositeInterfaceId) { + oppositeInterfaceId_ = oppositeInterfaceId; + setParameter(std::string("OppositeInterfaceId"), oppositeInterfaceId); } -void ModifyRouterInterfaceAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyRouterInterfaceAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long ModifyRouterInterfaceAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyRouterInterfaceAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyRouterInterfaceAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyRouterInterfaceAttributeRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyRouterInterfaceAttributeRequest::getRouterInterfaceId()const -{ - return routerInterfaceId_; +void ModifyRouterInterfaceAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyRouterInterfaceAttributeRequest::setRouterInterfaceId(const std::string& routerInterfaceId) -{ - routerInterfaceId_ = routerInterfaceId; - setParameter("RouterInterfaceId", routerInterfaceId); +std::string ModifyRouterInterfaceAttributeRequest::getRouterInterfaceId() const { + return routerInterfaceId_; } -long ModifyRouterInterfaceAttributeRequest::getOppositeInterfaceOwnerId()const -{ - return oppositeInterfaceOwnerId_; +void ModifyRouterInterfaceAttributeRequest::setRouterInterfaceId(const std::string &routerInterfaceId) { + routerInterfaceId_ = routerInterfaceId; + setParameter(std::string("RouterInterfaceId"), routerInterfaceId); } -void ModifyRouterInterfaceAttributeRequest::setOppositeInterfaceOwnerId(long oppositeInterfaceOwnerId) -{ - oppositeInterfaceOwnerId_ = oppositeInterfaceOwnerId; - setParameter("OppositeInterfaceOwnerId", std::to_string(oppositeInterfaceOwnerId)); +long ModifyRouterInterfaceAttributeRequest::getOppositeInterfaceOwnerId() const { + return oppositeInterfaceOwnerId_; } -std::string ModifyRouterInterfaceAttributeRequest::getHealthCheckSourceIp()const -{ - return healthCheckSourceIp_; +void ModifyRouterInterfaceAttributeRequest::setOppositeInterfaceOwnerId(long oppositeInterfaceOwnerId) { + oppositeInterfaceOwnerId_ = oppositeInterfaceOwnerId; + setParameter(std::string("OppositeInterfaceOwnerId"), std::to_string(oppositeInterfaceOwnerId)); } -void ModifyRouterInterfaceAttributeRequest::setHealthCheckSourceIp(const std::string& healthCheckSourceIp) -{ - healthCheckSourceIp_ = healthCheckSourceIp; - setParameter("HealthCheckSourceIp", healthCheckSourceIp); +std::string ModifyRouterInterfaceAttributeRequest::getHealthCheckSourceIp() const { + return healthCheckSourceIp_; } -std::string ModifyRouterInterfaceAttributeRequest::getName()const -{ - return name_; +void ModifyRouterInterfaceAttributeRequest::setHealthCheckSourceIp(const std::string &healthCheckSourceIp) { + healthCheckSourceIp_ = healthCheckSourceIp; + setParameter(std::string("HealthCheckSourceIp"), healthCheckSourceIp); } -void ModifyRouterInterfaceAttributeRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string ModifyRouterInterfaceAttributeRequest::getName() const { + return name_; } -std::string ModifyRouterInterfaceAttributeRequest::getOppositeRouterType()const -{ - return oppositeRouterType_; +void ModifyRouterInterfaceAttributeRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void ModifyRouterInterfaceAttributeRequest::setOppositeRouterType(const std::string& oppositeRouterType) -{ - oppositeRouterType_ = oppositeRouterType; - setParameter("OppositeRouterType", oppositeRouterType); +std::string ModifyRouterInterfaceAttributeRequest::getOppositeRouterType() const { + return oppositeRouterType_; +} + +void ModifyRouterInterfaceAttributeRequest::setOppositeRouterType(const std::string &oppositeRouterType) { + oppositeRouterType_ = oppositeRouterType; + setParameter(std::string("OppositeRouterType"), oppositeRouterType); } diff --git a/ecs/src/model/ModifyRouterInterfaceSpecRequest.cc b/ecs/src/model/ModifyRouterInterfaceSpecRequest.cc index b2313acc9..f13877203 100644 --- a/ecs/src/model/ModifyRouterInterfaceSpecRequest.cc +++ b/ecs/src/model/ModifyRouterInterfaceSpecRequest.cc @@ -1,128 +1,108 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyRouterInterfaceSpecRequest; - -ModifyRouterInterfaceSpecRequest::ModifyRouterInterfaceSpecRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyRouterInterfaceSpec") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyRouterInterfaceSpecRequest::~ModifyRouterInterfaceSpecRequest() -{} - -long ModifyRouterInterfaceSpecRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyRouterInterfaceSpecRequest; + +ModifyRouterInterfaceSpecRequest::ModifyRouterInterfaceSpecRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyRouterInterfaceSpec") { + setMethod(HttpRequest::Method::Post); } -void ModifyRouterInterfaceSpecRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyRouterInterfaceSpecRequest::~ModifyRouterInterfaceSpecRequest() {} + +long ModifyRouterInterfaceSpecRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyRouterInterfaceSpecRequest::getClientToken()const -{ - return clientToken_; +void ModifyRouterInterfaceSpecRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyRouterInterfaceSpecRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ModifyRouterInterfaceSpecRequest::getClientToken() const { + return clientToken_; } -std::string ModifyRouterInterfaceSpecRequest::getSpec()const -{ - return spec_; +void ModifyRouterInterfaceSpecRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ModifyRouterInterfaceSpecRequest::setSpec(const std::string& spec) -{ - spec_ = spec; - setParameter("Spec", spec); +std::string ModifyRouterInterfaceSpecRequest::getSpec() const { + return spec_; } -std::string ModifyRouterInterfaceSpecRequest::getRegionId()const -{ - return regionId_; +void ModifyRouterInterfaceSpecRequest::setSpec(const std::string &spec) { + spec_ = spec; + setParameter(std::string("Spec"), spec); } -void ModifyRouterInterfaceSpecRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyRouterInterfaceSpecRequest::getRegionId() const { + return regionId_; } -std::string ModifyRouterInterfaceSpecRequest::getUserCidr()const -{ - return userCidr_; +void ModifyRouterInterfaceSpecRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyRouterInterfaceSpecRequest::setUserCidr(const std::string& userCidr) -{ - userCidr_ = userCidr; - setParameter("UserCidr", userCidr); +std::string ModifyRouterInterfaceSpecRequest::getUserCidr() const { + return userCidr_; } -std::string ModifyRouterInterfaceSpecRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyRouterInterfaceSpecRequest::setUserCidr(const std::string &userCidr) { + userCidr_ = userCidr; + setParameter(std::string("UserCidr"), userCidr); } -void ModifyRouterInterfaceSpecRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyRouterInterfaceSpecRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyRouterInterfaceSpecRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyRouterInterfaceSpecRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyRouterInterfaceSpecRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyRouterInterfaceSpecRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string ModifyRouterInterfaceSpecRequest::getRouterInterfaceId()const -{ - return routerInterfaceId_; +void ModifyRouterInterfaceSpecRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyRouterInterfaceSpecRequest::setRouterInterfaceId(const std::string& routerInterfaceId) -{ - routerInterfaceId_ = routerInterfaceId; - setParameter("RouterInterfaceId", routerInterfaceId); +std::string ModifyRouterInterfaceSpecRequest::getRouterInterfaceId() const { + return routerInterfaceId_; } -long ModifyRouterInterfaceSpecRequest::getOwnerId()const -{ - return ownerId_; +void ModifyRouterInterfaceSpecRequest::setRouterInterfaceId(const std::string &routerInterfaceId) { + routerInterfaceId_ = routerInterfaceId; + setParameter(std::string("RouterInterfaceId"), routerInterfaceId); } -void ModifyRouterInterfaceSpecRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyRouterInterfaceSpecRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyRouterInterfaceSpecRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/ModifySecurityGroupAttributeRequest.cc b/ecs/src/model/ModifySecurityGroupAttributeRequest.cc index d7192f97b..9d88e1445 100644 --- a/ecs/src/model/ModifySecurityGroupAttributeRequest.cc +++ b/ecs/src/model/ModifySecurityGroupAttributeRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifySecurityGroupAttributeRequest; - -ModifySecurityGroupAttributeRequest::ModifySecurityGroupAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifySecurityGroupAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifySecurityGroupAttributeRequest::~ModifySecurityGroupAttributeRequest() -{} - -long ModifySecurityGroupAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifySecurityGroupAttributeRequest; + +ModifySecurityGroupAttributeRequest::ModifySecurityGroupAttributeRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifySecurityGroupAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifySecurityGroupAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifySecurityGroupAttributeRequest::~ModifySecurityGroupAttributeRequest() {} + +long ModifySecurityGroupAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifySecurityGroupAttributeRequest::getSecurityGroupId()const -{ - return securityGroupId_; +void ModifySecurityGroupAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifySecurityGroupAttributeRequest::setSecurityGroupId(const std::string& securityGroupId) -{ - securityGroupId_ = securityGroupId; - setParameter("SecurityGroupId", securityGroupId); +std::string ModifySecurityGroupAttributeRequest::getSecurityGroupId() const { + return securityGroupId_; } -std::string ModifySecurityGroupAttributeRequest::getDescription()const -{ - return description_; +void ModifySecurityGroupAttributeRequest::setSecurityGroupId(const std::string &securityGroupId) { + securityGroupId_ = securityGroupId; + setParameter(std::string("SecurityGroupId"), securityGroupId); } -void ModifySecurityGroupAttributeRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifySecurityGroupAttributeRequest::getDescription() const { + return description_; } -std::string ModifySecurityGroupAttributeRequest::getSecurityGroupName()const -{ - return securityGroupName_; +void ModifySecurityGroupAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifySecurityGroupAttributeRequest::setSecurityGroupName(const std::string& securityGroupName) -{ - securityGroupName_ = securityGroupName; - setParameter("SecurityGroupName", securityGroupName); +std::string ModifySecurityGroupAttributeRequest::getSecurityGroupName() const { + return securityGroupName_; } -std::string ModifySecurityGroupAttributeRequest::getRegionId()const -{ - return regionId_; +void ModifySecurityGroupAttributeRequest::setSecurityGroupName(const std::string &securityGroupName) { + securityGroupName_ = securityGroupName; + setParameter(std::string("SecurityGroupName"), securityGroupName); } -void ModifySecurityGroupAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifySecurityGroupAttributeRequest::getRegionId() const { + return regionId_; } -std::string ModifySecurityGroupAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifySecurityGroupAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifySecurityGroupAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifySecurityGroupAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifySecurityGroupAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifySecurityGroupAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifySecurityGroupAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifySecurityGroupAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifySecurityGroupAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifySecurityGroupAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifySecurityGroupAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifySecurityGroupAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void ModifySecurityGroupAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/ModifySecurityGroupEgressRuleRequest.cc b/ecs/src/model/ModifySecurityGroupEgressRuleRequest.cc index 9860c5726..28ca048ed 100644 --- a/ecs/src/model/ModifySecurityGroupEgressRuleRequest.cc +++ b/ecs/src/model/ModifySecurityGroupEgressRuleRequest.cc @@ -1,271 +1,225 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifySecurityGroupEgressRuleRequest; - -ModifySecurityGroupEgressRuleRequest::ModifySecurityGroupEgressRuleRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifySecurityGroupEgressRule") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifySecurityGroupEgressRuleRequest::~ModifySecurityGroupEgressRuleRequest() -{} - -std::string ModifySecurityGroupEgressRuleRequest::getNicType()const -{ - return nicType_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifySecurityGroupEgressRuleRequest; + +ModifySecurityGroupEgressRuleRequest::ModifySecurityGroupEgressRuleRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifySecurityGroupEgressRule") { + setMethod(HttpRequest::Method::Post); } -void ModifySecurityGroupEgressRuleRequest::setNicType(const std::string& nicType) -{ - nicType_ = nicType; - setParameter("NicType", nicType); +ModifySecurityGroupEgressRuleRequest::~ModifySecurityGroupEgressRuleRequest() {} + +std::string ModifySecurityGroupEgressRuleRequest::getNicType() const { + return nicType_; } -long ModifySecurityGroupEgressRuleRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void ModifySecurityGroupEgressRuleRequest::setNicType(const std::string &nicType) { + nicType_ = nicType; + setParameter(std::string("NicType"), nicType); } -void ModifySecurityGroupEgressRuleRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long ModifySecurityGroupEgressRuleRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifySecurityGroupEgressRuleRequest::getSourcePortRange()const -{ - return sourcePortRange_; +void ModifySecurityGroupEgressRuleRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifySecurityGroupEgressRuleRequest::setSourcePortRange(const std::string& sourcePortRange) -{ - sourcePortRange_ = sourcePortRange; - setParameter("SourcePortRange", sourcePortRange); +std::string ModifySecurityGroupEgressRuleRequest::getSourcePortRange() const { + return sourcePortRange_; } -std::string ModifySecurityGroupEgressRuleRequest::getClientToken()const -{ - return clientToken_; +void ModifySecurityGroupEgressRuleRequest::setSourcePortRange(const std::string &sourcePortRange) { + sourcePortRange_ = sourcePortRange; + setParameter(std::string("SourcePortRange"), sourcePortRange); } -void ModifySecurityGroupEgressRuleRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ModifySecurityGroupEgressRuleRequest::getClientToken() const { + return clientToken_; } -std::string ModifySecurityGroupEgressRuleRequest::getDestPrefixListId()const -{ - return destPrefixListId_; +void ModifySecurityGroupEgressRuleRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ModifySecurityGroupEgressRuleRequest::setDestPrefixListId(const std::string& destPrefixListId) -{ - destPrefixListId_ = destPrefixListId; - setParameter("DestPrefixListId", destPrefixListId); +std::string ModifySecurityGroupEgressRuleRequest::getDestPrefixListId() const { + return destPrefixListId_; } -std::string ModifySecurityGroupEgressRuleRequest::getSecurityGroupId()const -{ - return securityGroupId_; +void ModifySecurityGroupEgressRuleRequest::setDestPrefixListId(const std::string &destPrefixListId) { + destPrefixListId_ = destPrefixListId; + setParameter(std::string("DestPrefixListId"), destPrefixListId); } -void ModifySecurityGroupEgressRuleRequest::setSecurityGroupId(const std::string& securityGroupId) -{ - securityGroupId_ = securityGroupId; - setParameter("SecurityGroupId", securityGroupId); +std::string ModifySecurityGroupEgressRuleRequest::getSecurityGroupId() const { + return securityGroupId_; } -std::string ModifySecurityGroupEgressRuleRequest::getDescription()const -{ - return description_; +void ModifySecurityGroupEgressRuleRequest::setSecurityGroupId(const std::string &securityGroupId) { + securityGroupId_ = securityGroupId; + setParameter(std::string("SecurityGroupId"), securityGroupId); } -void ModifySecurityGroupEgressRuleRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifySecurityGroupEgressRuleRequest::getDescription() const { + return description_; } -std::string ModifySecurityGroupEgressRuleRequest::getRegionId()const -{ - return regionId_; +void ModifySecurityGroupEgressRuleRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifySecurityGroupEgressRuleRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifySecurityGroupEgressRuleRequest::getRegionId() const { + return regionId_; } -std::string ModifySecurityGroupEgressRuleRequest::getIpv6DestCidrIp()const -{ - return ipv6DestCidrIp_; +void ModifySecurityGroupEgressRuleRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifySecurityGroupEgressRuleRequest::setIpv6DestCidrIp(const std::string& ipv6DestCidrIp) -{ - ipv6DestCidrIp_ = ipv6DestCidrIp; - setParameter("Ipv6DestCidrIp", ipv6DestCidrIp); +std::string ModifySecurityGroupEgressRuleRequest::getIpv6DestCidrIp() const { + return ipv6DestCidrIp_; } -std::string ModifySecurityGroupEgressRuleRequest::getIpv6SourceCidrIp()const -{ - return ipv6SourceCidrIp_; +void ModifySecurityGroupEgressRuleRequest::setIpv6DestCidrIp(const std::string &ipv6DestCidrIp) { + ipv6DestCidrIp_ = ipv6DestCidrIp; + setParameter(std::string("Ipv6DestCidrIp"), ipv6DestCidrIp); } -void ModifySecurityGroupEgressRuleRequest::setIpv6SourceCidrIp(const std::string& ipv6SourceCidrIp) -{ - ipv6SourceCidrIp_ = ipv6SourceCidrIp; - setParameter("Ipv6SourceCidrIp", ipv6SourceCidrIp); +std::string ModifySecurityGroupEgressRuleRequest::getIpv6SourceCidrIp() const { + return ipv6SourceCidrIp_; } -std::string ModifySecurityGroupEgressRuleRequest::getPolicy()const -{ - return policy_; +void ModifySecurityGroupEgressRuleRequest::setIpv6SourceCidrIp(const std::string &ipv6SourceCidrIp) { + ipv6SourceCidrIp_ = ipv6SourceCidrIp; + setParameter(std::string("Ipv6SourceCidrIp"), ipv6SourceCidrIp); } -void ModifySecurityGroupEgressRuleRequest::setPolicy(const std::string& policy) -{ - policy_ = policy; - setParameter("Policy", policy); +std::string ModifySecurityGroupEgressRuleRequest::getPolicy() const { + return policy_; } -std::string ModifySecurityGroupEgressRuleRequest::getPortRange()const -{ - return portRange_; +void ModifySecurityGroupEgressRuleRequest::setPolicy(const std::string &policy) { + policy_ = policy; + setParameter(std::string("Policy"), policy); } -void ModifySecurityGroupEgressRuleRequest::setPortRange(const std::string& portRange) -{ - portRange_ = portRange; - setParameter("PortRange", portRange); +std::string ModifySecurityGroupEgressRuleRequest::getPortRange() const { + return portRange_; } -std::string ModifySecurityGroupEgressRuleRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifySecurityGroupEgressRuleRequest::setPortRange(const std::string &portRange) { + portRange_ = portRange; + setParameter(std::string("PortRange"), portRange); } -void ModifySecurityGroupEgressRuleRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifySecurityGroupEgressRuleRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifySecurityGroupEgressRuleRequest::getIpProtocol()const -{ - return ipProtocol_; +void ModifySecurityGroupEgressRuleRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifySecurityGroupEgressRuleRequest::setIpProtocol(const std::string& ipProtocol) -{ - ipProtocol_ = ipProtocol; - setParameter("IpProtocol", ipProtocol); +std::string ModifySecurityGroupEgressRuleRequest::getIpProtocol() const { + return ipProtocol_; } -std::string ModifySecurityGroupEgressRuleRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifySecurityGroupEgressRuleRequest::setIpProtocol(const std::string &ipProtocol) { + ipProtocol_ = ipProtocol; + setParameter(std::string("IpProtocol"), ipProtocol); } -void ModifySecurityGroupEgressRuleRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifySecurityGroupEgressRuleRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string ModifySecurityGroupEgressRuleRequest::getSourceCidrIp()const -{ - return sourceCidrIp_; +void ModifySecurityGroupEgressRuleRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifySecurityGroupEgressRuleRequest::setSourceCidrIp(const std::string& sourceCidrIp) -{ - sourceCidrIp_ = sourceCidrIp; - setParameter("SourceCidrIp", sourceCidrIp); +std::string ModifySecurityGroupEgressRuleRequest::getSourceCidrIp() const { + return sourceCidrIp_; } -std::string ModifySecurityGroupEgressRuleRequest::getDestGroupId()const -{ - return destGroupId_; +void ModifySecurityGroupEgressRuleRequest::setSourceCidrIp(const std::string &sourceCidrIp) { + sourceCidrIp_ = sourceCidrIp; + setParameter(std::string("SourceCidrIp"), sourceCidrIp); } -void ModifySecurityGroupEgressRuleRequest::setDestGroupId(const std::string& destGroupId) -{ - destGroupId_ = destGroupId; - setParameter("DestGroupId", destGroupId); +std::string ModifySecurityGroupEgressRuleRequest::getDestGroupId() const { + return destGroupId_; } -long ModifySecurityGroupEgressRuleRequest::getOwnerId()const -{ - return ownerId_; +void ModifySecurityGroupEgressRuleRequest::setDestGroupId(const std::string &destGroupId) { + destGroupId_ = destGroupId; + setParameter(std::string("DestGroupId"), destGroupId); } -void ModifySecurityGroupEgressRuleRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifySecurityGroupEgressRuleRequest::getOwnerId() const { + return ownerId_; } -std::string ModifySecurityGroupEgressRuleRequest::getDestGroupOwnerAccount()const -{ - return destGroupOwnerAccount_; +void ModifySecurityGroupEgressRuleRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifySecurityGroupEgressRuleRequest::setDestGroupOwnerAccount(const std::string& destGroupOwnerAccount) -{ - destGroupOwnerAccount_ = destGroupOwnerAccount; - setParameter("DestGroupOwnerAccount", destGroupOwnerAccount); +std::string ModifySecurityGroupEgressRuleRequest::getDestGroupOwnerAccount() const { + return destGroupOwnerAccount_; } -std::string ModifySecurityGroupEgressRuleRequest::getPriority()const -{ - return priority_; +void ModifySecurityGroupEgressRuleRequest::setDestGroupOwnerAccount(const std::string &destGroupOwnerAccount) { + destGroupOwnerAccount_ = destGroupOwnerAccount; + setParameter(std::string("DestGroupOwnerAccount"), destGroupOwnerAccount); } -void ModifySecurityGroupEgressRuleRequest::setPriority(const std::string& priority) -{ - priority_ = priority; - setParameter("Priority", priority); +std::string ModifySecurityGroupEgressRuleRequest::getPriority() const { + return priority_; } -std::string ModifySecurityGroupEgressRuleRequest::getDestCidrIp()const -{ - return destCidrIp_; +void ModifySecurityGroupEgressRuleRequest::setPriority(const std::string &priority) { + priority_ = priority; + setParameter(std::string("Priority"), priority); } -void ModifySecurityGroupEgressRuleRequest::setDestCidrIp(const std::string& destCidrIp) -{ - destCidrIp_ = destCidrIp; - setParameter("DestCidrIp", destCidrIp); +std::string ModifySecurityGroupEgressRuleRequest::getDestCidrIp() const { + return destCidrIp_; } -long ModifySecurityGroupEgressRuleRequest::getDestGroupOwnerId()const -{ - return destGroupOwnerId_; +void ModifySecurityGroupEgressRuleRequest::setDestCidrIp(const std::string &destCidrIp) { + destCidrIp_ = destCidrIp; + setParameter(std::string("DestCidrIp"), destCidrIp); } -void ModifySecurityGroupEgressRuleRequest::setDestGroupOwnerId(long destGroupOwnerId) -{ - destGroupOwnerId_ = destGroupOwnerId; - setParameter("DestGroupOwnerId", std::to_string(destGroupOwnerId)); +long ModifySecurityGroupEgressRuleRequest::getDestGroupOwnerId() const { + return destGroupOwnerId_; +} + +void ModifySecurityGroupEgressRuleRequest::setDestGroupOwnerId(long destGroupOwnerId) { + destGroupOwnerId_ = destGroupOwnerId; + setParameter(std::string("DestGroupOwnerId"), std::to_string(destGroupOwnerId)); } diff --git a/ecs/src/model/ModifySecurityGroupPolicyRequest.cc b/ecs/src/model/ModifySecurityGroupPolicyRequest.cc index e3d37141b..7bca6db70 100644 --- a/ecs/src/model/ModifySecurityGroupPolicyRequest.cc +++ b/ecs/src/model/ModifySecurityGroupPolicyRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifySecurityGroupPolicyRequest; - -ModifySecurityGroupPolicyRequest::ModifySecurityGroupPolicyRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifySecurityGroupPolicy") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifySecurityGroupPolicyRequest::~ModifySecurityGroupPolicyRequest() -{} - -long ModifySecurityGroupPolicyRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifySecurityGroupPolicyRequest; + +ModifySecurityGroupPolicyRequest::ModifySecurityGroupPolicyRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifySecurityGroupPolicy") { + setMethod(HttpRequest::Method::Post); } -void ModifySecurityGroupPolicyRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifySecurityGroupPolicyRequest::~ModifySecurityGroupPolicyRequest() {} + +long ModifySecurityGroupPolicyRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifySecurityGroupPolicyRequest::getClientToken()const -{ - return clientToken_; +void ModifySecurityGroupPolicyRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifySecurityGroupPolicyRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ModifySecurityGroupPolicyRequest::getClientToken() const { + return clientToken_; } -std::string ModifySecurityGroupPolicyRequest::getSecurityGroupId()const -{ - return securityGroupId_; +void ModifySecurityGroupPolicyRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ModifySecurityGroupPolicyRequest::setSecurityGroupId(const std::string& securityGroupId) -{ - securityGroupId_ = securityGroupId; - setParameter("SecurityGroupId", securityGroupId); +std::string ModifySecurityGroupPolicyRequest::getSecurityGroupId() const { + return securityGroupId_; } -std::string ModifySecurityGroupPolicyRequest::getInnerAccessPolicy()const -{ - return innerAccessPolicy_; +void ModifySecurityGroupPolicyRequest::setSecurityGroupId(const std::string &securityGroupId) { + securityGroupId_ = securityGroupId; + setParameter(std::string("SecurityGroupId"), securityGroupId); } -void ModifySecurityGroupPolicyRequest::setInnerAccessPolicy(const std::string& innerAccessPolicy) -{ - innerAccessPolicy_ = innerAccessPolicy; - setParameter("InnerAccessPolicy", innerAccessPolicy); +std::string ModifySecurityGroupPolicyRequest::getInnerAccessPolicy() const { + return innerAccessPolicy_; } -std::string ModifySecurityGroupPolicyRequest::getRegionId()const -{ - return regionId_; +void ModifySecurityGroupPolicyRequest::setInnerAccessPolicy(const std::string &innerAccessPolicy) { + innerAccessPolicy_ = innerAccessPolicy; + setParameter(std::string("InnerAccessPolicy"), innerAccessPolicy); } -void ModifySecurityGroupPolicyRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifySecurityGroupPolicyRequest::getRegionId() const { + return regionId_; } -std::string ModifySecurityGroupPolicyRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifySecurityGroupPolicyRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifySecurityGroupPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifySecurityGroupPolicyRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifySecurityGroupPolicyRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifySecurityGroupPolicyRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifySecurityGroupPolicyRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifySecurityGroupPolicyRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifySecurityGroupPolicyRequest::getOwnerId()const -{ - return ownerId_; +void ModifySecurityGroupPolicyRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifySecurityGroupPolicyRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifySecurityGroupPolicyRequest::getOwnerId() const { + return ownerId_; +} + +void ModifySecurityGroupPolicyRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/ModifySecurityGroupRuleRequest.cc b/ecs/src/model/ModifySecurityGroupRuleRequest.cc index 6d14ce5f2..484c74ded 100644 --- a/ecs/src/model/ModifySecurityGroupRuleRequest.cc +++ b/ecs/src/model/ModifySecurityGroupRuleRequest.cc @@ -1,271 +1,225 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifySecurityGroupRuleRequest; - -ModifySecurityGroupRuleRequest::ModifySecurityGroupRuleRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifySecurityGroupRule") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifySecurityGroupRuleRequest::~ModifySecurityGroupRuleRequest() -{} - -std::string ModifySecurityGroupRuleRequest::getNicType()const -{ - return nicType_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifySecurityGroupRuleRequest; + +ModifySecurityGroupRuleRequest::ModifySecurityGroupRuleRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifySecurityGroupRule") { + setMethod(HttpRequest::Method::Post); } -void ModifySecurityGroupRuleRequest::setNicType(const std::string& nicType) -{ - nicType_ = nicType; - setParameter("NicType", nicType); +ModifySecurityGroupRuleRequest::~ModifySecurityGroupRuleRequest() {} + +std::string ModifySecurityGroupRuleRequest::getNicType() const { + return nicType_; } -long ModifySecurityGroupRuleRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void ModifySecurityGroupRuleRequest::setNicType(const std::string &nicType) { + nicType_ = nicType; + setParameter(std::string("NicType"), nicType); } -void ModifySecurityGroupRuleRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long ModifySecurityGroupRuleRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifySecurityGroupRuleRequest::getSourcePrefixListId()const -{ - return sourcePrefixListId_; +void ModifySecurityGroupRuleRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifySecurityGroupRuleRequest::setSourcePrefixListId(const std::string& sourcePrefixListId) -{ - sourcePrefixListId_ = sourcePrefixListId; - setParameter("SourcePrefixListId", sourcePrefixListId); +std::string ModifySecurityGroupRuleRequest::getSourcePrefixListId() const { + return sourcePrefixListId_; } -std::string ModifySecurityGroupRuleRequest::getSourcePortRange()const -{ - return sourcePortRange_; +void ModifySecurityGroupRuleRequest::setSourcePrefixListId(const std::string &sourcePrefixListId) { + sourcePrefixListId_ = sourcePrefixListId; + setParameter(std::string("SourcePrefixListId"), sourcePrefixListId); } -void ModifySecurityGroupRuleRequest::setSourcePortRange(const std::string& sourcePortRange) -{ - sourcePortRange_ = sourcePortRange; - setParameter("SourcePortRange", sourcePortRange); +std::string ModifySecurityGroupRuleRequest::getSourcePortRange() const { + return sourcePortRange_; } -std::string ModifySecurityGroupRuleRequest::getClientToken()const -{ - return clientToken_; +void ModifySecurityGroupRuleRequest::setSourcePortRange(const std::string &sourcePortRange) { + sourcePortRange_ = sourcePortRange; + setParameter(std::string("SourcePortRange"), sourcePortRange); } -void ModifySecurityGroupRuleRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ModifySecurityGroupRuleRequest::getClientToken() const { + return clientToken_; } -std::string ModifySecurityGroupRuleRequest::getSecurityGroupId()const -{ - return securityGroupId_; +void ModifySecurityGroupRuleRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ModifySecurityGroupRuleRequest::setSecurityGroupId(const std::string& securityGroupId) -{ - securityGroupId_ = securityGroupId; - setParameter("SecurityGroupId", securityGroupId); +std::string ModifySecurityGroupRuleRequest::getSecurityGroupId() const { + return securityGroupId_; } -std::string ModifySecurityGroupRuleRequest::getDescription()const -{ - return description_; +void ModifySecurityGroupRuleRequest::setSecurityGroupId(const std::string &securityGroupId) { + securityGroupId_ = securityGroupId; + setParameter(std::string("SecurityGroupId"), securityGroupId); } -void ModifySecurityGroupRuleRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifySecurityGroupRuleRequest::getDescription() const { + return description_; } -long ModifySecurityGroupRuleRequest::getSourceGroupOwnerId()const -{ - return sourceGroupOwnerId_; +void ModifySecurityGroupRuleRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifySecurityGroupRuleRequest::setSourceGroupOwnerId(long sourceGroupOwnerId) -{ - sourceGroupOwnerId_ = sourceGroupOwnerId; - setParameter("SourceGroupOwnerId", std::to_string(sourceGroupOwnerId)); +long ModifySecurityGroupRuleRequest::getSourceGroupOwnerId() const { + return sourceGroupOwnerId_; } -std::string ModifySecurityGroupRuleRequest::getSourceGroupOwnerAccount()const -{ - return sourceGroupOwnerAccount_; +void ModifySecurityGroupRuleRequest::setSourceGroupOwnerId(long sourceGroupOwnerId) { + sourceGroupOwnerId_ = sourceGroupOwnerId; + setParameter(std::string("SourceGroupOwnerId"), std::to_string(sourceGroupOwnerId)); } -void ModifySecurityGroupRuleRequest::setSourceGroupOwnerAccount(const std::string& sourceGroupOwnerAccount) -{ - sourceGroupOwnerAccount_ = sourceGroupOwnerAccount; - setParameter("SourceGroupOwnerAccount", sourceGroupOwnerAccount); +std::string ModifySecurityGroupRuleRequest::getSourceGroupOwnerAccount() const { + return sourceGroupOwnerAccount_; } -std::string ModifySecurityGroupRuleRequest::getRegionId()const -{ - return regionId_; +void ModifySecurityGroupRuleRequest::setSourceGroupOwnerAccount(const std::string &sourceGroupOwnerAccount) { + sourceGroupOwnerAccount_ = sourceGroupOwnerAccount; + setParameter(std::string("SourceGroupOwnerAccount"), sourceGroupOwnerAccount); } -void ModifySecurityGroupRuleRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifySecurityGroupRuleRequest::getRegionId() const { + return regionId_; } -std::string ModifySecurityGroupRuleRequest::getIpv6SourceCidrIp()const -{ - return ipv6SourceCidrIp_; +void ModifySecurityGroupRuleRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifySecurityGroupRuleRequest::setIpv6SourceCidrIp(const std::string& ipv6SourceCidrIp) -{ - ipv6SourceCidrIp_ = ipv6SourceCidrIp; - setParameter("Ipv6SourceCidrIp", ipv6SourceCidrIp); +std::string ModifySecurityGroupRuleRequest::getIpv6SourceCidrIp() const { + return ipv6SourceCidrIp_; } -std::string ModifySecurityGroupRuleRequest::getIpv6DestCidrIp()const -{ - return ipv6DestCidrIp_; +void ModifySecurityGroupRuleRequest::setIpv6SourceCidrIp(const std::string &ipv6SourceCidrIp) { + ipv6SourceCidrIp_ = ipv6SourceCidrIp; + setParameter(std::string("Ipv6SourceCidrIp"), ipv6SourceCidrIp); } -void ModifySecurityGroupRuleRequest::setIpv6DestCidrIp(const std::string& ipv6DestCidrIp) -{ - ipv6DestCidrIp_ = ipv6DestCidrIp; - setParameter("Ipv6DestCidrIp", ipv6DestCidrIp); +std::string ModifySecurityGroupRuleRequest::getIpv6DestCidrIp() const { + return ipv6DestCidrIp_; } -std::string ModifySecurityGroupRuleRequest::getPolicy()const -{ - return policy_; +void ModifySecurityGroupRuleRequest::setIpv6DestCidrIp(const std::string &ipv6DestCidrIp) { + ipv6DestCidrIp_ = ipv6DestCidrIp; + setParameter(std::string("Ipv6DestCidrIp"), ipv6DestCidrIp); } -void ModifySecurityGroupRuleRequest::setPolicy(const std::string& policy) -{ - policy_ = policy; - setParameter("Policy", policy); +std::string ModifySecurityGroupRuleRequest::getPolicy() const { + return policy_; } -std::string ModifySecurityGroupRuleRequest::getPortRange()const -{ - return portRange_; +void ModifySecurityGroupRuleRequest::setPolicy(const std::string &policy) { + policy_ = policy; + setParameter(std::string("Policy"), policy); } -void ModifySecurityGroupRuleRequest::setPortRange(const std::string& portRange) -{ - portRange_ = portRange; - setParameter("PortRange", portRange); +std::string ModifySecurityGroupRuleRequest::getPortRange() const { + return portRange_; } -std::string ModifySecurityGroupRuleRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifySecurityGroupRuleRequest::setPortRange(const std::string &portRange) { + portRange_ = portRange; + setParameter(std::string("PortRange"), portRange); } -void ModifySecurityGroupRuleRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifySecurityGroupRuleRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifySecurityGroupRuleRequest::getIpProtocol()const -{ - return ipProtocol_; +void ModifySecurityGroupRuleRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifySecurityGroupRuleRequest::setIpProtocol(const std::string& ipProtocol) -{ - ipProtocol_ = ipProtocol; - setParameter("IpProtocol", ipProtocol); +std::string ModifySecurityGroupRuleRequest::getIpProtocol() const { + return ipProtocol_; } -std::string ModifySecurityGroupRuleRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifySecurityGroupRuleRequest::setIpProtocol(const std::string &ipProtocol) { + ipProtocol_ = ipProtocol; + setParameter(std::string("IpProtocol"), ipProtocol); } -void ModifySecurityGroupRuleRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifySecurityGroupRuleRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string ModifySecurityGroupRuleRequest::getSourceCidrIp()const -{ - return sourceCidrIp_; +void ModifySecurityGroupRuleRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifySecurityGroupRuleRequest::setSourceCidrIp(const std::string& sourceCidrIp) -{ - sourceCidrIp_ = sourceCidrIp; - setParameter("SourceCidrIp", sourceCidrIp); +std::string ModifySecurityGroupRuleRequest::getSourceCidrIp() const { + return sourceCidrIp_; } -long ModifySecurityGroupRuleRequest::getOwnerId()const -{ - return ownerId_; +void ModifySecurityGroupRuleRequest::setSourceCidrIp(const std::string &sourceCidrIp) { + sourceCidrIp_ = sourceCidrIp; + setParameter(std::string("SourceCidrIp"), sourceCidrIp); } -void ModifySecurityGroupRuleRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifySecurityGroupRuleRequest::getOwnerId() const { + return ownerId_; } -std::string ModifySecurityGroupRuleRequest::getPriority()const -{ - return priority_; +void ModifySecurityGroupRuleRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifySecurityGroupRuleRequest::setPriority(const std::string& priority) -{ - priority_ = priority; - setParameter("Priority", priority); +std::string ModifySecurityGroupRuleRequest::getPriority() const { + return priority_; } -std::string ModifySecurityGroupRuleRequest::getDestCidrIp()const -{ - return destCidrIp_; +void ModifySecurityGroupRuleRequest::setPriority(const std::string &priority) { + priority_ = priority; + setParameter(std::string("Priority"), priority); } -void ModifySecurityGroupRuleRequest::setDestCidrIp(const std::string& destCidrIp) -{ - destCidrIp_ = destCidrIp; - setParameter("DestCidrIp", destCidrIp); +std::string ModifySecurityGroupRuleRequest::getDestCidrIp() const { + return destCidrIp_; } -std::string ModifySecurityGroupRuleRequest::getSourceGroupId()const -{ - return sourceGroupId_; +void ModifySecurityGroupRuleRequest::setDestCidrIp(const std::string &destCidrIp) { + destCidrIp_ = destCidrIp; + setParameter(std::string("DestCidrIp"), destCidrIp); } -void ModifySecurityGroupRuleRequest::setSourceGroupId(const std::string& sourceGroupId) -{ - sourceGroupId_ = sourceGroupId; - setParameter("SourceGroupId", sourceGroupId); +std::string ModifySecurityGroupRuleRequest::getSourceGroupId() const { + return sourceGroupId_; +} + +void ModifySecurityGroupRuleRequest::setSourceGroupId(const std::string &sourceGroupId) { + sourceGroupId_ = sourceGroupId; + setParameter(std::string("SourceGroupId"), sourceGroupId); } diff --git a/ecs/src/model/ModifySnapshotAttributeRequest.cc b/ecs/src/model/ModifySnapshotAttributeRequest.cc index 7eb451dff..f92ab7f1b 100644 --- a/ecs/src/model/ModifySnapshotAttributeRequest.cc +++ b/ecs/src/model/ModifySnapshotAttributeRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifySnapshotAttributeRequest; - -ModifySnapshotAttributeRequest::ModifySnapshotAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifySnapshotAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifySnapshotAttributeRequest::~ModifySnapshotAttributeRequest() -{} - -long ModifySnapshotAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifySnapshotAttributeRequest; + +ModifySnapshotAttributeRequest::ModifySnapshotAttributeRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifySnapshotAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifySnapshotAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifySnapshotAttributeRequest::~ModifySnapshotAttributeRequest() {} + +long ModifySnapshotAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifySnapshotAttributeRequest::getSnapshotId()const -{ - return snapshotId_; +void ModifySnapshotAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifySnapshotAttributeRequest::setSnapshotId(const std::string& snapshotId) -{ - snapshotId_ = snapshotId; - setParameter("SnapshotId", snapshotId); +std::string ModifySnapshotAttributeRequest::getSnapshotId() const { + return snapshotId_; } -std::string ModifySnapshotAttributeRequest::getDescription()const -{ - return description_; +void ModifySnapshotAttributeRequest::setSnapshotId(const std::string &snapshotId) { + snapshotId_ = snapshotId; + setParameter(std::string("SnapshotId"), snapshotId); } -void ModifySnapshotAttributeRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifySnapshotAttributeRequest::getDescription() const { + return description_; } -std::string ModifySnapshotAttributeRequest::getSnapshotName()const -{ - return snapshotName_; +void ModifySnapshotAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifySnapshotAttributeRequest::setSnapshotName(const std::string& snapshotName) -{ - snapshotName_ = snapshotName; - setParameter("SnapshotName", snapshotName); +std::string ModifySnapshotAttributeRequest::getSnapshotName() const { + return snapshotName_; } -std::string ModifySnapshotAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifySnapshotAttributeRequest::setSnapshotName(const std::string &snapshotName) { + snapshotName_ = snapshotName; + setParameter(std::string("SnapshotName"), snapshotName); } -void ModifySnapshotAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifySnapshotAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifySnapshotAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifySnapshotAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifySnapshotAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifySnapshotAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifySnapshotAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifySnapshotAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifySnapshotAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifySnapshotAttributeRequest::getOwnerId() const { + return ownerId_; } -bool ModifySnapshotAttributeRequest::getDisableInstantAccess()const -{ - return disableInstantAccess_; +void ModifySnapshotAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifySnapshotAttributeRequest::setDisableInstantAccess(bool disableInstantAccess) -{ - disableInstantAccess_ = disableInstantAccess; - setParameter("DisableInstantAccess", disableInstantAccess ? "true" : "false"); +bool ModifySnapshotAttributeRequest::getDisableInstantAccess() const { + return disableInstantAccess_; +} + +void ModifySnapshotAttributeRequest::setDisableInstantAccess(bool disableInstantAccess) { + disableInstantAccess_ = disableInstantAccess; + setParameter(std::string("DisableInstantAccess"), disableInstantAccess ? "true" : "false"); } diff --git a/ecs/src/model/ModifySnapshotGroupRequest.cc b/ecs/src/model/ModifySnapshotGroupRequest.cc index 36a042959..084db6600 100644 --- a/ecs/src/model/ModifySnapshotGroupRequest.cc +++ b/ecs/src/model/ModifySnapshotGroupRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifySnapshotGroupRequest; - -ModifySnapshotGroupRequest::ModifySnapshotGroupRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifySnapshotGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifySnapshotGroupRequest::~ModifySnapshotGroupRequest() -{} - -long ModifySnapshotGroupRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifySnapshotGroupRequest; + +ModifySnapshotGroupRequest::ModifySnapshotGroupRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifySnapshotGroup") { + setMethod(HttpRequest::Method::Post); } -void ModifySnapshotGroupRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifySnapshotGroupRequest::~ModifySnapshotGroupRequest() {} + +long ModifySnapshotGroupRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifySnapshotGroupRequest::getDescription()const -{ - return description_; +void ModifySnapshotGroupRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifySnapshotGroupRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifySnapshotGroupRequest::getDescription() const { + return description_; } -std::string ModifySnapshotGroupRequest::getRegionId()const -{ - return regionId_; +void ModifySnapshotGroupRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifySnapshotGroupRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifySnapshotGroupRequest::getRegionId() const { + return regionId_; } -std::string ModifySnapshotGroupRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifySnapshotGroupRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifySnapshotGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifySnapshotGroupRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifySnapshotGroupRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifySnapshotGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifySnapshotGroupRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifySnapshotGroupRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string ModifySnapshotGroupRequest::getSnapshotGroupId()const -{ - return snapshotGroupId_; +void ModifySnapshotGroupRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifySnapshotGroupRequest::setSnapshotGroupId(const std::string& snapshotGroupId) -{ - snapshotGroupId_ = snapshotGroupId; - setParameter("SnapshotGroupId", snapshotGroupId); +std::string ModifySnapshotGroupRequest::getSnapshotGroupId() const { + return snapshotGroupId_; } -long ModifySnapshotGroupRequest::getOwnerId()const -{ - return ownerId_; +void ModifySnapshotGroupRequest::setSnapshotGroupId(const std::string &snapshotGroupId) { + snapshotGroupId_ = snapshotGroupId; + setParameter(std::string("SnapshotGroupId"), snapshotGroupId); } -void ModifySnapshotGroupRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifySnapshotGroupRequest::getOwnerId() const { + return ownerId_; } -std::string ModifySnapshotGroupRequest::getName()const -{ - return name_; +void ModifySnapshotGroupRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifySnapshotGroupRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string ModifySnapshotGroupRequest::getName() const { + return name_; +} + +void ModifySnapshotGroupRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/ecs/src/model/ModifyStorageCapacityUnitAttributeRequest.cc b/ecs/src/model/ModifyStorageCapacityUnitAttributeRequest.cc index 32ad12ec7..3dee3980b 100644 --- a/ecs/src/model/ModifyStorageCapacityUnitAttributeRequest.cc +++ b/ecs/src/model/ModifyStorageCapacityUnitAttributeRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyStorageCapacityUnitAttributeRequest; - -ModifyStorageCapacityUnitAttributeRequest::ModifyStorageCapacityUnitAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyStorageCapacityUnitAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyStorageCapacityUnitAttributeRequest::~ModifyStorageCapacityUnitAttributeRequest() -{} - -long ModifyStorageCapacityUnitAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyStorageCapacityUnitAttributeRequest; + +ModifyStorageCapacityUnitAttributeRequest::ModifyStorageCapacityUnitAttributeRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyStorageCapacityUnitAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifyStorageCapacityUnitAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyStorageCapacityUnitAttributeRequest::~ModifyStorageCapacityUnitAttributeRequest() {} + +long ModifyStorageCapacityUnitAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyStorageCapacityUnitAttributeRequest::getDescription()const -{ - return description_; +void ModifyStorageCapacityUnitAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyStorageCapacityUnitAttributeRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyStorageCapacityUnitAttributeRequest::getDescription() const { + return description_; } -std::string ModifyStorageCapacityUnitAttributeRequest::getStorageCapacityUnitId()const -{ - return storageCapacityUnitId_; +void ModifyStorageCapacityUnitAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyStorageCapacityUnitAttributeRequest::setStorageCapacityUnitId(const std::string& storageCapacityUnitId) -{ - storageCapacityUnitId_ = storageCapacityUnitId; - setParameter("StorageCapacityUnitId", storageCapacityUnitId); +std::string ModifyStorageCapacityUnitAttributeRequest::getStorageCapacityUnitId() const { + return storageCapacityUnitId_; } -std::string ModifyStorageCapacityUnitAttributeRequest::getRegionId()const -{ - return regionId_; +void ModifyStorageCapacityUnitAttributeRequest::setStorageCapacityUnitId(const std::string &storageCapacityUnitId) { + storageCapacityUnitId_ = storageCapacityUnitId; + setParameter(std::string("StorageCapacityUnitId"), storageCapacityUnitId); } -void ModifyStorageCapacityUnitAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyStorageCapacityUnitAttributeRequest::getRegionId() const { + return regionId_; } -std::string ModifyStorageCapacityUnitAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyStorageCapacityUnitAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyStorageCapacityUnitAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyStorageCapacityUnitAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyStorageCapacityUnitAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyStorageCapacityUnitAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyStorageCapacityUnitAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyStorageCapacityUnitAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyStorageCapacityUnitAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyStorageCapacityUnitAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyStorageCapacityUnitAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyStorageCapacityUnitAttributeRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyStorageCapacityUnitAttributeRequest::getName()const -{ - return name_; +void ModifyStorageCapacityUnitAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyStorageCapacityUnitAttributeRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string ModifyStorageCapacityUnitAttributeRequest::getName() const { + return name_; +} + +void ModifyStorageCapacityUnitAttributeRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/ecs/src/model/ModifyStorageSetAttributeRequest.cc b/ecs/src/model/ModifyStorageSetAttributeRequest.cc index 6e928fb07..ae7ec802e 100644 --- a/ecs/src/model/ModifyStorageSetAttributeRequest.cc +++ b/ecs/src/model/ModifyStorageSetAttributeRequest.cc @@ -1,128 +1,108 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyStorageSetAttributeRequest; - -ModifyStorageSetAttributeRequest::ModifyStorageSetAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyStorageSetAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyStorageSetAttributeRequest::~ModifyStorageSetAttributeRequest() -{} - -long ModifyStorageSetAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyStorageSetAttributeRequest; + +ModifyStorageSetAttributeRequest::ModifyStorageSetAttributeRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyStorageSetAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifyStorageSetAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyStorageSetAttributeRequest::~ModifyStorageSetAttributeRequest() {} + +long ModifyStorageSetAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyStorageSetAttributeRequest::getClientToken()const -{ - return clientToken_; +void ModifyStorageSetAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyStorageSetAttributeRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ModifyStorageSetAttributeRequest::getClientToken() const { + return clientToken_; } -std::string ModifyStorageSetAttributeRequest::getDescription()const -{ - return description_; +void ModifyStorageSetAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ModifyStorageSetAttributeRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyStorageSetAttributeRequest::getDescription() const { + return description_; } -std::string ModifyStorageSetAttributeRequest::getRegionId()const -{ - return regionId_; +void ModifyStorageSetAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyStorageSetAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyStorageSetAttributeRequest::getRegionId() const { + return regionId_; } -std::string ModifyStorageSetAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyStorageSetAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyStorageSetAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyStorageSetAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyStorageSetAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyStorageSetAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyStorageSetAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyStorageSetAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyStorageSetAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyStorageSetAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyStorageSetAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyStorageSetAttributeRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyStorageSetAttributeRequest::getStorageSetId()const -{ - return storageSetId_; +void ModifyStorageSetAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyStorageSetAttributeRequest::setStorageSetId(const std::string& storageSetId) -{ - storageSetId_ = storageSetId; - setParameter("StorageSetId", storageSetId); +std::string ModifyStorageSetAttributeRequest::getStorageSetId() const { + return storageSetId_; } -std::string ModifyStorageSetAttributeRequest::getStorageSetName()const -{ - return storageSetName_; +void ModifyStorageSetAttributeRequest::setStorageSetId(const std::string &storageSetId) { + storageSetId_ = storageSetId; + setParameter(std::string("StorageSetId"), storageSetId); } -void ModifyStorageSetAttributeRequest::setStorageSetName(const std::string& storageSetName) -{ - storageSetName_ = storageSetName; - setParameter("StorageSetName", storageSetName); +std::string ModifyStorageSetAttributeRequest::getStorageSetName() const { + return storageSetName_; +} + +void ModifyStorageSetAttributeRequest::setStorageSetName(const std::string &storageSetName) { + storageSetName_ = storageSetName; + setParameter(std::string("StorageSetName"), storageSetName); } diff --git a/ecs/src/model/ModifyUserBusinessBehaviorRequest.cc b/ecs/src/model/ModifyUserBusinessBehaviorRequest.cc index 5a910ae74..70b4c8960 100644 --- a/ecs/src/model/ModifyUserBusinessBehaviorRequest.cc +++ b/ecs/src/model/ModifyUserBusinessBehaviorRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyUserBusinessBehaviorRequest; - -ModifyUserBusinessBehaviorRequest::ModifyUserBusinessBehaviorRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyUserBusinessBehavior") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyUserBusinessBehaviorRequest::~ModifyUserBusinessBehaviorRequest() -{} - -long ModifyUserBusinessBehaviorRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyUserBusinessBehaviorRequest; + +ModifyUserBusinessBehaviorRequest::ModifyUserBusinessBehaviorRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyUserBusinessBehavior") { + setMethod(HttpRequest::Method::Post); } -void ModifyUserBusinessBehaviorRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyUserBusinessBehaviorRequest::~ModifyUserBusinessBehaviorRequest() {} + +long ModifyUserBusinessBehaviorRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyUserBusinessBehaviorRequest::getRegionId()const -{ - return regionId_; +void ModifyUserBusinessBehaviorRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyUserBusinessBehaviorRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyUserBusinessBehaviorRequest::getRegionId() const { + return regionId_; } -std::string ModifyUserBusinessBehaviorRequest::getStatusValue()const -{ - return statusValue_; +void ModifyUserBusinessBehaviorRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyUserBusinessBehaviorRequest::setStatusValue(const std::string& statusValue) -{ - statusValue_ = statusValue; - setParameter("StatusValue", statusValue); +std::string ModifyUserBusinessBehaviorRequest::getStatusValue() const { + return statusValue_; } -std::string ModifyUserBusinessBehaviorRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyUserBusinessBehaviorRequest::setStatusValue(const std::string &statusValue) { + statusValue_ = statusValue; + setParameter(std::string("statusValue"), statusValue); } -void ModifyUserBusinessBehaviorRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyUserBusinessBehaviorRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyUserBusinessBehaviorRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyUserBusinessBehaviorRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyUserBusinessBehaviorRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyUserBusinessBehaviorRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyUserBusinessBehaviorRequest::getOwnerId()const -{ - return ownerId_; +void ModifyUserBusinessBehaviorRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyUserBusinessBehaviorRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyUserBusinessBehaviorRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyUserBusinessBehaviorRequest::getStatusKey()const -{ - return statusKey_; +void ModifyUserBusinessBehaviorRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyUserBusinessBehaviorRequest::setStatusKey(const std::string& statusKey) -{ - statusKey_ = statusKey; - setParameter("StatusKey", statusKey); +std::string ModifyUserBusinessBehaviorRequest::getStatusKey() const { + return statusKey_; +} + +void ModifyUserBusinessBehaviorRequest::setStatusKey(const std::string &statusKey) { + statusKey_ = statusKey; + setParameter(std::string("statusKey"), statusKey); } diff --git a/ecs/src/model/ModifyVRouterAttributeRequest.cc b/ecs/src/model/ModifyVRouterAttributeRequest.cc index 20a206ad7..20bebad2f 100644 --- a/ecs/src/model/ModifyVRouterAttributeRequest.cc +++ b/ecs/src/model/ModifyVRouterAttributeRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyVRouterAttributeRequest; - -ModifyVRouterAttributeRequest::ModifyVRouterAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyVRouterAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyVRouterAttributeRequest::~ModifyVRouterAttributeRequest() -{} - -long ModifyVRouterAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyVRouterAttributeRequest; + +ModifyVRouterAttributeRequest::ModifyVRouterAttributeRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyVRouterAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifyVRouterAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyVRouterAttributeRequest::~ModifyVRouterAttributeRequest() {} + +long ModifyVRouterAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyVRouterAttributeRequest::getVRouterId()const -{ - return vRouterId_; +void ModifyVRouterAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyVRouterAttributeRequest::setVRouterId(const std::string& vRouterId) -{ - vRouterId_ = vRouterId; - setParameter("VRouterId", vRouterId); +std::string ModifyVRouterAttributeRequest::getVRouterId() const { + return vRouterId_; } -std::string ModifyVRouterAttributeRequest::getDescription()const -{ - return description_; +void ModifyVRouterAttributeRequest::setVRouterId(const std::string &vRouterId) { + vRouterId_ = vRouterId; + setParameter(std::string("VRouterId"), vRouterId); } -void ModifyVRouterAttributeRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyVRouterAttributeRequest::getDescription() const { + return description_; } -std::string ModifyVRouterAttributeRequest::getVRouterName()const -{ - return vRouterName_; +void ModifyVRouterAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyVRouterAttributeRequest::setVRouterName(const std::string& vRouterName) -{ - vRouterName_ = vRouterName; - setParameter("VRouterName", vRouterName); +std::string ModifyVRouterAttributeRequest::getVRouterName() const { + return vRouterName_; } -std::string ModifyVRouterAttributeRequest::getRegionId()const -{ - return regionId_; +void ModifyVRouterAttributeRequest::setVRouterName(const std::string &vRouterName) { + vRouterName_ = vRouterName; + setParameter(std::string("VRouterName"), vRouterName); } -void ModifyVRouterAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyVRouterAttributeRequest::getRegionId() const { + return regionId_; } -std::string ModifyVRouterAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyVRouterAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyVRouterAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyVRouterAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyVRouterAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyVRouterAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyVRouterAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyVRouterAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyVRouterAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyVRouterAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyVRouterAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyVRouterAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyVRouterAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/ModifyVSwitchAttributeRequest.cc b/ecs/src/model/ModifyVSwitchAttributeRequest.cc index a32a62248..15bb91665 100644 --- a/ecs/src/model/ModifyVSwitchAttributeRequest.cc +++ b/ecs/src/model/ModifyVSwitchAttributeRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyVSwitchAttributeRequest; - -ModifyVSwitchAttributeRequest::ModifyVSwitchAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyVSwitchAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyVSwitchAttributeRequest::~ModifyVSwitchAttributeRequest() -{} - -long ModifyVSwitchAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyVSwitchAttributeRequest; + +ModifyVSwitchAttributeRequest::ModifyVSwitchAttributeRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyVSwitchAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifyVSwitchAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyVSwitchAttributeRequest::~ModifyVSwitchAttributeRequest() {} + +long ModifyVSwitchAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyVSwitchAttributeRequest::getDescription()const -{ - return description_; +void ModifyVSwitchAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyVSwitchAttributeRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyVSwitchAttributeRequest::getDescription() const { + return description_; } -std::string ModifyVSwitchAttributeRequest::getRegionId()const -{ - return regionId_; +void ModifyVSwitchAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyVSwitchAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyVSwitchAttributeRequest::getRegionId() const { + return regionId_; } -std::string ModifyVSwitchAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyVSwitchAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyVSwitchAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyVSwitchAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyVSwitchAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyVSwitchAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyVSwitchAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyVSwitchAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyVSwitchAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyVSwitchAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyVSwitchAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyVSwitchAttributeRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyVSwitchAttributeRequest::getVSwitchId()const -{ - return vSwitchId_; +void ModifyVSwitchAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyVSwitchAttributeRequest::setVSwitchId(const std::string& vSwitchId) -{ - vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); +std::string ModifyVSwitchAttributeRequest::getVSwitchId() const { + return vSwitchId_; } -std::string ModifyVSwitchAttributeRequest::getVSwitchName()const -{ - return vSwitchName_; +void ModifyVSwitchAttributeRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); } -void ModifyVSwitchAttributeRequest::setVSwitchName(const std::string& vSwitchName) -{ - vSwitchName_ = vSwitchName; - setParameter("VSwitchName", vSwitchName); +std::string ModifyVSwitchAttributeRequest::getVSwitchName() const { + return vSwitchName_; +} + +void ModifyVSwitchAttributeRequest::setVSwitchName(const std::string &vSwitchName) { + vSwitchName_ = vSwitchName; + setParameter(std::string("VSwitchName"), vSwitchName); } diff --git a/ecs/src/model/ModifyVirtualBorderRouterAttributeRequest.cc b/ecs/src/model/ModifyVirtualBorderRouterAttributeRequest.cc index dcca2bf0f..5adabc6c5 100644 --- a/ecs/src/model/ModifyVirtualBorderRouterAttributeRequest.cc +++ b/ecs/src/model/ModifyVirtualBorderRouterAttributeRequest.cc @@ -1,194 +1,162 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyVirtualBorderRouterAttributeRequest; - -ModifyVirtualBorderRouterAttributeRequest::ModifyVirtualBorderRouterAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyVirtualBorderRouterAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyVirtualBorderRouterAttributeRequest::~ModifyVirtualBorderRouterAttributeRequest() -{} - -long ModifyVirtualBorderRouterAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyVirtualBorderRouterAttributeRequest; + +ModifyVirtualBorderRouterAttributeRequest::ModifyVirtualBorderRouterAttributeRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyVirtualBorderRouterAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifyVirtualBorderRouterAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyVirtualBorderRouterAttributeRequest::~ModifyVirtualBorderRouterAttributeRequest() {} + +long ModifyVirtualBorderRouterAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyVirtualBorderRouterAttributeRequest::getCircuitCode()const -{ - return circuitCode_; +void ModifyVirtualBorderRouterAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyVirtualBorderRouterAttributeRequest::setCircuitCode(const std::string& circuitCode) -{ - circuitCode_ = circuitCode; - setParameter("CircuitCode", circuitCode); +std::string ModifyVirtualBorderRouterAttributeRequest::getCircuitCode() const { + return circuitCode_; } -int ModifyVirtualBorderRouterAttributeRequest::getVlanId()const -{ - return vlanId_; +void ModifyVirtualBorderRouterAttributeRequest::setCircuitCode(const std::string &circuitCode) { + circuitCode_ = circuitCode; + setParameter(std::string("CircuitCode"), circuitCode); } -void ModifyVirtualBorderRouterAttributeRequest::setVlanId(int vlanId) -{ - vlanId_ = vlanId; - setParameter("VlanId", std::to_string(vlanId)); +int ModifyVirtualBorderRouterAttributeRequest::getVlanId() const { + return vlanId_; } -std::string ModifyVirtualBorderRouterAttributeRequest::getClientToken()const -{ - return clientToken_; +void ModifyVirtualBorderRouterAttributeRequest::setVlanId(int vlanId) { + vlanId_ = vlanId; + setParameter(std::string("VlanId"), std::to_string(vlanId)); } -void ModifyVirtualBorderRouterAttributeRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ModifyVirtualBorderRouterAttributeRequest::getClientToken() const { + return clientToken_; } -std::string ModifyVirtualBorderRouterAttributeRequest::getDescription()const -{ - return description_; +void ModifyVirtualBorderRouterAttributeRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ModifyVirtualBorderRouterAttributeRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyVirtualBorderRouterAttributeRequest::getDescription() const { + return description_; } -std::string ModifyVirtualBorderRouterAttributeRequest::getVbrId()const -{ - return vbrId_; +void ModifyVirtualBorderRouterAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyVirtualBorderRouterAttributeRequest::setVbrId(const std::string& vbrId) -{ - vbrId_ = vbrId; - setParameter("VbrId", vbrId); +std::string ModifyVirtualBorderRouterAttributeRequest::getVbrId() const { + return vbrId_; } -std::string ModifyVirtualBorderRouterAttributeRequest::getPeerGatewayIp()const -{ - return peerGatewayIp_; +void ModifyVirtualBorderRouterAttributeRequest::setVbrId(const std::string &vbrId) { + vbrId_ = vbrId; + setParameter(std::string("VbrId"), vbrId); } -void ModifyVirtualBorderRouterAttributeRequest::setPeerGatewayIp(const std::string& peerGatewayIp) -{ - peerGatewayIp_ = peerGatewayIp; - setParameter("PeerGatewayIp", peerGatewayIp); +std::string ModifyVirtualBorderRouterAttributeRequest::getPeerGatewayIp() const { + return peerGatewayIp_; } -std::string ModifyVirtualBorderRouterAttributeRequest::getPeeringSubnetMask()const -{ - return peeringSubnetMask_; +void ModifyVirtualBorderRouterAttributeRequest::setPeerGatewayIp(const std::string &peerGatewayIp) { + peerGatewayIp_ = peerGatewayIp; + setParameter(std::string("PeerGatewayIp"), peerGatewayIp); } -void ModifyVirtualBorderRouterAttributeRequest::setPeeringSubnetMask(const std::string& peeringSubnetMask) -{ - peeringSubnetMask_ = peeringSubnetMask; - setParameter("PeeringSubnetMask", peeringSubnetMask); +std::string ModifyVirtualBorderRouterAttributeRequest::getPeeringSubnetMask() const { + return peeringSubnetMask_; } -std::string ModifyVirtualBorderRouterAttributeRequest::getRegionId()const -{ - return regionId_; +void ModifyVirtualBorderRouterAttributeRequest::setPeeringSubnetMask(const std::string &peeringSubnetMask) { + peeringSubnetMask_ = peeringSubnetMask; + setParameter(std::string("PeeringSubnetMask"), peeringSubnetMask); } -void ModifyVirtualBorderRouterAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyVirtualBorderRouterAttributeRequest::getRegionId() const { + return regionId_; } -std::string ModifyVirtualBorderRouterAttributeRequest::getLocalGatewayIp()const -{ - return localGatewayIp_; +void ModifyVirtualBorderRouterAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyVirtualBorderRouterAttributeRequest::setLocalGatewayIp(const std::string& localGatewayIp) -{ - localGatewayIp_ = localGatewayIp; - setParameter("LocalGatewayIp", localGatewayIp); +std::string ModifyVirtualBorderRouterAttributeRequest::getLocalGatewayIp() const { + return localGatewayIp_; } -std::string ModifyVirtualBorderRouterAttributeRequest::getUserCidr()const -{ - return userCidr_; +void ModifyVirtualBorderRouterAttributeRequest::setLocalGatewayIp(const std::string &localGatewayIp) { + localGatewayIp_ = localGatewayIp; + setParameter(std::string("LocalGatewayIp"), localGatewayIp); } -void ModifyVirtualBorderRouterAttributeRequest::setUserCidr(const std::string& userCidr) -{ - userCidr_ = userCidr; - setParameter("UserCidr", userCidr); +std::string ModifyVirtualBorderRouterAttributeRequest::getUserCidr() const { + return userCidr_; } -std::string ModifyVirtualBorderRouterAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyVirtualBorderRouterAttributeRequest::setUserCidr(const std::string &userCidr) { + userCidr_ = userCidr; + setParameter(std::string("UserCidr"), userCidr); } -void ModifyVirtualBorderRouterAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyVirtualBorderRouterAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyVirtualBorderRouterAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyVirtualBorderRouterAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyVirtualBorderRouterAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyVirtualBorderRouterAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyVirtualBorderRouterAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyVirtualBorderRouterAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyVirtualBorderRouterAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyVirtualBorderRouterAttributeRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyVirtualBorderRouterAttributeRequest::getName()const -{ - return name_; +void ModifyVirtualBorderRouterAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyVirtualBorderRouterAttributeRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string ModifyVirtualBorderRouterAttributeRequest::getName() const { + return name_; +} + +void ModifyVirtualBorderRouterAttributeRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/ecs/src/model/ModifyVpcAttributeRequest.cc b/ecs/src/model/ModifyVpcAttributeRequest.cc index 0d49746be..563523f4a 100644 --- a/ecs/src/model/ModifyVpcAttributeRequest.cc +++ b/ecs/src/model/ModifyVpcAttributeRequest.cc @@ -1,139 +1,117 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ModifyVpcAttributeRequest; - -ModifyVpcAttributeRequest::ModifyVpcAttributeRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ModifyVpcAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyVpcAttributeRequest::~ModifyVpcAttributeRequest() -{} - -long ModifyVpcAttributeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ModifyVpcAttributeRequest; + +ModifyVpcAttributeRequest::ModifyVpcAttributeRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ModifyVpcAttribute") { + setMethod(HttpRequest::Method::Post); } -void ModifyVpcAttributeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ModifyVpcAttributeRequest::~ModifyVpcAttributeRequest() {} + +long ModifyVpcAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ModifyVpcAttributeRequest::getDescription()const -{ - return description_; +void ModifyVpcAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ModifyVpcAttributeRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyVpcAttributeRequest::getDescription() const { + return description_; } -std::string ModifyVpcAttributeRequest::getVpcName()const -{ - return vpcName_; +void ModifyVpcAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyVpcAttributeRequest::setVpcName(const std::string& vpcName) -{ - vpcName_ = vpcName; - setParameter("VpcName", vpcName); +std::string ModifyVpcAttributeRequest::getVpcName() const { + return vpcName_; } -std::string ModifyVpcAttributeRequest::getRegionId()const -{ - return regionId_; +void ModifyVpcAttributeRequest::setVpcName(const std::string &vpcName) { + vpcName_ = vpcName; + setParameter(std::string("VpcName"), vpcName); } -void ModifyVpcAttributeRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ModifyVpcAttributeRequest::getRegionId() const { + return regionId_; } -std::string ModifyVpcAttributeRequest::getUserCidr()const -{ - return userCidr_; +void ModifyVpcAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ModifyVpcAttributeRequest::setUserCidr(const std::string& userCidr) -{ - userCidr_ = userCidr; - setParameter("UserCidr", userCidr); +std::string ModifyVpcAttributeRequest::getUserCidr() const { + return userCidr_; } -std::string ModifyVpcAttributeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ModifyVpcAttributeRequest::setUserCidr(const std::string &userCidr) { + userCidr_ = userCidr; + setParameter(std::string("UserCidr"), userCidr); } -void ModifyVpcAttributeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ModifyVpcAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ModifyVpcAttributeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ModifyVpcAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ModifyVpcAttributeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ModifyVpcAttributeRequest::getOwnerAccount() const { + return ownerAccount_; } -long ModifyVpcAttributeRequest::getOwnerId()const -{ - return ownerId_; +void ModifyVpcAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ModifyVpcAttributeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ModifyVpcAttributeRequest::getOwnerId() const { + return ownerId_; } -std::string ModifyVpcAttributeRequest::getVpcId()const -{ - return vpcId_; +void ModifyVpcAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ModifyVpcAttributeRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +std::string ModifyVpcAttributeRequest::getVpcId() const { + return vpcId_; } -std::string ModifyVpcAttributeRequest::getCidrBlock()const -{ - return cidrBlock_; +void ModifyVpcAttributeRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); } -void ModifyVpcAttributeRequest::setCidrBlock(const std::string& cidrBlock) -{ - cidrBlock_ = cidrBlock; - setParameter("CidrBlock", cidrBlock); +std::string ModifyVpcAttributeRequest::getCidrBlock() const { + return cidrBlock_; +} + +void ModifyVpcAttributeRequest::setCidrBlock(const std::string &cidrBlock) { + cidrBlock_ = cidrBlock; + setParameter(std::string("CidrBlock"), cidrBlock); } diff --git a/ecs/src/model/PurchaseReservedInstancesOfferingRequest.cc b/ecs/src/model/PurchaseReservedInstancesOfferingRequest.cc index 4867b35c0..277da9c82 100644 --- a/ecs/src/model/PurchaseReservedInstancesOfferingRequest.cc +++ b/ecs/src/model/PurchaseReservedInstancesOfferingRequest.cc @@ -1,232 +1,194 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::PurchaseReservedInstancesOfferingRequest; - -PurchaseReservedInstancesOfferingRequest::PurchaseReservedInstancesOfferingRequest() : - RpcServiceRequest("ecs", "2014-05-26", "PurchaseReservedInstancesOffering") -{ - setMethod(HttpRequest::Method::Post); -} - -PurchaseReservedInstancesOfferingRequest::~PurchaseReservedInstancesOfferingRequest() -{} - -long PurchaseReservedInstancesOfferingRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::PurchaseReservedInstancesOfferingRequest; + +PurchaseReservedInstancesOfferingRequest::PurchaseReservedInstancesOfferingRequest() + : RpcServiceRequest("ecs", "2014-05-26", "PurchaseReservedInstancesOffering") { + setMethod(HttpRequest::Method::Post); } -void PurchaseReservedInstancesOfferingRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +PurchaseReservedInstancesOfferingRequest::~PurchaseReservedInstancesOfferingRequest() {} + +long PurchaseReservedInstancesOfferingRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string PurchaseReservedInstancesOfferingRequest::getClientToken()const -{ - return clientToken_; +void PurchaseReservedInstancesOfferingRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void PurchaseReservedInstancesOfferingRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string PurchaseReservedInstancesOfferingRequest::getClientToken() const { + return clientToken_; } -std::string PurchaseReservedInstancesOfferingRequest::getDescription()const -{ - return description_; +void PurchaseReservedInstancesOfferingRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void PurchaseReservedInstancesOfferingRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string PurchaseReservedInstancesOfferingRequest::getDescription() const { + return description_; } -std::string PurchaseReservedInstancesOfferingRequest::getPlatform()const -{ - return platform_; +void PurchaseReservedInstancesOfferingRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void PurchaseReservedInstancesOfferingRequest::setPlatform(const std::string& platform) -{ - platform_ = platform; - setParameter("Platform", platform); +std::string PurchaseReservedInstancesOfferingRequest::getPlatform() const { + return platform_; } -std::string PurchaseReservedInstancesOfferingRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void PurchaseReservedInstancesOfferingRequest::setPlatform(const std::string &platform) { + platform_ = platform; + setParameter(std::string("Platform"), platform); } -void PurchaseReservedInstancesOfferingRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string PurchaseReservedInstancesOfferingRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string PurchaseReservedInstancesOfferingRequest::getRegionId()const -{ - return regionId_; +void PurchaseReservedInstancesOfferingRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void PurchaseReservedInstancesOfferingRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string PurchaseReservedInstancesOfferingRequest::getRegionId() const { + return regionId_; } -std::string PurchaseReservedInstancesOfferingRequest::getScope()const -{ - return scope_; +void PurchaseReservedInstancesOfferingRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void PurchaseReservedInstancesOfferingRequest::setScope(const std::string& scope) -{ - scope_ = scope; - setParameter("Scope", scope); +std::string PurchaseReservedInstancesOfferingRequest::getScope() const { + return scope_; } -std::string PurchaseReservedInstancesOfferingRequest::getInstanceType()const -{ - return instanceType_; +void PurchaseReservedInstancesOfferingRequest::setScope(const std::string &scope) { + scope_ = scope; + setParameter(std::string("Scope"), scope); } -void PurchaseReservedInstancesOfferingRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +std::string PurchaseReservedInstancesOfferingRequest::getInstanceType() const { + return instanceType_; } -std::vector PurchaseReservedInstancesOfferingRequest::getTag()const -{ - return tag_; +void PurchaseReservedInstancesOfferingRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } -void PurchaseReservedInstancesOfferingRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Key", tagObj.key); - setParameter(tagObjStr + ".Value", tagObj.value); - } +std::vector PurchaseReservedInstancesOfferingRequest::getTag() const { + return tag_; } -int PurchaseReservedInstancesOfferingRequest::getPeriod()const -{ - return period_; +void PurchaseReservedInstancesOfferingRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } } -void PurchaseReservedInstancesOfferingRequest::setPeriod(int period) -{ - period_ = period; - setParameter("Period", std::to_string(period)); +int PurchaseReservedInstancesOfferingRequest::getPeriod() const { + return period_; } -std::string PurchaseReservedInstancesOfferingRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void PurchaseReservedInstancesOfferingRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); } -void PurchaseReservedInstancesOfferingRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string PurchaseReservedInstancesOfferingRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string PurchaseReservedInstancesOfferingRequest::getOwnerAccount()const -{ - return ownerAccount_; +void PurchaseReservedInstancesOfferingRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void PurchaseReservedInstancesOfferingRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string PurchaseReservedInstancesOfferingRequest::getOwnerAccount() const { + return ownerAccount_; } -long PurchaseReservedInstancesOfferingRequest::getOwnerId()const -{ - return ownerId_; +void PurchaseReservedInstancesOfferingRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void PurchaseReservedInstancesOfferingRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long PurchaseReservedInstancesOfferingRequest::getOwnerId() const { + return ownerId_; } -std::string PurchaseReservedInstancesOfferingRequest::getPeriodUnit()const -{ - return periodUnit_; +void PurchaseReservedInstancesOfferingRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void PurchaseReservedInstancesOfferingRequest::setPeriodUnit(const std::string& periodUnit) -{ - periodUnit_ = periodUnit; - setParameter("PeriodUnit", periodUnit); +std::string PurchaseReservedInstancesOfferingRequest::getPeriodUnit() const { + return periodUnit_; } -std::string PurchaseReservedInstancesOfferingRequest::getOfferingType()const -{ - return offeringType_; +void PurchaseReservedInstancesOfferingRequest::setPeriodUnit(const std::string &periodUnit) { + periodUnit_ = periodUnit; + setParameter(std::string("PeriodUnit"), periodUnit); } -void PurchaseReservedInstancesOfferingRequest::setOfferingType(const std::string& offeringType) -{ - offeringType_ = offeringType; - setParameter("OfferingType", offeringType); +std::string PurchaseReservedInstancesOfferingRequest::getOfferingType() const { + return offeringType_; } -std::string PurchaseReservedInstancesOfferingRequest::getZoneId()const -{ - return zoneId_; +void PurchaseReservedInstancesOfferingRequest::setOfferingType(const std::string &offeringType) { + offeringType_ = offeringType; + setParameter(std::string("OfferingType"), offeringType); } -void PurchaseReservedInstancesOfferingRequest::setZoneId(const std::string& zoneId) -{ - zoneId_ = zoneId; - setParameter("ZoneId", zoneId); +std::string PurchaseReservedInstancesOfferingRequest::getZoneId() const { + return zoneId_; } -std::string PurchaseReservedInstancesOfferingRequest::getReservedInstanceName()const -{ - return reservedInstanceName_; +void PurchaseReservedInstancesOfferingRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); } -void PurchaseReservedInstancesOfferingRequest::setReservedInstanceName(const std::string& reservedInstanceName) -{ - reservedInstanceName_ = reservedInstanceName; - setParameter("ReservedInstanceName", reservedInstanceName); +std::string PurchaseReservedInstancesOfferingRequest::getReservedInstanceName() const { + return reservedInstanceName_; } -int PurchaseReservedInstancesOfferingRequest::getInstanceAmount()const -{ - return instanceAmount_; +void PurchaseReservedInstancesOfferingRequest::setReservedInstanceName(const std::string &reservedInstanceName) { + reservedInstanceName_ = reservedInstanceName; + setParameter(std::string("ReservedInstanceName"), reservedInstanceName); } -void PurchaseReservedInstancesOfferingRequest::setInstanceAmount(int instanceAmount) -{ - instanceAmount_ = instanceAmount; - setParameter("InstanceAmount", std::to_string(instanceAmount)); +int PurchaseReservedInstancesOfferingRequest::getInstanceAmount() const { + return instanceAmount_; +} + +void PurchaseReservedInstancesOfferingRequest::setInstanceAmount(int instanceAmount) { + instanceAmount_ = instanceAmount; + setParameter(std::string("InstanceAmount"), std::to_string(instanceAmount)); } diff --git a/ecs/src/model/PurchaseStorageCapacityUnitRequest.cc b/ecs/src/model/PurchaseStorageCapacityUnitRequest.cc index 8522e8e82..6f761c049 100644 --- a/ecs/src/model/PurchaseStorageCapacityUnitRequest.cc +++ b/ecs/src/model/PurchaseStorageCapacityUnitRequest.cc @@ -1,199 +1,167 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::PurchaseStorageCapacityUnitRequest; - -PurchaseStorageCapacityUnitRequest::PurchaseStorageCapacityUnitRequest() : - RpcServiceRequest("ecs", "2014-05-26", "PurchaseStorageCapacityUnit") -{ - setMethod(HttpRequest::Method::Post); -} - -PurchaseStorageCapacityUnitRequest::~PurchaseStorageCapacityUnitRequest() -{} - -long PurchaseStorageCapacityUnitRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::PurchaseStorageCapacityUnitRequest; + +PurchaseStorageCapacityUnitRequest::PurchaseStorageCapacityUnitRequest() + : RpcServiceRequest("ecs", "2014-05-26", "PurchaseStorageCapacityUnit") { + setMethod(HttpRequest::Method::Post); } -void PurchaseStorageCapacityUnitRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +PurchaseStorageCapacityUnitRequest::~PurchaseStorageCapacityUnitRequest() {} + +long PurchaseStorageCapacityUnitRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string PurchaseStorageCapacityUnitRequest::getClientToken()const -{ - return clientToken_; +void PurchaseStorageCapacityUnitRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void PurchaseStorageCapacityUnitRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string PurchaseStorageCapacityUnitRequest::getClientToken() const { + return clientToken_; } -std::string PurchaseStorageCapacityUnitRequest::getDescription()const -{ - return description_; +void PurchaseStorageCapacityUnitRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void PurchaseStorageCapacityUnitRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string PurchaseStorageCapacityUnitRequest::getDescription() const { + return description_; } -std::string PurchaseStorageCapacityUnitRequest::getStartTime()const -{ - return startTime_; +void PurchaseStorageCapacityUnitRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void PurchaseStorageCapacityUnitRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string PurchaseStorageCapacityUnitRequest::getStartTime() const { + return startTime_; } -int PurchaseStorageCapacityUnitRequest::getCapacity()const -{ - return capacity_; +void PurchaseStorageCapacityUnitRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void PurchaseStorageCapacityUnitRequest::setCapacity(int capacity) -{ - capacity_ = capacity; - setParameter("Capacity", std::to_string(capacity)); +int PurchaseStorageCapacityUnitRequest::getCapacity() const { + return capacity_; } -std::string PurchaseStorageCapacityUnitRequest::getRegionId()const -{ - return regionId_; +void PurchaseStorageCapacityUnitRequest::setCapacity(int capacity) { + capacity_ = capacity; + setParameter(std::string("Capacity"), std::to_string(capacity)); } -void PurchaseStorageCapacityUnitRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string PurchaseStorageCapacityUnitRequest::getRegionId() const { + return regionId_; } -std::vector PurchaseStorageCapacityUnitRequest::getTag()const -{ - return tag_; +void PurchaseStorageCapacityUnitRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void PurchaseStorageCapacityUnitRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Key", tagObj.key); - setParameter(tagObjStr + ".Value", tagObj.value); - } +std::vector PurchaseStorageCapacityUnitRequest::getTag() const { + return tag_; } -int PurchaseStorageCapacityUnitRequest::getPeriod()const -{ - return period_; +void PurchaseStorageCapacityUnitRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } } -void PurchaseStorageCapacityUnitRequest::setPeriod(int period) -{ - period_ = period; - setParameter("Period", std::to_string(period)); +int PurchaseStorageCapacityUnitRequest::getPeriod() const { + return period_; } -int PurchaseStorageCapacityUnitRequest::getAmount()const -{ - return amount_; +void PurchaseStorageCapacityUnitRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); } -void PurchaseStorageCapacityUnitRequest::setAmount(int amount) -{ - amount_ = amount; - setParameter("Amount", std::to_string(amount)); +int PurchaseStorageCapacityUnitRequest::getAmount() const { + return amount_; } -std::string PurchaseStorageCapacityUnitRequest::getFromApp()const -{ - return fromApp_; +void PurchaseStorageCapacityUnitRequest::setAmount(int amount) { + amount_ = amount; + setParameter(std::string("Amount"), std::to_string(amount)); } -void PurchaseStorageCapacityUnitRequest::setFromApp(const std::string& fromApp) -{ - fromApp_ = fromApp; - setParameter("FromApp", fromApp); +std::string PurchaseStorageCapacityUnitRequest::getFromApp() const { + return fromApp_; } -std::string PurchaseStorageCapacityUnitRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void PurchaseStorageCapacityUnitRequest::setFromApp(const std::string &fromApp) { + fromApp_ = fromApp; + setParameter(std::string("FromApp"), fromApp); } -void PurchaseStorageCapacityUnitRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string PurchaseStorageCapacityUnitRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string PurchaseStorageCapacityUnitRequest::getOwnerAccount()const -{ - return ownerAccount_; +void PurchaseStorageCapacityUnitRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void PurchaseStorageCapacityUnitRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string PurchaseStorageCapacityUnitRequest::getOwnerAccount() const { + return ownerAccount_; } -long PurchaseStorageCapacityUnitRequest::getOwnerId()const -{ - return ownerId_; +void PurchaseStorageCapacityUnitRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void PurchaseStorageCapacityUnitRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long PurchaseStorageCapacityUnitRequest::getOwnerId() const { + return ownerId_; } -std::string PurchaseStorageCapacityUnitRequest::getPeriodUnit()const -{ - return periodUnit_; +void PurchaseStorageCapacityUnitRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void PurchaseStorageCapacityUnitRequest::setPeriodUnit(const std::string& periodUnit) -{ - periodUnit_ = periodUnit; - setParameter("PeriodUnit", periodUnit); +std::string PurchaseStorageCapacityUnitRequest::getPeriodUnit() const { + return periodUnit_; } -std::string PurchaseStorageCapacityUnitRequest::getName()const -{ - return name_; +void PurchaseStorageCapacityUnitRequest::setPeriodUnit(const std::string &periodUnit) { + periodUnit_ = periodUnit; + setParameter(std::string("PeriodUnit"), periodUnit); } -void PurchaseStorageCapacityUnitRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string PurchaseStorageCapacityUnitRequest::getName() const { + return name_; +} + +void PurchaseStorageCapacityUnitRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/ecs/src/model/ReActivateInstancesRequest.cc b/ecs/src/model/ReActivateInstancesRequest.cc index 421dc0a04..730097e6a 100644 --- a/ecs/src/model/ReActivateInstancesRequest.cc +++ b/ecs/src/model/ReActivateInstancesRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ReActivateInstancesRequest; - -ReActivateInstancesRequest::ReActivateInstancesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ReActivateInstances") -{ - setMethod(HttpRequest::Method::Post); -} - -ReActivateInstancesRequest::~ReActivateInstancesRequest() -{} - -long ReActivateInstancesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ReActivateInstancesRequest; + +ReActivateInstancesRequest::ReActivateInstancesRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ReActivateInstances") { + setMethod(HttpRequest::Method::Post); } -void ReActivateInstancesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ReActivateInstancesRequest::~ReActivateInstancesRequest() {} + +long ReActivateInstancesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ReActivateInstancesRequest::getRegionId()const -{ - return regionId_; +void ReActivateInstancesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ReActivateInstancesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ReActivateInstancesRequest::getRegionId() const { + return regionId_; } -std::string ReActivateInstancesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ReActivateInstancesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ReActivateInstancesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ReActivateInstancesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ReActivateInstancesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ReActivateInstancesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ReActivateInstancesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ReActivateInstancesRequest::getOwnerAccount() const { + return ownerAccount_; } -long ReActivateInstancesRequest::getOwnerId()const -{ - return ownerId_; +void ReActivateInstancesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ReActivateInstancesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ReActivateInstancesRequest::getOwnerId() const { + return ownerId_; } -std::string ReActivateInstancesRequest::getInstanceId()const -{ - return instanceId_; +void ReActivateInstancesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ReActivateInstancesRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ReActivateInstancesRequest::getInstanceId() const { + return instanceId_; +} + +void ReActivateInstancesRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/ecs/src/model/ReInitDiskRequest.cc b/ecs/src/model/ReInitDiskRequest.cc index ee46333b0..5ea845c40 100644 --- a/ecs/src/model/ReInitDiskRequest.cc +++ b/ecs/src/model/ReInitDiskRequest.cc @@ -1,128 +1,108 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ReInitDiskRequest; - -ReInitDiskRequest::ReInitDiskRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ReInitDisk") -{ - setMethod(HttpRequest::Method::Post); -} - -ReInitDiskRequest::~ReInitDiskRequest() -{} - -long ReInitDiskRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ReInitDiskRequest; + +ReInitDiskRequest::ReInitDiskRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ReInitDisk") { + setMethod(HttpRequest::Method::Post); } -void ReInitDiskRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ReInitDiskRequest::~ReInitDiskRequest() {} + +long ReInitDiskRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -bool ReInitDiskRequest::getAutoStartInstance()const -{ - return autoStartInstance_; +void ReInitDiskRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ReInitDiskRequest::setAutoStartInstance(bool autoStartInstance) -{ - autoStartInstance_ = autoStartInstance; - setParameter("AutoStartInstance", autoStartInstance ? "true" : "false"); +bool ReInitDiskRequest::getAutoStartInstance() const { + return autoStartInstance_; } -std::string ReInitDiskRequest::getSecurityEnhancementStrategy()const -{ - return securityEnhancementStrategy_; +void ReInitDiskRequest::setAutoStartInstance(bool autoStartInstance) { + autoStartInstance_ = autoStartInstance; + setParameter(std::string("AutoStartInstance"), autoStartInstance ? "true" : "false"); } -void ReInitDiskRequest::setSecurityEnhancementStrategy(const std::string& securityEnhancementStrategy) -{ - securityEnhancementStrategy_ = securityEnhancementStrategy; - setParameter("SecurityEnhancementStrategy", securityEnhancementStrategy); +std::string ReInitDiskRequest::getSecurityEnhancementStrategy() const { + return securityEnhancementStrategy_; } -std::string ReInitDiskRequest::getKeyPairName()const -{ - return keyPairName_; +void ReInitDiskRequest::setSecurityEnhancementStrategy(const std::string &securityEnhancementStrategy) { + securityEnhancementStrategy_ = securityEnhancementStrategy; + setParameter(std::string("SecurityEnhancementStrategy"), securityEnhancementStrategy); } -void ReInitDiskRequest::setKeyPairName(const std::string& keyPairName) -{ - keyPairName_ = keyPairName; - setParameter("KeyPairName", keyPairName); +std::string ReInitDiskRequest::getKeyPairName() const { + return keyPairName_; } -std::string ReInitDiskRequest::getPassword()const -{ - return password_; +void ReInitDiskRequest::setKeyPairName(const std::string &keyPairName) { + keyPairName_ = keyPairName; + setParameter(std::string("KeyPairName"), keyPairName); } -void ReInitDiskRequest::setPassword(const std::string& password) -{ - password_ = password; - setParameter("Password", password); +std::string ReInitDiskRequest::getPassword() const { + return password_; } -std::string ReInitDiskRequest::getDiskId()const -{ - return diskId_; +void ReInitDiskRequest::setPassword(const std::string &password) { + password_ = password; + setParameter(std::string("Password"), password); } -void ReInitDiskRequest::setDiskId(const std::string& diskId) -{ - diskId_ = diskId; - setParameter("DiskId", diskId); +std::string ReInitDiskRequest::getDiskId() const { + return diskId_; } -std::string ReInitDiskRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ReInitDiskRequest::setDiskId(const std::string &diskId) { + diskId_ = diskId; + setParameter(std::string("DiskId"), diskId); } -void ReInitDiskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ReInitDiskRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ReInitDiskRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ReInitDiskRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ReInitDiskRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ReInitDiskRequest::getOwnerAccount() const { + return ownerAccount_; } -long ReInitDiskRequest::getOwnerId()const -{ - return ownerId_; +void ReInitDiskRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ReInitDiskRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ReInitDiskRequest::getOwnerId() const { + return ownerId_; +} + +void ReInitDiskRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/RebootInstanceRequest.cc b/ecs/src/model/RebootInstanceRequest.cc index ef4909ba2..e59e2dfc1 100644 --- a/ecs/src/model/RebootInstanceRequest.cc +++ b/ecs/src/model/RebootInstanceRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::RebootInstanceRequest; - -RebootInstanceRequest::RebootInstanceRequest() : - RpcServiceRequest("ecs", "2014-05-26", "RebootInstance") -{ - setMethod(HttpRequest::Method::Post); -} - -RebootInstanceRequest::~RebootInstanceRequest() -{} - -long RebootInstanceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::RebootInstanceRequest; + +RebootInstanceRequest::RebootInstanceRequest() + : RpcServiceRequest("ecs", "2014-05-26", "RebootInstance") { + setMethod(HttpRequest::Method::Post); } -void RebootInstanceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +RebootInstanceRequest::~RebootInstanceRequest() {} + +long RebootInstanceRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -bool RebootInstanceRequest::getForceStop()const -{ - return forceStop_; +void RebootInstanceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void RebootInstanceRequest::setForceStop(bool forceStop) -{ - forceStop_ = forceStop; - setParameter("ForceStop", forceStop ? "true" : "false"); +bool RebootInstanceRequest::getForceStop() const { + return forceStop_; } -bool RebootInstanceRequest::getDryRun()const -{ - return dryRun_; +void RebootInstanceRequest::setForceStop(bool forceStop) { + forceStop_ = forceStop; + setParameter(std::string("ForceStop"), forceStop ? "true" : "false"); } -void RebootInstanceRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool RebootInstanceRequest::getDryRun() const { + return dryRun_; } -std::string RebootInstanceRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void RebootInstanceRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void RebootInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string RebootInstanceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string RebootInstanceRequest::getOwnerAccount()const -{ - return ownerAccount_; +void RebootInstanceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void RebootInstanceRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string RebootInstanceRequest::getOwnerAccount() const { + return ownerAccount_; } -long RebootInstanceRequest::getOwnerId()const -{ - return ownerId_; +void RebootInstanceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void RebootInstanceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long RebootInstanceRequest::getOwnerId() const { + return ownerId_; } -std::string RebootInstanceRequest::getInstanceId()const -{ - return instanceId_; +void RebootInstanceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void RebootInstanceRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string RebootInstanceRequest::getInstanceId() const { + return instanceId_; +} + +void RebootInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/ecs/src/model/RebootInstancesRequest.cc b/ecs/src/model/RebootInstancesRequest.cc index 736a993df..dcb1b6cf7 100644 --- a/ecs/src/model/RebootInstancesRequest.cc +++ b/ecs/src/model/RebootInstancesRequest.cc @@ -1,130 +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 - -using AlibabaCloud::Ecs::Model::RebootInstancesRequest; - -RebootInstancesRequest::RebootInstancesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "RebootInstances") -{ - setMethod(HttpRequest::Method::Post); -} - -RebootInstancesRequest::~RebootInstancesRequest() -{} - -long RebootInstancesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::RebootInstancesRequest; + +RebootInstancesRequest::RebootInstancesRequest() + : RpcServiceRequest("ecs", "2014-05-26", "RebootInstances") { + setMethod(HttpRequest::Method::Post); } -void RebootInstancesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +RebootInstancesRequest::~RebootInstancesRequest() {} + +long RebootInstancesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string RebootInstancesRequest::getRegionId()const -{ - return regionId_; +void RebootInstancesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void RebootInstancesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string RebootInstancesRequest::getRegionId() const { + return regionId_; } -std::string RebootInstancesRequest::getBatchOptimization()const -{ - return batchOptimization_; +void RebootInstancesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void RebootInstancesRequest::setBatchOptimization(const std::string& batchOptimization) -{ - batchOptimization_ = batchOptimization; - setParameter("BatchOptimization", batchOptimization); +std::string RebootInstancesRequest::getBatchOptimization() const { + return batchOptimization_; } -bool RebootInstancesRequest::getDryRun()const -{ - return dryRun_; +void RebootInstancesRequest::setBatchOptimization(const std::string &batchOptimization) { + batchOptimization_ = batchOptimization; + setParameter(std::string("BatchOptimization"), batchOptimization); } -void RebootInstancesRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool RebootInstancesRequest::getDryRun() const { + return dryRun_; } -std::string RebootInstancesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void RebootInstancesRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void RebootInstancesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string RebootInstancesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string RebootInstancesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void RebootInstancesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void RebootInstancesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string RebootInstancesRequest::getOwnerAccount() const { + return ownerAccount_; } -long RebootInstancesRequest::getOwnerId()const -{ - return ownerId_; +void RebootInstancesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void RebootInstancesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long RebootInstancesRequest::getOwnerId() const { + return ownerId_; } -bool RebootInstancesRequest::getForceReboot()const -{ - return forceReboot_; +void RebootInstancesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void RebootInstancesRequest::setForceReboot(bool forceReboot) -{ - forceReboot_ = forceReboot; - setParameter("ForceReboot", forceReboot ? "true" : "false"); +bool RebootInstancesRequest::getForceReboot() const { + return forceReboot_; } -std::vector RebootInstancesRequest::getInstanceId()const -{ - return instanceId_; +void RebootInstancesRequest::setForceReboot(bool forceReboot) { + forceReboot_ = forceReboot; + setParameter(std::string("ForceReboot"), forceReboot ? "true" : "false"); } -void RebootInstancesRequest::setInstanceId(const std::vector& instanceId) -{ - instanceId_ = instanceId; - for(int dep1 = 0; dep1!= instanceId.size(); dep1++) { - setParameter("InstanceId."+ std::to_string(dep1), instanceId.at(dep1)); - } +std::vector RebootInstancesRequest::getInstanceId() const { + return instanceId_; +} + +void RebootInstancesRequest::setInstanceId(const std::vector &instanceId) { + instanceId_ = instanceId; } diff --git a/ecs/src/model/RebootInstancesResult.cc b/ecs/src/model/RebootInstancesResult.cc index 5fd3dc6b2..00147bbbe 100644 --- a/ecs/src/model/RebootInstancesResult.cc +++ b/ecs/src/model/RebootInstancesResult.cc @@ -43,16 +43,16 @@ void RebootInstancesResult::parse(const std::string &payload) for (auto valueInstanceResponsesInstanceResponse : allInstanceResponsesNode) { InstanceResponse instanceResponsesObject; - if(!valueInstanceResponsesInstanceResponse["InstanceId"].isNull()) - instanceResponsesObject.instanceId = valueInstanceResponsesInstanceResponse["InstanceId"].asString(); - if(!valueInstanceResponsesInstanceResponse["PreviousStatus"].isNull()) - instanceResponsesObject.previousStatus = valueInstanceResponsesInstanceResponse["PreviousStatus"].asString(); - if(!valueInstanceResponsesInstanceResponse["CurrentStatus"].isNull()) - instanceResponsesObject.currentStatus = valueInstanceResponsesInstanceResponse["CurrentStatus"].asString(); if(!valueInstanceResponsesInstanceResponse["Code"].isNull()) instanceResponsesObject.code = valueInstanceResponsesInstanceResponse["Code"].asString(); if(!valueInstanceResponsesInstanceResponse["Message"].isNull()) instanceResponsesObject.message = valueInstanceResponsesInstanceResponse["Message"].asString(); + if(!valueInstanceResponsesInstanceResponse["InstanceId"].isNull()) + instanceResponsesObject.instanceId = valueInstanceResponsesInstanceResponse["InstanceId"].asString(); + if(!valueInstanceResponsesInstanceResponse["CurrentStatus"].isNull()) + instanceResponsesObject.currentStatus = valueInstanceResponsesInstanceResponse["CurrentStatus"].asString(); + if(!valueInstanceResponsesInstanceResponse["PreviousStatus"].isNull()) + instanceResponsesObject.previousStatus = valueInstanceResponsesInstanceResponse["PreviousStatus"].asString(); instanceResponses_.push_back(instanceResponsesObject); } diff --git a/ecs/src/model/RecoverVirtualBorderRouterRequest.cc b/ecs/src/model/RecoverVirtualBorderRouterRequest.cc index f58cad094..9ae1ef52a 100644 --- a/ecs/src/model/RecoverVirtualBorderRouterRequest.cc +++ b/ecs/src/model/RecoverVirtualBorderRouterRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::RecoverVirtualBorderRouterRequest; - -RecoverVirtualBorderRouterRequest::RecoverVirtualBorderRouterRequest() : - RpcServiceRequest("ecs", "2014-05-26", "RecoverVirtualBorderRouter") -{ - setMethod(HttpRequest::Method::Post); -} - -RecoverVirtualBorderRouterRequest::~RecoverVirtualBorderRouterRequest() -{} - -long RecoverVirtualBorderRouterRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::RecoverVirtualBorderRouterRequest; + +RecoverVirtualBorderRouterRequest::RecoverVirtualBorderRouterRequest() + : RpcServiceRequest("ecs", "2014-05-26", "RecoverVirtualBorderRouter") { + setMethod(HttpRequest::Method::Post); } -void RecoverVirtualBorderRouterRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +RecoverVirtualBorderRouterRequest::~RecoverVirtualBorderRouterRequest() {} + +long RecoverVirtualBorderRouterRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string RecoverVirtualBorderRouterRequest::getClientToken()const -{ - return clientToken_; +void RecoverVirtualBorderRouterRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void RecoverVirtualBorderRouterRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string RecoverVirtualBorderRouterRequest::getClientToken() const { + return clientToken_; } -std::string RecoverVirtualBorderRouterRequest::getVbrId()const -{ - return vbrId_; +void RecoverVirtualBorderRouterRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void RecoverVirtualBorderRouterRequest::setVbrId(const std::string& vbrId) -{ - vbrId_ = vbrId; - setParameter("VbrId", vbrId); +std::string RecoverVirtualBorderRouterRequest::getVbrId() const { + return vbrId_; } -std::string RecoverVirtualBorderRouterRequest::getRegionId()const -{ - return regionId_; +void RecoverVirtualBorderRouterRequest::setVbrId(const std::string &vbrId) { + vbrId_ = vbrId; + setParameter(std::string("VbrId"), vbrId); } -void RecoverVirtualBorderRouterRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string RecoverVirtualBorderRouterRequest::getRegionId() const { + return regionId_; } -std::string RecoverVirtualBorderRouterRequest::getUserCidr()const -{ - return userCidr_; +void RecoverVirtualBorderRouterRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void RecoverVirtualBorderRouterRequest::setUserCidr(const std::string& userCidr) -{ - userCidr_ = userCidr; - setParameter("UserCidr", userCidr); +std::string RecoverVirtualBorderRouterRequest::getUserCidr() const { + return userCidr_; } -std::string RecoverVirtualBorderRouterRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void RecoverVirtualBorderRouterRequest::setUserCidr(const std::string &userCidr) { + userCidr_ = userCidr; + setParameter(std::string("UserCidr"), userCidr); } -void RecoverVirtualBorderRouterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string RecoverVirtualBorderRouterRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string RecoverVirtualBorderRouterRequest::getOwnerAccount()const -{ - return ownerAccount_; +void RecoverVirtualBorderRouterRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void RecoverVirtualBorderRouterRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string RecoverVirtualBorderRouterRequest::getOwnerAccount() const { + return ownerAccount_; } -long RecoverVirtualBorderRouterRequest::getOwnerId()const -{ - return ownerId_; +void RecoverVirtualBorderRouterRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void RecoverVirtualBorderRouterRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long RecoverVirtualBorderRouterRequest::getOwnerId() const { + return ownerId_; +} + +void RecoverVirtualBorderRouterRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/RedeployDedicatedHostRequest.cc b/ecs/src/model/RedeployDedicatedHostRequest.cc index 925f50e48..2a01491ff 100644 --- a/ecs/src/model/RedeployDedicatedHostRequest.cc +++ b/ecs/src/model/RedeployDedicatedHostRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::RedeployDedicatedHostRequest; - -RedeployDedicatedHostRequest::RedeployDedicatedHostRequest() : - RpcServiceRequest("ecs", "2014-05-26", "RedeployDedicatedHost") -{ - setMethod(HttpRequest::Method::Post); -} - -RedeployDedicatedHostRequest::~RedeployDedicatedHostRequest() -{} - -long RedeployDedicatedHostRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::RedeployDedicatedHostRequest; + +RedeployDedicatedHostRequest::RedeployDedicatedHostRequest() + : RpcServiceRequest("ecs", "2014-05-26", "RedeployDedicatedHost") { + setMethod(HttpRequest::Method::Post); } -void RedeployDedicatedHostRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +RedeployDedicatedHostRequest::~RedeployDedicatedHostRequest() {} + +long RedeployDedicatedHostRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string RedeployDedicatedHostRequest::getRegionId()const -{ - return regionId_; +void RedeployDedicatedHostRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void RedeployDedicatedHostRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string RedeployDedicatedHostRequest::getRegionId() const { + return regionId_; } -std::string RedeployDedicatedHostRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void RedeployDedicatedHostRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void RedeployDedicatedHostRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string RedeployDedicatedHostRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string RedeployDedicatedHostRequest::getOwnerAccount()const -{ - return ownerAccount_; +void RedeployDedicatedHostRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void RedeployDedicatedHostRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string RedeployDedicatedHostRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string RedeployDedicatedHostRequest::getDedicatedHostId()const -{ - return dedicatedHostId_; +void RedeployDedicatedHostRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void RedeployDedicatedHostRequest::setDedicatedHostId(const std::string& dedicatedHostId) -{ - dedicatedHostId_ = dedicatedHostId; - setParameter("DedicatedHostId", dedicatedHostId); +std::string RedeployDedicatedHostRequest::getDedicatedHostId() const { + return dedicatedHostId_; } -long RedeployDedicatedHostRequest::getOwnerId()const -{ - return ownerId_; +void RedeployDedicatedHostRequest::setDedicatedHostId(const std::string &dedicatedHostId) { + dedicatedHostId_ = dedicatedHostId; + setParameter(std::string("DedicatedHostId"), dedicatedHostId); } -void RedeployDedicatedHostRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long RedeployDedicatedHostRequest::getOwnerId() const { + return ownerId_; +} + +void RedeployDedicatedHostRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/RedeployInstanceRequest.cc b/ecs/src/model/RedeployInstanceRequest.cc index b9a926501..111858062 100644 --- a/ecs/src/model/RedeployInstanceRequest.cc +++ b/ecs/src/model/RedeployInstanceRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::RedeployInstanceRequest; - -RedeployInstanceRequest::RedeployInstanceRequest() : - RpcServiceRequest("ecs", "2014-05-26", "RedeployInstance") -{ - setMethod(HttpRequest::Method::Post); -} - -RedeployInstanceRequest::~RedeployInstanceRequest() -{} - -long RedeployInstanceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::RedeployInstanceRequest; + +RedeployInstanceRequest::RedeployInstanceRequest() + : RpcServiceRequest("ecs", "2014-05-26", "RedeployInstance") { + setMethod(HttpRequest::Method::Post); } -void RedeployInstanceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +RedeployInstanceRequest::~RedeployInstanceRequest() {} + +long RedeployInstanceRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -bool RedeployInstanceRequest::getForceStop()const -{ - return forceStop_; +void RedeployInstanceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void RedeployInstanceRequest::setForceStop(bool forceStop) -{ - forceStop_ = forceStop; - setParameter("ForceStop", forceStop ? "true" : "false"); +bool RedeployInstanceRequest::getForceStop() const { + return forceStop_; } -std::string RedeployInstanceRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void RedeployInstanceRequest::setForceStop(bool forceStop) { + forceStop_ = forceStop; + setParameter(std::string("ForceStop"), forceStop ? "true" : "false"); } -void RedeployInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string RedeployInstanceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string RedeployInstanceRequest::getOwnerAccount()const -{ - return ownerAccount_; +void RedeployInstanceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void RedeployInstanceRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string RedeployInstanceRequest::getOwnerAccount() const { + return ownerAccount_; } -long RedeployInstanceRequest::getOwnerId()const -{ - return ownerId_; +void RedeployInstanceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void RedeployInstanceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long RedeployInstanceRequest::getOwnerId() const { + return ownerId_; } -std::string RedeployInstanceRequest::getInstanceId()const -{ - return instanceId_; +void RedeployInstanceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void RedeployInstanceRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string RedeployInstanceRequest::getInstanceId() const { + return instanceId_; +} + +void RedeployInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/ecs/src/model/ReleaseCapacityReservationRequest.cc b/ecs/src/model/ReleaseCapacityReservationRequest.cc index cab289d5c..6a1a14d02 100644 --- a/ecs/src/model/ReleaseCapacityReservationRequest.cc +++ b/ecs/src/model/ReleaseCapacityReservationRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ReleaseCapacityReservationRequest; - -ReleaseCapacityReservationRequest::ReleaseCapacityReservationRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ReleaseCapacityReservation") -{ - setMethod(HttpRequest::Method::Post); -} - -ReleaseCapacityReservationRequest::~ReleaseCapacityReservationRequest() -{} - -long ReleaseCapacityReservationRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ReleaseCapacityReservationRequest; + +ReleaseCapacityReservationRequest::ReleaseCapacityReservationRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ReleaseCapacityReservation") { + setMethod(HttpRequest::Method::Post); } -void ReleaseCapacityReservationRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ReleaseCapacityReservationRequest::~ReleaseCapacityReservationRequest() {} + +long ReleaseCapacityReservationRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ReleaseCapacityReservationRequest::getRegionId()const -{ - return regionId_; +void ReleaseCapacityReservationRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ReleaseCapacityReservationRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ReleaseCapacityReservationRequest::getRegionId() const { + return regionId_; } -std::string ReleaseCapacityReservationRequest::getPrivatePoolOptionsId()const -{ - return privatePoolOptionsId_; +void ReleaseCapacityReservationRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ReleaseCapacityReservationRequest::setPrivatePoolOptionsId(const std::string& privatePoolOptionsId) -{ - privatePoolOptionsId_ = privatePoolOptionsId; - setParameter("PrivatePoolOptionsId", privatePoolOptionsId); +std::string ReleaseCapacityReservationRequest::getPrivatePoolOptionsId() const { + return privatePoolOptionsId_; } -bool ReleaseCapacityReservationRequest::getDryRun()const -{ - return dryRun_; +void ReleaseCapacityReservationRequest::setPrivatePoolOptionsId(const std::string &privatePoolOptionsId) { + privatePoolOptionsId_ = privatePoolOptionsId; + setParameter(std::string("PrivatePoolOptions.Id"), privatePoolOptionsId); } -void ReleaseCapacityReservationRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool ReleaseCapacityReservationRequest::getDryRun() const { + return dryRun_; } -std::string ReleaseCapacityReservationRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ReleaseCapacityReservationRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void ReleaseCapacityReservationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ReleaseCapacityReservationRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ReleaseCapacityReservationRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ReleaseCapacityReservationRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ReleaseCapacityReservationRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ReleaseCapacityReservationRequest::getOwnerAccount() const { + return ownerAccount_; } -long ReleaseCapacityReservationRequest::getOwnerId()const -{ - return ownerId_; +void ReleaseCapacityReservationRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ReleaseCapacityReservationRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ReleaseCapacityReservationRequest::getOwnerId() const { + return ownerId_; +} + +void ReleaseCapacityReservationRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/ReleaseDedicatedHostRequest.cc b/ecs/src/model/ReleaseDedicatedHostRequest.cc index ab614d7ba..8c30c9091 100644 --- a/ecs/src/model/ReleaseDedicatedHostRequest.cc +++ b/ecs/src/model/ReleaseDedicatedHostRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ReleaseDedicatedHostRequest; - -ReleaseDedicatedHostRequest::ReleaseDedicatedHostRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ReleaseDedicatedHost") -{ - setMethod(HttpRequest::Method::Post); -} - -ReleaseDedicatedHostRequest::~ReleaseDedicatedHostRequest() -{} - -long ReleaseDedicatedHostRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ReleaseDedicatedHostRequest; + +ReleaseDedicatedHostRequest::ReleaseDedicatedHostRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ReleaseDedicatedHost") { + setMethod(HttpRequest::Method::Post); } -void ReleaseDedicatedHostRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ReleaseDedicatedHostRequest::~ReleaseDedicatedHostRequest() {} + +long ReleaseDedicatedHostRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ReleaseDedicatedHostRequest::getRegionId()const -{ - return regionId_; +void ReleaseDedicatedHostRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ReleaseDedicatedHostRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ReleaseDedicatedHostRequest::getRegionId() const { + return regionId_; } -std::string ReleaseDedicatedHostRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ReleaseDedicatedHostRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ReleaseDedicatedHostRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ReleaseDedicatedHostRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ReleaseDedicatedHostRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ReleaseDedicatedHostRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ReleaseDedicatedHostRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ReleaseDedicatedHostRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string ReleaseDedicatedHostRequest::getDedicatedHostId()const -{ - return dedicatedHostId_; +void ReleaseDedicatedHostRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ReleaseDedicatedHostRequest::setDedicatedHostId(const std::string& dedicatedHostId) -{ - dedicatedHostId_ = dedicatedHostId; - setParameter("DedicatedHostId", dedicatedHostId); +std::string ReleaseDedicatedHostRequest::getDedicatedHostId() const { + return dedicatedHostId_; } -long ReleaseDedicatedHostRequest::getOwnerId()const -{ - return ownerId_; +void ReleaseDedicatedHostRequest::setDedicatedHostId(const std::string &dedicatedHostId) { + dedicatedHostId_ = dedicatedHostId; + setParameter(std::string("DedicatedHostId"), dedicatedHostId); } -void ReleaseDedicatedHostRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ReleaseDedicatedHostRequest::getOwnerId() const { + return ownerId_; +} + +void ReleaseDedicatedHostRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/ReleaseEipAddressRequest.cc b/ecs/src/model/ReleaseEipAddressRequest.cc index bf7f08d21..9ba4a235c 100644 --- a/ecs/src/model/ReleaseEipAddressRequest.cc +++ b/ecs/src/model/ReleaseEipAddressRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ReleaseEipAddressRequest; - -ReleaseEipAddressRequest::ReleaseEipAddressRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ReleaseEipAddress") -{ - setMethod(HttpRequest::Method::Post); -} - -ReleaseEipAddressRequest::~ReleaseEipAddressRequest() -{} - -long ReleaseEipAddressRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ReleaseEipAddressRequest; + +ReleaseEipAddressRequest::ReleaseEipAddressRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ReleaseEipAddress") { + setMethod(HttpRequest::Method::Post); } -void ReleaseEipAddressRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ReleaseEipAddressRequest::~ReleaseEipAddressRequest() {} + +long ReleaseEipAddressRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ReleaseEipAddressRequest::getAllocationId()const -{ - return allocationId_; +void ReleaseEipAddressRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ReleaseEipAddressRequest::setAllocationId(const std::string& allocationId) -{ - allocationId_ = allocationId; - setParameter("AllocationId", allocationId); +std::string ReleaseEipAddressRequest::getAllocationId() const { + return allocationId_; } -std::string ReleaseEipAddressRequest::getRegionId()const -{ - return regionId_; +void ReleaseEipAddressRequest::setAllocationId(const std::string &allocationId) { + allocationId_ = allocationId; + setParameter(std::string("AllocationId"), allocationId); } -void ReleaseEipAddressRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ReleaseEipAddressRequest::getRegionId() const { + return regionId_; } -std::string ReleaseEipAddressRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ReleaseEipAddressRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ReleaseEipAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ReleaseEipAddressRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ReleaseEipAddressRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ReleaseEipAddressRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ReleaseEipAddressRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ReleaseEipAddressRequest::getOwnerAccount() const { + return ownerAccount_; } -long ReleaseEipAddressRequest::getOwnerId()const -{ - return ownerId_; +void ReleaseEipAddressRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ReleaseEipAddressRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ReleaseEipAddressRequest::getOwnerId() const { + return ownerId_; +} + +void ReleaseEipAddressRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/ReleasePublicIpAddressRequest.cc b/ecs/src/model/ReleasePublicIpAddressRequest.cc index e5dd86db2..d081d86f6 100644 --- a/ecs/src/model/ReleasePublicIpAddressRequest.cc +++ b/ecs/src/model/ReleasePublicIpAddressRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ReleasePublicIpAddressRequest; - -ReleasePublicIpAddressRequest::ReleasePublicIpAddressRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ReleasePublicIpAddress") -{ - setMethod(HttpRequest::Method::Post); -} - -ReleasePublicIpAddressRequest::~ReleasePublicIpAddressRequest() -{} - -long ReleasePublicIpAddressRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ReleasePublicIpAddressRequest; + +ReleasePublicIpAddressRequest::ReleasePublicIpAddressRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ReleasePublicIpAddress") { + setMethod(HttpRequest::Method::Post); } -void ReleasePublicIpAddressRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ReleasePublicIpAddressRequest::~ReleasePublicIpAddressRequest() {} + +long ReleasePublicIpAddressRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ReleasePublicIpAddressRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ReleasePublicIpAddressRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ReleasePublicIpAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ReleasePublicIpAddressRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ReleasePublicIpAddressRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ReleasePublicIpAddressRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ReleasePublicIpAddressRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ReleasePublicIpAddressRequest::getOwnerAccount() const { + return ownerAccount_; } -long ReleasePublicIpAddressRequest::getOwnerId()const -{ - return ownerId_; +void ReleasePublicIpAddressRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ReleasePublicIpAddressRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ReleasePublicIpAddressRequest::getOwnerId() const { + return ownerId_; } -std::string ReleasePublicIpAddressRequest::getPublicIpAddress()const -{ - return publicIpAddress_; +void ReleasePublicIpAddressRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ReleasePublicIpAddressRequest::setPublicIpAddress(const std::string& publicIpAddress) -{ - publicIpAddress_ = publicIpAddress; - setParameter("PublicIpAddress", publicIpAddress); +std::string ReleasePublicIpAddressRequest::getPublicIpAddress() const { + return publicIpAddress_; } -std::string ReleasePublicIpAddressRequest::getInstanceId()const -{ - return instanceId_; +void ReleasePublicIpAddressRequest::setPublicIpAddress(const std::string &publicIpAddress) { + publicIpAddress_ = publicIpAddress; + setParameter(std::string("PublicIpAddress"), publicIpAddress); } -void ReleasePublicIpAddressRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ReleasePublicIpAddressRequest::getInstanceId() const { + return instanceId_; +} + +void ReleasePublicIpAddressRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/ecs/src/model/RemoveBandwidthPackageIpsRequest.cc b/ecs/src/model/RemoveBandwidthPackageIpsRequest.cc index d29c2b0d7..8f7995797 100644 --- a/ecs/src/model/RemoveBandwidthPackageIpsRequest.cc +++ b/ecs/src/model/RemoveBandwidthPackageIpsRequest.cc @@ -1,119 +1,98 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::RemoveBandwidthPackageIpsRequest; - -RemoveBandwidthPackageIpsRequest::RemoveBandwidthPackageIpsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "RemoveBandwidthPackageIps") -{ - setMethod(HttpRequest::Method::Post); -} - -RemoveBandwidthPackageIpsRequest::~RemoveBandwidthPackageIpsRequest() -{} - -long RemoveBandwidthPackageIpsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::RemoveBandwidthPackageIpsRequest; + +RemoveBandwidthPackageIpsRequest::RemoveBandwidthPackageIpsRequest() + : RpcServiceRequest("ecs", "2014-05-26", "RemoveBandwidthPackageIps") { + setMethod(HttpRequest::Method::Post); } -void RemoveBandwidthPackageIpsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +RemoveBandwidthPackageIpsRequest::~RemoveBandwidthPackageIpsRequest() {} + +long RemoveBandwidthPackageIpsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string RemoveBandwidthPackageIpsRequest::getClientToken()const -{ - return clientToken_; +void RemoveBandwidthPackageIpsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void RemoveBandwidthPackageIpsRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string RemoveBandwidthPackageIpsRequest::getClientToken() const { + return clientToken_; } -std::string RemoveBandwidthPackageIpsRequest::getRegionId()const -{ - return regionId_; +void RemoveBandwidthPackageIpsRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void RemoveBandwidthPackageIpsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string RemoveBandwidthPackageIpsRequest::getRegionId() const { + return regionId_; } -std::vector RemoveBandwidthPackageIpsRequest::getRemovedIpAddresses()const -{ - return removedIpAddresses_; +void RemoveBandwidthPackageIpsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void RemoveBandwidthPackageIpsRequest::setRemovedIpAddresses(const std::vector& removedIpAddresses) -{ - removedIpAddresses_ = removedIpAddresses; - for(int dep1 = 0; dep1!= removedIpAddresses.size(); dep1++) { - setParameter("RemovedIpAddresses."+ std::to_string(dep1), removedIpAddresses.at(dep1)); - } +std::vector RemoveBandwidthPackageIpsRequest::getRemovedIpAddresses() const { + return removedIpAddresses_; } -std::string RemoveBandwidthPackageIpsRequest::getBandwidthPackageId()const -{ - return bandwidthPackageId_; +void RemoveBandwidthPackageIpsRequest::setRemovedIpAddresses(const std::vector &removedIpAddresses) { + removedIpAddresses_ = removedIpAddresses; } -void RemoveBandwidthPackageIpsRequest::setBandwidthPackageId(const std::string& bandwidthPackageId) -{ - bandwidthPackageId_ = bandwidthPackageId; - setParameter("BandwidthPackageId", bandwidthPackageId); +std::string RemoveBandwidthPackageIpsRequest::getBandwidthPackageId() const { + return bandwidthPackageId_; } -std::string RemoveBandwidthPackageIpsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void RemoveBandwidthPackageIpsRequest::setBandwidthPackageId(const std::string &bandwidthPackageId) { + bandwidthPackageId_ = bandwidthPackageId; + setParameter(std::string("BandwidthPackageId"), bandwidthPackageId); } -void RemoveBandwidthPackageIpsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string RemoveBandwidthPackageIpsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string RemoveBandwidthPackageIpsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void RemoveBandwidthPackageIpsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void RemoveBandwidthPackageIpsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string RemoveBandwidthPackageIpsRequest::getOwnerAccount() const { + return ownerAccount_; } -long RemoveBandwidthPackageIpsRequest::getOwnerId()const -{ - return ownerId_; +void RemoveBandwidthPackageIpsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void RemoveBandwidthPackageIpsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long RemoveBandwidthPackageIpsRequest::getOwnerId() const { + return ownerId_; +} + +void RemoveBandwidthPackageIpsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/RemoveTagsRequest.cc b/ecs/src/model/RemoveTagsRequest.cc index d815f04e0..aeae2c5e9 100644 --- a/ecs/src/model/RemoveTagsRequest.cc +++ b/ecs/src/model/RemoveTagsRequest.cc @@ -1,111 +1,95 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::RemoveTagsRequest; - -RemoveTagsRequest::RemoveTagsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "RemoveTags") -{ - setMethod(HttpRequest::Method::Post); -} - -RemoveTagsRequest::~RemoveTagsRequest() -{} - -long RemoveTagsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::RemoveTagsRequest; + +RemoveTagsRequest::RemoveTagsRequest() + : RpcServiceRequest("ecs", "2014-05-26", "RemoveTags") { + setMethod(HttpRequest::Method::Post); } -void RemoveTagsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +RemoveTagsRequest::~RemoveTagsRequest() {} + +long RemoveTagsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string RemoveTagsRequest::getRegionId()const -{ - return regionId_; +void RemoveTagsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void RemoveTagsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string RemoveTagsRequest::getRegionId() const { + return regionId_; } -std::vector RemoveTagsRequest::getTag()const -{ - return tag_; +void RemoveTagsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void RemoveTagsRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Value", tagObj.value); - setParameter(tagObjStr + ".Key", tagObj.key); - } +std::vector RemoveTagsRequest::getTag() const { + return tag_; } -std::string RemoveTagsRequest::getResourceId()const -{ - return resourceId_; +void RemoveTagsRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } -void RemoveTagsRequest::setResourceId(const std::string& resourceId) -{ - resourceId_ = resourceId; - setParameter("ResourceId", resourceId); +std::string RemoveTagsRequest::getResourceId() const { + return resourceId_; } -std::string RemoveTagsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void RemoveTagsRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); } -void RemoveTagsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string RemoveTagsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -long RemoveTagsRequest::getOwnerId()const -{ - return ownerId_; +void RemoveTagsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void RemoveTagsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long RemoveTagsRequest::getOwnerId() const { + return ownerId_; } -std::string RemoveTagsRequest::getResourceType()const -{ - return resourceType_; +void RemoveTagsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void RemoveTagsRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +std::string RemoveTagsRequest::getResourceType() const { + return resourceType_; +} + +void RemoveTagsRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); } diff --git a/ecs/src/model/RenewDedicatedHostsRequest.cc b/ecs/src/model/RenewDedicatedHostsRequest.cc index ba008c2ad..9687f97e9 100644 --- a/ecs/src/model/RenewDedicatedHostsRequest.cc +++ b/ecs/src/model/RenewDedicatedHostsRequest.cc @@ -1,128 +1,108 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::RenewDedicatedHostsRequest; - -RenewDedicatedHostsRequest::RenewDedicatedHostsRequest() : - RpcServiceRequest("ecs", "2014-05-26", "RenewDedicatedHosts") -{ - setMethod(HttpRequest::Method::Post); -} - -RenewDedicatedHostsRequest::~RenewDedicatedHostsRequest() -{} - -std::string RenewDedicatedHostsRequest::getDedicatedHostIds()const -{ - return dedicatedHostIds_; + */ + +#include + +using AlibabaCloud::Ecs::Model::RenewDedicatedHostsRequest; + +RenewDedicatedHostsRequest::RenewDedicatedHostsRequest() + : RpcServiceRequest("ecs", "2014-05-26", "RenewDedicatedHosts") { + setMethod(HttpRequest::Method::Post); } -void RenewDedicatedHostsRequest::setDedicatedHostIds(const std::string& dedicatedHostIds) -{ - dedicatedHostIds_ = dedicatedHostIds; - setParameter("DedicatedHostIds", dedicatedHostIds); +RenewDedicatedHostsRequest::~RenewDedicatedHostsRequest() {} + +std::string RenewDedicatedHostsRequest::getDedicatedHostIds() const { + return dedicatedHostIds_; } -long RenewDedicatedHostsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void RenewDedicatedHostsRequest::setDedicatedHostIds(const std::string &dedicatedHostIds) { + dedicatedHostIds_ = dedicatedHostIds; + setParameter(std::string("DedicatedHostIds"), dedicatedHostIds); } -void RenewDedicatedHostsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long RenewDedicatedHostsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string RenewDedicatedHostsRequest::getClientToken()const -{ - return clientToken_; +void RenewDedicatedHostsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void RenewDedicatedHostsRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string RenewDedicatedHostsRequest::getClientToken() const { + return clientToken_; } -std::string RenewDedicatedHostsRequest::getRegionId()const -{ - return regionId_; +void RenewDedicatedHostsRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void RenewDedicatedHostsRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string RenewDedicatedHostsRequest::getRegionId() const { + return regionId_; } -int RenewDedicatedHostsRequest::getPeriod()const -{ - return period_; +void RenewDedicatedHostsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void RenewDedicatedHostsRequest::setPeriod(int period) -{ - period_ = period; - setParameter("Period", std::to_string(period)); +int RenewDedicatedHostsRequest::getPeriod() const { + return period_; } -std::string RenewDedicatedHostsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void RenewDedicatedHostsRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); } -void RenewDedicatedHostsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string RenewDedicatedHostsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string RenewDedicatedHostsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void RenewDedicatedHostsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void RenewDedicatedHostsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string RenewDedicatedHostsRequest::getOwnerAccount() const { + return ownerAccount_; } -long RenewDedicatedHostsRequest::getOwnerId()const -{ - return ownerId_; +void RenewDedicatedHostsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void RenewDedicatedHostsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long RenewDedicatedHostsRequest::getOwnerId() const { + return ownerId_; } -std::string RenewDedicatedHostsRequest::getPeriodUnit()const -{ - return periodUnit_; +void RenewDedicatedHostsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void RenewDedicatedHostsRequest::setPeriodUnit(const std::string& periodUnit) -{ - periodUnit_ = periodUnit; - setParameter("PeriodUnit", periodUnit); +std::string RenewDedicatedHostsRequest::getPeriodUnit() const { + return periodUnit_; +} + +void RenewDedicatedHostsRequest::setPeriodUnit(const std::string &periodUnit) { + periodUnit_ = periodUnit; + setParameter(std::string("PeriodUnit"), periodUnit); } diff --git a/ecs/src/model/RenewInstanceRequest.cc b/ecs/src/model/RenewInstanceRequest.cc index 454f9c3ef..cbe0e1edc 100644 --- a/ecs/src/model/RenewInstanceRequest.cc +++ b/ecs/src/model/RenewInstanceRequest.cc @@ -1,128 +1,108 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::RenewInstanceRequest; - -RenewInstanceRequest::RenewInstanceRequest() : - RpcServiceRequest("ecs", "2014-05-26", "RenewInstance") -{ - setMethod(HttpRequest::Method::Post); -} - -RenewInstanceRequest::~RenewInstanceRequest() -{} - -long RenewInstanceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::RenewInstanceRequest; + +RenewInstanceRequest::RenewInstanceRequest() + : RpcServiceRequest("ecs", "2014-05-26", "RenewInstance") { + setMethod(HttpRequest::Method::Post); } -void RenewInstanceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +RenewInstanceRequest::~RenewInstanceRequest() {} + +long RenewInstanceRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string RenewInstanceRequest::getClientToken()const -{ - return clientToken_; +void RenewInstanceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void RenewInstanceRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string RenewInstanceRequest::getClientToken() const { + return clientToken_; } -int RenewInstanceRequest::getPeriod()const -{ - return period_; +void RenewInstanceRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void RenewInstanceRequest::setPeriod(int period) -{ - period_ = period; - setParameter("Period", std::to_string(period)); +int RenewInstanceRequest::getPeriod() const { + return period_; } -std::string RenewInstanceRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void RenewInstanceRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); } -void RenewInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string RenewInstanceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string RenewInstanceRequest::getOwnerAccount()const -{ - return ownerAccount_; +void RenewInstanceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void RenewInstanceRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string RenewInstanceRequest::getOwnerAccount() const { + return ownerAccount_; } -int RenewInstanceRequest::getExpectedRenewDay()const -{ - return expectedRenewDay_; +void RenewInstanceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void RenewInstanceRequest::setExpectedRenewDay(int expectedRenewDay) -{ - expectedRenewDay_ = expectedRenewDay; - setParameter("ExpectedRenewDay", std::to_string(expectedRenewDay)); +int RenewInstanceRequest::getExpectedRenewDay() const { + return expectedRenewDay_; } -long RenewInstanceRequest::getOwnerId()const -{ - return ownerId_; +void RenewInstanceRequest::setExpectedRenewDay(int expectedRenewDay) { + expectedRenewDay_ = expectedRenewDay; + setParameter(std::string("ExpectedRenewDay"), std::to_string(expectedRenewDay)); } -void RenewInstanceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long RenewInstanceRequest::getOwnerId() const { + return ownerId_; } -std::string RenewInstanceRequest::getPeriodUnit()const -{ - return periodUnit_; +void RenewInstanceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void RenewInstanceRequest::setPeriodUnit(const std::string& periodUnit) -{ - periodUnit_ = periodUnit; - setParameter("PeriodUnit", periodUnit); +std::string RenewInstanceRequest::getPeriodUnit() const { + return periodUnit_; } -std::string RenewInstanceRequest::getInstanceId()const -{ - return instanceId_; +void RenewInstanceRequest::setPeriodUnit(const std::string &periodUnit) { + periodUnit_ = periodUnit; + setParameter(std::string("PeriodUnit"), periodUnit); } -void RenewInstanceRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string RenewInstanceRequest::getInstanceId() const { + return instanceId_; +} + +void RenewInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/ecs/src/model/ReplaceSystemDiskRequest.cc b/ecs/src/model/ReplaceSystemDiskRequest.cc index 13e2c5136..8f381d933 100644 --- a/ecs/src/model/ReplaceSystemDiskRequest.cc +++ b/ecs/src/model/ReplaceSystemDiskRequest.cc @@ -1,205 +1,171 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ReplaceSystemDiskRequest; - -ReplaceSystemDiskRequest::ReplaceSystemDiskRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ReplaceSystemDisk") -{ - setMethod(HttpRequest::Method::Post); -} - -ReplaceSystemDiskRequest::~ReplaceSystemDiskRequest() -{} - -long ReplaceSystemDiskRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ReplaceSystemDiskRequest; + +ReplaceSystemDiskRequest::ReplaceSystemDiskRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ReplaceSystemDisk") { + setMethod(HttpRequest::Method::Post); } -void ReplaceSystemDiskRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ReplaceSystemDiskRequest::~ReplaceSystemDiskRequest() {} + +long ReplaceSystemDiskRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ReplaceSystemDiskRequest::getImageId()const -{ - return imageId_; +void ReplaceSystemDiskRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ReplaceSystemDiskRequest::setImageId(const std::string& imageId) -{ - imageId_ = imageId; - setParameter("ImageId", imageId); +std::string ReplaceSystemDiskRequest::getImageId() const { + return imageId_; } -std::string ReplaceSystemDiskRequest::getClientToken()const -{ - return clientToken_; +void ReplaceSystemDiskRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("ImageId"), imageId); } -void ReplaceSystemDiskRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ReplaceSystemDiskRequest::getClientToken() const { + return clientToken_; } -std::string ReplaceSystemDiskRequest::getSecurityEnhancementStrategy()const -{ - return securityEnhancementStrategy_; +void ReplaceSystemDiskRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ReplaceSystemDiskRequest::setSecurityEnhancementStrategy(const std::string& securityEnhancementStrategy) -{ - securityEnhancementStrategy_ = securityEnhancementStrategy; - setParameter("SecurityEnhancementStrategy", securityEnhancementStrategy); +std::string ReplaceSystemDiskRequest::getSecurityEnhancementStrategy() const { + return securityEnhancementStrategy_; } -std::string ReplaceSystemDiskRequest::getKeyPairName()const -{ - return keyPairName_; +void ReplaceSystemDiskRequest::setSecurityEnhancementStrategy(const std::string &securityEnhancementStrategy) { + securityEnhancementStrategy_ = securityEnhancementStrategy; + setParameter(std::string("SecurityEnhancementStrategy"), securityEnhancementStrategy); } -void ReplaceSystemDiskRequest::setKeyPairName(const std::string& keyPairName) -{ - keyPairName_ = keyPairName; - setParameter("KeyPairName", keyPairName); +std::string ReplaceSystemDiskRequest::getKeyPairName() const { + return keyPairName_; } -std::string ReplaceSystemDiskRequest::getPlatform()const -{ - return platform_; +void ReplaceSystemDiskRequest::setKeyPairName(const std::string &keyPairName) { + keyPairName_ = keyPairName; + setParameter(std::string("KeyPairName"), keyPairName); } -void ReplaceSystemDiskRequest::setPlatform(const std::string& platform) -{ - platform_ = platform; - setParameter("Platform", platform); +std::string ReplaceSystemDiskRequest::getPlatform() const { + return platform_; } -std::string ReplaceSystemDiskRequest::getPassword()const -{ - return password_; +void ReplaceSystemDiskRequest::setPlatform(const std::string &platform) { + platform_ = platform; + setParameter(std::string("Platform"), platform); } -void ReplaceSystemDiskRequest::setPassword(const std::string& password) -{ - password_ = password; - setParameter("Password", password); +std::string ReplaceSystemDiskRequest::getPassword() const { + return password_; } -bool ReplaceSystemDiskRequest::getPasswordInherit()const -{ - return passwordInherit_; +void ReplaceSystemDiskRequest::setPassword(const std::string &password) { + password_ = password; + setParameter(std::string("Password"), password); } -void ReplaceSystemDiskRequest::setPasswordInherit(bool passwordInherit) -{ - passwordInherit_ = passwordInherit; - setParameter("PasswordInherit", passwordInherit ? "true" : "false"); +bool ReplaceSystemDiskRequest::getPasswordInherit() const { + return passwordInherit_; } -std::string ReplaceSystemDiskRequest::getDiskId()const -{ - return diskId_; +void ReplaceSystemDiskRequest::setPasswordInherit(bool passwordInherit) { + passwordInherit_ = passwordInherit; + setParameter(std::string("PasswordInherit"), passwordInherit ? "true" : "false"); } -void ReplaceSystemDiskRequest::setDiskId(const std::string& diskId) -{ - diskId_ = diskId; - setParameter("DiskId", diskId); +std::string ReplaceSystemDiskRequest::getDiskId() const { + return diskId_; } -std::string ReplaceSystemDiskRequest::getArchitecture()const -{ - return architecture_; +void ReplaceSystemDiskRequest::setDiskId(const std::string &diskId) { + diskId_ = diskId; + setParameter(std::string("DiskId"), diskId); } -void ReplaceSystemDiskRequest::setArchitecture(const std::string& architecture) -{ - architecture_ = architecture; - setParameter("Architecture", architecture); +std::string ReplaceSystemDiskRequest::getArchitecture() const { + return architecture_; } -std::string ReplaceSystemDiskRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ReplaceSystemDiskRequest::setArchitecture(const std::string &architecture) { + architecture_ = architecture; + setParameter(std::string("Architecture"), architecture); } -void ReplaceSystemDiskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ReplaceSystemDiskRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ReplaceSystemDiskRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ReplaceSystemDiskRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ReplaceSystemDiskRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ReplaceSystemDiskRequest::getOwnerAccount() const { + return ownerAccount_; } -long ReplaceSystemDiskRequest::getOwnerId()const -{ - return ownerId_; +void ReplaceSystemDiskRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ReplaceSystemDiskRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ReplaceSystemDiskRequest::getOwnerId() const { + return ownerId_; } -std::string ReplaceSystemDiskRequest::getInstanceId()const -{ - return instanceId_; +void ReplaceSystemDiskRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ReplaceSystemDiskRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ReplaceSystemDiskRequest::getInstanceId() const { + return instanceId_; } -int ReplaceSystemDiskRequest::getSystemDiskSize()const -{ - return systemDiskSize_; +void ReplaceSystemDiskRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void ReplaceSystemDiskRequest::setSystemDiskSize(int systemDiskSize) -{ - systemDiskSize_ = systemDiskSize; - setParameter("SystemDiskSize", std::to_string(systemDiskSize)); +int ReplaceSystemDiskRequest::getSystemDiskSize() const { + return systemDiskSize_; } -bool ReplaceSystemDiskRequest::getUseAdditionalService()const -{ - return useAdditionalService_; +void ReplaceSystemDiskRequest::setSystemDiskSize(int systemDiskSize) { + systemDiskSize_ = systemDiskSize; + setParameter(std::string("SystemDisk.Size"), std::to_string(systemDiskSize)); } -void ReplaceSystemDiskRequest::setUseAdditionalService(bool useAdditionalService) -{ - useAdditionalService_ = useAdditionalService; - setParameter("UseAdditionalService", useAdditionalService ? "true" : "false"); +bool ReplaceSystemDiskRequest::getUseAdditionalService() const { + return useAdditionalService_; +} + +void ReplaceSystemDiskRequest::setUseAdditionalService(bool useAdditionalService) { + useAdditionalService_ = useAdditionalService; + setParameter(std::string("UseAdditionalService"), useAdditionalService ? "true" : "false"); } diff --git a/ecs/src/model/ReportInstancesStatusRequest.cc b/ecs/src/model/ReportInstancesStatusRequest.cc index 4937968d4..4b86af2c5 100644 --- a/ecs/src/model/ReportInstancesStatusRequest.cc +++ b/ecs/src/model/ReportInstancesStatusRequest.cc @@ -1,178 +1,141 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ReportInstancesStatusRequest; - -ReportInstancesStatusRequest::ReportInstancesStatusRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ReportInstancesStatus") -{ - setMethod(HttpRequest::Method::Post); -} - -ReportInstancesStatusRequest::~ReportInstancesStatusRequest() -{} - -std::string ReportInstancesStatusRequest::getReason()const -{ - return reason_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ReportInstancesStatusRequest; + +ReportInstancesStatusRequest::ReportInstancesStatusRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ReportInstancesStatus") { + setMethod(HttpRequest::Method::Post); } -void ReportInstancesStatusRequest::setReason(const std::string& reason) -{ - reason_ = reason; - setParameter("Reason", reason); +ReportInstancesStatusRequest::~ReportInstancesStatusRequest() {} + +std::string ReportInstancesStatusRequest::getReason() const { + return reason_; } -long ReportInstancesStatusRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void ReportInstancesStatusRequest::setReason(const std::string &reason) { + reason_ = reason; + setParameter(std::string("Reason"), reason); } -void ReportInstancesStatusRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long ReportInstancesStatusRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ReportInstancesStatusRequest::getDescription()const -{ - return description_; +void ReportInstancesStatusRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ReportInstancesStatusRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ReportInstancesStatusRequest::getDescription() const { + return description_; } -std::string ReportInstancesStatusRequest::getStartTime()const -{ - return startTime_; +void ReportInstancesStatusRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ReportInstancesStatusRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); +std::string ReportInstancesStatusRequest::getStartTime() const { + return startTime_; } -std::string ReportInstancesStatusRequest::getIssueCategory()const -{ - return issueCategory_; +void ReportInstancesStatusRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); } -void ReportInstancesStatusRequest::setIssueCategory(const std::string& issueCategory) -{ - issueCategory_ = issueCategory; - setParameter("IssueCategory", issueCategory); +std::string ReportInstancesStatusRequest::getIssueCategory() const { + return issueCategory_; } -std::string ReportInstancesStatusRequest::getRegionId()const -{ - return regionId_; +void ReportInstancesStatusRequest::setIssueCategory(const std::string &issueCategory) { + issueCategory_ = issueCategory; + setParameter(std::string("IssueCategory"), issueCategory); } -void ReportInstancesStatusRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ReportInstancesStatusRequest::getRegionId() const { + return regionId_; } -std::vector ReportInstancesStatusRequest::getDiskId()const -{ - return diskId_; +void ReportInstancesStatusRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ReportInstancesStatusRequest::setDiskId(const std::vector& diskId) -{ - diskId_ = diskId; - for(int dep1 = 0; dep1!= diskId.size(); dep1++) { - setParameter("DiskId."+ std::to_string(dep1), diskId.at(dep1)); - } +std::vector ReportInstancesStatusRequest::getDiskId() const { + return diskId_; } -std::string ReportInstancesStatusRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ReportInstancesStatusRequest::setDiskId(const std::vector &diskId) { + diskId_ = diskId; } -void ReportInstancesStatusRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ReportInstancesStatusRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ReportInstancesStatusRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ReportInstancesStatusRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ReportInstancesStatusRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ReportInstancesStatusRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string ReportInstancesStatusRequest::getEndTime()const -{ - return endTime_; +void ReportInstancesStatusRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ReportInstancesStatusRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); +std::string ReportInstancesStatusRequest::getEndTime() const { + return endTime_; } -long ReportInstancesStatusRequest::getOwnerId()const -{ - return ownerId_; +void ReportInstancesStatusRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); } -void ReportInstancesStatusRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ReportInstancesStatusRequest::getOwnerId() const { + return ownerId_; } -std::vector ReportInstancesStatusRequest::getInstanceId()const -{ - return instanceId_; +void ReportInstancesStatusRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ReportInstancesStatusRequest::setInstanceId(const std::vector& instanceId) -{ - instanceId_ = instanceId; - for(int dep1 = 0; dep1!= instanceId.size(); dep1++) { - setParameter("InstanceId."+ std::to_string(dep1), instanceId.at(dep1)); - } +std::vector ReportInstancesStatusRequest::getInstanceId() const { + return instanceId_; } -std::vector ReportInstancesStatusRequest::getDevice()const -{ - return device_; +void ReportInstancesStatusRequest::setInstanceId(const std::vector &instanceId) { + instanceId_ = instanceId; } -void ReportInstancesStatusRequest::setDevice(const std::vector& device) -{ - device_ = device; - for(int dep1 = 0; dep1!= device.size(); dep1++) { - setParameter("Device."+ std::to_string(dep1), device.at(dep1)); - } +std::vector ReportInstancesStatusRequest::getDevice() const { + return device_; +} + +void ReportInstancesStatusRequest::setDevice(const std::vector &device) { + device_ = device; } diff --git a/ecs/src/model/ResetDiskRequest.cc b/ecs/src/model/ResetDiskRequest.cc index 9bd375fa8..888742997 100644 --- a/ecs/src/model/ResetDiskRequest.cc +++ b/ecs/src/model/ResetDiskRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ResetDiskRequest; - -ResetDiskRequest::ResetDiskRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ResetDisk") -{ - setMethod(HttpRequest::Method::Post); -} - -ResetDiskRequest::~ResetDiskRequest() -{} - -long ResetDiskRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ResetDiskRequest; + +ResetDiskRequest::ResetDiskRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ResetDisk") { + setMethod(HttpRequest::Method::Post); } -void ResetDiskRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ResetDiskRequest::~ResetDiskRequest() {} + +long ResetDiskRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ResetDiskRequest::getSnapshotId()const -{ - return snapshotId_; +void ResetDiskRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ResetDiskRequest::setSnapshotId(const std::string& snapshotId) -{ - snapshotId_ = snapshotId; - setParameter("SnapshotId", snapshotId); +std::string ResetDiskRequest::getSnapshotId() const { + return snapshotId_; } -std::string ResetDiskRequest::getDiskId()const -{ - return diskId_; +void ResetDiskRequest::setSnapshotId(const std::string &snapshotId) { + snapshotId_ = snapshotId; + setParameter(std::string("SnapshotId"), snapshotId); } -void ResetDiskRequest::setDiskId(const std::string& diskId) -{ - diskId_ = diskId; - setParameter("DiskId", diskId); +std::string ResetDiskRequest::getDiskId() const { + return diskId_; } -std::string ResetDiskRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ResetDiskRequest::setDiskId(const std::string &diskId) { + diskId_ = diskId; + setParameter(std::string("DiskId"), diskId); } -void ResetDiskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ResetDiskRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ResetDiskRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ResetDiskRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ResetDiskRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ResetDiskRequest::getOwnerAccount() const { + return ownerAccount_; } -long ResetDiskRequest::getOwnerId()const -{ - return ownerId_; +void ResetDiskRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ResetDiskRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ResetDiskRequest::getOwnerId() const { + return ownerId_; +} + +void ResetDiskRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/ResetDisksRequest.cc b/ecs/src/model/ResetDisksRequest.cc index 660f155ff..23ada1cba 100644 --- a/ecs/src/model/ResetDisksRequest.cc +++ b/ecs/src/model/ResetDisksRequest.cc @@ -1,100 +1,86 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ResetDisksRequest; - -ResetDisksRequest::ResetDisksRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ResetDisks") -{ - setMethod(HttpRequest::Method::Post); -} - -ResetDisksRequest::~ResetDisksRequest() -{} - -long ResetDisksRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ResetDisksRequest; + +ResetDisksRequest::ResetDisksRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ResetDisks") { + setMethod(HttpRequest::Method::Post); } -void ResetDisksRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ResetDisksRequest::~ResetDisksRequest() {} + +long ResetDisksRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ResetDisksRequest::getRegionId()const -{ - return regionId_; +void ResetDisksRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ResetDisksRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ResetDisksRequest::getRegionId() const { + return regionId_; } -std::string ResetDisksRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ResetDisksRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ResetDisksRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ResetDisksRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ResetDisksRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ResetDisksRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ResetDisksRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ResetDisksRequest::getOwnerAccount() const { + return ownerAccount_; } -long ResetDisksRequest::getOwnerId()const -{ - return ownerId_; +void ResetDisksRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ResetDisksRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ResetDisksRequest::getOwnerId() const { + return ownerId_; } -std::vector ResetDisksRequest::getDisk()const -{ - return disk_; +void ResetDisksRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ResetDisksRequest::setDisk(const std::vector& disk) -{ - disk_ = disk; - for(int dep1 = 0; dep1!= disk.size(); dep1++) { - auto diskObj = disk.at(dep1); - std::string diskObjStr = "Disk." + std::to_string(dep1 + 1); - setParameter(diskObjStr + ".SnapshotId", diskObj.snapshotId); - setParameter(diskObjStr + ".DiskId", diskObj.diskId); - } +std::vector ResetDisksRequest::getDisk() const { + return disk_; +} + +void ResetDisksRequest::setDisk(const std::vector &disk) { + disk_ = disk; + for(int dep1 = 0; dep1 != disk.size(); dep1++) { + auto diskObj = disk.at(dep1); + std::string diskObjStr = std::string("Disk") + "." + std::to_string(dep1 + 1); + setParameter(diskObjStr + ".SnapshotId", diskObj.snapshotId); + setParameter(diskObjStr + ".DiskId", diskObj.diskId); + } } diff --git a/ecs/src/model/ResizeDiskRequest.cc b/ecs/src/model/ResizeDiskRequest.cc index acbf26b86..46fe543b5 100644 --- a/ecs/src/model/ResizeDiskRequest.cc +++ b/ecs/src/model/ResizeDiskRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::ResizeDiskRequest; - -ResizeDiskRequest::ResizeDiskRequest() : - RpcServiceRequest("ecs", "2014-05-26", "ResizeDisk") -{ - setMethod(HttpRequest::Method::Post); -} - -ResizeDiskRequest::~ResizeDiskRequest() -{} - -long ResizeDiskRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::ResizeDiskRequest; + +ResizeDiskRequest::ResizeDiskRequest() + : RpcServiceRequest("ecs", "2014-05-26", "ResizeDisk") { + setMethod(HttpRequest::Method::Post); } -void ResizeDiskRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ResizeDiskRequest::~ResizeDiskRequest() {} + +long ResizeDiskRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ResizeDiskRequest::getClientToken()const -{ - return clientToken_; +void ResizeDiskRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ResizeDiskRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string ResizeDiskRequest::getClientToken() const { + return clientToken_; } -std::string ResizeDiskRequest::getType()const -{ - return type_; +void ResizeDiskRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void ResizeDiskRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +std::string ResizeDiskRequest::getType() const { + return type_; } -std::string ResizeDiskRequest::getDiskId()const -{ - return diskId_; +void ResizeDiskRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void ResizeDiskRequest::setDiskId(const std::string& diskId) -{ - diskId_ = diskId; - setParameter("DiskId", diskId); +std::string ResizeDiskRequest::getDiskId() const { + return diskId_; } -std::string ResizeDiskRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ResizeDiskRequest::setDiskId(const std::string &diskId) { + diskId_ = diskId; + setParameter(std::string("DiskId"), diskId); } -void ResizeDiskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ResizeDiskRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ResizeDiskRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ResizeDiskRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ResizeDiskRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ResizeDiskRequest::getOwnerAccount() const { + return ownerAccount_; } -int ResizeDiskRequest::getNewSize()const -{ - return newSize_; +void ResizeDiskRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ResizeDiskRequest::setNewSize(int newSize) -{ - newSize_ = newSize; - setParameter("NewSize", std::to_string(newSize)); +int ResizeDiskRequest::getNewSize() const { + return newSize_; } -long ResizeDiskRequest::getOwnerId()const -{ - return ownerId_; +void ResizeDiskRequest::setNewSize(int newSize) { + newSize_ = newSize; + setParameter(std::string("NewSize"), std::to_string(newSize)); } -void ResizeDiskRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ResizeDiskRequest::getOwnerId() const { + return ownerId_; +} + +void ResizeDiskRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/RevokeSecurityGroupEgressRequest.cc b/ecs/src/model/RevokeSecurityGroupEgressRequest.cc index 648e0a956..91c741422 100644 --- a/ecs/src/model/RevokeSecurityGroupEgressRequest.cc +++ b/ecs/src/model/RevokeSecurityGroupEgressRequest.cc @@ -1,271 +1,225 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::RevokeSecurityGroupEgressRequest; - -RevokeSecurityGroupEgressRequest::RevokeSecurityGroupEgressRequest() : - RpcServiceRequest("ecs", "2014-05-26", "RevokeSecurityGroupEgress") -{ - setMethod(HttpRequest::Method::Post); -} - -RevokeSecurityGroupEgressRequest::~RevokeSecurityGroupEgressRequest() -{} - -std::string RevokeSecurityGroupEgressRequest::getNicType()const -{ - return nicType_; + */ + +#include + +using AlibabaCloud::Ecs::Model::RevokeSecurityGroupEgressRequest; + +RevokeSecurityGroupEgressRequest::RevokeSecurityGroupEgressRequest() + : RpcServiceRequest("ecs", "2014-05-26", "RevokeSecurityGroupEgress") { + setMethod(HttpRequest::Method::Post); } -void RevokeSecurityGroupEgressRequest::setNicType(const std::string& nicType) -{ - nicType_ = nicType; - setParameter("NicType", nicType); +RevokeSecurityGroupEgressRequest::~RevokeSecurityGroupEgressRequest() {} + +std::string RevokeSecurityGroupEgressRequest::getNicType() const { + return nicType_; } -long RevokeSecurityGroupEgressRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void RevokeSecurityGroupEgressRequest::setNicType(const std::string &nicType) { + nicType_ = nicType; + setParameter(std::string("NicType"), nicType); } -void RevokeSecurityGroupEgressRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long RevokeSecurityGroupEgressRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string RevokeSecurityGroupEgressRequest::getSourcePortRange()const -{ - return sourcePortRange_; +void RevokeSecurityGroupEgressRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void RevokeSecurityGroupEgressRequest::setSourcePortRange(const std::string& sourcePortRange) -{ - sourcePortRange_ = sourcePortRange; - setParameter("SourcePortRange", sourcePortRange); +std::string RevokeSecurityGroupEgressRequest::getSourcePortRange() const { + return sourcePortRange_; } -std::string RevokeSecurityGroupEgressRequest::getClientToken()const -{ - return clientToken_; +void RevokeSecurityGroupEgressRequest::setSourcePortRange(const std::string &sourcePortRange) { + sourcePortRange_ = sourcePortRange; + setParameter(std::string("SourcePortRange"), sourcePortRange); } -void RevokeSecurityGroupEgressRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string RevokeSecurityGroupEgressRequest::getClientToken() const { + return clientToken_; } -std::string RevokeSecurityGroupEgressRequest::getDestPrefixListId()const -{ - return destPrefixListId_; +void RevokeSecurityGroupEgressRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void RevokeSecurityGroupEgressRequest::setDestPrefixListId(const std::string& destPrefixListId) -{ - destPrefixListId_ = destPrefixListId; - setParameter("DestPrefixListId", destPrefixListId); +std::string RevokeSecurityGroupEgressRequest::getDestPrefixListId() const { + return destPrefixListId_; } -std::string RevokeSecurityGroupEgressRequest::getSecurityGroupId()const -{ - return securityGroupId_; +void RevokeSecurityGroupEgressRequest::setDestPrefixListId(const std::string &destPrefixListId) { + destPrefixListId_ = destPrefixListId; + setParameter(std::string("DestPrefixListId"), destPrefixListId); } -void RevokeSecurityGroupEgressRequest::setSecurityGroupId(const std::string& securityGroupId) -{ - securityGroupId_ = securityGroupId; - setParameter("SecurityGroupId", securityGroupId); +std::string RevokeSecurityGroupEgressRequest::getSecurityGroupId() const { + return securityGroupId_; } -std::string RevokeSecurityGroupEgressRequest::getDescription()const -{ - return description_; +void RevokeSecurityGroupEgressRequest::setSecurityGroupId(const std::string &securityGroupId) { + securityGroupId_ = securityGroupId; + setParameter(std::string("SecurityGroupId"), securityGroupId); } -void RevokeSecurityGroupEgressRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string RevokeSecurityGroupEgressRequest::getDescription() const { + return description_; } -std::string RevokeSecurityGroupEgressRequest::getRegionId()const -{ - return regionId_; +void RevokeSecurityGroupEgressRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void RevokeSecurityGroupEgressRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string RevokeSecurityGroupEgressRequest::getRegionId() const { + return regionId_; } -std::string RevokeSecurityGroupEgressRequest::getIpv6DestCidrIp()const -{ - return ipv6DestCidrIp_; +void RevokeSecurityGroupEgressRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void RevokeSecurityGroupEgressRequest::setIpv6DestCidrIp(const std::string& ipv6DestCidrIp) -{ - ipv6DestCidrIp_ = ipv6DestCidrIp; - setParameter("Ipv6DestCidrIp", ipv6DestCidrIp); +std::string RevokeSecurityGroupEgressRequest::getIpv6DestCidrIp() const { + return ipv6DestCidrIp_; } -std::string RevokeSecurityGroupEgressRequest::getIpv6SourceCidrIp()const -{ - return ipv6SourceCidrIp_; +void RevokeSecurityGroupEgressRequest::setIpv6DestCidrIp(const std::string &ipv6DestCidrIp) { + ipv6DestCidrIp_ = ipv6DestCidrIp; + setParameter(std::string("Ipv6DestCidrIp"), ipv6DestCidrIp); } -void RevokeSecurityGroupEgressRequest::setIpv6SourceCidrIp(const std::string& ipv6SourceCidrIp) -{ - ipv6SourceCidrIp_ = ipv6SourceCidrIp; - setParameter("Ipv6SourceCidrIp", ipv6SourceCidrIp); +std::string RevokeSecurityGroupEgressRequest::getIpv6SourceCidrIp() const { + return ipv6SourceCidrIp_; } -std::string RevokeSecurityGroupEgressRequest::getPolicy()const -{ - return policy_; +void RevokeSecurityGroupEgressRequest::setIpv6SourceCidrIp(const std::string &ipv6SourceCidrIp) { + ipv6SourceCidrIp_ = ipv6SourceCidrIp; + setParameter(std::string("Ipv6SourceCidrIp"), ipv6SourceCidrIp); } -void RevokeSecurityGroupEgressRequest::setPolicy(const std::string& policy) -{ - policy_ = policy; - setParameter("Policy", policy); +std::string RevokeSecurityGroupEgressRequest::getPolicy() const { + return policy_; } -std::string RevokeSecurityGroupEgressRequest::getPortRange()const -{ - return portRange_; +void RevokeSecurityGroupEgressRequest::setPolicy(const std::string &policy) { + policy_ = policy; + setParameter(std::string("Policy"), policy); } -void RevokeSecurityGroupEgressRequest::setPortRange(const std::string& portRange) -{ - portRange_ = portRange; - setParameter("PortRange", portRange); +std::string RevokeSecurityGroupEgressRequest::getPortRange() const { + return portRange_; } -std::string RevokeSecurityGroupEgressRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void RevokeSecurityGroupEgressRequest::setPortRange(const std::string &portRange) { + portRange_ = portRange; + setParameter(std::string("PortRange"), portRange); } -void RevokeSecurityGroupEgressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string RevokeSecurityGroupEgressRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string RevokeSecurityGroupEgressRequest::getIpProtocol()const -{ - return ipProtocol_; +void RevokeSecurityGroupEgressRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void RevokeSecurityGroupEgressRequest::setIpProtocol(const std::string& ipProtocol) -{ - ipProtocol_ = ipProtocol; - setParameter("IpProtocol", ipProtocol); +std::string RevokeSecurityGroupEgressRequest::getIpProtocol() const { + return ipProtocol_; } -std::string RevokeSecurityGroupEgressRequest::getOwnerAccount()const -{ - return ownerAccount_; +void RevokeSecurityGroupEgressRequest::setIpProtocol(const std::string &ipProtocol) { + ipProtocol_ = ipProtocol; + setParameter(std::string("IpProtocol"), ipProtocol); } -void RevokeSecurityGroupEgressRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string RevokeSecurityGroupEgressRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string RevokeSecurityGroupEgressRequest::getSourceCidrIp()const -{ - return sourceCidrIp_; +void RevokeSecurityGroupEgressRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void RevokeSecurityGroupEgressRequest::setSourceCidrIp(const std::string& sourceCidrIp) -{ - sourceCidrIp_ = sourceCidrIp; - setParameter("SourceCidrIp", sourceCidrIp); +std::string RevokeSecurityGroupEgressRequest::getSourceCidrIp() const { + return sourceCidrIp_; } -std::string RevokeSecurityGroupEgressRequest::getDestGroupId()const -{ - return destGroupId_; +void RevokeSecurityGroupEgressRequest::setSourceCidrIp(const std::string &sourceCidrIp) { + sourceCidrIp_ = sourceCidrIp; + setParameter(std::string("SourceCidrIp"), sourceCidrIp); } -void RevokeSecurityGroupEgressRequest::setDestGroupId(const std::string& destGroupId) -{ - destGroupId_ = destGroupId; - setParameter("DestGroupId", destGroupId); +std::string RevokeSecurityGroupEgressRequest::getDestGroupId() const { + return destGroupId_; } -long RevokeSecurityGroupEgressRequest::getOwnerId()const -{ - return ownerId_; +void RevokeSecurityGroupEgressRequest::setDestGroupId(const std::string &destGroupId) { + destGroupId_ = destGroupId; + setParameter(std::string("DestGroupId"), destGroupId); } -void RevokeSecurityGroupEgressRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long RevokeSecurityGroupEgressRequest::getOwnerId() const { + return ownerId_; } -std::string RevokeSecurityGroupEgressRequest::getDestGroupOwnerAccount()const -{ - return destGroupOwnerAccount_; +void RevokeSecurityGroupEgressRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void RevokeSecurityGroupEgressRequest::setDestGroupOwnerAccount(const std::string& destGroupOwnerAccount) -{ - destGroupOwnerAccount_ = destGroupOwnerAccount; - setParameter("DestGroupOwnerAccount", destGroupOwnerAccount); +std::string RevokeSecurityGroupEgressRequest::getDestGroupOwnerAccount() const { + return destGroupOwnerAccount_; } -std::string RevokeSecurityGroupEgressRequest::getPriority()const -{ - return priority_; +void RevokeSecurityGroupEgressRequest::setDestGroupOwnerAccount(const std::string &destGroupOwnerAccount) { + destGroupOwnerAccount_ = destGroupOwnerAccount; + setParameter(std::string("DestGroupOwnerAccount"), destGroupOwnerAccount); } -void RevokeSecurityGroupEgressRequest::setPriority(const std::string& priority) -{ - priority_ = priority; - setParameter("Priority", priority); +std::string RevokeSecurityGroupEgressRequest::getPriority() const { + return priority_; } -std::string RevokeSecurityGroupEgressRequest::getDestCidrIp()const -{ - return destCidrIp_; +void RevokeSecurityGroupEgressRequest::setPriority(const std::string &priority) { + priority_ = priority; + setParameter(std::string("Priority"), priority); } -void RevokeSecurityGroupEgressRequest::setDestCidrIp(const std::string& destCidrIp) -{ - destCidrIp_ = destCidrIp; - setParameter("DestCidrIp", destCidrIp); +std::string RevokeSecurityGroupEgressRequest::getDestCidrIp() const { + return destCidrIp_; } -long RevokeSecurityGroupEgressRequest::getDestGroupOwnerId()const -{ - return destGroupOwnerId_; +void RevokeSecurityGroupEgressRequest::setDestCidrIp(const std::string &destCidrIp) { + destCidrIp_ = destCidrIp; + setParameter(std::string("DestCidrIp"), destCidrIp); } -void RevokeSecurityGroupEgressRequest::setDestGroupOwnerId(long destGroupOwnerId) -{ - destGroupOwnerId_ = destGroupOwnerId; - setParameter("DestGroupOwnerId", std::to_string(destGroupOwnerId)); +long RevokeSecurityGroupEgressRequest::getDestGroupOwnerId() const { + return destGroupOwnerId_; +} + +void RevokeSecurityGroupEgressRequest::setDestGroupOwnerId(long destGroupOwnerId) { + destGroupOwnerId_ = destGroupOwnerId; + setParameter(std::string("DestGroupOwnerId"), std::to_string(destGroupOwnerId)); } diff --git a/ecs/src/model/RevokeSecurityGroupRequest.cc b/ecs/src/model/RevokeSecurityGroupRequest.cc index 9a8cb093a..479528194 100644 --- a/ecs/src/model/RevokeSecurityGroupRequest.cc +++ b/ecs/src/model/RevokeSecurityGroupRequest.cc @@ -1,271 +1,225 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::RevokeSecurityGroupRequest; - -RevokeSecurityGroupRequest::RevokeSecurityGroupRequest() : - RpcServiceRequest("ecs", "2014-05-26", "RevokeSecurityGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -RevokeSecurityGroupRequest::~RevokeSecurityGroupRequest() -{} - -std::string RevokeSecurityGroupRequest::getNicType()const -{ - return nicType_; + */ + +#include + +using AlibabaCloud::Ecs::Model::RevokeSecurityGroupRequest; + +RevokeSecurityGroupRequest::RevokeSecurityGroupRequest() + : RpcServiceRequest("ecs", "2014-05-26", "RevokeSecurityGroup") { + setMethod(HttpRequest::Method::Post); } -void RevokeSecurityGroupRequest::setNicType(const std::string& nicType) -{ - nicType_ = nicType; - setParameter("NicType", nicType); +RevokeSecurityGroupRequest::~RevokeSecurityGroupRequest() {} + +std::string RevokeSecurityGroupRequest::getNicType() const { + return nicType_; } -long RevokeSecurityGroupRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void RevokeSecurityGroupRequest::setNicType(const std::string &nicType) { + nicType_ = nicType; + setParameter(std::string("NicType"), nicType); } -void RevokeSecurityGroupRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long RevokeSecurityGroupRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string RevokeSecurityGroupRequest::getSourcePrefixListId()const -{ - return sourcePrefixListId_; +void RevokeSecurityGroupRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void RevokeSecurityGroupRequest::setSourcePrefixListId(const std::string& sourcePrefixListId) -{ - sourcePrefixListId_ = sourcePrefixListId; - setParameter("SourcePrefixListId", sourcePrefixListId); +std::string RevokeSecurityGroupRequest::getSourcePrefixListId() const { + return sourcePrefixListId_; } -std::string RevokeSecurityGroupRequest::getSourcePortRange()const -{ - return sourcePortRange_; +void RevokeSecurityGroupRequest::setSourcePrefixListId(const std::string &sourcePrefixListId) { + sourcePrefixListId_ = sourcePrefixListId; + setParameter(std::string("SourcePrefixListId"), sourcePrefixListId); } -void RevokeSecurityGroupRequest::setSourcePortRange(const std::string& sourcePortRange) -{ - sourcePortRange_ = sourcePortRange; - setParameter("SourcePortRange", sourcePortRange); +std::string RevokeSecurityGroupRequest::getSourcePortRange() const { + return sourcePortRange_; } -std::string RevokeSecurityGroupRequest::getClientToken()const -{ - return clientToken_; +void RevokeSecurityGroupRequest::setSourcePortRange(const std::string &sourcePortRange) { + sourcePortRange_ = sourcePortRange; + setParameter(std::string("SourcePortRange"), sourcePortRange); } -void RevokeSecurityGroupRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string RevokeSecurityGroupRequest::getClientToken() const { + return clientToken_; } -std::string RevokeSecurityGroupRequest::getSecurityGroupId()const -{ - return securityGroupId_; +void RevokeSecurityGroupRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void RevokeSecurityGroupRequest::setSecurityGroupId(const std::string& securityGroupId) -{ - securityGroupId_ = securityGroupId; - setParameter("SecurityGroupId", securityGroupId); +std::string RevokeSecurityGroupRequest::getSecurityGroupId() const { + return securityGroupId_; } -std::string RevokeSecurityGroupRequest::getDescription()const -{ - return description_; +void RevokeSecurityGroupRequest::setSecurityGroupId(const std::string &securityGroupId) { + securityGroupId_ = securityGroupId; + setParameter(std::string("SecurityGroupId"), securityGroupId); } -void RevokeSecurityGroupRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string RevokeSecurityGroupRequest::getDescription() const { + return description_; } -long RevokeSecurityGroupRequest::getSourceGroupOwnerId()const -{ - return sourceGroupOwnerId_; +void RevokeSecurityGroupRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void RevokeSecurityGroupRequest::setSourceGroupOwnerId(long sourceGroupOwnerId) -{ - sourceGroupOwnerId_ = sourceGroupOwnerId; - setParameter("SourceGroupOwnerId", std::to_string(sourceGroupOwnerId)); +long RevokeSecurityGroupRequest::getSourceGroupOwnerId() const { + return sourceGroupOwnerId_; } -std::string RevokeSecurityGroupRequest::getSourceGroupOwnerAccount()const -{ - return sourceGroupOwnerAccount_; +void RevokeSecurityGroupRequest::setSourceGroupOwnerId(long sourceGroupOwnerId) { + sourceGroupOwnerId_ = sourceGroupOwnerId; + setParameter(std::string("SourceGroupOwnerId"), std::to_string(sourceGroupOwnerId)); } -void RevokeSecurityGroupRequest::setSourceGroupOwnerAccount(const std::string& sourceGroupOwnerAccount) -{ - sourceGroupOwnerAccount_ = sourceGroupOwnerAccount; - setParameter("SourceGroupOwnerAccount", sourceGroupOwnerAccount); +std::string RevokeSecurityGroupRequest::getSourceGroupOwnerAccount() const { + return sourceGroupOwnerAccount_; } -std::string RevokeSecurityGroupRequest::getRegionId()const -{ - return regionId_; +void RevokeSecurityGroupRequest::setSourceGroupOwnerAccount(const std::string &sourceGroupOwnerAccount) { + sourceGroupOwnerAccount_ = sourceGroupOwnerAccount; + setParameter(std::string("SourceGroupOwnerAccount"), sourceGroupOwnerAccount); } -void RevokeSecurityGroupRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string RevokeSecurityGroupRequest::getRegionId() const { + return regionId_; } -std::string RevokeSecurityGroupRequest::getIpv6DestCidrIp()const -{ - return ipv6DestCidrIp_; +void RevokeSecurityGroupRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void RevokeSecurityGroupRequest::setIpv6DestCidrIp(const std::string& ipv6DestCidrIp) -{ - ipv6DestCidrIp_ = ipv6DestCidrIp; - setParameter("Ipv6DestCidrIp", ipv6DestCidrIp); +std::string RevokeSecurityGroupRequest::getIpv6DestCidrIp() const { + return ipv6DestCidrIp_; } -std::string RevokeSecurityGroupRequest::getIpv6SourceCidrIp()const -{ - return ipv6SourceCidrIp_; +void RevokeSecurityGroupRequest::setIpv6DestCidrIp(const std::string &ipv6DestCidrIp) { + ipv6DestCidrIp_ = ipv6DestCidrIp; + setParameter(std::string("Ipv6DestCidrIp"), ipv6DestCidrIp); } -void RevokeSecurityGroupRequest::setIpv6SourceCidrIp(const std::string& ipv6SourceCidrIp) -{ - ipv6SourceCidrIp_ = ipv6SourceCidrIp; - setParameter("Ipv6SourceCidrIp", ipv6SourceCidrIp); +std::string RevokeSecurityGroupRequest::getIpv6SourceCidrIp() const { + return ipv6SourceCidrIp_; } -std::string RevokeSecurityGroupRequest::getPolicy()const -{ - return policy_; +void RevokeSecurityGroupRequest::setIpv6SourceCidrIp(const std::string &ipv6SourceCidrIp) { + ipv6SourceCidrIp_ = ipv6SourceCidrIp; + setParameter(std::string("Ipv6SourceCidrIp"), ipv6SourceCidrIp); } -void RevokeSecurityGroupRequest::setPolicy(const std::string& policy) -{ - policy_ = policy; - setParameter("Policy", policy); +std::string RevokeSecurityGroupRequest::getPolicy() const { + return policy_; } -std::string RevokeSecurityGroupRequest::getPortRange()const -{ - return portRange_; +void RevokeSecurityGroupRequest::setPolicy(const std::string &policy) { + policy_ = policy; + setParameter(std::string("Policy"), policy); } -void RevokeSecurityGroupRequest::setPortRange(const std::string& portRange) -{ - portRange_ = portRange; - setParameter("PortRange", portRange); +std::string RevokeSecurityGroupRequest::getPortRange() const { + return portRange_; } -std::string RevokeSecurityGroupRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void RevokeSecurityGroupRequest::setPortRange(const std::string &portRange) { + portRange_ = portRange; + setParameter(std::string("PortRange"), portRange); } -void RevokeSecurityGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string RevokeSecurityGroupRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string RevokeSecurityGroupRequest::getIpProtocol()const -{ - return ipProtocol_; +void RevokeSecurityGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void RevokeSecurityGroupRequest::setIpProtocol(const std::string& ipProtocol) -{ - ipProtocol_ = ipProtocol; - setParameter("IpProtocol", ipProtocol); +std::string RevokeSecurityGroupRequest::getIpProtocol() const { + return ipProtocol_; } -std::string RevokeSecurityGroupRequest::getOwnerAccount()const -{ - return ownerAccount_; +void RevokeSecurityGroupRequest::setIpProtocol(const std::string &ipProtocol) { + ipProtocol_ = ipProtocol; + setParameter(std::string("IpProtocol"), ipProtocol); } -void RevokeSecurityGroupRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string RevokeSecurityGroupRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string RevokeSecurityGroupRequest::getSourceCidrIp()const -{ - return sourceCidrIp_; +void RevokeSecurityGroupRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void RevokeSecurityGroupRequest::setSourceCidrIp(const std::string& sourceCidrIp) -{ - sourceCidrIp_ = sourceCidrIp; - setParameter("SourceCidrIp", sourceCidrIp); +std::string RevokeSecurityGroupRequest::getSourceCidrIp() const { + return sourceCidrIp_; } -long RevokeSecurityGroupRequest::getOwnerId()const -{ - return ownerId_; +void RevokeSecurityGroupRequest::setSourceCidrIp(const std::string &sourceCidrIp) { + sourceCidrIp_ = sourceCidrIp; + setParameter(std::string("SourceCidrIp"), sourceCidrIp); } -void RevokeSecurityGroupRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long RevokeSecurityGroupRequest::getOwnerId() const { + return ownerId_; } -std::string RevokeSecurityGroupRequest::getPriority()const -{ - return priority_; +void RevokeSecurityGroupRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void RevokeSecurityGroupRequest::setPriority(const std::string& priority) -{ - priority_ = priority; - setParameter("Priority", priority); +std::string RevokeSecurityGroupRequest::getPriority() const { + return priority_; } -std::string RevokeSecurityGroupRequest::getDestCidrIp()const -{ - return destCidrIp_; +void RevokeSecurityGroupRequest::setPriority(const std::string &priority) { + priority_ = priority; + setParameter(std::string("Priority"), priority); } -void RevokeSecurityGroupRequest::setDestCidrIp(const std::string& destCidrIp) -{ - destCidrIp_ = destCidrIp; - setParameter("DestCidrIp", destCidrIp); +std::string RevokeSecurityGroupRequest::getDestCidrIp() const { + return destCidrIp_; } -std::string RevokeSecurityGroupRequest::getSourceGroupId()const -{ - return sourceGroupId_; +void RevokeSecurityGroupRequest::setDestCidrIp(const std::string &destCidrIp) { + destCidrIp_ = destCidrIp; + setParameter(std::string("DestCidrIp"), destCidrIp); } -void RevokeSecurityGroupRequest::setSourceGroupId(const std::string& sourceGroupId) -{ - sourceGroupId_ = sourceGroupId; - setParameter("SourceGroupId", sourceGroupId); +std::string RevokeSecurityGroupRequest::getSourceGroupId() const { + return sourceGroupId_; +} + +void RevokeSecurityGroupRequest::setSourceGroupId(const std::string &sourceGroupId) { + sourceGroupId_ = sourceGroupId; + setParameter(std::string("SourceGroupId"), sourceGroupId); } diff --git a/ecs/src/model/RunCommandRequest.cc b/ecs/src/model/RunCommandRequest.cc index d6cfdd055..e558feb12 100644 --- a/ecs/src/model/RunCommandRequest.cc +++ b/ecs/src/model/RunCommandRequest.cc @@ -1,262 +1,215 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::RunCommandRequest; - -RunCommandRequest::RunCommandRequest() : - RpcServiceRequest("ecs", "2014-05-26", "RunCommand") -{ - setMethod(HttpRequest::Method::Post); -} - -RunCommandRequest::~RunCommandRequest() -{} - -long RunCommandRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::RunCommandRequest; + +RunCommandRequest::RunCommandRequest() + : RpcServiceRequest("ecs", "2014-05-26", "RunCommand") { + setMethod(HttpRequest::Method::Post); } -void RunCommandRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +RunCommandRequest::~RunCommandRequest() {} + +long RunCommandRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string RunCommandRequest::getWorkingDir()const -{ - return workingDir_; +void RunCommandRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void RunCommandRequest::setWorkingDir(const std::string& workingDir) -{ - workingDir_ = workingDir; - setParameter("WorkingDir", workingDir); +std::string RunCommandRequest::getWorkingDir() const { + return workingDir_; } -std::string RunCommandRequest::getDescription()const -{ - return description_; +void RunCommandRequest::setWorkingDir(const std::string &workingDir) { + workingDir_ = workingDir; + setParameter(std::string("WorkingDir"), workingDir); } -void RunCommandRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string RunCommandRequest::getDescription() const { + return description_; } -std::string RunCommandRequest::getType()const -{ - return type_; +void RunCommandRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void RunCommandRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +std::string RunCommandRequest::getType() const { + return type_; } -std::string RunCommandRequest::getCommandContent()const -{ - return commandContent_; +void RunCommandRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void RunCommandRequest::setCommandContent(const std::string& commandContent) -{ - commandContent_ = commandContent; - setParameter("CommandContent", commandContent); +std::string RunCommandRequest::getCommandContent() const { + return commandContent_; } -long RunCommandRequest::getTimeout()const -{ - return timeout_; +void RunCommandRequest::setCommandContent(const std::string &commandContent) { + commandContent_ = commandContent; + setParameter(std::string("CommandContent"), commandContent); } -void RunCommandRequest::setTimeout(long timeout) -{ - timeout_ = timeout; - setParameter("Timeout", std::to_string(timeout)); +long RunCommandRequest::getTimeout() const { + return timeout_; } -std::string RunCommandRequest::getFrequency()const -{ - return frequency_; +void RunCommandRequest::setTimeout(long timeout) { + timeout_ = timeout; + setParameter(std::string("Timeout"), std::to_string(timeout)); } -void RunCommandRequest::setFrequency(const std::string& frequency) -{ - frequency_ = frequency; - setParameter("Frequency", frequency); +std::string RunCommandRequest::getFrequency() const { + return frequency_; } -std::string RunCommandRequest::getRegionId()const -{ - return regionId_; +void RunCommandRequest::setFrequency(const std::string &frequency) { + frequency_ = frequency; + setParameter(std::string("Frequency"), frequency); } -void RunCommandRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string RunCommandRequest::getRegionId() const { + return regionId_; } -std::string RunCommandRequest::getContentEncoding()const -{ - return contentEncoding_; +void RunCommandRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void RunCommandRequest::setContentEncoding(const std::string& contentEncoding) -{ - contentEncoding_ = contentEncoding; - setParameter("ContentEncoding", contentEncoding); +std::string RunCommandRequest::getContentEncoding() const { + return contentEncoding_; } -std::string RunCommandRequest::getRepeatMode()const -{ - return repeatMode_; +void RunCommandRequest::setContentEncoding(const std::string &contentEncoding) { + contentEncoding_ = contentEncoding; + setParameter(std::string("ContentEncoding"), contentEncoding); } -void RunCommandRequest::setRepeatMode(const std::string& repeatMode) -{ - repeatMode_ = repeatMode; - setParameter("RepeatMode", repeatMode); +std::string RunCommandRequest::getRepeatMode() const { + return repeatMode_; } -std::string RunCommandRequest::getWindowsPasswordName()const -{ - return windowsPasswordName_; +void RunCommandRequest::setRepeatMode(const std::string &repeatMode) { + repeatMode_ = repeatMode; + setParameter(std::string("RepeatMode"), repeatMode); } -void RunCommandRequest::setWindowsPasswordName(const std::string& windowsPasswordName) -{ - windowsPasswordName_ = windowsPasswordName; - setParameter("WindowsPasswordName", windowsPasswordName); +std::string RunCommandRequest::getWindowsPasswordName() const { + return windowsPasswordName_; } -bool RunCommandRequest::getKeepCommand()const -{ - return keepCommand_; +void RunCommandRequest::setWindowsPasswordName(const std::string &windowsPasswordName) { + windowsPasswordName_ = windowsPasswordName; + setParameter(std::string("WindowsPasswordName"), windowsPasswordName); } -void RunCommandRequest::setKeepCommand(bool keepCommand) -{ - keepCommand_ = keepCommand; - setParameter("KeepCommand", keepCommand ? "true" : "false"); +bool RunCommandRequest::getKeepCommand() const { + return keepCommand_; } -bool RunCommandRequest::getTimed()const -{ - return timed_; +void RunCommandRequest::setKeepCommand(bool keepCommand) { + keepCommand_ = keepCommand; + setParameter(std::string("KeepCommand"), keepCommand ? "true" : "false"); } -void RunCommandRequest::setTimed(bool timed) -{ - timed_ = timed; - setParameter("Timed", timed ? "true" : "false"); +bool RunCommandRequest::getTimed() const { + return timed_; } -std::string RunCommandRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void RunCommandRequest::setTimed(bool timed) { + timed_ = timed; + setParameter(std::string("Timed"), timed ? "true" : "false"); } -void RunCommandRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string RunCommandRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string RunCommandRequest::getOwnerAccount()const -{ - return ownerAccount_; +void RunCommandRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void RunCommandRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string RunCommandRequest::getOwnerAccount() const { + return ownerAccount_; } -long RunCommandRequest::getOwnerId()const -{ - return ownerId_; +void RunCommandRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void RunCommandRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long RunCommandRequest::getOwnerId() const { + return ownerId_; } -std::vector RunCommandRequest::getInstanceId()const -{ - return instanceId_; +void RunCommandRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void RunCommandRequest::setInstanceId(const std::vector& instanceId) -{ - instanceId_ = instanceId; - for(int dep1 = 0; dep1!= instanceId.size(); dep1++) { - setParameter("InstanceId."+ std::to_string(dep1), instanceId.at(dep1)); - } +std::vector RunCommandRequest::getInstanceId() const { + return instanceId_; } -std::string RunCommandRequest::getName()const -{ - return name_; +void RunCommandRequest::setInstanceId(const std::vector &instanceId) { + instanceId_ = instanceId; } -void RunCommandRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string RunCommandRequest::getName() const { + return name_; } -std::map RunCommandRequest::getParameters()const -{ - return parameters_; +void RunCommandRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void RunCommandRequest::setParameters(const std::map& parameters) -{ - parameters_ = parameters; - setJsonParameters("Parameters", parameters); +std::map RunCommandRequest::getParameters() const { + return parameters_; } -bool RunCommandRequest::getEnableParameter()const -{ - return enableParameter_; +void RunCommandRequest::setParameters(std::map parameters) { + parameters_ = parameters; + setParameter(std::string("Parameters"), parameters); } -void RunCommandRequest::setEnableParameter(bool enableParameter) -{ - enableParameter_ = enableParameter; - setParameter("EnableParameter", enableParameter ? "true" : "false"); +bool RunCommandRequest::getEnableParameter() const { + return enableParameter_; } -std::string RunCommandRequest::getUsername()const -{ - return username_; +void RunCommandRequest::setEnableParameter(bool enableParameter) { + enableParameter_ = enableParameter; + setParameter(std::string("EnableParameter"), enableParameter ? "true" : "false"); } -void RunCommandRequest::setUsername(const std::string& username) -{ - username_ = username; - setParameter("Username", username); +std::string RunCommandRequest::getUsername() const { + return username_; +} + +void RunCommandRequest::setUsername(const std::string &username) { + username_ = username; + setParameter(std::string("Username"), username); } diff --git a/ecs/src/model/RunInstancesRequest.cc b/ecs/src/model/RunInstancesRequest.cc index 8e2da81df..497bee1b4 100644 --- a/ecs/src/model/RunInstancesRequest.cc +++ b/ecs/src/model/RunInstancesRequest.cc @@ -1,1020 +1,834 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::RunInstancesRequest; - -RunInstancesRequest::RunInstancesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "RunInstances") -{ - setMethod(HttpRequest::Method::Post); -} - -RunInstancesRequest::~RunInstancesRequest() -{} - -bool RunInstancesRequest::getUniqueSuffix()const -{ - return uniqueSuffix_; + */ + +#include + +using AlibabaCloud::Ecs::Model::RunInstancesRequest; + +RunInstancesRequest::RunInstancesRequest() + : RpcServiceRequest("ecs", "2014-05-26", "RunInstances") { + setMethod(HttpRequest::Method::Post); +} + +RunInstancesRequest::~RunInstancesRequest() {} + +bool RunInstancesRequest::getUniqueSuffix() const { + return uniqueSuffix_; } -void RunInstancesRequest::setUniqueSuffix(bool uniqueSuffix) -{ - uniqueSuffix_ = uniqueSuffix; - setParameter("UniqueSuffix", uniqueSuffix ? "true" : "false"); +void RunInstancesRequest::setUniqueSuffix(bool uniqueSuffix) { + uniqueSuffix_ = uniqueSuffix; + setParameter(std::string("UniqueSuffix"), uniqueSuffix ? "true" : "false"); } -std::string RunInstancesRequest::getSecurityEnhancementStrategy()const -{ - return securityEnhancementStrategy_; +std::string RunInstancesRequest::getSecurityEnhancementStrategy() const { + return securityEnhancementStrategy_; } -void RunInstancesRequest::setSecurityEnhancementStrategy(const std::string& securityEnhancementStrategy) -{ - securityEnhancementStrategy_ = securityEnhancementStrategy; - setParameter("SecurityEnhancementStrategy", securityEnhancementStrategy); +void RunInstancesRequest::setSecurityEnhancementStrategy(const std::string &securityEnhancementStrategy) { + securityEnhancementStrategy_ = securityEnhancementStrategy; + setParameter(std::string("SecurityEnhancementStrategy"), securityEnhancementStrategy); } -int RunInstancesRequest::getMinAmount()const -{ - return minAmount_; +int RunInstancesRequest::getMinAmount() const { + return minAmount_; } -void RunInstancesRequest::setMinAmount(int minAmount) -{ - minAmount_ = minAmount; - setParameter("MinAmount", std::to_string(minAmount)); +void RunInstancesRequest::setMinAmount(int minAmount) { + minAmount_ = minAmount; + setParameter(std::string("MinAmount"), std::to_string(minAmount)); } -bool RunInstancesRequest::getDeletionProtection()const -{ - return deletionProtection_; +bool RunInstancesRequest::getDeletionProtection() const { + return deletionProtection_; } -void RunInstancesRequest::setDeletionProtection(bool deletionProtection) -{ - deletionProtection_ = deletionProtection; - setParameter("DeletionProtection", deletionProtection ? "true" : "false"); +void RunInstancesRequest::setDeletionProtection(bool deletionProtection) { + deletionProtection_ = deletionProtection; + setParameter(std::string("DeletionProtection"), deletionProtection ? "true" : "false"); } -std::string RunInstancesRequest::getResourceGroupId()const -{ - return resourceGroupId_; +std::string RunInstancesRequest::getResourceGroupId() const { + return resourceGroupId_; } -void RunInstancesRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +void RunInstancesRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -std::string RunInstancesRequest::getPrivatePoolOptionsMatchCriteria()const -{ - return privatePoolOptionsMatchCriteria_; +std::string RunInstancesRequest::getPrivatePoolOptionsMatchCriteria() const { + return privatePoolOptionsMatchCriteria_; } -void RunInstancesRequest::setPrivatePoolOptionsMatchCriteria(const std::string& privatePoolOptionsMatchCriteria) -{ - privatePoolOptionsMatchCriteria_ = privatePoolOptionsMatchCriteria; - setParameter("PrivatePoolOptionsMatchCriteria", privatePoolOptionsMatchCriteria); +void RunInstancesRequest::setPrivatePoolOptionsMatchCriteria(const std::string &privatePoolOptionsMatchCriteria) { + privatePoolOptionsMatchCriteria_ = privatePoolOptionsMatchCriteria; + setParameter(std::string("PrivatePoolOptions.MatchCriteria"), privatePoolOptionsMatchCriteria); } -std::string RunInstancesRequest::getHostName()const -{ - return hostName_; +std::string RunInstancesRequest::getHostName() const { + return hostName_; } -void RunInstancesRequest::setHostName(const std::string& hostName) -{ - hostName_ = hostName; - setParameter("HostName", hostName); +void RunInstancesRequest::setHostName(const std::string &hostName) { + hostName_ = hostName; + setParameter(std::string("HostName"), hostName); } -std::string RunInstancesRequest::getPassword()const -{ - return password_; +std::string RunInstancesRequest::getPassword() const { + return password_; } -void RunInstancesRequest::setPassword(const std::string& password) -{ - password_ = password; - setParameter("Password", password); +void RunInstancesRequest::setPassword(const std::string &password) { + password_ = password; + setParameter(std::string("Password"), password); } -Struct RunInstancesRequest::getSystemDisk()const -{ - return systemDisk_; +RunInstancesRequest::SystemDisk RunInstancesRequest::getSystemDisk() const { + return systemDisk_; } -void RunInstancesRequest::setSystemDisk(const Struct& systemDisk) -{ - systemDisk_ = systemDisk; - setParameter("SystemDisk", std::to_string(systemDisk)); +void RunInstancesRequest::setSystemDisk(const RunInstancesRequest::SystemDisk &systemDisk) { + systemDisk_ = systemDisk; + setParameter(std::string("SystemDisk") + ".StorageClusterId", systemDisk.storageClusterId); } -int RunInstancesRequest::getDeploymentSetGroupNo()const -{ - return deploymentSetGroupNo_; +int RunInstancesRequest::getDeploymentSetGroupNo() const { + return deploymentSetGroupNo_; } -void RunInstancesRequest::setDeploymentSetGroupNo(int deploymentSetGroupNo) -{ - deploymentSetGroupNo_ = deploymentSetGroupNo; - setParameter("DeploymentSetGroupNo", std::to_string(deploymentSetGroupNo)); +void RunInstancesRequest::setDeploymentSetGroupNo(int deploymentSetGroupNo) { + deploymentSetGroupNo_ = deploymentSetGroupNo; + setParameter(std::string("DeploymentSetGroupNo"), std::to_string(deploymentSetGroupNo)); } -std::string RunInstancesRequest::getSystemDiskAutoSnapshotPolicyId()const -{ - return systemDiskAutoSnapshotPolicyId_; +std::string RunInstancesRequest::getSystemDiskAutoSnapshotPolicyId() const { + return systemDiskAutoSnapshotPolicyId_; } -void RunInstancesRequest::setSystemDiskAutoSnapshotPolicyId(const std::string& systemDiskAutoSnapshotPolicyId) -{ - systemDiskAutoSnapshotPolicyId_ = systemDiskAutoSnapshotPolicyId; - setParameter("SystemDiskAutoSnapshotPolicyId", systemDiskAutoSnapshotPolicyId); +void RunInstancesRequest::setSystemDiskAutoSnapshotPolicyId(const std::string &systemDiskAutoSnapshotPolicyId) { + systemDiskAutoSnapshotPolicyId_ = systemDiskAutoSnapshotPolicyId; + setParameter(std::string("SystemDisk.AutoSnapshotPolicyId"), systemDiskAutoSnapshotPolicyId); } -int RunInstancesRequest::getCpuOptionsCore()const -{ - return cpuOptionsCore_; +int RunInstancesRequest::getCpuOptionsCore() const { + return cpuOptionsCore_; } -void RunInstancesRequest::setCpuOptionsCore(int cpuOptionsCore) -{ - cpuOptionsCore_ = cpuOptionsCore; - setParameter("CpuOptionsCore", std::to_string(cpuOptionsCore)); +void RunInstancesRequest::setCpuOptionsCore(int cpuOptionsCore) { + cpuOptionsCore_ = cpuOptionsCore; + setParameter(std::string("CpuOptions.Core"), std::to_string(cpuOptionsCore)); } -int RunInstancesRequest::getPeriod()const -{ - return period_; +int RunInstancesRequest::getPeriod() const { + return period_; } -void RunInstancesRequest::setPeriod(int period) -{ - period_ = period; - setParameter("Period", std::to_string(period)); +void RunInstancesRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); } -bool RunInstancesRequest::getDryRun()const -{ - return dryRun_; +bool RunInstancesRequest::getDryRun() const { + return dryRun_; } -void RunInstancesRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +void RunInstancesRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -std::string RunInstancesRequest::getCpuOptionsNuma()const -{ - return cpuOptionsNuma_; +std::string RunInstancesRequest::getCpuOptionsNuma() const { + return cpuOptionsNuma_; } -void RunInstancesRequest::setCpuOptionsNuma(const std::string& cpuOptionsNuma) -{ - cpuOptionsNuma_ = cpuOptionsNuma; - setParameter("CpuOptionsNuma", cpuOptionsNuma); +void RunInstancesRequest::setCpuOptionsNuma(const std::string &cpuOptionsNuma) { + cpuOptionsNuma_ = cpuOptionsNuma; + setParameter(std::string("CpuOptions.Numa"), cpuOptionsNuma); } -long RunInstancesRequest::getOwnerId()const -{ - return ownerId_; +long RunInstancesRequest::getOwnerId() const { + return ownerId_; } -void RunInstancesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +void RunInstancesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -std::string RunInstancesRequest::getSpotStrategy()const -{ - return spotStrategy_; +std::string RunInstancesRequest::getSpotStrategy() const { + return spotStrategy_; } -void RunInstancesRequest::setSpotStrategy(const std::string& spotStrategy) -{ - spotStrategy_ = spotStrategy; - setParameter("SpotStrategy", spotStrategy); +void RunInstancesRequest::setSpotStrategy(const std::string &spotStrategy) { + spotStrategy_ = spotStrategy; + setParameter(std::string("SpotStrategy"), spotStrategy); } -std::string RunInstancesRequest::getPrivateIpAddress()const -{ - return privateIpAddress_; +std::string RunInstancesRequest::getPrivateIpAddress() const { + return privateIpAddress_; } -void RunInstancesRequest::setPrivateIpAddress(const std::string& privateIpAddress) -{ - privateIpAddress_ = privateIpAddress; - setParameter("PrivateIpAddress", privateIpAddress); +void RunInstancesRequest::setPrivateIpAddress(const std::string &privateIpAddress) { + privateIpAddress_ = privateIpAddress; + setParameter(std::string("PrivateIpAddress"), privateIpAddress); } -std::string RunInstancesRequest::getPeriodUnit()const -{ - return periodUnit_; +std::string RunInstancesRequest::getPeriodUnit() const { + return periodUnit_; } -void RunInstancesRequest::setPeriodUnit(const std::string& periodUnit) -{ - periodUnit_ = periodUnit; - setParameter("PeriodUnit", periodUnit); +void RunInstancesRequest::setPeriodUnit(const std::string &periodUnit) { + periodUnit_ = periodUnit; + setParameter(std::string("PeriodUnit"), periodUnit); } -bool RunInstancesRequest::getAutoRenew()const -{ - return autoRenew_; +bool RunInstancesRequest::getAutoRenew() const { + return autoRenew_; } -void RunInstancesRequest::setAutoRenew(bool autoRenew) -{ - autoRenew_ = autoRenew; - setParameter("AutoRenew", autoRenew ? "true" : "false"); +void RunInstancesRequest::setAutoRenew(bool autoRenew) { + autoRenew_ = autoRenew; + setParameter(std::string("AutoRenew"), autoRenew ? "true" : "false"); } -std::string RunInstancesRequest::getInternetChargeType()const -{ - return internetChargeType_; +std::string RunInstancesRequest::getInternetChargeType() const { + return internetChargeType_; } -void RunInstancesRequest::setInternetChargeType(const std::string& internetChargeType) -{ - internetChargeType_ = internetChargeType; - setParameter("InternetChargeType", internetChargeType); +void RunInstancesRequest::setInternetChargeType(const std::string &internetChargeType) { + internetChargeType_ = internetChargeType; + setParameter(std::string("InternetChargeType"), internetChargeType); } -int RunInstancesRequest::getInternetMaxBandwidthIn()const -{ - return internetMaxBandwidthIn_; +int RunInstancesRequest::getInternetMaxBandwidthIn() const { + return internetMaxBandwidthIn_; } -void RunInstancesRequest::setInternetMaxBandwidthIn(int internetMaxBandwidthIn) -{ - internetMaxBandwidthIn_ = internetMaxBandwidthIn; - setParameter("InternetMaxBandwidthIn", std::to_string(internetMaxBandwidthIn)); +void RunInstancesRequest::setInternetMaxBandwidthIn(int internetMaxBandwidthIn) { + internetMaxBandwidthIn_ = internetMaxBandwidthIn; + setParameter(std::string("InternetMaxBandwidthIn"), std::to_string(internetMaxBandwidthIn)); } -std::string RunInstancesRequest::getAffinity()const -{ - return affinity_; +std::string RunInstancesRequest::getAffinity() const { + return affinity_; } -void RunInstancesRequest::setAffinity(const std::string& affinity) -{ - affinity_ = affinity; - setParameter("Affinity", affinity); +void RunInstancesRequest::setAffinity(const std::string &affinity) { + affinity_ = affinity; + setParameter(std::string("Affinity"), affinity); } -std::string RunInstancesRequest::getImageId()const -{ - return imageId_; +std::string RunInstancesRequest::getImageId() const { + return imageId_; } -void RunInstancesRequest::setImageId(const std::string& imageId) -{ - imageId_ = imageId; - setParameter("ImageId", imageId); +void RunInstancesRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("ImageId"), imageId); } -std::string RunInstancesRequest::getSpotInterruptionBehavior()const -{ - return spotInterruptionBehavior_; +std::string RunInstancesRequest::getSpotInterruptionBehavior() const { + return spotInterruptionBehavior_; } -void RunInstancesRequest::setSpotInterruptionBehavior(const std::string& spotInterruptionBehavior) -{ - spotInterruptionBehavior_ = spotInterruptionBehavior; - setParameter("SpotInterruptionBehavior", spotInterruptionBehavior); +void RunInstancesRequest::setSpotInterruptionBehavior(const std::string &spotInterruptionBehavior) { + spotInterruptionBehavior_ = spotInterruptionBehavior; + setParameter(std::string("SpotInterruptionBehavior"), spotInterruptionBehavior); } -int RunInstancesRequest::getNetworkInterfaceQueueNumber()const -{ - return networkInterfaceQueueNumber_; +int RunInstancesRequest::getNetworkInterfaceQueueNumber() const { + return networkInterfaceQueueNumber_; } -void RunInstancesRequest::setNetworkInterfaceQueueNumber(int networkInterfaceQueueNumber) -{ - networkInterfaceQueueNumber_ = networkInterfaceQueueNumber; - setParameter("NetworkInterfaceQueueNumber", std::to_string(networkInterfaceQueueNumber)); +void RunInstancesRequest::setNetworkInterfaceQueueNumber(int networkInterfaceQueueNumber) { + networkInterfaceQueueNumber_ = networkInterfaceQueueNumber; + setParameter(std::string("NetworkInterfaceQueueNumber"), std::to_string(networkInterfaceQueueNumber)); } -std::string RunInstancesRequest::getIoOptimized()const -{ - return ioOptimized_; +std::string RunInstancesRequest::getIoOptimized() const { + return ioOptimized_; } -void RunInstancesRequest::setIoOptimized(const std::string& ioOptimized) -{ - ioOptimized_ = ioOptimized; - setParameter("IoOptimized", ioOptimized); +void RunInstancesRequest::setIoOptimized(const std::string &ioOptimized) { + ioOptimized_ = ioOptimized; + setParameter(std::string("IoOptimized"), ioOptimized); } -std::string RunInstancesRequest::getSecurityGroupId()const -{ - return securityGroupId_; +std::string RunInstancesRequest::getSecurityGroupId() const { + return securityGroupId_; } -void RunInstancesRequest::setSecurityGroupId(const std::string& securityGroupId) -{ - securityGroupId_ = securityGroupId; - setParameter("SecurityGroupId", securityGroupId); +void RunInstancesRequest::setSecurityGroupId(const std::string &securityGroupId) { + securityGroupId_ = securityGroupId; + setParameter(std::string("SecurityGroupId"), securityGroupId); } -bool RunInstancesRequest::getHibernationOptionsConfigured()const -{ - return hibernationOptionsConfigured_; +bool RunInstancesRequest::getHibernationOptionsConfigured() const { + return hibernationOptionsConfigured_; } -void RunInstancesRequest::setHibernationOptionsConfigured(bool hibernationOptionsConfigured) -{ - hibernationOptionsConfigured_ = hibernationOptionsConfigured; - setParameter("HibernationOptionsConfigured", hibernationOptionsConfigured ? "true" : "false"); +void RunInstancesRequest::setHibernationOptionsConfigured(bool hibernationOptionsConfigured) { + hibernationOptionsConfigured_ = hibernationOptionsConfigured; + setParameter(std::string("HibernationOptions.Configured"), hibernationOptionsConfigured ? "true" : "false"); } -std::string RunInstancesRequest::getSystemDiskPerformanceLevel()const -{ - return systemDiskPerformanceLevel_; +std::string RunInstancesRequest::getSystemDiskPerformanceLevel() const { + return systemDiskPerformanceLevel_; } -void RunInstancesRequest::setSystemDiskPerformanceLevel(const std::string& systemDiskPerformanceLevel) -{ - systemDiskPerformanceLevel_ = systemDiskPerformanceLevel; - setParameter("SystemDiskPerformanceLevel", systemDiskPerformanceLevel); +void RunInstancesRequest::setSystemDiskPerformanceLevel(const std::string &systemDiskPerformanceLevel) { + systemDiskPerformanceLevel_ = systemDiskPerformanceLevel; + setParameter(std::string("SystemDisk.PerformanceLevel"), systemDiskPerformanceLevel); } -bool RunInstancesRequest::getPasswordInherit()const -{ - return passwordInherit_; +bool RunInstancesRequest::getPasswordInherit() const { + return passwordInherit_; } -void RunInstancesRequest::setPasswordInherit(bool passwordInherit) -{ - passwordInherit_ = passwordInherit; - setParameter("PasswordInherit", passwordInherit ? "true" : "false"); +void RunInstancesRequest::setPasswordInherit(bool passwordInherit) { + passwordInherit_ = passwordInherit; + setParameter(std::string("PasswordInherit"), passwordInherit ? "true" : "false"); } -std::string RunInstancesRequest::getInstanceType()const -{ - return instanceType_; +std::string RunInstancesRequest::getInstanceType() const { + return instanceType_; } -void RunInstancesRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +void RunInstancesRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } -std::vector RunInstancesRequest::getArn()const -{ - return arn_; +std::vector RunInstancesRequest::getArn() const { + return arn_; } -void RunInstancesRequest::setArn(const std::vector& arn) -{ - arn_ = arn; - for(int dep1 = 0; dep1!= arn.size(); dep1++) { - auto arnObj = arn.at(dep1); - std::string arnObjStr = "Arn." + std::to_string(dep1 + 1); - setParameter(arnObjStr + ".RoleType", arnObj.roleType); - setParameter(arnObjStr + ".Rolearn", arnObj.rolearn); - setParameter(arnObjStr + ".AssumeRoleFor", std::to_string(arnObj.assumeRoleFor)); - } +void RunInstancesRequest::setArn(const std::vector &arn) { + arn_ = arn; + for(int dep1 = 0; dep1 != arn.size(); dep1++) { + auto arnObj = arn.at(dep1); + std::string arnObjStr = std::string("Arn") + "." + std::to_string(dep1 + 1); + setParameter(arnObjStr + ".RoleType", arnObj.roleType); + setParameter(arnObjStr + ".Rolearn", arnObj.rolearn); + setParameter(arnObjStr + ".AssumeRoleFor", std::to_string(arnObj.assumeRoleFor)); + } } -std::string RunInstancesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +std::string RunInstancesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -void RunInstancesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +void RunInstancesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -std::string RunInstancesRequest::getSchedulerOptionsDedicatedHostClusterId()const -{ - return schedulerOptionsDedicatedHostClusterId_; +std::string RunInstancesRequest::getSchedulerOptionsDedicatedHostClusterId() const { + return schedulerOptionsDedicatedHostClusterId_; } -void RunInstancesRequest::setSchedulerOptionsDedicatedHostClusterId(const std::string& schedulerOptionsDedicatedHostClusterId) -{ - schedulerOptionsDedicatedHostClusterId_ = schedulerOptionsDedicatedHostClusterId; - setParameter("SchedulerOptionsDedicatedHostClusterId", schedulerOptionsDedicatedHostClusterId); +void RunInstancesRequest::setSchedulerOptionsDedicatedHostClusterId(const std::string &schedulerOptionsDedicatedHostClusterId) { + schedulerOptionsDedicatedHostClusterId_ = schedulerOptionsDedicatedHostClusterId; + setParameter(std::string("SchedulerOptions.DedicatedHostClusterId"), schedulerOptionsDedicatedHostClusterId); } -std::string RunInstancesRequest::getSystemDiskDiskName()const -{ - return systemDiskDiskName_; +std::string RunInstancesRequest::getSystemDiskDiskName() const { + return systemDiskDiskName_; } -void RunInstancesRequest::setSystemDiskDiskName(const std::string& systemDiskDiskName) -{ - systemDiskDiskName_ = systemDiskDiskName; - setParameter("SystemDiskDiskName", systemDiskDiskName); +void RunInstancesRequest::setSystemDiskDiskName(const std::string &systemDiskDiskName) { + systemDiskDiskName_ = systemDiskDiskName; + setParameter(std::string("SystemDisk.DiskName"), systemDiskDiskName); } -std::string RunInstancesRequest::getDedicatedHostId()const -{ - return dedicatedHostId_; +std::string RunInstancesRequest::getDedicatedHostId() const { + return dedicatedHostId_; } -void RunInstancesRequest::setDedicatedHostId(const std::string& dedicatedHostId) -{ - dedicatedHostId_ = dedicatedHostId; - setParameter("DedicatedHostId", dedicatedHostId); +void RunInstancesRequest::setDedicatedHostId(const std::string &dedicatedHostId) { + dedicatedHostId_ = dedicatedHostId; + setParameter(std::string("DedicatedHostId"), dedicatedHostId); } -int RunInstancesRequest::getSpotDuration()const -{ - return spotDuration_; +int RunInstancesRequest::getSpotDuration() const { + return spotDuration_; } -void RunInstancesRequest::setSpotDuration(int spotDuration) -{ - spotDuration_ = spotDuration; - setParameter("SpotDuration", std::to_string(spotDuration)); +void RunInstancesRequest::setSpotDuration(int spotDuration) { + spotDuration_ = spotDuration; + setParameter(std::string("SpotDuration"), std::to_string(spotDuration)); } -std::vector RunInstancesRequest::getSecurityGroupIds()const -{ - return securityGroupIds_; +std::vector RunInstancesRequest::getSecurityGroupIds() const { + return securityGroupIds_; } -void RunInstancesRequest::setSecurityGroupIds(const std::vector& securityGroupIds) -{ - securityGroupIds_ = securityGroupIds; - for(int dep1 = 0; dep1!= securityGroupIds.size(); dep1++) { - setParameter("SecurityGroupIds."+ std::to_string(dep1), securityGroupIds.at(dep1)); - } +void RunInstancesRequest::setSecurityGroupIds(const std::vector &securityGroupIds) { + securityGroupIds_ = securityGroupIds; } -std::string RunInstancesRequest::getSystemDiskSize()const -{ - return systemDiskSize_; +std::string RunInstancesRequest::getSystemDiskSize() const { + return systemDiskSize_; } -void RunInstancesRequest::setSystemDiskSize(const std::string& systemDiskSize) -{ - systemDiskSize_ = systemDiskSize; - setParameter("SystemDiskSize", systemDiskSize); +void RunInstancesRequest::setSystemDiskSize(const std::string &systemDiskSize) { + systemDiskSize_ = systemDiskSize; + setParameter(std::string("SystemDisk.Size"), systemDiskSize); } -std::string RunInstancesRequest::getImageFamily()const -{ - return imageFamily_; +std::string RunInstancesRequest::getImageFamily() const { + return imageFamily_; } -void RunInstancesRequest::setImageFamily(const std::string& imageFamily) -{ - imageFamily_ = imageFamily; - setParameter("ImageFamily", imageFamily); +void RunInstancesRequest::setImageFamily(const std::string &imageFamily) { + imageFamily_ = imageFamily; + setParameter(std::string("ImageFamily"), imageFamily); } -std::string RunInstancesRequest::getLaunchTemplateName()const -{ - return launchTemplateName_; +std::string RunInstancesRequest::getLaunchTemplateName() const { + return launchTemplateName_; } -void RunInstancesRequest::setLaunchTemplateName(const std::string& launchTemplateName) -{ - launchTemplateName_ = launchTemplateName; - setParameter("LaunchTemplateName", launchTemplateName); +void RunInstancesRequest::setLaunchTemplateName(const std::string &launchTemplateName) { + launchTemplateName_ = launchTemplateName; + setParameter(std::string("LaunchTemplateName"), launchTemplateName); } -long RunInstancesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +long RunInstancesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -void RunInstancesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +void RunInstancesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -std::string RunInstancesRequest::getHpcClusterId()const -{ - return hpcClusterId_; +std::string RunInstancesRequest::getHpcClusterId() const { + return hpcClusterId_; } -void RunInstancesRequest::setHpcClusterId(const std::string& hpcClusterId) -{ - hpcClusterId_ = hpcClusterId; - setParameter("HpcClusterId", hpcClusterId); +void RunInstancesRequest::setHpcClusterId(const std::string &hpcClusterId) { + hpcClusterId_ = hpcClusterId; + setParameter(std::string("HpcClusterId"), hpcClusterId); } -int RunInstancesRequest::getHttpPutResponseHopLimit()const -{ - return httpPutResponseHopLimit_; +int RunInstancesRequest::getHttpPutResponseHopLimit() const { + return httpPutResponseHopLimit_; } -void RunInstancesRequest::setHttpPutResponseHopLimit(int httpPutResponseHopLimit) -{ - httpPutResponseHopLimit_ = httpPutResponseHopLimit; - setParameter("HttpPutResponseHopLimit", std::to_string(httpPutResponseHopLimit)); +void RunInstancesRequest::setHttpPutResponseHopLimit(int httpPutResponseHopLimit) { + httpPutResponseHopLimit_ = httpPutResponseHopLimit; + setParameter(std::string("HttpPutResponseHopLimit"), std::to_string(httpPutResponseHopLimit)); } -std::string RunInstancesRequest::getIsp()const -{ - return isp_; +std::string RunInstancesRequest::getIsp() const { + return isp_; } -void RunInstancesRequest::setIsp(const std::string& isp) -{ - isp_ = isp; - setParameter("Isp", isp); +void RunInstancesRequest::setIsp(const std::string &isp) { + isp_ = isp; + setParameter(std::string("Isp"), isp); } -std::string RunInstancesRequest::getKeyPairName()const -{ - return keyPairName_; +std::string RunInstancesRequest::getKeyPairName() const { + return keyPairName_; } -void RunInstancesRequest::setKeyPairName(const std::string& keyPairName) -{ - keyPairName_ = keyPairName; - setParameter("KeyPairName", keyPairName); +void RunInstancesRequest::setKeyPairName(const std::string &keyPairName) { + keyPairName_ = keyPairName; + setParameter(std::string("KeyPairName"), keyPairName); } -float RunInstancesRequest::getSpotPriceLimit()const -{ - return spotPriceLimit_; +float RunInstancesRequest::getSpotPriceLimit() const { + return spotPriceLimit_; } -void RunInstancesRequest::setSpotPriceLimit(float spotPriceLimit) -{ - spotPriceLimit_ = spotPriceLimit; - setParameter("SpotPriceLimit", std::to_string(spotPriceLimit)); +void RunInstancesRequest::setSpotPriceLimit(float spotPriceLimit) { + spotPriceLimit_ = spotPriceLimit; + setParameter(std::string("SpotPriceLimit"), std::to_string(spotPriceLimit)); } -int RunInstancesRequest::getStorageSetPartitionNumber()const -{ - return storageSetPartitionNumber_; +int RunInstancesRequest::getStorageSetPartitionNumber() const { + return storageSetPartitionNumber_; } -void RunInstancesRequest::setStorageSetPartitionNumber(int storageSetPartitionNumber) -{ - storageSetPartitionNumber_ = storageSetPartitionNumber; - setParameter("StorageSetPartitionNumber", std::to_string(storageSetPartitionNumber)); +void RunInstancesRequest::setStorageSetPartitionNumber(int storageSetPartitionNumber) { + storageSetPartitionNumber_ = storageSetPartitionNumber; + setParameter(std::string("StorageSetPartitionNumber"), std::to_string(storageSetPartitionNumber)); } -std::vector RunInstancesRequest::getTag()const -{ - return tag_; +std::vector RunInstancesRequest::getTag() const { + return tag_; } -void RunInstancesRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Key", tagObj.key); - setParameter(tagObjStr + ".Value", tagObj.value); - } +void RunInstancesRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } } -std::string RunInstancesRequest::getPrivatePoolOptionsId()const -{ - return privatePoolOptionsId_; +std::string RunInstancesRequest::getPrivatePoolOptionsId() const { + return privatePoolOptionsId_; } -void RunInstancesRequest::setPrivatePoolOptionsId(const std::string& privatePoolOptionsId) -{ - privatePoolOptionsId_ = privatePoolOptionsId; - setParameter("PrivatePoolOptionsId", privatePoolOptionsId); +void RunInstancesRequest::setPrivatePoolOptionsId(const std::string &privatePoolOptionsId) { + privatePoolOptionsId_ = privatePoolOptionsId; + setParameter(std::string("PrivatePoolOptions.Id"), privatePoolOptionsId); } -int RunInstancesRequest::getAutoRenewPeriod()const -{ - return autoRenewPeriod_; +int RunInstancesRequest::getAutoRenewPeriod() const { + return autoRenewPeriod_; } -void RunInstancesRequest::setAutoRenewPeriod(int autoRenewPeriod) -{ - autoRenewPeriod_ = autoRenewPeriod; - setParameter("AutoRenewPeriod", std::to_string(autoRenewPeriod)); +void RunInstancesRequest::setAutoRenewPeriod(int autoRenewPeriod) { + autoRenewPeriod_ = autoRenewPeriod; + setParameter(std::string("AutoRenewPeriod"), std::to_string(autoRenewPeriod)); } -std::string RunInstancesRequest::getLaunchTemplateId()const -{ - return launchTemplateId_; +std::string RunInstancesRequest::getLaunchTemplateId() const { + return launchTemplateId_; } -void RunInstancesRequest::setLaunchTemplateId(const std::string& launchTemplateId) -{ - launchTemplateId_ = launchTemplateId; - setParameter("LaunchTemplateId", launchTemplateId); +void RunInstancesRequest::setLaunchTemplateId(const std::string &launchTemplateId) { + launchTemplateId_ = launchTemplateId; + setParameter(std::string("LaunchTemplateId"), launchTemplateId); } -int RunInstancesRequest::getIpv6AddressCount()const -{ - return ipv6AddressCount_; +int RunInstancesRequest::getIpv6AddressCount() const { + return ipv6AddressCount_; } -void RunInstancesRequest::setIpv6AddressCount(int ipv6AddressCount) -{ - ipv6AddressCount_ = ipv6AddressCount; - setParameter("Ipv6AddressCount", std::to_string(ipv6AddressCount)); +void RunInstancesRequest::setIpv6AddressCount(int ipv6AddressCount) { + ipv6AddressCount_ = ipv6AddressCount; + setParameter(std::string("Ipv6AddressCount"), std::to_string(ipv6AddressCount)); } -std::vector RunInstancesRequest::getHostNames()const -{ - return hostNames_; +std::vector RunInstancesRequest::getHostNames() const { + return hostNames_; } -void RunInstancesRequest::setHostNames(const std::vector& hostNames) -{ - hostNames_ = hostNames; - for(int dep1 = 0; dep1!= hostNames.size(); dep1++) { - setParameter("HostNames."+ std::to_string(dep1), hostNames.at(dep1)); - } +void RunInstancesRequest::setHostNames(const std::vector &hostNames) { + hostNames_ = hostNames; } -std::string RunInstancesRequest::getCapacityReservationPreference()const -{ - return capacityReservationPreference_; +std::string RunInstancesRequest::getCapacityReservationPreference() const { + return capacityReservationPreference_; } -void RunInstancesRequest::setCapacityReservationPreference(const std::string& capacityReservationPreference) -{ - capacityReservationPreference_ = capacityReservationPreference; - setParameter("CapacityReservationPreference", capacityReservationPreference); +void RunInstancesRequest::setCapacityReservationPreference(const std::string &capacityReservationPreference) { + capacityReservationPreference_ = capacityReservationPreference; + setParameter(std::string("CapacityReservationPreference"), capacityReservationPreference); } -std::string RunInstancesRequest::getVSwitchId()const -{ - return vSwitchId_; +std::string RunInstancesRequest::getVSwitchId() const { + return vSwitchId_; } -void RunInstancesRequest::setVSwitchId(const std::string& vSwitchId) -{ - vSwitchId_ = vSwitchId; - setParameter("VSwitchId", vSwitchId); +void RunInstancesRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); } -std::string RunInstancesRequest::getInstanceName()const -{ - return instanceName_; +std::string RunInstancesRequest::getInstanceName() const { + return instanceName_; } -void RunInstancesRequest::setInstanceName(const std::string& instanceName) -{ - instanceName_ = instanceName; - setParameter("InstanceName", instanceName); +void RunInstancesRequest::setInstanceName(const std::string &instanceName) { + instanceName_ = instanceName; + setParameter(std::string("InstanceName"), instanceName); } -std::string RunInstancesRequest::getZoneId()const -{ - return zoneId_; +std::string RunInstancesRequest::getZoneId() const { + return zoneId_; } -void RunInstancesRequest::setZoneId(const std::string& zoneId) -{ - zoneId_ = zoneId; - setParameter("ZoneId", zoneId); +void RunInstancesRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); } -std::vector RunInstancesRequest::getIpv6Address()const -{ - return ipv6Address_; +std::vector RunInstancesRequest::getIpv6Address() const { + return ipv6Address_; } -void RunInstancesRequest::setIpv6Address(const std::vector& ipv6Address) -{ - ipv6Address_ = ipv6Address; - for(int dep1 = 0; dep1!= ipv6Address.size(); dep1++) { - setParameter("Ipv6Address."+ std::to_string(dep1), ipv6Address.at(dep1)); - } +void RunInstancesRequest::setIpv6Address(const std::vector &ipv6Address) { + ipv6Address_ = ipv6Address; } -std::string RunInstancesRequest::getSecurityOptionsConfidentialComputingMode()const -{ - return securityOptionsConfidentialComputingMode_; +std::string RunInstancesRequest::getSecurityOptionsConfidentialComputingMode() const { + return securityOptionsConfidentialComputingMode_; } -void RunInstancesRequest::setSecurityOptionsConfidentialComputingMode(const std::string& securityOptionsConfidentialComputingMode) -{ - securityOptionsConfidentialComputingMode_ = securityOptionsConfidentialComputingMode; - setParameter("SecurityOptionsConfidentialComputingMode", securityOptionsConfidentialComputingMode); +void RunInstancesRequest::setSecurityOptionsConfidentialComputingMode(const std::string &securityOptionsConfidentialComputingMode) { + securityOptionsConfidentialComputingMode_ = securityOptionsConfidentialComputingMode; + setParameter(std::string("SecurityOptions.ConfidentialComputingMode"), securityOptionsConfidentialComputingMode); } -std::string RunInstancesRequest::getClientToken()const -{ - return clientToken_; +std::string RunInstancesRequest::getClientToken() const { + return clientToken_; } -void RunInstancesRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +void RunInstancesRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -int RunInstancesRequest::getInternetMaxBandwidthOut()const -{ - return internetMaxBandwidthOut_; +int RunInstancesRequest::getInternetMaxBandwidthOut() const { + return internetMaxBandwidthOut_; } -void RunInstancesRequest::setInternetMaxBandwidthOut(int internetMaxBandwidthOut) -{ - internetMaxBandwidthOut_ = internetMaxBandwidthOut; - setParameter("InternetMaxBandwidthOut", std::to_string(internetMaxBandwidthOut)); +void RunInstancesRequest::setInternetMaxBandwidthOut(int internetMaxBandwidthOut) { + internetMaxBandwidthOut_ = internetMaxBandwidthOut; + setParameter(std::string("InternetMaxBandwidthOut"), std::to_string(internetMaxBandwidthOut)); } -std::string RunInstancesRequest::getDescription()const -{ - return description_; +std::string RunInstancesRequest::getDescription() const { + return description_; } -void RunInstancesRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +void RunInstancesRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -int RunInstancesRequest::getCpuOptionsThreadsPerCore()const -{ - return cpuOptionsThreadsPerCore_; +int RunInstancesRequest::getCpuOptionsThreadsPerCore() const { + return cpuOptionsThreadsPerCore_; } -void RunInstancesRequest::setCpuOptionsThreadsPerCore(int cpuOptionsThreadsPerCore) -{ - cpuOptionsThreadsPerCore_ = cpuOptionsThreadsPerCore; - setParameter("CpuOptionsThreadsPerCore", std::to_string(cpuOptionsThreadsPerCore)); +void RunInstancesRequest::setCpuOptionsThreadsPerCore(int cpuOptionsThreadsPerCore) { + cpuOptionsThreadsPerCore_ = cpuOptionsThreadsPerCore; + setParameter(std::string("CpuOptions.ThreadsPerCore"), std::to_string(cpuOptionsThreadsPerCore)); } -std::string RunInstancesRequest::getSystemDiskCategory()const -{ - return systemDiskCategory_; +std::string RunInstancesRequest::getSystemDiskCategory() const { + return systemDiskCategory_; } -void RunInstancesRequest::setSystemDiskCategory(const std::string& systemDiskCategory) -{ - systemDiskCategory_ = systemDiskCategory; - setParameter("SystemDiskCategory", systemDiskCategory); +void RunInstancesRequest::setSystemDiskCategory(const std::string &systemDiskCategory) { + systemDiskCategory_ = systemDiskCategory; + setParameter(std::string("SystemDisk.Category"), systemDiskCategory); } -std::string RunInstancesRequest::getSecurityOptionsTrustedSystemMode()const -{ - return securityOptionsTrustedSystemMode_; +std::string RunInstancesRequest::getSecurityOptionsTrustedSystemMode() const { + return securityOptionsTrustedSystemMode_; } -void RunInstancesRequest::setSecurityOptionsTrustedSystemMode(const std::string& securityOptionsTrustedSystemMode) -{ - securityOptionsTrustedSystemMode_ = securityOptionsTrustedSystemMode; - setParameter("SecurityOptionsTrustedSystemMode", securityOptionsTrustedSystemMode); +void RunInstancesRequest::setSecurityOptionsTrustedSystemMode(const std::string &securityOptionsTrustedSystemMode) { + securityOptionsTrustedSystemMode_ = securityOptionsTrustedSystemMode; + setParameter(std::string("SecurityOptions.TrustedSystemMode"), securityOptionsTrustedSystemMode); } -std::string RunInstancesRequest::getCapacityReservationId()const -{ - return capacityReservationId_; +std::string RunInstancesRequest::getCapacityReservationId() const { + return capacityReservationId_; } -void RunInstancesRequest::setCapacityReservationId(const std::string& capacityReservationId) -{ - capacityReservationId_ = capacityReservationId; - setParameter("CapacityReservationId", capacityReservationId); +void RunInstancesRequest::setCapacityReservationId(const std::string &capacityReservationId) { + capacityReservationId_ = capacityReservationId; + setParameter(std::string("CapacityReservationId"), capacityReservationId); } -std::string RunInstancesRequest::getUserData()const -{ - return userData_; +std::string RunInstancesRequest::getUserData() const { + return userData_; } -void RunInstancesRequest::setUserData(const std::string& userData) -{ - userData_ = userData; - setParameter("UserData", userData); +void RunInstancesRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); } -std::string RunInstancesRequest::getRegionId()const -{ - return regionId_; +std::string RunInstancesRequest::getRegionId() const { + return regionId_; } -void RunInstancesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +void RunInstancesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -std::string RunInstancesRequest::getHttpEndpoint()const -{ - return httpEndpoint_; +std::string RunInstancesRequest::getHttpEndpoint() const { + return httpEndpoint_; } -void RunInstancesRequest::setHttpEndpoint(const std::string& httpEndpoint) -{ - httpEndpoint_ = httpEndpoint; - setParameter("HttpEndpoint", httpEndpoint); +void RunInstancesRequest::setHttpEndpoint(const std::string &httpEndpoint) { + httpEndpoint_ = httpEndpoint; + setParameter(std::string("HttpEndpoint"), httpEndpoint); } -std::string RunInstancesRequest::getInstanceChargeType()const -{ - return instanceChargeType_; +std::string RunInstancesRequest::getInstanceChargeType() const { + return instanceChargeType_; } -void RunInstancesRequest::setInstanceChargeType(const std::string& instanceChargeType) -{ - instanceChargeType_ = instanceChargeType; - setParameter("InstanceChargeType", instanceChargeType); +void RunInstancesRequest::setInstanceChargeType(const std::string &instanceChargeType) { + instanceChargeType_ = instanceChargeType; + setParameter(std::string("InstanceChargeType"), instanceChargeType); } -std::string RunInstancesRequest::getDeploymentSetId()const -{ - return deploymentSetId_; +std::string RunInstancesRequest::getDeploymentSetId() const { + return deploymentSetId_; } -void RunInstancesRequest::setDeploymentSetId(const std::string& deploymentSetId) -{ - deploymentSetId_ = deploymentSetId; - setParameter("DeploymentSetId", deploymentSetId); +void RunInstancesRequest::setDeploymentSetId(const std::string &deploymentSetId) { + deploymentSetId_ = deploymentSetId; + setParameter(std::string("DeploymentSetId"), deploymentSetId); } -std::vector RunInstancesRequest::getNetworkInterface()const -{ - return networkInterface_; +std::vector RunInstancesRequest::getNetworkInterface() const { + return networkInterface_; } -void RunInstancesRequest::setNetworkInterface(const std::vector& networkInterface) -{ - networkInterface_ = networkInterface; - for(int dep1 = 0; dep1!= networkInterface.size(); dep1++) { - auto networkInterfaceObj = networkInterface.at(dep1); - std::string networkInterfaceObjStr = "NetworkInterface." + std::to_string(dep1 + 1); - setParameter(networkInterfaceObjStr + ".VSwitchId", networkInterfaceObj.vSwitchId); - setParameter(networkInterfaceObjStr + ".NetworkInterfaceName", networkInterfaceObj.networkInterfaceName); - setParameter(networkInterfaceObjStr + ".Description", networkInterfaceObj.description); - setParameter(networkInterfaceObjStr + ".SecurityGroupId", networkInterfaceObj.securityGroupId); - setParameter(networkInterfaceObjStr + ".PrimaryIpAddress", networkInterfaceObj.primaryIpAddress); - setParameter(networkInterfaceObjStr + ".QueueNumber", std::to_string(networkInterfaceObj.queueNumber)); - for(int dep2 = 0; dep2!= networkInterfaceObj.securityGroupIds.size(); dep2++) { - setParameter(networkInterfaceObjStr + ".SecurityGroupIds."+ std::to_string(dep2), networkInterfaceObj.securityGroupIds.at(dep2)); - } - } +void RunInstancesRequest::setNetworkInterface(const std::vector &networkInterface) { + networkInterface_ = networkInterface; + for(int dep1 = 0; dep1 != networkInterface.size(); dep1++) { + auto networkInterfaceObj = networkInterface.at(dep1); + std::string networkInterfaceObjStr = std::string("NetworkInterface") + "." + std::to_string(dep1 + 1); + setParameter(networkInterfaceObjStr + ".VSwitchId", networkInterfaceObj.vSwitchId); + setParameter(networkInterfaceObjStr + ".NetworkInterfaceName", networkInterfaceObj.networkInterfaceName); + setParameter(networkInterfaceObjStr + ".Description", networkInterfaceObj.description); + setParameter(networkInterfaceObjStr + ".SecurityGroupId", networkInterfaceObj.securityGroupId); + setParameter(networkInterfaceObjStr + ".PrimaryIpAddress", networkInterfaceObj.primaryIpAddress); + setParameter(networkInterfaceObjStr + ".QueueNumber", std::to_string(networkInterfaceObj.queueNumber)); + } } -int RunInstancesRequest::getAmount()const -{ - return amount_; +int RunInstancesRequest::getAmount() const { + return amount_; } -void RunInstancesRequest::setAmount(int amount) -{ - amount_ = amount; - setParameter("Amount", std::to_string(amount)); +void RunInstancesRequest::setAmount(int amount) { + amount_ = amount; + setParameter(std::string("Amount"), std::to_string(amount)); } -std::string RunInstancesRequest::getOwnerAccount()const -{ - return ownerAccount_; +std::string RunInstancesRequest::getOwnerAccount() const { + return ownerAccount_; } -void RunInstancesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +void RunInstancesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -std::string RunInstancesRequest::getTenancy()const -{ - return tenancy_; +std::string RunInstancesRequest::getTenancy() const { + return tenancy_; } -void RunInstancesRequest::setTenancy(const std::string& tenancy) -{ - tenancy_ = tenancy; - setParameter("Tenancy", tenancy); +void RunInstancesRequest::setTenancy(const std::string &tenancy) { + tenancy_ = tenancy; + setParameter(std::string("Tenancy"), tenancy); } -std::string RunInstancesRequest::getRamRoleName()const -{ - return ramRoleName_; +std::string RunInstancesRequest::getRamRoleName() const { + return ramRoleName_; } -void RunInstancesRequest::setRamRoleName(const std::string& ramRoleName) -{ - ramRoleName_ = ramRoleName; - setParameter("RamRoleName", ramRoleName); +void RunInstancesRequest::setRamRoleName(const std::string &ramRoleName) { + ramRoleName_ = ramRoleName; + setParameter(std::string("RamRoleName"), ramRoleName); } -std::string RunInstancesRequest::getAutoReleaseTime()const -{ - return autoReleaseTime_; +std::string RunInstancesRequest::getAutoReleaseTime() const { + return autoReleaseTime_; } -void RunInstancesRequest::setAutoReleaseTime(const std::string& autoReleaseTime) -{ - autoReleaseTime_ = autoReleaseTime; - setParameter("AutoReleaseTime", autoReleaseTime); +void RunInstancesRequest::setAutoReleaseTime(const std::string &autoReleaseTime) { + autoReleaseTime_ = autoReleaseTime; + setParameter(std::string("AutoReleaseTime"), autoReleaseTime); } -std::string RunInstancesRequest::getCreditSpecification()const -{ - return creditSpecification_; +std::string RunInstancesRequest::getCreditSpecification() const { + return creditSpecification_; } -void RunInstancesRequest::setCreditSpecification(const std::string& creditSpecification) -{ - creditSpecification_ = creditSpecification; - setParameter("CreditSpecification", creditSpecification); +void RunInstancesRequest::setCreditSpecification(const std::string &creditSpecification) { + creditSpecification_ = creditSpecification; + setParameter(std::string("CreditSpecification"), creditSpecification); } -long RunInstancesRequest::getLaunchTemplateVersion()const -{ - return launchTemplateVersion_; +long RunInstancesRequest::getLaunchTemplateVersion() const { + return launchTemplateVersion_; } -void RunInstancesRequest::setLaunchTemplateVersion(long launchTemplateVersion) -{ - launchTemplateVersion_ = launchTemplateVersion; - setParameter("LaunchTemplateVersion", std::to_string(launchTemplateVersion)); +void RunInstancesRequest::setLaunchTemplateVersion(long launchTemplateVersion) { + launchTemplateVersion_ = launchTemplateVersion; + setParameter(std::string("LaunchTemplateVersion"), std::to_string(launchTemplateVersion)); } -std::string RunInstancesRequest::getSchedulerOptionsManagedPrivateSpaceId()const -{ - return schedulerOptionsManagedPrivateSpaceId_; +std::string RunInstancesRequest::getSchedulerOptionsManagedPrivateSpaceId() const { + return schedulerOptionsManagedPrivateSpaceId_; } -void RunInstancesRequest::setSchedulerOptionsManagedPrivateSpaceId(const std::string& schedulerOptionsManagedPrivateSpaceId) -{ - schedulerOptionsManagedPrivateSpaceId_ = schedulerOptionsManagedPrivateSpaceId; - setParameter("SchedulerOptionsManagedPrivateSpaceId", schedulerOptionsManagedPrivateSpaceId); +void RunInstancesRequest::setSchedulerOptionsManagedPrivateSpaceId(const std::string &schedulerOptionsManagedPrivateSpaceId) { + schedulerOptionsManagedPrivateSpaceId_ = schedulerOptionsManagedPrivateSpaceId; + setParameter(std::string("SchedulerOptions.ManagedPrivateSpaceId"), schedulerOptionsManagedPrivateSpaceId); } -std::vector RunInstancesRequest::getDataDisk()const -{ - return dataDisk_; +std::vector RunInstancesRequest::getDataDisk() const { + return dataDisk_; } -void RunInstancesRequest::setDataDisk(const std::vector& dataDisk) -{ - dataDisk_ = dataDisk; - for(int dep1 = 0; dep1!= dataDisk.size(); dep1++) { - auto dataDiskObj = dataDisk.at(dep1); - std::string dataDiskObjStr = "DataDisk." + std::to_string(dep1 + 1); - setParameter(dataDiskObjStr + ".PerformanceLevel", dataDiskObj.performanceLevel); - setParameter(dataDiskObjStr + ".AutoSnapshotPolicyId", dataDiskObj.autoSnapshotPolicyId); - setParameter(dataDiskObjStr + ".Encrypted", dataDiskObj.encrypted); - setParameter(dataDiskObjStr + ".Description", dataDiskObj.description); - setParameter(dataDiskObjStr + ".SnapshotId", dataDiskObj.snapshotId); - setParameter(dataDiskObjStr + ".Device", dataDiskObj.device); - setParameter(dataDiskObjStr + ".Size", std::to_string(dataDiskObj.size)); - setParameter(dataDiskObjStr + ".DiskName", dataDiskObj.diskName); - setParameter(dataDiskObjStr + ".Category", dataDiskObj.category); - setParameter(dataDiskObjStr + ".EncryptAlgorithm", dataDiskObj.encryptAlgorithm); - setParameter(dataDiskObjStr + ".DeleteWithInstance", dataDiskObj.deleteWithInstance ? "true" : "false"); - setParameter(dataDiskObjStr + ".KMSKeyId", dataDiskObj.kMSKeyId); - setParameter(dataDiskObjStr + ".StorageClusterId", dataDiskObj.storageClusterId); - } +void RunInstancesRequest::setDataDisk(const std::vector &dataDisk) { + dataDisk_ = dataDisk; + for(int dep1 = 0; dep1 != dataDisk.size(); dep1++) { + auto dataDiskObj = dataDisk.at(dep1); + std::string dataDiskObjStr = std::string("DataDisk") + "." + std::to_string(dep1 + 1); + setParameter(dataDiskObjStr + ".PerformanceLevel", dataDiskObj.performanceLevel); + setParameter(dataDiskObjStr + ".AutoSnapshotPolicyId", dataDiskObj.autoSnapshotPolicyId); + setParameter(dataDiskObjStr + ".Encrypted", dataDiskObj.encrypted); + setParameter(dataDiskObjStr + ".Description", dataDiskObj.description); + setParameter(dataDiskObjStr + ".SnapshotId", dataDiskObj.snapshotId); + setParameter(dataDiskObjStr + ".Device", dataDiskObj.device); + setParameter(dataDiskObjStr + ".Size", std::to_string(dataDiskObj.size)); + setParameter(dataDiskObjStr + ".DiskName", dataDiskObj.diskName); + setParameter(dataDiskObjStr + ".Category", dataDiskObj.category); + setParameter(dataDiskObjStr + ".EncryptAlgorithm", dataDiskObj.encryptAlgorithm); + setParameter(dataDiskObjStr + ".DeleteWithInstance", dataDiskObj.deleteWithInstance ? "true" : "false"); + setParameter(dataDiskObjStr + ".KMSKeyId", dataDiskObj.kMSKeyId); + setParameter(dataDiskObjStr + ".StorageClusterId", dataDiskObj.storageClusterId); + } } -std::string RunInstancesRequest::getStorageSetId()const -{ - return storageSetId_; +std::string RunInstancesRequest::getStorageSetId() const { + return storageSetId_; } -void RunInstancesRequest::setStorageSetId(const std::string& storageSetId) -{ - storageSetId_ = storageSetId; - setParameter("StorageSetId", storageSetId); +void RunInstancesRequest::setStorageSetId(const std::string &storageSetId) { + storageSetId_ = storageSetId; + setParameter(std::string("StorageSetId"), storageSetId); } -std::string RunInstancesRequest::getHttpTokens()const -{ - return httpTokens_; +std::string RunInstancesRequest::getHttpTokens() const { + return httpTokens_; } -void RunInstancesRequest::setHttpTokens(const std::string& httpTokens) -{ - httpTokens_ = httpTokens; - setParameter("HttpTokens", httpTokens); +void RunInstancesRequest::setHttpTokens(const std::string &httpTokens) { + httpTokens_ = httpTokens; + setParameter(std::string("HttpTokens"), httpTokens); } -std::string RunInstancesRequest::getSystemDiskDescription()const -{ - return systemDiskDescription_; +std::string RunInstancesRequest::getSystemDiskDescription() const { + return systemDiskDescription_; } -void RunInstancesRequest::setSystemDiskDescription(const std::string& systemDiskDescription) -{ - systemDiskDescription_ = systemDiskDescription; - setParameter("SystemDiskDescription", systemDiskDescription); +void RunInstancesRequest::setSystemDiskDescription(const std::string &systemDiskDescription) { + systemDiskDescription_ = systemDiskDescription; + setParameter(std::string("SystemDisk.Description"), systemDiskDescription); } diff --git a/ecs/src/model/SendFileRequest.cc b/ecs/src/model/SendFileRequest.cc index b30055a75..3bca7e92a 100644 --- a/ecs/src/model/SendFileRequest.cc +++ b/ecs/src/model/SendFileRequest.cc @@ -1,207 +1,170 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::SendFileRequest; - -SendFileRequest::SendFileRequest() : - RpcServiceRequest("ecs", "2014-05-26", "SendFile") -{ - setMethod(HttpRequest::Method::Post); -} - -SendFileRequest::~SendFileRequest() -{} - -long SendFileRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::SendFileRequest; + +SendFileRequest::SendFileRequest() + : RpcServiceRequest("ecs", "2014-05-26", "SendFile") { + setMethod(HttpRequest::Method::Post); } -void SendFileRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +SendFileRequest::~SendFileRequest() {} + +long SendFileRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string SendFileRequest::getDescription()const -{ - return description_; +void SendFileRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void SendFileRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string SendFileRequest::getDescription() const { + return description_; } -long SendFileRequest::getTimeout()const -{ - return timeout_; +void SendFileRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void SendFileRequest::setTimeout(long timeout) -{ - timeout_ = timeout; - setParameter("Timeout", std::to_string(timeout)); +long SendFileRequest::getTimeout() const { + return timeout_; } -std::string SendFileRequest::getContent()const -{ - return content_; +void SendFileRequest::setTimeout(long timeout) { + timeout_ = timeout; + setParameter(std::string("Timeout"), std::to_string(timeout)); } -void SendFileRequest::setContent(const std::string& content) -{ - content_ = content; - setParameter("Content", content); +std::string SendFileRequest::getContent() const { + return content_; } -std::string SendFileRequest::getRegionId()const -{ - return regionId_; +void SendFileRequest::setContent(const std::string &content) { + content_ = content; + setParameter(std::string("Content"), content); } -void SendFileRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string SendFileRequest::getRegionId() const { + return regionId_; } -std::string SendFileRequest::getFileOwner()const -{ - return fileOwner_; +void SendFileRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void SendFileRequest::setFileOwner(const std::string& fileOwner) -{ - fileOwner_ = fileOwner; - setParameter("FileOwner", fileOwner); +std::string SendFileRequest::getFileOwner() const { + return fileOwner_; } -bool SendFileRequest::getOverwrite()const -{ - return overwrite_; +void SendFileRequest::setFileOwner(const std::string &fileOwner) { + fileOwner_ = fileOwner; + setParameter(std::string("FileOwner"), fileOwner); } -void SendFileRequest::setOverwrite(bool overwrite) -{ - overwrite_ = overwrite; - setParameter("Overwrite", overwrite ? "true" : "false"); +bool SendFileRequest::getOverwrite() const { + return overwrite_; } -std::string SendFileRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void SendFileRequest::setOverwrite(bool overwrite) { + overwrite_ = overwrite; + setParameter(std::string("Overwrite"), overwrite ? "true" : "false"); } -void SendFileRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string SendFileRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string SendFileRequest::getOwnerAccount()const -{ - return ownerAccount_; +void SendFileRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void SendFileRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string SendFileRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string SendFileRequest::getFileMode()const -{ - return fileMode_; +void SendFileRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void SendFileRequest::setFileMode(const std::string& fileMode) -{ - fileMode_ = fileMode; - setParameter("FileMode", fileMode); +std::string SendFileRequest::getFileMode() const { + return fileMode_; } -long SendFileRequest::getOwnerId()const -{ - return ownerId_; +void SendFileRequest::setFileMode(const std::string &fileMode) { + fileMode_ = fileMode; + setParameter(std::string("FileMode"), fileMode); } -void SendFileRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long SendFileRequest::getOwnerId() const { + return ownerId_; } -std::string SendFileRequest::getContentType()const -{ - return contentType_; +void SendFileRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void SendFileRequest::setContentType(const std::string& contentType) -{ - contentType_ = contentType; - setParameter("ContentType", contentType); +std::string SendFileRequest::getContentType() const { + return contentType_; } -std::vector SendFileRequest::getInstanceId()const -{ - return instanceId_; +void SendFileRequest::setContentType(const std::string &contentType) { + contentType_ = contentType; + setParameter(std::string("ContentType"), contentType); } -void SendFileRequest::setInstanceId(const std::vector& instanceId) -{ - instanceId_ = instanceId; - for(int dep1 = 0; dep1!= instanceId.size(); dep1++) { - setParameter("InstanceId."+ std::to_string(dep1), instanceId.at(dep1)); - } +std::vector SendFileRequest::getInstanceId() const { + return instanceId_; } -std::string SendFileRequest::getName()const -{ - return name_; +void SendFileRequest::setInstanceId(const std::vector &instanceId) { + instanceId_ = instanceId; } -void SendFileRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string SendFileRequest::getName() const { + return name_; } -std::string SendFileRequest::getFileGroup()const -{ - return fileGroup_; +void SendFileRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void SendFileRequest::setFileGroup(const std::string& fileGroup) -{ - fileGroup_ = fileGroup; - setParameter("FileGroup", fileGroup); +std::string SendFileRequest::getFileGroup() const { + return fileGroup_; } -std::string SendFileRequest::getTargetDir()const -{ - return targetDir_; +void SendFileRequest::setFileGroup(const std::string &fileGroup) { + fileGroup_ = fileGroup; + setParameter(std::string("FileGroup"), fileGroup); } -void SendFileRequest::setTargetDir(const std::string& targetDir) -{ - targetDir_ = targetDir; - setParameter("TargetDir", targetDir); +std::string SendFileRequest::getTargetDir() const { + return targetDir_; +} + +void SendFileRequest::setTargetDir(const std::string &targetDir) { + targetDir_ = targetDir; + setParameter(std::string("TargetDir"), targetDir); } diff --git a/ecs/src/model/StartDiskReplicaPairRequest.cc b/ecs/src/model/StartDiskReplicaPairRequest.cc index fe0f6627a..777e9af88 100644 --- a/ecs/src/model/StartDiskReplicaPairRequest.cc +++ b/ecs/src/model/StartDiskReplicaPairRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::StartDiskReplicaPairRequest; - -StartDiskReplicaPairRequest::StartDiskReplicaPairRequest() : - RpcServiceRequest("ecs", "2014-05-26", "StartDiskReplicaPair") -{ - setMethod(HttpRequest::Method::Post); -} - -StartDiskReplicaPairRequest::~StartDiskReplicaPairRequest() -{} - -long StartDiskReplicaPairRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::StartDiskReplicaPairRequest; + +StartDiskReplicaPairRequest::StartDiskReplicaPairRequest() + : RpcServiceRequest("ecs", "2014-05-26", "StartDiskReplicaPair") { + setMethod(HttpRequest::Method::Post); } -void StartDiskReplicaPairRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +StartDiskReplicaPairRequest::~StartDiskReplicaPairRequest() {} + +long StartDiskReplicaPairRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string StartDiskReplicaPairRequest::getRegionId()const -{ - return regionId_; +void StartDiskReplicaPairRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void StartDiskReplicaPairRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string StartDiskReplicaPairRequest::getRegionId() const { + return regionId_; } -std::string StartDiskReplicaPairRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void StartDiskReplicaPairRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void StartDiskReplicaPairRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string StartDiskReplicaPairRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string StartDiskReplicaPairRequest::getOwnerAccount()const -{ - return ownerAccount_; +void StartDiskReplicaPairRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void StartDiskReplicaPairRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string StartDiskReplicaPairRequest::getOwnerAccount() const { + return ownerAccount_; } -long StartDiskReplicaPairRequest::getOwnerId()const -{ - return ownerId_; +void StartDiskReplicaPairRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void StartDiskReplicaPairRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long StartDiskReplicaPairRequest::getOwnerId() const { + return ownerId_; } -std::string StartDiskReplicaPairRequest::getReplicaPairId()const -{ - return replicaPairId_; +void StartDiskReplicaPairRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void StartDiskReplicaPairRequest::setReplicaPairId(const std::string& replicaPairId) -{ - replicaPairId_ = replicaPairId; - setParameter("ReplicaPairId", replicaPairId); +std::string StartDiskReplicaPairRequest::getReplicaPairId() const { + return replicaPairId_; +} + +void StartDiskReplicaPairRequest::setReplicaPairId(const std::string &replicaPairId) { + replicaPairId_ = replicaPairId; + setParameter(std::string("ReplicaPairId"), replicaPairId); } diff --git a/ecs/src/model/StartElasticityAssuranceRequest.cc b/ecs/src/model/StartElasticityAssuranceRequest.cc index cb9e780a4..7e0d2f7cd 100644 --- a/ecs/src/model/StartElasticityAssuranceRequest.cc +++ b/ecs/src/model/StartElasticityAssuranceRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::StartElasticityAssuranceRequest; - -StartElasticityAssuranceRequest::StartElasticityAssuranceRequest() : - RpcServiceRequest("ecs", "2014-05-26", "StartElasticityAssurance") -{ - setMethod(HttpRequest::Method::Post); -} - -StartElasticityAssuranceRequest::~StartElasticityAssuranceRequest() -{} - -long StartElasticityAssuranceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::StartElasticityAssuranceRequest; + +StartElasticityAssuranceRequest::StartElasticityAssuranceRequest() + : RpcServiceRequest("ecs", "2014-05-26", "StartElasticityAssurance") { + setMethod(HttpRequest::Method::Post); } -void StartElasticityAssuranceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +StartElasticityAssuranceRequest::~StartElasticityAssuranceRequest() {} + +long StartElasticityAssuranceRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string StartElasticityAssuranceRequest::getRegionId()const -{ - return regionId_; +void StartElasticityAssuranceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void StartElasticityAssuranceRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string StartElasticityAssuranceRequest::getRegionId() const { + return regionId_; } -std::string StartElasticityAssuranceRequest::getPrivatePoolOptionsId()const -{ - return privatePoolOptionsId_; +void StartElasticityAssuranceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void StartElasticityAssuranceRequest::setPrivatePoolOptionsId(const std::string& privatePoolOptionsId) -{ - privatePoolOptionsId_ = privatePoolOptionsId; - setParameter("PrivatePoolOptionsId", privatePoolOptionsId); +std::string StartElasticityAssuranceRequest::getPrivatePoolOptionsId() const { + return privatePoolOptionsId_; } -std::string StartElasticityAssuranceRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void StartElasticityAssuranceRequest::setPrivatePoolOptionsId(const std::string &privatePoolOptionsId) { + privatePoolOptionsId_ = privatePoolOptionsId; + setParameter(std::string("PrivatePoolOptions.Id"), privatePoolOptionsId); } -void StartElasticityAssuranceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string StartElasticityAssuranceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string StartElasticityAssuranceRequest::getOwnerAccount()const -{ - return ownerAccount_; +void StartElasticityAssuranceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void StartElasticityAssuranceRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string StartElasticityAssuranceRequest::getOwnerAccount() const { + return ownerAccount_; } -long StartElasticityAssuranceRequest::getOwnerId()const -{ - return ownerId_; +void StartElasticityAssuranceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void StartElasticityAssuranceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long StartElasticityAssuranceRequest::getOwnerId() const { + return ownerId_; +} + +void StartElasticityAssuranceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/StartImagePipelineExecutionRequest.cc b/ecs/src/model/StartImagePipelineExecutionRequest.cc index 651ed061e..2a30bb98d 100644 --- a/ecs/src/model/StartImagePipelineExecutionRequest.cc +++ b/ecs/src/model/StartImagePipelineExecutionRequest.cc @@ -1,122 +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::Ecs::Model::StartImagePipelineExecutionRequest; - -StartImagePipelineExecutionRequest::StartImagePipelineExecutionRequest() : - RpcServiceRequest("ecs", "2014-05-26", "StartImagePipelineExecution") -{ - setMethod(HttpRequest::Method::Post); -} - -StartImagePipelineExecutionRequest::~StartImagePipelineExecutionRequest() -{} - -std::string StartImagePipelineExecutionRequest::getImagePipelineId()const -{ - return imagePipelineId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::StartImagePipelineExecutionRequest; + +StartImagePipelineExecutionRequest::StartImagePipelineExecutionRequest() + : RpcServiceRequest("ecs", "2014-05-26", "StartImagePipelineExecution") { + setMethod(HttpRequest::Method::Post); } -void StartImagePipelineExecutionRequest::setImagePipelineId(const std::string& imagePipelineId) -{ - imagePipelineId_ = imagePipelineId; - setParameter("ImagePipelineId", imagePipelineId); +StartImagePipelineExecutionRequest::~StartImagePipelineExecutionRequest() {} + +std::string StartImagePipelineExecutionRequest::getImagePipelineId() const { + return imagePipelineId_; } -long StartImagePipelineExecutionRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void StartImagePipelineExecutionRequest::setImagePipelineId(const std::string &imagePipelineId) { + imagePipelineId_ = imagePipelineId; + setParameter(std::string("ImagePipelineId"), imagePipelineId); } -void StartImagePipelineExecutionRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long StartImagePipelineExecutionRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string StartImagePipelineExecutionRequest::getClientToken()const -{ - return clientToken_; +void StartImagePipelineExecutionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void StartImagePipelineExecutionRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string StartImagePipelineExecutionRequest::getClientToken() const { + return clientToken_; } -std::string StartImagePipelineExecutionRequest::getRegionId()const -{ - return regionId_; +void StartImagePipelineExecutionRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void StartImagePipelineExecutionRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string StartImagePipelineExecutionRequest::getRegionId() const { + return regionId_; } -std::vector StartImagePipelineExecutionRequest::getTemplateTag()const -{ - return templateTag_; +void StartImagePipelineExecutionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void StartImagePipelineExecutionRequest::setTemplateTag(const std::vector& templateTag) -{ - templateTag_ = templateTag; - for(int dep1 = 0; dep1!= templateTag.size(); dep1++) { - auto templateTagObj = templateTag.at(dep1); - std::string templateTagObjStr = "TemplateTag." + std::to_string(dep1 + 1); - setParameter(templateTagObjStr + ".Key", templateTagObj.key); - setParameter(templateTagObjStr + ".Value", templateTagObj.value); - } +std::vector StartImagePipelineExecutionRequest::getTemplateTag() const { + return templateTag_; } -std::string StartImagePipelineExecutionRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void StartImagePipelineExecutionRequest::setTemplateTag(const std::vector &templateTag) { + templateTag_ = templateTag; + for(int dep1 = 0; dep1 != templateTag.size(); dep1++) { + auto templateTagObj = templateTag.at(dep1); + std::string templateTagObjStr = std::string("TemplateTag") + "." + std::to_string(dep1 + 1); + setParameter(templateTagObjStr + ".Key", templateTagObj.key); + setParameter(templateTagObjStr + ".Value", templateTagObj.value); + } } -void StartImagePipelineExecutionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string StartImagePipelineExecutionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string StartImagePipelineExecutionRequest::getOwnerAccount()const -{ - return ownerAccount_; +void StartImagePipelineExecutionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void StartImagePipelineExecutionRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string StartImagePipelineExecutionRequest::getOwnerAccount() const { + return ownerAccount_; } -long StartImagePipelineExecutionRequest::getOwnerId()const -{ - return ownerId_; +void StartImagePipelineExecutionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void StartImagePipelineExecutionRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long StartImagePipelineExecutionRequest::getOwnerId() const { + return ownerId_; +} + +void StartImagePipelineExecutionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/StartInstanceRequest.cc b/ecs/src/model/StartInstanceRequest.cc index bfcba0aab..07af66adc 100644 --- a/ecs/src/model/StartInstanceRequest.cc +++ b/ecs/src/model/StartInstanceRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::StartInstanceRequest; - -StartInstanceRequest::StartInstanceRequest() : - RpcServiceRequest("ecs", "2014-05-26", "StartInstance") -{ - setMethod(HttpRequest::Method::Post); -} - -StartInstanceRequest::~StartInstanceRequest() -{} - -long StartInstanceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::StartInstanceRequest; + +StartInstanceRequest::StartInstanceRequest() + : RpcServiceRequest("ecs", "2014-05-26", "StartInstance") { + setMethod(HttpRequest::Method::Post); } -void StartInstanceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +StartInstanceRequest::~StartInstanceRequest() {} + +long StartInstanceRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string StartInstanceRequest::getSourceRegionId()const -{ - return sourceRegionId_; +void StartInstanceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void StartInstanceRequest::setSourceRegionId(const std::string& sourceRegionId) -{ - sourceRegionId_ = sourceRegionId; - setParameter("SourceRegionId", sourceRegionId); +std::string StartInstanceRequest::getSourceRegionId() const { + return sourceRegionId_; } -bool StartInstanceRequest::getInitLocalDisk()const -{ - return initLocalDisk_; +void StartInstanceRequest::setSourceRegionId(const std::string &sourceRegionId) { + sourceRegionId_ = sourceRegionId; + setParameter(std::string("SourceRegionId"), sourceRegionId); } -void StartInstanceRequest::setInitLocalDisk(bool initLocalDisk) -{ - initLocalDisk_ = initLocalDisk; - setParameter("InitLocalDisk", initLocalDisk ? "true" : "false"); +bool StartInstanceRequest::getInitLocalDisk() const { + return initLocalDisk_; } -bool StartInstanceRequest::getDryRun()const -{ - return dryRun_; +void StartInstanceRequest::setInitLocalDisk(bool initLocalDisk) { + initLocalDisk_ = initLocalDisk; + setParameter(std::string("InitLocalDisk"), initLocalDisk ? "true" : "false"); } -void StartInstanceRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool StartInstanceRequest::getDryRun() const { + return dryRun_; } -std::string StartInstanceRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void StartInstanceRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void StartInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string StartInstanceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string StartInstanceRequest::getOwnerAccount()const -{ - return ownerAccount_; +void StartInstanceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void StartInstanceRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string StartInstanceRequest::getOwnerAccount() const { + return ownerAccount_; } -long StartInstanceRequest::getOwnerId()const -{ - return ownerId_; +void StartInstanceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void StartInstanceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long StartInstanceRequest::getOwnerId() const { + return ownerId_; } -std::string StartInstanceRequest::getInstanceId()const -{ - return instanceId_; +void StartInstanceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void StartInstanceRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string StartInstanceRequest::getInstanceId() const { + return instanceId_; +} + +void StartInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/ecs/src/model/StartInstancesRequest.cc b/ecs/src/model/StartInstancesRequest.cc index 86a5221ac..a514304dc 100644 --- a/ecs/src/model/StartInstancesRequest.cc +++ b/ecs/src/model/StartInstancesRequest.cc @@ -1,119 +1,98 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::StartInstancesRequest; - -StartInstancesRequest::StartInstancesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "StartInstances") -{ - setMethod(HttpRequest::Method::Post); -} - -StartInstancesRequest::~StartInstancesRequest() -{} - -long StartInstancesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::StartInstancesRequest; + +StartInstancesRequest::StartInstancesRequest() + : RpcServiceRequest("ecs", "2014-05-26", "StartInstances") { + setMethod(HttpRequest::Method::Post); } -void StartInstancesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +StartInstancesRequest::~StartInstancesRequest() {} + +long StartInstancesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string StartInstancesRequest::getRegionId()const -{ - return regionId_; +void StartInstancesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void StartInstancesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string StartInstancesRequest::getRegionId() const { + return regionId_; } -std::string StartInstancesRequest::getBatchOptimization()const -{ - return batchOptimization_; +void StartInstancesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void StartInstancesRequest::setBatchOptimization(const std::string& batchOptimization) -{ - batchOptimization_ = batchOptimization; - setParameter("BatchOptimization", batchOptimization); +std::string StartInstancesRequest::getBatchOptimization() const { + return batchOptimization_; } -bool StartInstancesRequest::getDryRun()const -{ - return dryRun_; +void StartInstancesRequest::setBatchOptimization(const std::string &batchOptimization) { + batchOptimization_ = batchOptimization; + setParameter(std::string("BatchOptimization"), batchOptimization); } -void StartInstancesRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool StartInstancesRequest::getDryRun() const { + return dryRun_; } -std::string StartInstancesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void StartInstancesRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void StartInstancesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string StartInstancesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string StartInstancesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void StartInstancesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void StartInstancesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string StartInstancesRequest::getOwnerAccount() const { + return ownerAccount_; } -long StartInstancesRequest::getOwnerId()const -{ - return ownerId_; +void StartInstancesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void StartInstancesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long StartInstancesRequest::getOwnerId() const { + return ownerId_; } -std::vector StartInstancesRequest::getInstanceId()const -{ - return instanceId_; +void StartInstancesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void StartInstancesRequest::setInstanceId(const std::vector& instanceId) -{ - instanceId_ = instanceId; - for(int dep1 = 0; dep1!= instanceId.size(); dep1++) { - setParameter("InstanceId."+ std::to_string(dep1), instanceId.at(dep1)); - } +std::vector StartInstancesRequest::getInstanceId() const { + return instanceId_; +} + +void StartInstancesRequest::setInstanceId(const std::vector &instanceId) { + instanceId_ = instanceId; } diff --git a/ecs/src/model/StartTerminalSessionRequest.cc b/ecs/src/model/StartTerminalSessionRequest.cc index e32e6a60b..750be59dc 100644 --- a/ecs/src/model/StartTerminalSessionRequest.cc +++ b/ecs/src/model/StartTerminalSessionRequest.cc @@ -1,97 +1,80 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::StartTerminalSessionRequest; - -StartTerminalSessionRequest::StartTerminalSessionRequest() : - RpcServiceRequest("ecs", "2014-05-26", "StartTerminalSession") -{ - setMethod(HttpRequest::Method::Post); -} - -StartTerminalSessionRequest::~StartTerminalSessionRequest() -{} - -long StartTerminalSessionRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::StartTerminalSessionRequest; + +StartTerminalSessionRequest::StartTerminalSessionRequest() + : RpcServiceRequest("ecs", "2014-05-26", "StartTerminalSession") { + setMethod(HttpRequest::Method::Post); } -void StartTerminalSessionRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +StartTerminalSessionRequest::~StartTerminalSessionRequest() {} + +long StartTerminalSessionRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string StartTerminalSessionRequest::getRegionId()const -{ - return regionId_; +void StartTerminalSessionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void StartTerminalSessionRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string StartTerminalSessionRequest::getRegionId() const { + return regionId_; } -std::string StartTerminalSessionRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void StartTerminalSessionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void StartTerminalSessionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string StartTerminalSessionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string StartTerminalSessionRequest::getOwnerAccount()const -{ - return ownerAccount_; +void StartTerminalSessionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void StartTerminalSessionRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string StartTerminalSessionRequest::getOwnerAccount() const { + return ownerAccount_; } -long StartTerminalSessionRequest::getOwnerId()const -{ - return ownerId_; +void StartTerminalSessionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void StartTerminalSessionRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long StartTerminalSessionRequest::getOwnerId() const { + return ownerId_; } -std::vector StartTerminalSessionRequest::getInstanceId()const -{ - return instanceId_; +void StartTerminalSessionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void StartTerminalSessionRequest::setInstanceId(const std::vector& instanceId) -{ - instanceId_ = instanceId; - for(int dep1 = 0; dep1!= instanceId.size(); dep1++) { - setParameter("InstanceId."+ std::to_string(dep1), instanceId.at(dep1)); - } +std::vector StartTerminalSessionRequest::getInstanceId() const { + return instanceId_; +} + +void StartTerminalSessionRequest::setInstanceId(const std::vector &instanceId) { + instanceId_ = instanceId; } diff --git a/ecs/src/model/StopDiskReplicaPairRequest.cc b/ecs/src/model/StopDiskReplicaPairRequest.cc index 84d6e7773..00a342088 100644 --- a/ecs/src/model/StopDiskReplicaPairRequest.cc +++ b/ecs/src/model/StopDiskReplicaPairRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::StopDiskReplicaPairRequest; - -StopDiskReplicaPairRequest::StopDiskReplicaPairRequest() : - RpcServiceRequest("ecs", "2014-05-26", "StopDiskReplicaPair") -{ - setMethod(HttpRequest::Method::Post); -} - -StopDiskReplicaPairRequest::~StopDiskReplicaPairRequest() -{} - -long StopDiskReplicaPairRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::StopDiskReplicaPairRequest; + +StopDiskReplicaPairRequest::StopDiskReplicaPairRequest() + : RpcServiceRequest("ecs", "2014-05-26", "StopDiskReplicaPair") { + setMethod(HttpRequest::Method::Post); } -void StopDiskReplicaPairRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +StopDiskReplicaPairRequest::~StopDiskReplicaPairRequest() {} + +long StopDiskReplicaPairRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string StopDiskReplicaPairRequest::getRegionId()const -{ - return regionId_; +void StopDiskReplicaPairRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void StopDiskReplicaPairRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string StopDiskReplicaPairRequest::getRegionId() const { + return regionId_; } -std::string StopDiskReplicaPairRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void StopDiskReplicaPairRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void StopDiskReplicaPairRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string StopDiskReplicaPairRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string StopDiskReplicaPairRequest::getOwnerAccount()const -{ - return ownerAccount_; +void StopDiskReplicaPairRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void StopDiskReplicaPairRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string StopDiskReplicaPairRequest::getOwnerAccount() const { + return ownerAccount_; } -long StopDiskReplicaPairRequest::getOwnerId()const -{ - return ownerId_; +void StopDiskReplicaPairRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void StopDiskReplicaPairRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long StopDiskReplicaPairRequest::getOwnerId() const { + return ownerId_; } -std::string StopDiskReplicaPairRequest::getReplicaPairId()const -{ - return replicaPairId_; +void StopDiskReplicaPairRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void StopDiskReplicaPairRequest::setReplicaPairId(const std::string& replicaPairId) -{ - replicaPairId_ = replicaPairId; - setParameter("ReplicaPairId", replicaPairId); +std::string StopDiskReplicaPairRequest::getReplicaPairId() const { + return replicaPairId_; +} + +void StopDiskReplicaPairRequest::setReplicaPairId(const std::string &replicaPairId) { + replicaPairId_ = replicaPairId; + setParameter(std::string("ReplicaPairId"), replicaPairId); } diff --git a/ecs/src/model/StopInstanceRequest.cc b/ecs/src/model/StopInstanceRequest.cc index 28a88e3db..2202a8217 100644 --- a/ecs/src/model/StopInstanceRequest.cc +++ b/ecs/src/model/StopInstanceRequest.cc @@ -1,139 +1,117 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::StopInstanceRequest; - -StopInstanceRequest::StopInstanceRequest() : - RpcServiceRequest("ecs", "2014-05-26", "StopInstance") -{ - setMethod(HttpRequest::Method::Post); -} - -StopInstanceRequest::~StopInstanceRequest() -{} - -long StopInstanceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::StopInstanceRequest; + +StopInstanceRequest::StopInstanceRequest() + : RpcServiceRequest("ecs", "2014-05-26", "StopInstance") { + setMethod(HttpRequest::Method::Post); } -void StopInstanceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +StopInstanceRequest::~StopInstanceRequest() {} + +long StopInstanceRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string StopInstanceRequest::getStoppedMode()const -{ - return stoppedMode_; +void StopInstanceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void StopInstanceRequest::setStoppedMode(const std::string& stoppedMode) -{ - stoppedMode_ = stoppedMode; - setParameter("StoppedMode", stoppedMode); +std::string StopInstanceRequest::getStoppedMode() const { + return stoppedMode_; } -bool StopInstanceRequest::getHibernate()const -{ - return hibernate_; +void StopInstanceRequest::setStoppedMode(const std::string &stoppedMode) { + stoppedMode_ = stoppedMode; + setParameter(std::string("StoppedMode"), stoppedMode); } -void StopInstanceRequest::setHibernate(bool hibernate) -{ - hibernate_ = hibernate; - setParameter("Hibernate", hibernate ? "true" : "false"); +bool StopInstanceRequest::getHibernate() const { + return hibernate_; } -bool StopInstanceRequest::getForceStop()const -{ - return forceStop_; +void StopInstanceRequest::setHibernate(bool hibernate) { + hibernate_ = hibernate; + setParameter(std::string("Hibernate"), hibernate ? "true" : "false"); } -void StopInstanceRequest::setForceStop(bool forceStop) -{ - forceStop_ = forceStop; - setParameter("ForceStop", forceStop ? "true" : "false"); +bool StopInstanceRequest::getForceStop() const { + return forceStop_; } -bool StopInstanceRequest::getConfirmStop()const -{ - return confirmStop_; +void StopInstanceRequest::setForceStop(bool forceStop) { + forceStop_ = forceStop; + setParameter(std::string("ForceStop"), forceStop ? "true" : "false"); } -void StopInstanceRequest::setConfirmStop(bool confirmStop) -{ - confirmStop_ = confirmStop; - setParameter("ConfirmStop", confirmStop ? "true" : "false"); +bool StopInstanceRequest::getConfirmStop() const { + return confirmStop_; } -bool StopInstanceRequest::getDryRun()const -{ - return dryRun_; +void StopInstanceRequest::setConfirmStop(bool confirmStop) { + confirmStop_ = confirmStop; + setParameter(std::string("ConfirmStop"), confirmStop ? "true" : "false"); } -void StopInstanceRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool StopInstanceRequest::getDryRun() const { + return dryRun_; } -std::string StopInstanceRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void StopInstanceRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void StopInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string StopInstanceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string StopInstanceRequest::getOwnerAccount()const -{ - return ownerAccount_; +void StopInstanceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void StopInstanceRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string StopInstanceRequest::getOwnerAccount() const { + return ownerAccount_; } -long StopInstanceRequest::getOwnerId()const -{ - return ownerId_; +void StopInstanceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void StopInstanceRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long StopInstanceRequest::getOwnerId() const { + return ownerId_; } -std::string StopInstanceRequest::getInstanceId()const -{ - return instanceId_; +void StopInstanceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void StopInstanceRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string StopInstanceRequest::getInstanceId() const { + return instanceId_; +} + +void StopInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/ecs/src/model/StopInstancesRequest.cc b/ecs/src/model/StopInstancesRequest.cc index 5fc8ce8a2..bdd01e19f 100644 --- a/ecs/src/model/StopInstancesRequest.cc +++ b/ecs/src/model/StopInstancesRequest.cc @@ -1,141 +1,116 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::StopInstancesRequest; - -StopInstancesRequest::StopInstancesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "StopInstances") -{ - setMethod(HttpRequest::Method::Post); -} - -StopInstancesRequest::~StopInstancesRequest() -{} - -long StopInstancesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::StopInstancesRequest; + +StopInstancesRequest::StopInstancesRequest() + : RpcServiceRequest("ecs", "2014-05-26", "StopInstances") { + setMethod(HttpRequest::Method::Post); } -void StopInstancesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +StopInstancesRequest::~StopInstancesRequest() {} + +long StopInstancesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string StopInstancesRequest::getStoppedMode()const -{ - return stoppedMode_; +void StopInstancesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void StopInstancesRequest::setStoppedMode(const std::string& stoppedMode) -{ - stoppedMode_ = stoppedMode; - setParameter("StoppedMode", stoppedMode); +std::string StopInstancesRequest::getStoppedMode() const { + return stoppedMode_; } -bool StopInstancesRequest::getForceStop()const -{ - return forceStop_; +void StopInstancesRequest::setStoppedMode(const std::string &stoppedMode) { + stoppedMode_ = stoppedMode; + setParameter(std::string("StoppedMode"), stoppedMode); } -void StopInstancesRequest::setForceStop(bool forceStop) -{ - forceStop_ = forceStop; - setParameter("ForceStop", forceStop ? "true" : "false"); +bool StopInstancesRequest::getForceStop() const { + return forceStop_; } -std::string StopInstancesRequest::getRegionId()const -{ - return regionId_; +void StopInstancesRequest::setForceStop(bool forceStop) { + forceStop_ = forceStop; + setParameter(std::string("ForceStop"), forceStop ? "true" : "false"); } -void StopInstancesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string StopInstancesRequest::getRegionId() const { + return regionId_; } -std::string StopInstancesRequest::getBatchOptimization()const -{ - return batchOptimization_; +void StopInstancesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void StopInstancesRequest::setBatchOptimization(const std::string& batchOptimization) -{ - batchOptimization_ = batchOptimization; - setParameter("BatchOptimization", batchOptimization); +std::string StopInstancesRequest::getBatchOptimization() const { + return batchOptimization_; } -bool StopInstancesRequest::getDryRun()const -{ - return dryRun_; +void StopInstancesRequest::setBatchOptimization(const std::string &batchOptimization) { + batchOptimization_ = batchOptimization; + setParameter(std::string("BatchOptimization"), batchOptimization); } -void StopInstancesRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +bool StopInstancesRequest::getDryRun() const { + return dryRun_; } -std::string StopInstancesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void StopInstancesRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); } -void StopInstancesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string StopInstancesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string StopInstancesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void StopInstancesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void StopInstancesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string StopInstancesRequest::getOwnerAccount() const { + return ownerAccount_; } -long StopInstancesRequest::getOwnerId()const -{ - return ownerId_; +void StopInstancesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void StopInstancesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long StopInstancesRequest::getOwnerId() const { + return ownerId_; } -std::vector StopInstancesRequest::getInstanceId()const -{ - return instanceId_; +void StopInstancesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void StopInstancesRequest::setInstanceId(const std::vector& instanceId) -{ - instanceId_ = instanceId; - for(int dep1 = 0; dep1!= instanceId.size(); dep1++) { - setParameter("InstanceId."+ std::to_string(dep1), instanceId.at(dep1)); - } +std::vector StopInstancesRequest::getInstanceId() const { + return instanceId_; +} + +void StopInstancesRequest::setInstanceId(const std::vector &instanceId) { + instanceId_ = instanceId; } diff --git a/ecs/src/model/StopInstancesResult.cc b/ecs/src/model/StopInstancesResult.cc index 30f9ead36..c72b80f00 100644 --- a/ecs/src/model/StopInstancesResult.cc +++ b/ecs/src/model/StopInstancesResult.cc @@ -43,16 +43,16 @@ void StopInstancesResult::parse(const std::string &payload) for (auto valueInstanceResponsesInstanceResponse : allInstanceResponsesNode) { InstanceResponse instanceResponsesObject; - if(!valueInstanceResponsesInstanceResponse["InstanceId"].isNull()) - instanceResponsesObject.instanceId = valueInstanceResponsesInstanceResponse["InstanceId"].asString(); - if(!valueInstanceResponsesInstanceResponse["PreviousStatus"].isNull()) - instanceResponsesObject.previousStatus = valueInstanceResponsesInstanceResponse["PreviousStatus"].asString(); - if(!valueInstanceResponsesInstanceResponse["CurrentStatus"].isNull()) - instanceResponsesObject.currentStatus = valueInstanceResponsesInstanceResponse["CurrentStatus"].asString(); if(!valueInstanceResponsesInstanceResponse["Code"].isNull()) instanceResponsesObject.code = valueInstanceResponsesInstanceResponse["Code"].asString(); if(!valueInstanceResponsesInstanceResponse["Message"].isNull()) instanceResponsesObject.message = valueInstanceResponsesInstanceResponse["Message"].asString(); + if(!valueInstanceResponsesInstanceResponse["InstanceId"].isNull()) + instanceResponsesObject.instanceId = valueInstanceResponsesInstanceResponse["InstanceId"].asString(); + if(!valueInstanceResponsesInstanceResponse["CurrentStatus"].isNull()) + instanceResponsesObject.currentStatus = valueInstanceResponsesInstanceResponse["CurrentStatus"].asString(); + if(!valueInstanceResponsesInstanceResponse["PreviousStatus"].isNull()) + instanceResponsesObject.previousStatus = valueInstanceResponsesInstanceResponse["PreviousStatus"].asString(); instanceResponses_.push_back(instanceResponsesObject); } diff --git a/ecs/src/model/StopInvocationRequest.cc b/ecs/src/model/StopInvocationRequest.cc index 4c08e7ac1..0309db883 100644 --- a/ecs/src/model/StopInvocationRequest.cc +++ b/ecs/src/model/StopInvocationRequest.cc @@ -1,108 +1,89 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::StopInvocationRequest; - -StopInvocationRequest::StopInvocationRequest() : - RpcServiceRequest("ecs", "2014-05-26", "StopInvocation") -{ - setMethod(HttpRequest::Method::Post); -} - -StopInvocationRequest::~StopInvocationRequest() -{} - -long StopInvocationRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::StopInvocationRequest; + +StopInvocationRequest::StopInvocationRequest() + : RpcServiceRequest("ecs", "2014-05-26", "StopInvocation") { + setMethod(HttpRequest::Method::Post); } -void StopInvocationRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +StopInvocationRequest::~StopInvocationRequest() {} + +long StopInvocationRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string StopInvocationRequest::getRegionId()const -{ - return regionId_; +void StopInvocationRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void StopInvocationRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string StopInvocationRequest::getRegionId() const { + return regionId_; } -std::string StopInvocationRequest::getInvokeId()const -{ - return invokeId_; +void StopInvocationRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void StopInvocationRequest::setInvokeId(const std::string& invokeId) -{ - invokeId_ = invokeId; - setParameter("InvokeId", invokeId); +std::string StopInvocationRequest::getInvokeId() const { + return invokeId_; } -std::string StopInvocationRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void StopInvocationRequest::setInvokeId(const std::string &invokeId) { + invokeId_ = invokeId; + setParameter(std::string("InvokeId"), invokeId); } -void StopInvocationRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string StopInvocationRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string StopInvocationRequest::getOwnerAccount()const -{ - return ownerAccount_; +void StopInvocationRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void StopInvocationRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string StopInvocationRequest::getOwnerAccount() const { + return ownerAccount_; } -long StopInvocationRequest::getOwnerId()const -{ - return ownerId_; +void StopInvocationRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void StopInvocationRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long StopInvocationRequest::getOwnerId() const { + return ownerId_; } -std::vector StopInvocationRequest::getInstanceId()const -{ - return instanceId_; +void StopInvocationRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void StopInvocationRequest::setInstanceId(const std::vector& instanceId) -{ - instanceId_ = instanceId; - for(int dep1 = 0; dep1!= instanceId.size(); dep1++) { - setParameter("InstanceId."+ std::to_string(dep1), instanceId.at(dep1)); - } +std::vector StopInvocationRequest::getInstanceId() const { + return instanceId_; +} + +void StopInvocationRequest::setInstanceId(const std::vector &instanceId) { + instanceId_ = instanceId; } diff --git a/ecs/src/model/TagResourcesRequest.cc b/ecs/src/model/TagResourcesRequest.cc index 8f55e3a49..bfc9da299 100644 --- a/ecs/src/model/TagResourcesRequest.cc +++ b/ecs/src/model/TagResourcesRequest.cc @@ -1,113 +1,94 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::TagResourcesRequest; - -TagResourcesRequest::TagResourcesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "TagResources") -{ - setMethod(HttpRequest::Method::Post); -} - -TagResourcesRequest::~TagResourcesRequest() -{} - -std::string TagResourcesRequest::getRegionId()const -{ - return regionId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::TagResourcesRequest; + +TagResourcesRequest::TagResourcesRequest() + : RpcServiceRequest("ecs", "2014-05-26", "TagResources") { + setMethod(HttpRequest::Method::Post); } -void TagResourcesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +TagResourcesRequest::~TagResourcesRequest() {} + +std::string TagResourcesRequest::getRegionId() const { + return regionId_; } -std::vector TagResourcesRequest::getTag()const -{ - return tag_; +void TagResourcesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void TagResourcesRequest::setTag(const std::vector& tag) -{ - tag_ = tag; - for(int dep1 = 0; dep1!= tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Key", tagObj.key); - setParameter(tagObjStr + ".Value", tagObj.value); - } +std::vector TagResourcesRequest::getTag() const { + return tag_; } -std::vector TagResourcesRequest::getResourceId()const -{ - return resourceId_; +void TagResourcesRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Key", tagObj.key); + setParameter(tagObjStr + ".Value", tagObj.value); + } } -void TagResourcesRequest::setResourceId(const std::vector& resourceId) -{ - resourceId_ = resourceId; - for(int dep1 = 0; dep1!= resourceId.size(); dep1++) { - setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1)); - } +std::vector TagResourcesRequest::getResourceId() const { + return resourceId_; } -std::string TagResourcesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void TagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; } -void TagResourcesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string TagResourcesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string TagResourcesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void TagResourcesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void TagResourcesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string TagResourcesRequest::getOwnerAccount() const { + return ownerAccount_; } -long TagResourcesRequest::getOwnerId()const -{ - return ownerId_; +void TagResourcesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void TagResourcesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long TagResourcesRequest::getOwnerId() const { + return ownerId_; } -std::string TagResourcesRequest::getResourceType()const -{ - return resourceType_; +void TagResourcesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void TagResourcesRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +std::string TagResourcesRequest::getResourceType() const { + return resourceType_; +} + +void TagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); } diff --git a/ecs/src/model/TerminatePhysicalConnectionRequest.cc b/ecs/src/model/TerminatePhysicalConnectionRequest.cc index 5768d3d79..64fd0aae9 100644 --- a/ecs/src/model/TerminatePhysicalConnectionRequest.cc +++ b/ecs/src/model/TerminatePhysicalConnectionRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::TerminatePhysicalConnectionRequest; - -TerminatePhysicalConnectionRequest::TerminatePhysicalConnectionRequest() : - RpcServiceRequest("ecs", "2014-05-26", "TerminatePhysicalConnection") -{ - setMethod(HttpRequest::Method::Post); -} - -TerminatePhysicalConnectionRequest::~TerminatePhysicalConnectionRequest() -{} - -long TerminatePhysicalConnectionRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::TerminatePhysicalConnectionRequest; + +TerminatePhysicalConnectionRequest::TerminatePhysicalConnectionRequest() + : RpcServiceRequest("ecs", "2014-05-26", "TerminatePhysicalConnection") { + setMethod(HttpRequest::Method::Post); } -void TerminatePhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +TerminatePhysicalConnectionRequest::~TerminatePhysicalConnectionRequest() {} + +long TerminatePhysicalConnectionRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string TerminatePhysicalConnectionRequest::getClientToken()const -{ - return clientToken_; +void TerminatePhysicalConnectionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void TerminatePhysicalConnectionRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string TerminatePhysicalConnectionRequest::getClientToken() const { + return clientToken_; } -std::string TerminatePhysicalConnectionRequest::getRegionId()const -{ - return regionId_; +void TerminatePhysicalConnectionRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void TerminatePhysicalConnectionRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string TerminatePhysicalConnectionRequest::getRegionId() const { + return regionId_; } -std::string TerminatePhysicalConnectionRequest::getUserCidr()const -{ - return userCidr_; +void TerminatePhysicalConnectionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void TerminatePhysicalConnectionRequest::setUserCidr(const std::string& userCidr) -{ - userCidr_ = userCidr; - setParameter("UserCidr", userCidr); +std::string TerminatePhysicalConnectionRequest::getUserCidr() const { + return userCidr_; } -std::string TerminatePhysicalConnectionRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void TerminatePhysicalConnectionRequest::setUserCidr(const std::string &userCidr) { + userCidr_ = userCidr; + setParameter(std::string("UserCidr"), userCidr); } -void TerminatePhysicalConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string TerminatePhysicalConnectionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string TerminatePhysicalConnectionRequest::getOwnerAccount()const -{ - return ownerAccount_; +void TerminatePhysicalConnectionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void TerminatePhysicalConnectionRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string TerminatePhysicalConnectionRequest::getOwnerAccount() const { + return ownerAccount_; } -long TerminatePhysicalConnectionRequest::getOwnerId()const -{ - return ownerId_; +void TerminatePhysicalConnectionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void TerminatePhysicalConnectionRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long TerminatePhysicalConnectionRequest::getOwnerId() const { + return ownerId_; } -std::string TerminatePhysicalConnectionRequest::getPhysicalConnectionId()const -{ - return physicalConnectionId_; +void TerminatePhysicalConnectionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void TerminatePhysicalConnectionRequest::setPhysicalConnectionId(const std::string& physicalConnectionId) -{ - physicalConnectionId_ = physicalConnectionId; - setParameter("PhysicalConnectionId", physicalConnectionId); +std::string TerminatePhysicalConnectionRequest::getPhysicalConnectionId() const { + return physicalConnectionId_; +} + +void TerminatePhysicalConnectionRequest::setPhysicalConnectionId(const std::string &physicalConnectionId) { + physicalConnectionId_ = physicalConnectionId; + setParameter(std::string("PhysicalConnectionId"), physicalConnectionId); } diff --git a/ecs/src/model/TerminateVirtualBorderRouterRequest.cc b/ecs/src/model/TerminateVirtualBorderRouterRequest.cc index 09206eb6f..427b41592 100644 --- a/ecs/src/model/TerminateVirtualBorderRouterRequest.cc +++ b/ecs/src/model/TerminateVirtualBorderRouterRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::TerminateVirtualBorderRouterRequest; - -TerminateVirtualBorderRouterRequest::TerminateVirtualBorderRouterRequest() : - RpcServiceRequest("ecs", "2014-05-26", "TerminateVirtualBorderRouter") -{ - setMethod(HttpRequest::Method::Post); -} - -TerminateVirtualBorderRouterRequest::~TerminateVirtualBorderRouterRequest() -{} - -long TerminateVirtualBorderRouterRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::TerminateVirtualBorderRouterRequest; + +TerminateVirtualBorderRouterRequest::TerminateVirtualBorderRouterRequest() + : RpcServiceRequest("ecs", "2014-05-26", "TerminateVirtualBorderRouter") { + setMethod(HttpRequest::Method::Post); } -void TerminateVirtualBorderRouterRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +TerminateVirtualBorderRouterRequest::~TerminateVirtualBorderRouterRequest() {} + +long TerminateVirtualBorderRouterRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string TerminateVirtualBorderRouterRequest::getClientToken()const -{ - return clientToken_; +void TerminateVirtualBorderRouterRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void TerminateVirtualBorderRouterRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string TerminateVirtualBorderRouterRequest::getClientToken() const { + return clientToken_; } -std::string TerminateVirtualBorderRouterRequest::getVbrId()const -{ - return vbrId_; +void TerminateVirtualBorderRouterRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void TerminateVirtualBorderRouterRequest::setVbrId(const std::string& vbrId) -{ - vbrId_ = vbrId; - setParameter("VbrId", vbrId); +std::string TerminateVirtualBorderRouterRequest::getVbrId() const { + return vbrId_; } -std::string TerminateVirtualBorderRouterRequest::getRegionId()const -{ - return regionId_; +void TerminateVirtualBorderRouterRequest::setVbrId(const std::string &vbrId) { + vbrId_ = vbrId; + setParameter(std::string("VbrId"), vbrId); } -void TerminateVirtualBorderRouterRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string TerminateVirtualBorderRouterRequest::getRegionId() const { + return regionId_; } -std::string TerminateVirtualBorderRouterRequest::getUserCidr()const -{ - return userCidr_; +void TerminateVirtualBorderRouterRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void TerminateVirtualBorderRouterRequest::setUserCidr(const std::string& userCidr) -{ - userCidr_ = userCidr; - setParameter("UserCidr", userCidr); +std::string TerminateVirtualBorderRouterRequest::getUserCidr() const { + return userCidr_; } -std::string TerminateVirtualBorderRouterRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void TerminateVirtualBorderRouterRequest::setUserCidr(const std::string &userCidr) { + userCidr_ = userCidr; + setParameter(std::string("UserCidr"), userCidr); } -void TerminateVirtualBorderRouterRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string TerminateVirtualBorderRouterRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string TerminateVirtualBorderRouterRequest::getOwnerAccount()const -{ - return ownerAccount_; +void TerminateVirtualBorderRouterRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void TerminateVirtualBorderRouterRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string TerminateVirtualBorderRouterRequest::getOwnerAccount() const { + return ownerAccount_; } -long TerminateVirtualBorderRouterRequest::getOwnerId()const -{ - return ownerId_; +void TerminateVirtualBorderRouterRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void TerminateVirtualBorderRouterRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long TerminateVirtualBorderRouterRequest::getOwnerId() const { + return ownerId_; +} + +void TerminateVirtualBorderRouterRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/ecs/src/model/UnassignIpv6AddressesRequest.cc b/ecs/src/model/UnassignIpv6AddressesRequest.cc index 3afece418..30e10814e 100644 --- a/ecs/src/model/UnassignIpv6AddressesRequest.cc +++ b/ecs/src/model/UnassignIpv6AddressesRequest.cc @@ -1,108 +1,89 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::UnassignIpv6AddressesRequest; - -UnassignIpv6AddressesRequest::UnassignIpv6AddressesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "UnassignIpv6Addresses") -{ - setMethod(HttpRequest::Method::Post); -} - -UnassignIpv6AddressesRequest::~UnassignIpv6AddressesRequest() -{} - -long UnassignIpv6AddressesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::UnassignIpv6AddressesRequest; + +UnassignIpv6AddressesRequest::UnassignIpv6AddressesRequest() + : RpcServiceRequest("ecs", "2014-05-26", "UnassignIpv6Addresses") { + setMethod(HttpRequest::Method::Post); } -void UnassignIpv6AddressesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UnassignIpv6AddressesRequest::~UnassignIpv6AddressesRequest() {} + +long UnassignIpv6AddressesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UnassignIpv6AddressesRequest::getRegionId()const -{ - return regionId_; +void UnassignIpv6AddressesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UnassignIpv6AddressesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string UnassignIpv6AddressesRequest::getRegionId() const { + return regionId_; } -std::string UnassignIpv6AddressesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UnassignIpv6AddressesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void UnassignIpv6AddressesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UnassignIpv6AddressesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UnassignIpv6AddressesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UnassignIpv6AddressesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UnassignIpv6AddressesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UnassignIpv6AddressesRequest::getOwnerAccount() const { + return ownerAccount_; } -long UnassignIpv6AddressesRequest::getOwnerId()const -{ - return ownerId_; +void UnassignIpv6AddressesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UnassignIpv6AddressesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UnassignIpv6AddressesRequest::getOwnerId() const { + return ownerId_; } -std::string UnassignIpv6AddressesRequest::getNetworkInterfaceId()const -{ - return networkInterfaceId_; +void UnassignIpv6AddressesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void UnassignIpv6AddressesRequest::setNetworkInterfaceId(const std::string& networkInterfaceId) -{ - networkInterfaceId_ = networkInterfaceId; - setParameter("NetworkInterfaceId", networkInterfaceId); +std::string UnassignIpv6AddressesRequest::getNetworkInterfaceId() const { + return networkInterfaceId_; } -std::vector UnassignIpv6AddressesRequest::getIpv6Address()const -{ - return ipv6Address_; +void UnassignIpv6AddressesRequest::setNetworkInterfaceId(const std::string &networkInterfaceId) { + networkInterfaceId_ = networkInterfaceId; + setParameter(std::string("NetworkInterfaceId"), networkInterfaceId); } -void UnassignIpv6AddressesRequest::setIpv6Address(const std::vector& ipv6Address) -{ - ipv6Address_ = ipv6Address; - for(int dep1 = 0; dep1!= ipv6Address.size(); dep1++) { - setParameter("Ipv6Address."+ std::to_string(dep1), ipv6Address.at(dep1)); - } +std::vector UnassignIpv6AddressesRequest::getIpv6Address() const { + return ipv6Address_; +} + +void UnassignIpv6AddressesRequest::setIpv6Address(const std::vector &ipv6Address) { + ipv6Address_ = ipv6Address; } diff --git a/ecs/src/model/UnassignPrivateIpAddressesRequest.cc b/ecs/src/model/UnassignPrivateIpAddressesRequest.cc index a198606a8..d3945cd82 100644 --- a/ecs/src/model/UnassignPrivateIpAddressesRequest.cc +++ b/ecs/src/model/UnassignPrivateIpAddressesRequest.cc @@ -1,108 +1,89 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::UnassignPrivateIpAddressesRequest; - -UnassignPrivateIpAddressesRequest::UnassignPrivateIpAddressesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "UnassignPrivateIpAddresses") -{ - setMethod(HttpRequest::Method::Post); -} - -UnassignPrivateIpAddressesRequest::~UnassignPrivateIpAddressesRequest() -{} - -long UnassignPrivateIpAddressesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::UnassignPrivateIpAddressesRequest; + +UnassignPrivateIpAddressesRequest::UnassignPrivateIpAddressesRequest() + : RpcServiceRequest("ecs", "2014-05-26", "UnassignPrivateIpAddresses") { + setMethod(HttpRequest::Method::Post); } -void UnassignPrivateIpAddressesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UnassignPrivateIpAddressesRequest::~UnassignPrivateIpAddressesRequest() {} + +long UnassignPrivateIpAddressesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UnassignPrivateIpAddressesRequest::getRegionId()const -{ - return regionId_; +void UnassignPrivateIpAddressesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UnassignPrivateIpAddressesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string UnassignPrivateIpAddressesRequest::getRegionId() const { + return regionId_; } -std::string UnassignPrivateIpAddressesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UnassignPrivateIpAddressesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void UnassignPrivateIpAddressesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UnassignPrivateIpAddressesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UnassignPrivateIpAddressesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UnassignPrivateIpAddressesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UnassignPrivateIpAddressesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UnassignPrivateIpAddressesRequest::getOwnerAccount() const { + return ownerAccount_; } -long UnassignPrivateIpAddressesRequest::getOwnerId()const -{ - return ownerId_; +void UnassignPrivateIpAddressesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UnassignPrivateIpAddressesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UnassignPrivateIpAddressesRequest::getOwnerId() const { + return ownerId_; } -std::vector UnassignPrivateIpAddressesRequest::getPrivateIpAddress()const -{ - return privateIpAddress_; +void UnassignPrivateIpAddressesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void UnassignPrivateIpAddressesRequest::setPrivateIpAddress(const std::vector& privateIpAddress) -{ - privateIpAddress_ = privateIpAddress; - for(int dep1 = 0; dep1!= privateIpAddress.size(); dep1++) { - setParameter("PrivateIpAddress."+ std::to_string(dep1), privateIpAddress.at(dep1)); - } +std::vector UnassignPrivateIpAddressesRequest::getPrivateIpAddress() const { + return privateIpAddress_; } -std::string UnassignPrivateIpAddressesRequest::getNetworkInterfaceId()const -{ - return networkInterfaceId_; +void UnassignPrivateIpAddressesRequest::setPrivateIpAddress(const std::vector &privateIpAddress) { + privateIpAddress_ = privateIpAddress; } -void UnassignPrivateIpAddressesRequest::setNetworkInterfaceId(const std::string& networkInterfaceId) -{ - networkInterfaceId_ = networkInterfaceId; - setParameter("NetworkInterfaceId", networkInterfaceId); +std::string UnassignPrivateIpAddressesRequest::getNetworkInterfaceId() const { + return networkInterfaceId_; +} + +void UnassignPrivateIpAddressesRequest::setNetworkInterfaceId(const std::string &networkInterfaceId) { + networkInterfaceId_ = networkInterfaceId; + setParameter(std::string("NetworkInterfaceId"), networkInterfaceId); } diff --git a/ecs/src/model/UnassociateEipAddressRequest.cc b/ecs/src/model/UnassociateEipAddressRequest.cc index f674df297..3ef5eed80 100644 --- a/ecs/src/model/UnassociateEipAddressRequest.cc +++ b/ecs/src/model/UnassociateEipAddressRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::UnassociateEipAddressRequest; - -UnassociateEipAddressRequest::UnassociateEipAddressRequest() : - RpcServiceRequest("ecs", "2014-05-26", "UnassociateEipAddress") -{ - setMethod(HttpRequest::Method::Post); -} - -UnassociateEipAddressRequest::~UnassociateEipAddressRequest() -{} - -long UnassociateEipAddressRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::UnassociateEipAddressRequest; + +UnassociateEipAddressRequest::UnassociateEipAddressRequest() + : RpcServiceRequest("ecs", "2014-05-26", "UnassociateEipAddress") { + setMethod(HttpRequest::Method::Post); } -void UnassociateEipAddressRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UnassociateEipAddressRequest::~UnassociateEipAddressRequest() {} + +long UnassociateEipAddressRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UnassociateEipAddressRequest::getAllocationId()const -{ - return allocationId_; +void UnassociateEipAddressRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UnassociateEipAddressRequest::setAllocationId(const std::string& allocationId) -{ - allocationId_ = allocationId; - setParameter("AllocationId", allocationId); +std::string UnassociateEipAddressRequest::getAllocationId() const { + return allocationId_; } -std::string UnassociateEipAddressRequest::getRegionId()const -{ - return regionId_; +void UnassociateEipAddressRequest::setAllocationId(const std::string &allocationId) { + allocationId_ = allocationId; + setParameter(std::string("AllocationId"), allocationId); } -void UnassociateEipAddressRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string UnassociateEipAddressRequest::getRegionId() const { + return regionId_; } -std::string UnassociateEipAddressRequest::getInstanceType()const -{ - return instanceType_; +void UnassociateEipAddressRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void UnassociateEipAddressRequest::setInstanceType(const std::string& instanceType) -{ - instanceType_ = instanceType; - setParameter("InstanceType", instanceType); +std::string UnassociateEipAddressRequest::getInstanceType() const { + return instanceType_; } -std::string UnassociateEipAddressRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UnassociateEipAddressRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); } -void UnassociateEipAddressRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UnassociateEipAddressRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UnassociateEipAddressRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UnassociateEipAddressRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UnassociateEipAddressRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UnassociateEipAddressRequest::getOwnerAccount() const { + return ownerAccount_; } -long UnassociateEipAddressRequest::getOwnerId()const -{ - return ownerId_; +void UnassociateEipAddressRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UnassociateEipAddressRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UnassociateEipAddressRequest::getOwnerId() const { + return ownerId_; } -std::string UnassociateEipAddressRequest::getInstanceId()const -{ - return instanceId_; +void UnassociateEipAddressRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void UnassociateEipAddressRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string UnassociateEipAddressRequest::getInstanceId() const { + return instanceId_; +} + +void UnassociateEipAddressRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/ecs/src/model/UnassociateHaVipRequest.cc b/ecs/src/model/UnassociateHaVipRequest.cc index 4b3732305..033085e5e 100644 --- a/ecs/src/model/UnassociateHaVipRequest.cc +++ b/ecs/src/model/UnassociateHaVipRequest.cc @@ -1,128 +1,108 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::UnassociateHaVipRequest; - -UnassociateHaVipRequest::UnassociateHaVipRequest() : - RpcServiceRequest("ecs", "2014-05-26", "UnassociateHaVip") -{ - setMethod(HttpRequest::Method::Post); -} - -UnassociateHaVipRequest::~UnassociateHaVipRequest() -{} - -long UnassociateHaVipRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::UnassociateHaVipRequest; + +UnassociateHaVipRequest::UnassociateHaVipRequest() + : RpcServiceRequest("ecs", "2014-05-26", "UnassociateHaVip") { + setMethod(HttpRequest::Method::Post); } -void UnassociateHaVipRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UnassociateHaVipRequest::~UnassociateHaVipRequest() {} + +long UnassociateHaVipRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UnassociateHaVipRequest::getClientToken()const -{ - return clientToken_; +void UnassociateHaVipRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UnassociateHaVipRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string UnassociateHaVipRequest::getClientToken() const { + return clientToken_; } -std::string UnassociateHaVipRequest::getRegionId()const -{ - return regionId_; +void UnassociateHaVipRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void UnassociateHaVipRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string UnassociateHaVipRequest::getRegionId() const { + return regionId_; } -std::string UnassociateHaVipRequest::getHaVipId()const -{ - return haVipId_; +void UnassociateHaVipRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void UnassociateHaVipRequest::setHaVipId(const std::string& haVipId) -{ - haVipId_ = haVipId; - setParameter("HaVipId", haVipId); +std::string UnassociateHaVipRequest::getHaVipId() const { + return haVipId_; } -std::string UnassociateHaVipRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UnassociateHaVipRequest::setHaVipId(const std::string &haVipId) { + haVipId_ = haVipId; + setParameter(std::string("HaVipId"), haVipId); } -void UnassociateHaVipRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UnassociateHaVipRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UnassociateHaVipRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UnassociateHaVipRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UnassociateHaVipRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UnassociateHaVipRequest::getOwnerAccount() const { + return ownerAccount_; } -long UnassociateHaVipRequest::getOwnerId()const -{ - return ownerId_; +void UnassociateHaVipRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UnassociateHaVipRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UnassociateHaVipRequest::getOwnerId() const { + return ownerId_; } -std::string UnassociateHaVipRequest::getInstanceId()const -{ - return instanceId_; +void UnassociateHaVipRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void UnassociateHaVipRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string UnassociateHaVipRequest::getInstanceId() const { + return instanceId_; } -std::string UnassociateHaVipRequest::getForce()const -{ - return force_; +void UnassociateHaVipRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void UnassociateHaVipRequest::setForce(const std::string& force) -{ - force_ = force; - setParameter("Force", force); +std::string UnassociateHaVipRequest::getForce() const { + return force_; +} + +void UnassociateHaVipRequest::setForce(const std::string &force) { + force_ = force; + setParameter(std::string("Force"), force); } diff --git a/ecs/src/model/UntagResourcesRequest.cc b/ecs/src/model/UntagResourcesRequest.cc index fb940b48f..a230f926d 100644 --- a/ecs/src/model/UntagResourcesRequest.cc +++ b/ecs/src/model/UntagResourcesRequest.cc @@ -1,132 +1,106 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Ecs::Model::UntagResourcesRequest; - -UntagResourcesRequest::UntagResourcesRequest() : - RpcServiceRequest("ecs", "2014-05-26", "UntagResources") -{ - setMethod(HttpRequest::Method::Post); -} - -UntagResourcesRequest::~UntagResourcesRequest() -{} - -long UntagResourcesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Ecs::Model::UntagResourcesRequest; + +UntagResourcesRequest::UntagResourcesRequest() + : RpcServiceRequest("ecs", "2014-05-26", "UntagResources") { + setMethod(HttpRequest::Method::Post); } -void UntagResourcesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UntagResourcesRequest::~UntagResourcesRequest() {} + +long UntagResourcesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UntagResourcesRequest::getRegionId()const -{ - return regionId_; +void UntagResourcesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UntagResourcesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string UntagResourcesRequest::getRegionId() const { + return regionId_; } -bool UntagResourcesRequest::getAll()const -{ - return all_; +void UntagResourcesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void UntagResourcesRequest::setAll(bool all) -{ - all_ = all; - setParameter("All", all ? "true" : "false"); +bool UntagResourcesRequest::getAll() const { + return all_; } -std::vector UntagResourcesRequest::getResourceId()const -{ - return resourceId_; +void UntagResourcesRequest::setAll(bool all) { + all_ = all; + setParameter(std::string("All"), all ? "true" : "false"); } -void UntagResourcesRequest::setResourceId(const std::vector& resourceId) -{ - resourceId_ = resourceId; - for(int dep1 = 0; dep1!= resourceId.size(); dep1++) { - setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1)); - } +std::vector UntagResourcesRequest::getResourceId() const { + return resourceId_; } -std::string UntagResourcesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UntagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; } -void UntagResourcesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UntagResourcesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UntagResourcesRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UntagResourcesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UntagResourcesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UntagResourcesRequest::getOwnerAccount() const { + return ownerAccount_; } -long UntagResourcesRequest::getOwnerId()const -{ - return ownerId_; +void UntagResourcesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UntagResourcesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UntagResourcesRequest::getOwnerId() const { + return ownerId_; } -std::string UntagResourcesRequest::getResourceType()const -{ - return resourceType_; +void UntagResourcesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void UntagResourcesRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +std::string UntagResourcesRequest::getResourceType() const { + return resourceType_; } -std::vector UntagResourcesRequest::getTagKey()const -{ - return tagKey_; +void UntagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); } -void UntagResourcesRequest::setTagKey(const std::vector& tagKey) -{ - tagKey_ = tagKey; - for(int dep1 = 0; dep1!= tagKey.size(); dep1++) { - setParameter("TagKey."+ std::to_string(dep1), tagKey.at(dep1)); - } +std::vector UntagResourcesRequest::getTagKey() const { + return tagKey_; +} + +void UntagResourcesRequest::setTagKey(const std::vector &tagKey) { + tagKey_ = tagKey; }