136 lines
3.3 KiB
PHP
136 lines
3.3 KiB
PHP
|
|
<?php
|
||
|
|
/*
|
||
|
|
* Copyright 2014 Google Inc.
|
||
|
|
*
|
||
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||
|
|
* use this file except in compliance with the License. You may obtain a copy of
|
||
|
|
* the License at
|
||
|
|
*
|
||
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||
|
|
*
|
||
|
|
* Unless required by applicable law or agreed to in writing, software
|
||
|
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||
|
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||
|
|
* License for the specific language governing permissions and limitations under
|
||
|
|
* the License.
|
||
|
|
*/
|
||
|
|
|
||
|
|
namespace Google\Service\Pubsub;
|
||
|
|
|
||
|
|
class IngestionDataSourceSettings extends \Google\Model
|
||
|
|
{
|
||
|
|
protected $awsKinesisType = AwsKinesis::class;
|
||
|
|
protected $awsKinesisDataType = '';
|
||
|
|
protected $awsMskType = AwsMsk::class;
|
||
|
|
protected $awsMskDataType = '';
|
||
|
|
protected $azureEventHubsType = AzureEventHubs::class;
|
||
|
|
protected $azureEventHubsDataType = '';
|
||
|
|
protected $cloudStorageType = CloudStorage::class;
|
||
|
|
protected $cloudStorageDataType = '';
|
||
|
|
protected $confluentCloudType = ConfluentCloud::class;
|
||
|
|
protected $confluentCloudDataType = '';
|
||
|
|
protected $platformLogsSettingsType = PlatformLogsSettings::class;
|
||
|
|
protected $platformLogsSettingsDataType = '';
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Optional. Amazon Kinesis Data Streams.
|
||
|
|
*
|
||
|
|
* @param AwsKinesis $awsKinesis
|
||
|
|
*/
|
||
|
|
public function setAwsKinesis(AwsKinesis $awsKinesis)
|
||
|
|
{
|
||
|
|
$this->awsKinesis = $awsKinesis;
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* @return AwsKinesis
|
||
|
|
*/
|
||
|
|
public function getAwsKinesis()
|
||
|
|
{
|
||
|
|
return $this->awsKinesis;
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* Optional. Amazon MSK.
|
||
|
|
*
|
||
|
|
* @param AwsMsk $awsMsk
|
||
|
|
*/
|
||
|
|
public function setAwsMsk(AwsMsk $awsMsk)
|
||
|
|
{
|
||
|
|
$this->awsMsk = $awsMsk;
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* @return AwsMsk
|
||
|
|
*/
|
||
|
|
public function getAwsMsk()
|
||
|
|
{
|
||
|
|
return $this->awsMsk;
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* Optional. Azure Event Hubs.
|
||
|
|
*
|
||
|
|
* @param AzureEventHubs $azureEventHubs
|
||
|
|
*/
|
||
|
|
public function setAzureEventHubs(AzureEventHubs $azureEventHubs)
|
||
|
|
{
|
||
|
|
$this->azureEventHubs = $azureEventHubs;
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* @return AzureEventHubs
|
||
|
|
*/
|
||
|
|
public function getAzureEventHubs()
|
||
|
|
{
|
||
|
|
return $this->azureEventHubs;
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* Optional. Cloud Storage.
|
||
|
|
*
|
||
|
|
* @param CloudStorage $cloudStorage
|
||
|
|
*/
|
||
|
|
public function setCloudStorage(CloudStorage $cloudStorage)
|
||
|
|
{
|
||
|
|
$this->cloudStorage = $cloudStorage;
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* @return CloudStorage
|
||
|
|
*/
|
||
|
|
public function getCloudStorage()
|
||
|
|
{
|
||
|
|
return $this->cloudStorage;
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* Optional. Confluent Cloud.
|
||
|
|
*
|
||
|
|
* @param ConfluentCloud $confluentCloud
|
||
|
|
*/
|
||
|
|
public function setConfluentCloud(ConfluentCloud $confluentCloud)
|
||
|
|
{
|
||
|
|
$this->confluentCloud = $confluentCloud;
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* @return ConfluentCloud
|
||
|
|
*/
|
||
|
|
public function getConfluentCloud()
|
||
|
|
{
|
||
|
|
return $this->confluentCloud;
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* Optional. Platform Logs settings. If unset, no Platform Logs will be
|
||
|
|
* generated.
|
||
|
|
*
|
||
|
|
* @param PlatformLogsSettings $platformLogsSettings
|
||
|
|
*/
|
||
|
|
public function setPlatformLogsSettings(PlatformLogsSettings $platformLogsSettings)
|
||
|
|
{
|
||
|
|
$this->platformLogsSettings = $platformLogsSettings;
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* @return PlatformLogsSettings
|
||
|
|
*/
|
||
|
|
public function getPlatformLogsSettings()
|
||
|
|
{
|
||
|
|
return $this->platformLogsSettings;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Adding a class alias for backwards compatibility with the previous class name.
|
||
|
|
class_alias(IngestionDataSourceSettings::class, 'Google_Service_Pubsub_IngestionDataSourceSettings');
|