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\Storagetransfer; 19 20class TransferSpec extends \Google\Model 21{ 22 protected $awsS3DataSourceType = AwsS3Data::class; 23 protected $awsS3DataSourceDataType = ''; 24 protected $azureBlobStorageDataSourceType = AzureBlobStorageData::class; 25 protected $azureBlobStorageDataSourceDataType = ''; 26 protected $gcsDataSinkType = GcsData::class; 27 protected $gcsDataSinkDataType = ''; 28 protected $gcsDataSourceType = GcsData::class; 29 protected $gcsDataSourceDataType = ''; 30 protected $gcsIntermediateDataLocationType = GcsData::class; 31 protected $gcsIntermediateDataLocationDataType = ''; 32 protected $httpDataSourceType = HttpData::class; 33 protected $httpDataSourceDataType = ''; 34 protected $objectConditionsType = ObjectConditions::class; 35 protected $objectConditionsDataType = ''; 36 protected $posixDataSinkType = PosixFilesystem::class; 37 protected $posixDataSinkDataType = ''; 38 protected $posixDataSourceType = PosixFilesystem::class; 39 protected $posixDataSourceDataType = ''; 40 /** 41 * @var string 42 */ 43 public $sinkAgentPoolName; 44 /** 45 * @var string 46 */ 47 public $sourceAgentPoolName; 48 protected $transferManifestType = TransferManifest::class; 49 protected $transferManifestDataType = ''; 50 protected $transferOptionsType = TransferOptions::class; 51 protected $transferOptionsDataType = ''; 52 53 /** 54 * @param AwsS3Data 55 */ 56 public function setAwsS3DataSource(AwsS3Data $awsS3DataSource) 57 { 58 $this->awsS3DataSource = $awsS3DataSource; 59 } 60 /** 61 * @return AwsS3Data 62 */ 63 public function getAwsS3DataSource() 64 { 65 return $this->awsS3DataSource; 66 } 67 /** 68 * @param AzureBlobStorageData 69 */ 70 public function setAzureBlobStorageDataSource(AzureBlobStorageData $azureBlobStorageDataSource) 71 { 72 $this->azureBlobStorageDataSource = $azureBlobStorageDataSource; 73 } 74 /** 75 * @return AzureBlobStorageData 76 */ 77 public function getAzureBlobStorageDataSource() 78 { 79 return $this->azureBlobStorageDataSource; 80 } 81 /** 82 * @param GcsData 83 */ 84 public function setGcsDataSink(GcsData $gcsDataSink) 85 { 86 $this->gcsDataSink = $gcsDataSink; 87 } 88 /** 89 * @return GcsData 90 */ 91 public function getGcsDataSink() 92 { 93 return $this->gcsDataSink; 94 } 95 /** 96 * @param GcsData 97 */ 98 public function setGcsDataSource(GcsData $gcsDataSource) 99 { 100 $this->gcsDataSource = $gcsDataSource; 101 } 102 /** 103 * @return GcsData 104 */ 105 public function getGcsDataSource() 106 { 107 return $this->gcsDataSource; 108 } 109 /** 110 * @param GcsData 111 */ 112 public function setGcsIntermediateDataLocation(GcsData $gcsIntermediateDataLocation) 113 { 114 $this->gcsIntermediateDataLocation = $gcsIntermediateDataLocation; 115 } 116 /** 117 * @return GcsData 118 */ 119 public function getGcsIntermediateDataLocation() 120 { 121 return $this->gcsIntermediateDataLocation; 122 } 123 /** 124 * @param HttpData 125 */ 126 public function setHttpDataSource(HttpData $httpDataSource) 127 { 128 $this->httpDataSource = $httpDataSource; 129 } 130 /** 131 * @return HttpData 132 */ 133 public function getHttpDataSource() 134 { 135 return $this->httpDataSource; 136 } 137 /** 138 * @param ObjectConditions 139 */ 140 public function setObjectConditions(ObjectConditions $objectConditions) 141 { 142 $this->objectConditions = $objectConditions; 143 } 144 /** 145 * @return ObjectConditions 146 */ 147 public function getObjectConditions() 148 { 149 return $this->objectConditions; 150 } 151 /** 152 * @param PosixFilesystem 153 */ 154 public function setPosixDataSink(PosixFilesystem $posixDataSink) 155 { 156 $this->posixDataSink = $posixDataSink; 157 } 158 /** 159 * @return PosixFilesystem 160 */ 161 public function getPosixDataSink() 162 { 163 return $this->posixDataSink; 164 } 165 /** 166 * @param PosixFilesystem 167 */ 168 public function setPosixDataSource(PosixFilesystem $posixDataSource) 169 { 170 $this->posixDataSource = $posixDataSource; 171 } 172 /** 173 * @return PosixFilesystem 174 */ 175 public function getPosixDataSource() 176 { 177 return $this->posixDataSource; 178 } 179 /** 180 * @param string 181 */ 182 public function setSinkAgentPoolName($sinkAgentPoolName) 183 { 184 $this->sinkAgentPoolName = $sinkAgentPoolName; 185 } 186 /** 187 * @return string 188 */ 189 public function getSinkAgentPoolName() 190 { 191 return $this->sinkAgentPoolName; 192 } 193 /** 194 * @param string 195 */ 196 public function setSourceAgentPoolName($sourceAgentPoolName) 197 { 198 $this->sourceAgentPoolName = $sourceAgentPoolName; 199 } 200 /** 201 * @return string 202 */ 203 public function getSourceAgentPoolName() 204 { 205 return $this->sourceAgentPoolName; 206 } 207 /** 208 * @param TransferManifest 209 */ 210 public function setTransferManifest(TransferManifest $transferManifest) 211 { 212 $this->transferManifest = $transferManifest; 213 } 214 /** 215 * @return TransferManifest 216 */ 217 public function getTransferManifest() 218 { 219 return $this->transferManifest; 220 } 221 /** 222 * @param TransferOptions 223 */ 224 public function setTransferOptions(TransferOptions $transferOptions) 225 { 226 $this->transferOptions = $transferOptions; 227 } 228 /** 229 * @return TransferOptions 230 */ 231 public function getTransferOptions() 232 { 233 return $this->transferOptions; 234 } 235} 236 237// Adding a class alias for backwards compatibility with the previous class name. 238class_alias(TransferSpec::class, 'Google_Service_Storagetransfer_TransferSpec'); 239