GoogleCloudEventarcV1PipelineRetryPolicy.php 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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\Eventarc;
  18. class GoogleCloudEventarcV1PipelineRetryPolicy extends \Google\Model
  19. {
  20. /**
  21. * Optional. The maximum number of delivery attempts for any message. The
  22. * value must be between 1 and 100. The default value for this field is 5.
  23. *
  24. * @var int
  25. */
  26. public $maxAttempts;
  27. /**
  28. * Optional. The maximum amount of seconds to wait between retry attempts. The
  29. * value must be between 1 and 600. The default value for this field is 60.
  30. *
  31. * @var string
  32. */
  33. public $maxRetryDelay;
  34. /**
  35. * Optional. The minimum amount of seconds to wait between retry attempts. The
  36. * value must be between 1 and 600. The default value for this field is 5.
  37. *
  38. * @var string
  39. */
  40. public $minRetryDelay;
  41. /**
  42. * Optional. The maximum number of delivery attempts for any message. The
  43. * value must be between 1 and 100. The default value for this field is 5.
  44. *
  45. * @param int $maxAttempts
  46. */
  47. public function setMaxAttempts($maxAttempts)
  48. {
  49. $this->maxAttempts = $maxAttempts;
  50. }
  51. /**
  52. * @return int
  53. */
  54. public function getMaxAttempts()
  55. {
  56. return $this->maxAttempts;
  57. }
  58. /**
  59. * Optional. The maximum amount of seconds to wait between retry attempts. The
  60. * value must be between 1 and 600. The default value for this field is 60.
  61. *
  62. * @param string $maxRetryDelay
  63. */
  64. public function setMaxRetryDelay($maxRetryDelay)
  65. {
  66. $this->maxRetryDelay = $maxRetryDelay;
  67. }
  68. /**
  69. * @return string
  70. */
  71. public function getMaxRetryDelay()
  72. {
  73. return $this->maxRetryDelay;
  74. }
  75. /**
  76. * Optional. The minimum amount of seconds to wait between retry attempts. The
  77. * value must be between 1 and 600. The default value for this field is 5.
  78. *
  79. * @param string $minRetryDelay
  80. */
  81. public function setMinRetryDelay($minRetryDelay)
  82. {
  83. $this->minRetryDelay = $minRetryDelay;
  84. }
  85. /**
  86. * @return string
  87. */
  88. public function getMinRetryDelay()
  89. {
  90. return $this->minRetryDelay;
  91. }
  92. }
  93. // Adding a class alias for backwards compatibility with the previous class name.
  94. class_alias(GoogleCloudEventarcV1PipelineRetryPolicy::class, 'Google_Service_Eventarc_GoogleCloudEventarcV1PipelineRetryPolicy');