SetUPhoneSplashScreenRequest.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <?php
  2. /**
  3. * Copyright 2022 UCloud Technology Co., Ltd.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License");
  6. * you may not use this file except in compliance with the License.
  7. * You may obtain a copy of the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. */
  17. namespace UCloud\UPhone\Apis;
  18. use UCloud\Core\Request\Request;
  19. class SetUPhoneSplashScreenRequest extends Request
  20. {
  21. public function __construct()
  22. {
  23. parent::__construct(["Action" => "SetUPhoneSplashScreen"]);
  24. $this->markRequired("URL");
  25. $this->markRequired("UPhoneId");
  26. $this->markRequired("CityId");
  27. }
  28. /**
  29. * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
  30. *
  31. * @return string|null
  32. */
  33. public function getProjectId()
  34. {
  35. return $this->get("ProjectId");
  36. }
  37. /**
  38. * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
  39. *
  40. * @param string $projectId
  41. */
  42. public function setProjectId($projectId)
  43. {
  44. $this->set("ProjectId", $projectId);
  45. }
  46. /**
  47. * URL: 启动画面下载地址
  48. *
  49. * @return string|null
  50. */
  51. public function getURL()
  52. {
  53. return $this->get("URL");
  54. }
  55. /**
  56. * URL: 启动画面下载地址
  57. *
  58. * @param string $url
  59. */
  60. public function setURL($url)
  61. {
  62. $this->set("URL", $url);
  63. }
  64. /**
  65. * UPhoneId: 云手机ID
  66. *
  67. * @return string|null
  68. */
  69. public function getUPhoneId()
  70. {
  71. return $this->get("UPhoneId");
  72. }
  73. /**
  74. * UPhoneId: 云手机ID
  75. *
  76. * @param string $uPhoneId
  77. */
  78. public function setUPhoneId($uPhoneId)
  79. {
  80. $this->set("UPhoneId", $uPhoneId);
  81. }
  82. /**
  83. * CityId: 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
  84. *
  85. * @return string|null
  86. */
  87. public function getCityId()
  88. {
  89. return $this->get("CityId");
  90. }
  91. /**
  92. * CityId: 城市Id,通过[获取城市列表](#DescribeUPhoneCities)获取
  93. *
  94. * @param string $cityId
  95. */
  96. public function setCityId($cityId)
  97. {
  98. $this->set("CityId", $cityId);
  99. }
  100. /**
  101. * ProductType: 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
  102. *
  103. * @return string|null
  104. */
  105. public function getProductType()
  106. {
  107. return $this->get("ProductType");
  108. }
  109. /**
  110. * ProductType: 枚举值。当前操作的产品类型,1、uphone:云手机场景;2、uphone-server:云手机服务器场景。默认云手机服务器场景。
  111. *
  112. * @param string $productType
  113. */
  114. public function setProductType($productType)
  115. {
  116. $this->set("ProductType", $productType);
  117. }
  118. }