GetCurrentMonthUsageResponse constructor

GetCurrentMonthUsageResponse({
  1. Timestamp? startDate,
  2. Timestamp? endDate,
  3. @Deprecated('This field is deprecated.') double? cloudStorageUsageCost,
  4. @Deprecated('This field is deprecated.') double? dataUploadUsageCost,
  5. @Deprecated('This field is deprecated.') double? dataEgresUsageCost,
  6. @Deprecated('This field is deprecated.') double? remoteControlUsageCost,
  7. @Deprecated('This field is deprecated.') double? standardComputeUsageCost,
  8. @Deprecated('This field is deprecated.') double? discountAmount,
  9. @Deprecated('This field is deprecated.') double? totalUsageWithDiscount,
  10. @Deprecated('This field is deprecated.') double? totalUsageWithoutDiscount,
  11. @Deprecated('This field is deprecated.') double? perMachineUsageCost,
  12. @Deprecated('This field is deprecated.') double? binaryDataCloudStorageUsageCost,
  13. @Deprecated('This field is deprecated.') double? otherCloudStorageUsageCost,
  14. Iterable<ResourceUsageCostsBySource>? resourceUsageCostsBySource,
  15. double? subtotal,
})

Implementation

factory GetCurrentMonthUsageResponse({
  $44.Timestamp? startDate,
  $44.Timestamp? endDate,
@$core.Deprecated('This field is deprecated.')
  $core.double? cloudStorageUsageCost,
@$core.Deprecated('This field is deprecated.')
  $core.double? dataUploadUsageCost,
@$core.Deprecated('This field is deprecated.')
  $core.double? dataEgresUsageCost,
@$core.Deprecated('This field is deprecated.')
  $core.double? remoteControlUsageCost,
@$core.Deprecated('This field is deprecated.')
  $core.double? standardComputeUsageCost,
@$core.Deprecated('This field is deprecated.')
  $core.double? discountAmount,
@$core.Deprecated('This field is deprecated.')
  $core.double? totalUsageWithDiscount,
@$core.Deprecated('This field is deprecated.')
  $core.double? totalUsageWithoutDiscount,
@$core.Deprecated('This field is deprecated.')
  $core.double? perMachineUsageCost,
@$core.Deprecated('This field is deprecated.')
  $core.double? binaryDataCloudStorageUsageCost,
@$core.Deprecated('This field is deprecated.')
  $core.double? otherCloudStorageUsageCost,
  $core.Iterable<ResourceUsageCostsBySource>? resourceUsageCostsBySource,
  $core.double? subtotal,
}) {
  final $result = create();
  if (startDate != null) {
    $result.startDate = startDate;
  }
  if (endDate != null) {
    $result.endDate = endDate;
  }
  if (cloudStorageUsageCost != null) {
    // ignore: deprecated_member_use_from_same_package
    $result.cloudStorageUsageCost = cloudStorageUsageCost;
  }
  if (dataUploadUsageCost != null) {
    // ignore: deprecated_member_use_from_same_package
    $result.dataUploadUsageCost = dataUploadUsageCost;
  }
  if (dataEgresUsageCost != null) {
    // ignore: deprecated_member_use_from_same_package
    $result.dataEgresUsageCost = dataEgresUsageCost;
  }
  if (remoteControlUsageCost != null) {
    // ignore: deprecated_member_use_from_same_package
    $result.remoteControlUsageCost = remoteControlUsageCost;
  }
  if (standardComputeUsageCost != null) {
    // ignore: deprecated_member_use_from_same_package
    $result.standardComputeUsageCost = standardComputeUsageCost;
  }
  if (discountAmount != null) {
    // ignore: deprecated_member_use_from_same_package
    $result.discountAmount = discountAmount;
  }
  if (totalUsageWithDiscount != null) {
    // ignore: deprecated_member_use_from_same_package
    $result.totalUsageWithDiscount = totalUsageWithDiscount;
  }
  if (totalUsageWithoutDiscount != null) {
    // ignore: deprecated_member_use_from_same_package
    $result.totalUsageWithoutDiscount = totalUsageWithoutDiscount;
  }
  if (perMachineUsageCost != null) {
    // ignore: deprecated_member_use_from_same_package
    $result.perMachineUsageCost = perMachineUsageCost;
  }
  if (binaryDataCloudStorageUsageCost != null) {
    // ignore: deprecated_member_use_from_same_package
    $result.binaryDataCloudStorageUsageCost = binaryDataCloudStorageUsageCost;
  }
  if (otherCloudStorageUsageCost != null) {
    // ignore: deprecated_member_use_from_same_package
    $result.otherCloudStorageUsageCost = otherCloudStorageUsageCost;
  }
  if (resourceUsageCostsBySource != null) {
    $result.resourceUsageCostsBySource.addAll(resourceUsageCostsBySource);
  }
  if (subtotal != null) {
    $result.subtotal = subtotal;
  }
  return $result;
}