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\SQLAdmin; 19 20class BackupConfiguration extends \Google\Model 21{ 22 protected $backupRetentionSettingsType = BackupRetentionSettings::class; 23 protected $backupRetentionSettingsDataType = ''; 24 /** 25 * @var bool 26 */ 27 public $binaryLogEnabled; 28 /** 29 * @var bool 30 */ 31 public $enabled; 32 /** 33 * @var string 34 */ 35 public $kind; 36 /** 37 * @var string 38 */ 39 public $location; 40 /** 41 * @var bool 42 */ 43 public $pointInTimeRecoveryEnabled; 44 /** 45 * @var bool 46 */ 47 public $replicationLogArchivingEnabled; 48 /** 49 * @var string 50 */ 51 public $startTime; 52 /** 53 * @var int 54 */ 55 public $transactionLogRetentionDays; 56 57 /** 58 * @param BackupRetentionSettings 59 */ 60 public function setBackupRetentionSettings(BackupRetentionSettings $backupRetentionSettings) 61 { 62 $this->backupRetentionSettings = $backupRetentionSettings; 63 } 64 /** 65 * @return BackupRetentionSettings 66 */ 67 public function getBackupRetentionSettings() 68 { 69 return $this->backupRetentionSettings; 70 } 71 /** 72 * @param bool 73 */ 74 public function setBinaryLogEnabled($binaryLogEnabled) 75 { 76 $this->binaryLogEnabled = $binaryLogEnabled; 77 } 78 /** 79 * @return bool 80 */ 81 public function getBinaryLogEnabled() 82 { 83 return $this->binaryLogEnabled; 84 } 85 /** 86 * @param bool 87 */ 88 public function setEnabled($enabled) 89 { 90 $this->enabled = $enabled; 91 } 92 /** 93 * @return bool 94 */ 95 public function getEnabled() 96 { 97 return $this->enabled; 98 } 99 /** 100 * @param string 101 */ 102 public function setKind($kind) 103 { 104 $this->kind = $kind; 105 } 106 /** 107 * @return string 108 */ 109 public function getKind() 110 { 111 return $this->kind; 112 } 113 /** 114 * @param string 115 */ 116 public function setLocation($location) 117 { 118 $this->location = $location; 119 } 120 /** 121 * @return string 122 */ 123 public function getLocation() 124 { 125 return $this->location; 126 } 127 /** 128 * @param bool 129 */ 130 public function setPointInTimeRecoveryEnabled($pointInTimeRecoveryEnabled) 131 { 132 $this->pointInTimeRecoveryEnabled = $pointInTimeRecoveryEnabled; 133 } 134 /** 135 * @return bool 136 */ 137 public function getPointInTimeRecoveryEnabled() 138 { 139 return $this->pointInTimeRecoveryEnabled; 140 } 141 /** 142 * @param bool 143 */ 144 public function setReplicationLogArchivingEnabled($replicationLogArchivingEnabled) 145 { 146 $this->replicationLogArchivingEnabled = $replicationLogArchivingEnabled; 147 } 148 /** 149 * @return bool 150 */ 151 public function getReplicationLogArchivingEnabled() 152 { 153 return $this->replicationLogArchivingEnabled; 154 } 155 /** 156 * @param string 157 */ 158 public function setStartTime($startTime) 159 { 160 $this->startTime = $startTime; 161 } 162 /** 163 * @return string 164 */ 165 public function getStartTime() 166 { 167 return $this->startTime; 168 } 169 /** 170 * @param int 171 */ 172 public function setTransactionLogRetentionDays($transactionLogRetentionDays) 173 { 174 $this->transactionLogRetentionDays = $transactionLogRetentionDays; 175 } 176 /** 177 * @return int 178 */ 179 public function getTransactionLogRetentionDays() 180 { 181 return $this->transactionLogRetentionDays; 182 } 183} 184 185// Adding a class alias for backwards compatibility with the previous class name. 186class_alias(BackupConfiguration::class, 'Google_Service_SQLAdmin_BackupConfiguration'); 187