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\Cloudchannel;
19
20class GoogleCloudChannelV1Offer extends \Google\Collection
21{
22  protected $collection_key = 'priceByResources';
23  protected $constraintsType = GoogleCloudChannelV1Constraints::class;
24  protected $constraintsDataType = '';
25  /**
26   * @var string
27   */
28  public $endTime;
29  protected $marketingInfoType = GoogleCloudChannelV1MarketingInfo::class;
30  protected $marketingInfoDataType = '';
31  /**
32   * @var string
33   */
34  public $name;
35  protected $parameterDefinitionsType = GoogleCloudChannelV1ParameterDefinition::class;
36  protected $parameterDefinitionsDataType = 'array';
37  protected $planType = GoogleCloudChannelV1Plan::class;
38  protected $planDataType = '';
39  protected $priceByResourcesType = GoogleCloudChannelV1PriceByResource::class;
40  protected $priceByResourcesDataType = 'array';
41  protected $skuType = GoogleCloudChannelV1Sku::class;
42  protected $skuDataType = '';
43  /**
44   * @var string
45   */
46  public $startTime;
47
48  /**
49   * @param GoogleCloudChannelV1Constraints
50   */
51  public function setConstraints(GoogleCloudChannelV1Constraints $constraints)
52  {
53    $this->constraints = $constraints;
54  }
55  /**
56   * @return GoogleCloudChannelV1Constraints
57   */
58  public function getConstraints()
59  {
60    return $this->constraints;
61  }
62  /**
63   * @param string
64   */
65  public function setEndTime($endTime)
66  {
67    $this->endTime = $endTime;
68  }
69  /**
70   * @return string
71   */
72  public function getEndTime()
73  {
74    return $this->endTime;
75  }
76  /**
77   * @param GoogleCloudChannelV1MarketingInfo
78   */
79  public function setMarketingInfo(GoogleCloudChannelV1MarketingInfo $marketingInfo)
80  {
81    $this->marketingInfo = $marketingInfo;
82  }
83  /**
84   * @return GoogleCloudChannelV1MarketingInfo
85   */
86  public function getMarketingInfo()
87  {
88    return $this->marketingInfo;
89  }
90  /**
91   * @param string
92   */
93  public function setName($name)
94  {
95    $this->name = $name;
96  }
97  /**
98   * @return string
99   */
100  public function getName()
101  {
102    return $this->name;
103  }
104  /**
105   * @param GoogleCloudChannelV1ParameterDefinition[]
106   */
107  public function setParameterDefinitions($parameterDefinitions)
108  {
109    $this->parameterDefinitions = $parameterDefinitions;
110  }
111  /**
112   * @return GoogleCloudChannelV1ParameterDefinition[]
113   */
114  public function getParameterDefinitions()
115  {
116    return $this->parameterDefinitions;
117  }
118  /**
119   * @param GoogleCloudChannelV1Plan
120   */
121  public function setPlan(GoogleCloudChannelV1Plan $plan)
122  {
123    $this->plan = $plan;
124  }
125  /**
126   * @return GoogleCloudChannelV1Plan
127   */
128  public function getPlan()
129  {
130    return $this->plan;
131  }
132  /**
133   * @param GoogleCloudChannelV1PriceByResource[]
134   */
135  public function setPriceByResources($priceByResources)
136  {
137    $this->priceByResources = $priceByResources;
138  }
139  /**
140   * @return GoogleCloudChannelV1PriceByResource[]
141   */
142  public function getPriceByResources()
143  {
144    return $this->priceByResources;
145  }
146  /**
147   * @param GoogleCloudChannelV1Sku
148   */
149  public function setSku(GoogleCloudChannelV1Sku $sku)
150  {
151    $this->sku = $sku;
152  }
153  /**
154   * @return GoogleCloudChannelV1Sku
155   */
156  public function getSku()
157  {
158    return $this->sku;
159  }
160  /**
161   * @param string
162   */
163  public function setStartTime($startTime)
164  {
165    $this->startTime = $startTime;
166  }
167  /**
168   * @return string
169   */
170  public function getStartTime()
171  {
172    return $this->startTime;
173  }
174}
175
176// Adding a class alias for backwards compatibility with the previous class name.
177class_alias(GoogleCloudChannelV1Offer::class, 'Google_Service_Cloudchannel_GoogleCloudChannelV1Offer');
178