GoogleCloudSecuritycenterV2NotificationMessage.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <?php
  2. /*
  3. * Copyright 2014 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  6. * use this file except in compliance with the License. You may obtain a copy of
  7. * 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, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. * License for the specific language governing permissions and limitations under
  15. * the License.
  16. */
  17. namespace Google\Service\SecurityCommandCenter;
  18. class GoogleCloudSecuritycenterV2NotificationMessage extends \Google\Model
  19. {
  20. protected $findingType = GoogleCloudSecuritycenterV2Finding::class;
  21. protected $findingDataType = '';
  22. /**
  23. * Name of the notification config that generated current notification.
  24. *
  25. * @var string
  26. */
  27. public $notificationConfigName;
  28. protected $resourceType = GoogleCloudSecuritycenterV2Resource::class;
  29. protected $resourceDataType = '';
  30. /**
  31. * If it's a Finding based notification config, this field will be populated.
  32. *
  33. * @param GoogleCloudSecuritycenterV2Finding $finding
  34. */
  35. public function setFinding(GoogleCloudSecuritycenterV2Finding $finding)
  36. {
  37. $this->finding = $finding;
  38. }
  39. /**
  40. * @return GoogleCloudSecuritycenterV2Finding
  41. */
  42. public function getFinding()
  43. {
  44. return $this->finding;
  45. }
  46. /**
  47. * Name of the notification config that generated current notification.
  48. *
  49. * @param string $notificationConfigName
  50. */
  51. public function setNotificationConfigName($notificationConfigName)
  52. {
  53. $this->notificationConfigName = $notificationConfigName;
  54. }
  55. /**
  56. * @return string
  57. */
  58. public function getNotificationConfigName()
  59. {
  60. return $this->notificationConfigName;
  61. }
  62. /**
  63. * The Cloud resource tied to this notification's Finding.
  64. *
  65. * @param GoogleCloudSecuritycenterV2Resource $resource
  66. */
  67. public function setResource(GoogleCloudSecuritycenterV2Resource $resource)
  68. {
  69. $this->resource = $resource;
  70. }
  71. /**
  72. * @return GoogleCloudSecuritycenterV2Resource
  73. */
  74. public function getResource()
  75. {
  76. return $this->resource;
  77. }
  78. }
  79. // Adding a class alias for backwards compatibility with the previous class name.
  80. class_alias(GoogleCloudSecuritycenterV2NotificationMessage::class, 'Google_Service_SecurityCommandCenter_GoogleCloudSecuritycenterV2NotificationMessage');