commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
AWSLambdaDestinationBuilder.php
1<?php
2
3declare(strict_types=1);
10
16use stdClass;
17
22{
27 private $arn;
28
33 private $accessKey;
34
39 private $accessSecret;
40
47 public function getArn()
48 {
49 return $this->arn;
50 }
51
58 public function getAccessKey()
59 {
60 return $this->accessKey;
61 }
62
69 public function getAccessSecret()
70 {
71 return $this->accessSecret;
72 }
73
78 public function withArn(?string $arn)
79 {
80 $this->arn = $arn;
81
82 return $this;
83 }
84
89 public function withAccessKey(?string $accessKey)
90 {
91 $this->accessKey = $accessKey;
92
93 return $this;
94 }
95
100 public function withAccessSecret(?string $accessSecret)
101 {
102 $this->accessSecret = $accessSecret;
103
104 return $this;
105 }
106
107
108 public function build(): AWSLambdaDestination
109 {
110 return new AWSLambdaDestinationModel(
111 $this->arn,
112 $this->accessKey,
113 $this->accessSecret
114 );
115 }
116
117 public static function of(): AWSLambdaDestinationBuilder
118 {
119 return new self();
120 }
121}