api.AwsSnsIntegration
*/
class AwsSnsIntegration extends \Google\Protobuf\Internal\Message
{
/**
* Application ID (UUID).
*
* Generated from protobuf field string application_id = 1;
*/
protected $application_id = '';
/**
* Encoding.
*
* Generated from protobuf field .api.Encoding encoding = 2;
*/
protected $encoding = 0;
/**
* AWS region.
*
* Generated from protobuf field string region = 3;
*/
protected $region = '';
/**
* AWS Access Key ID.
*
* Generated from protobuf field string access_key_id = 4;
*/
protected $access_key_id = '';
/**
* AWS Secret Access Key.
*
* Generated from protobuf field string secret_access_key = 5;
*/
protected $secret_access_key = '';
/**
* Topic ARN.
*
* Generated from protobuf field string topic_arn = 6;
*/
protected $topic_arn = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $application_id
* Application ID (UUID).
* @type int $encoding
* Encoding.
* @type string $region
* AWS region.
* @type string $access_key_id
* AWS Access Key ID.
* @type string $secret_access_key
* AWS Secret Access Key.
* @type string $topic_arn
* Topic ARN.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Application::initOnce();
parent::__construct($data);
}
/**
* Application ID (UUID).
*
* Generated from protobuf field string application_id = 1;
* @return string
*/
public function getApplicationId()
{
return $this->application_id;
}
/**
* Application ID (UUID).
*
* Generated from protobuf field string application_id = 1;
* @param string $var
* @return $this
*/
public function setApplicationId($var)
{
GPBUtil::checkString($var, True);
$this->application_id = $var;
return $this;
}
/**
* Encoding.
*
* Generated from protobuf field .api.Encoding encoding = 2;
* @return int
*/
public function getEncoding()
{
return $this->encoding;
}
/**
* Encoding.
*
* Generated from protobuf field .api.Encoding encoding = 2;
* @param int $var
* @return $this
*/
public function setEncoding($var)
{
GPBUtil::checkEnum($var, \Chirpstack\Api\Encoding::class);
$this->encoding = $var;
return $this;
}
/**
* AWS region.
*
* Generated from protobuf field string region = 3;
* @return string
*/
public function getRegion()
{
return $this->region;
}
/**
* AWS region.
*
* Generated from protobuf field string region = 3;
* @param string $var
* @return $this
*/
public function setRegion($var)
{
GPBUtil::checkString($var, True);
$this->region = $var;
return $this;
}
/**
* AWS Access Key ID.
*
* Generated from protobuf field string access_key_id = 4;
* @return string
*/
public function getAccessKeyId()
{
return $this->access_key_id;
}
/**
* AWS Access Key ID.
*
* Generated from protobuf field string access_key_id = 4;
* @param string $var
* @return $this
*/
public function setAccessKeyId($var)
{
GPBUtil::checkString($var, True);
$this->access_key_id = $var;
return $this;
}
/**
* AWS Secret Access Key.
*
* Generated from protobuf field string secret_access_key = 5;
* @return string
*/
public function getSecretAccessKey()
{
return $this->secret_access_key;
}
/**
* AWS Secret Access Key.
*
* Generated from protobuf field string secret_access_key = 5;
* @param string $var
* @return $this
*/
public function setSecretAccessKey($var)
{
GPBUtil::checkString($var, True);
$this->secret_access_key = $var;
return $this;
}
/**
* Topic ARN.
*
* Generated from protobuf field string topic_arn = 6;
* @return string
*/
public function getTopicArn()
{
return $this->topic_arn;
}
/**
* Topic ARN.
*
* Generated from protobuf field string topic_arn = 6;
* @param string $var
* @return $this
*/
public function setTopicArn($var)
{
GPBUtil::checkString($var, True);
$this->topic_arn = $var;
return $this;
}
}