# Interface Notification (0.211.0-beta)

0.211.0-beta (latest) 0.209.0-beta 0.206.0-beta 0.205.0-beta 0.203.0-beta 0.201.0-beta 0.200.0-beta 0.198.0-beta 0.196.0-beta 0.194.0-beta 0.193.0-beta 0.192.0-beta 0.191.0-beta 0.190.0-beta 0.188.0-beta 0.186.0-beta 0.185.0-beta 0.182.0-beta 0.181.0-beta 0.180.0-beta 0.178.0-beta 0.177.0-beta 0.176.0-beta 0.175.0-beta 0.174.0-beta 0.173.0-beta 0.172.0-beta 0.171.0-beta 0.170.0-beta 0.169.0-beta 0.167.0-beta 0.166.0-beta 0.165.0-beta 0.164.0-beta 0.163.0-beta 0.162.0-beta 0.161.0-beta 0.160.0-beta 0.159.0-beta 0.158.0-beta 0.157.0-beta 0.155.0-beta 0.154.0-beta 0.153.0-beta 0.152.0-beta 0.151.0-beta 0.150.0-beta 0.149.0-beta 0.148.0-beta 0.147.0-beta 0.146.0-beta 0.145.0-beta 0.142.0-beta 0.141.0-beta 0.140.0-beta 0.139.0-beta 0.138.0-beta 0.137.0-beta 0.136.0-beta 0.135.0-beta 0.134.0-beta 0.133.0-beta 0.132.0-beta 0.131.0-beta 0.130.0-beta 0.129.0-beta 0.127.0-beta 0.126.0-beta 0.125.0-beta 0.124.0-beta 0.123.21-beta 0.122.29-beta

    public interface Notification

An interface for Pub/Sub Notifications in Google Cloud Storage.

This is a light wrapper around a Storage client.
See Also: [Google Cloud Pub/Sub Notifications for Storage](https://cloud.google.com/storage/docs/pubsub-notifications)

## Methods

### create(Storage storage)

    public abstract Notification create(Storage storage)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `storage` | `com.google.cloud.storage.Storage` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-notification/latest/com.google.cloud.notification.Notification` |   |

### createNotification(String bucket, NotificationInfo notification)

    public abstract NotificationInfo createNotification(String bucket, NotificationInfo notification)

> [!WARNING]
> **Beta**
>
> This feature is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1) of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `notification` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-notification/latest/com.google.cloud.notification.NotificationInfo` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-notification/latest/com.google.cloud.notification.NotificationInfo` |   |

### deleteNotification(String bucket, String notification)

    public abstract boolean deleteNotification(String bucket, String notification)

> [!WARNING]
> **Beta**
>
> This feature is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1) of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `notification` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### listNotifications(String bucket)

    public abstract List<NotificationInfo> listNotifications(String bucket)

> [!WARNING]
> **Beta**
>
> This feature is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1) of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `bucket` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-notification/latest/com.google.cloud.notification.NotificationInfo>` |   |