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
18namespace Google\Service\Storage;
19
20class BucketLifecycleRuleCondition extends \Google\Collection
21{
22  protected $collection_key = 'matchesStorageClass';
23  /**
24   * @var int
25   */
26  public $age;
27  /**
28   * @var string
29   */
30  public $createdBefore;
31  /**
32   * @var string
33   */
34  public $customTimeBefore;
35  /**
36   * @var int
37   */
38  public $daysSinceCustomTime;
39  /**
40   * @var int
41   */
42  public $daysSinceNoncurrentTime;
43  /**
44   * @var bool
45   */
46  public $isLive;
47  /**
48   * @var string
49   */
50  public $matchesPattern;
51  /**
52   * @var string[]
53   */
54  public $matchesStorageClass;
55  /**
56   * @var string
57   */
58  public $noncurrentTimeBefore;
59  /**
60   * @var int
61   */
62  public $numNewerVersions;
63
64  /**
65   * @param int
66   */
67  public function setAge($age)
68  {
69    $this->age = $age;
70  }
71  /**
72   * @return int
73   */
74  public function getAge()
75  {
76    return $this->age;
77  }
78  /**
79   * @param string
80   */
81  public function setCreatedBefore($createdBefore)
82  {
83    $this->createdBefore = $createdBefore;
84  }
85  /**
86   * @return string
87   */
88  public function getCreatedBefore()
89  {
90    return $this->createdBefore;
91  }
92  /**
93   * @param string
94   */
95  public function setCustomTimeBefore($customTimeBefore)
96  {
97    $this->customTimeBefore = $customTimeBefore;
98  }
99  /**
100   * @return string
101   */
102  public function getCustomTimeBefore()
103  {
104    return $this->customTimeBefore;
105  }
106  /**
107   * @param int
108   */
109  public function setDaysSinceCustomTime($daysSinceCustomTime)
110  {
111    $this->daysSinceCustomTime = $daysSinceCustomTime;
112  }
113  /**
114   * @return int
115   */
116  public function getDaysSinceCustomTime()
117  {
118    return $this->daysSinceCustomTime;
119  }
120  /**
121   * @param int
122   */
123  public function setDaysSinceNoncurrentTime($daysSinceNoncurrentTime)
124  {
125    $this->daysSinceNoncurrentTime = $daysSinceNoncurrentTime;
126  }
127  /**
128   * @return int
129   */
130  public function getDaysSinceNoncurrentTime()
131  {
132    return $this->daysSinceNoncurrentTime;
133  }
134  /**
135   * @param bool
136   */
137  public function setIsLive($isLive)
138  {
139    $this->isLive = $isLive;
140  }
141  /**
142   * @return bool
143   */
144  public function getIsLive()
145  {
146    return $this->isLive;
147  }
148  /**
149   * @param string
150   */
151  public function setMatchesPattern($matchesPattern)
152  {
153    $this->matchesPattern = $matchesPattern;
154  }
155  /**
156   * @return string
157   */
158  public function getMatchesPattern()
159  {
160    return $this->matchesPattern;
161  }
162  /**
163   * @param string[]
164   */
165  public function setMatchesStorageClass($matchesStorageClass)
166  {
167    $this->matchesStorageClass = $matchesStorageClass;
168  }
169  /**
170   * @return string[]
171   */
172  public function getMatchesStorageClass()
173  {
174    return $this->matchesStorageClass;
175  }
176  /**
177   * @param string
178   */
179  public function setNoncurrentTimeBefore($noncurrentTimeBefore)
180  {
181    $this->noncurrentTimeBefore = $noncurrentTimeBefore;
182  }
183  /**
184   * @return string
185   */
186  public function getNoncurrentTimeBefore()
187  {
188    return $this->noncurrentTimeBefore;
189  }
190  /**
191   * @param int
192   */
193  public function setNumNewerVersions($numNewerVersions)
194  {
195    $this->numNewerVersions = $numNewerVersions;
196  }
197  /**
198   * @return int
199   */
200  public function getNumNewerVersions()
201  {
202    return $this->numNewerVersions;
203  }
204}
205
206// Adding a class alias for backwards compatibility with the previous class name.
207class_alias(BucketLifecycleRuleCondition::class, 'Google_Service_Storage_BucketLifecycleRuleCondition');
208