# media-cloud-sync/1.4.2/includes/sdk/s3/Aws/Api/SupportedProtocols.php

Media Cloud Sync, version 1.4.2. 26 lines.

- Page: https://pluginprobe.com/plugins/media-cloud-sync/1.4.2/code/includes/sdk/s3/Aws/Api/SupportedProtocols.php
- Raw: https://pluginprobe.com/plugins/media-cloud-sync/1.4.2/raw/includes/sdk/s3/Aws/Api/SupportedProtocols.php
- Modified: 2026-05-10T10:14:36+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/media-cloud-sync/1.4.2/code/includes/sdk/s3/Aws/Api/SupportedProtocols.php#L10-L20`.

```php
<?php

namespace Dudlewebs\WPMCS\s3\Aws\Api;

/**
 * Priority ordered collection of supported AWS protocols.
 */
enum SupportedProtocols : string
{
    case JSON = 'json';
    case REST_JSON = 'rest-json';
    case REST_XML = 'rest-xml';
    case QUERY = 'query';
    case EC2 = 'ec2';
    /**
     * Check if a protocol is valid.
     *
     * @param string $protocol
     * @return bool True if the protocol is supported, otherwise false.
     */
    public static function isSupported(string $protocol) : bool
    {
        return self::tryFrom($protocol) !== null;
    }
}

```
