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\Compute;
19
20class HttpRouteRule extends \Google\Collection
21{
22  protected $collection_key = 'matchRules';
23  /**
24   * @var string
25   */
26  public $description;
27  protected $headerActionType = HttpHeaderAction::class;
28  protected $headerActionDataType = '';
29  protected $matchRulesType = HttpRouteRuleMatch::class;
30  protected $matchRulesDataType = 'array';
31  /**
32   * @var int
33   */
34  public $priority;
35  protected $routeActionType = HttpRouteAction::class;
36  protected $routeActionDataType = '';
37  /**
38   * @var string
39   */
40  public $service;
41  protected $urlRedirectType = HttpRedirectAction::class;
42  protected $urlRedirectDataType = '';
43
44  /**
45   * @param string
46   */
47  public function setDescription($description)
48  {
49    $this->description = $description;
50  }
51  /**
52   * @return string
53   */
54  public function getDescription()
55  {
56    return $this->description;
57  }
58  /**
59   * @param HttpHeaderAction
60   */
61  public function setHeaderAction(HttpHeaderAction $headerAction)
62  {
63    $this->headerAction = $headerAction;
64  }
65  /**
66   * @return HttpHeaderAction
67   */
68  public function getHeaderAction()
69  {
70    return $this->headerAction;
71  }
72  /**
73   * @param HttpRouteRuleMatch[]
74   */
75  public function setMatchRules($matchRules)
76  {
77    $this->matchRules = $matchRules;
78  }
79  /**
80   * @return HttpRouteRuleMatch[]
81   */
82  public function getMatchRules()
83  {
84    return $this->matchRules;
85  }
86  /**
87   * @param int
88   */
89  public function setPriority($priority)
90  {
91    $this->priority = $priority;
92  }
93  /**
94   * @return int
95   */
96  public function getPriority()
97  {
98    return $this->priority;
99  }
100  /**
101   * @param HttpRouteAction
102   */
103  public function setRouteAction(HttpRouteAction $routeAction)
104  {
105    $this->routeAction = $routeAction;
106  }
107  /**
108   * @return HttpRouteAction
109   */
110  public function getRouteAction()
111  {
112    return $this->routeAction;
113  }
114  /**
115   * @param string
116   */
117  public function setService($service)
118  {
119    $this->service = $service;
120  }
121  /**
122   * @return string
123   */
124  public function getService()
125  {
126    return $this->service;
127  }
128  /**
129   * @param HttpRedirectAction
130   */
131  public function setUrlRedirect(HttpRedirectAction $urlRedirect)
132  {
133    $this->urlRedirect = $urlRedirect;
134  }
135  /**
136   * @return HttpRedirectAction
137   */
138  public function getUrlRedirect()
139  {
140    return $this->urlRedirect;
141  }
142}
143
144// Adding a class alias for backwards compatibility with the previous class name.
145class_alias(HttpRouteRule::class, 'Google_Service_Compute_HttpRouteRule');
146