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\DatabaseMigrationService;
19
20class ConnectionProfile extends \Google\Model
21{
22  protected $cloudsqlType = CloudSqlConnectionProfile::class;
23  protected $cloudsqlDataType = '';
24  /**
25   * @var string
26   */
27  public $createTime;
28  /**
29   * @var string
30   */
31  public $displayName;
32  protected $errorType = Status::class;
33  protected $errorDataType = '';
34  /**
35   * @var string[]
36   */
37  public $labels;
38  protected $mysqlType = MySqlConnectionProfile::class;
39  protected $mysqlDataType = '';
40  /**
41   * @var string
42   */
43  public $name;
44  protected $postgresqlType = PostgreSqlConnectionProfile::class;
45  protected $postgresqlDataType = '';
46  /**
47   * @var string
48   */
49  public $provider;
50  /**
51   * @var string
52   */
53  public $state;
54  /**
55   * @var string
56   */
57  public $updateTime;
58
59  /**
60   * @param CloudSqlConnectionProfile
61   */
62  public function setCloudsql(CloudSqlConnectionProfile $cloudsql)
63  {
64    $this->cloudsql = $cloudsql;
65  }
66  /**
67   * @return CloudSqlConnectionProfile
68   */
69  public function getCloudsql()
70  {
71    return $this->cloudsql;
72  }
73  /**
74   * @param string
75   */
76  public function setCreateTime($createTime)
77  {
78    $this->createTime = $createTime;
79  }
80  /**
81   * @return string
82   */
83  public function getCreateTime()
84  {
85    return $this->createTime;
86  }
87  /**
88   * @param string
89   */
90  public function setDisplayName($displayName)
91  {
92    $this->displayName = $displayName;
93  }
94  /**
95   * @return string
96   */
97  public function getDisplayName()
98  {
99    return $this->displayName;
100  }
101  /**
102   * @param Status
103   */
104  public function setError(Status $error)
105  {
106    $this->error = $error;
107  }
108  /**
109   * @return Status
110   */
111  public function getError()
112  {
113    return $this->error;
114  }
115  /**
116   * @param string[]
117   */
118  public function setLabels($labels)
119  {
120    $this->labels = $labels;
121  }
122  /**
123   * @return string[]
124   */
125  public function getLabels()
126  {
127    return $this->labels;
128  }
129  /**
130   * @param MySqlConnectionProfile
131   */
132  public function setMysql(MySqlConnectionProfile $mysql)
133  {
134    $this->mysql = $mysql;
135  }
136  /**
137   * @return MySqlConnectionProfile
138   */
139  public function getMysql()
140  {
141    return $this->mysql;
142  }
143  /**
144   * @param string
145   */
146  public function setName($name)
147  {
148    $this->name = $name;
149  }
150  /**
151   * @return string
152   */
153  public function getName()
154  {
155    return $this->name;
156  }
157  /**
158   * @param PostgreSqlConnectionProfile
159   */
160  public function setPostgresql(PostgreSqlConnectionProfile $postgresql)
161  {
162    $this->postgresql = $postgresql;
163  }
164  /**
165   * @return PostgreSqlConnectionProfile
166   */
167  public function getPostgresql()
168  {
169    return $this->postgresql;
170  }
171  /**
172   * @param string
173   */
174  public function setProvider($provider)
175  {
176    $this->provider = $provider;
177  }
178  /**
179   * @return string
180   */
181  public function getProvider()
182  {
183    return $this->provider;
184  }
185  /**
186   * @param string
187   */
188  public function setState($state)
189  {
190    $this->state = $state;
191  }
192  /**
193   * @return string
194   */
195  public function getState()
196  {
197    return $this->state;
198  }
199  /**
200   * @param string
201   */
202  public function setUpdateTime($updateTime)
203  {
204    $this->updateTime = $updateTime;
205  }
206  /**
207   * @return string
208   */
209  public function getUpdateTime()
210  {
211    return $this->updateTime;
212  }
213}
214
215// Adding a class alias for backwards compatibility with the previous class name.
216class_alias(ConnectionProfile::class, 'Google_Service_DatabaseMigrationService_ConnectionProfile');
217