-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update generated code * Update src/Service/Ses/CHANGELOG.md Co-authored-by: Tobias Nyholm <[email protected]>
- Loading branch information
1 parent
3c28616
commit 03c457e
Showing
4 changed files
with
94 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<?php | ||
|
||
namespace AsyncAws\Ses\ValueObject; | ||
|
||
use AsyncAws\Core\Exception\InvalidArgument; | ||
|
||
final class ListManagementOptions | ||
{ | ||
/** | ||
* The name of the contact list. | ||
*/ | ||
private $ContactListName; | ||
|
||
/** | ||
* The name of the topic. | ||
*/ | ||
private $TopicName; | ||
|
||
/** | ||
* @param array{ | ||
* ContactListName: string, | ||
* TopicName?: null|string, | ||
* } $input | ||
*/ | ||
public function __construct(array $input) | ||
{ | ||
$this->ContactListName = $input['ContactListName'] ?? null; | ||
$this->TopicName = $input['TopicName'] ?? null; | ||
} | ||
|
||
public static function create($input): self | ||
{ | ||
return $input instanceof self ? $input : new self($input); | ||
} | ||
|
||
public function getContactListName(): string | ||
{ | ||
return $this->ContactListName; | ||
} | ||
|
||
public function getTopicName(): ?string | ||
{ | ||
return $this->TopicName; | ||
} | ||
|
||
/** | ||
* @internal | ||
*/ | ||
public function requestBody(): array | ||
{ | ||
$payload = []; | ||
if (null === $v = $this->ContactListName) { | ||
throw new InvalidArgument(sprintf('Missing parameter "ContactListName" for "%s". The value cannot be null.', __CLASS__)); | ||
} | ||
$payload['ContactListName'] = $v; | ||
if (null !== $v = $this->TopicName) { | ||
$payload['TopicName'] = $v; | ||
} | ||
|
||
return $payload; | ||
} | ||
} |