#include <notification.h>
A subscription to receive Google PubSub notifications.
◆ Notification() [1/2]
| google_storage_api::Notification::Notification |
( |
const Json::Value & |
storage | ) |
|
|
explicit |
Standard constructor for an immutable data object instance.
- Parameters
-
| [in] | storage | The underlying data storage for this instance. |
◆ Notification() [2/2]
| google_storage_api::Notification::Notification |
( |
Json::Value * |
storage | ) |
|
|
explicit |
Standard constructor for a mutable data object instance.
- Parameters
-
| [in] | storage | The underlying data storage for this instance. |
◆ ~Notification()
| google_storage_api::Notification::~Notification |
( |
| ) |
|
|
virtual |
◆ clear_custom_attributes()
| void google_storage_api::Notification::clear_custom_attributes |
( |
| ) |
|
|
inline |
Clears the 'custom_attributes' attribute.
◆ clear_etag()
| void google_storage_api::Notification::clear_etag |
( |
| ) |
|
|
inline |
Clears the 'etag' attribute.
◆ clear_event_types()
| void google_storage_api::Notification::clear_event_types |
( |
| ) |
|
|
inline |
Clears the 'event_types' attribute.
◆ clear_id()
| void google_storage_api::Notification::clear_id |
( |
| ) |
|
|
inline |
Clears the 'id' attribute.
◆ clear_kind()
| void google_storage_api::Notification::clear_kind |
( |
| ) |
|
|
inline |
Clears the 'kind' attribute.
◆ clear_object_name_prefix()
| void google_storage_api::Notification::clear_object_name_prefix |
( |
| ) |
|
|
inline |
Clears the 'object_name_prefix' attribute.
◆ clear_payload_format()
| void google_storage_api::Notification::clear_payload_format |
( |
| ) |
|
|
inline |
Clears the 'payload_format' attribute.
◆ clear_self_link()
| void google_storage_api::Notification::clear_self_link |
( |
| ) |
|
|
inline |
Clears the 'selfLink' attribute.
◆ clear_topic()
| void google_storage_api::Notification::clear_topic |
( |
| ) |
|
|
inline |
Clears the 'topic' attribute.
◆ get_custom_attributes()
| const client::JsonCppAssociativeArray<string > google_storage_api::Notification::get_custom_attributes |
( |
| ) |
const |
|
inline |
Get a reference to the value of the 'custom_attributes' attribute.
◆ get_etag()
| const StringPiece google_storage_api::Notification::get_etag |
( |
| ) |
const |
|
inline |
Get the value of the 'etag' attribute.
◆ get_event_types()
| const client::JsonCppArray<string > google_storage_api::Notification::get_event_types |
( |
| ) |
const |
|
inline |
Get a reference to the value of the 'event_types' attribute.
◆ get_id()
| const StringPiece google_storage_api::Notification::get_id |
( |
| ) |
const |
|
inline |
Get the value of the 'id' attribute.
◆ get_kind()
| const StringPiece google_storage_api::Notification::get_kind |
( |
| ) |
const |
|
inline |
Get the value of the 'kind' attribute.
◆ get_object_name_prefix()
| const StringPiece google_storage_api::Notification::get_object_name_prefix |
( |
| ) |
const |
|
inline |
Get the value of the 'object_name_prefix' attribute.
◆ get_payload_format()
| const StringPiece google_storage_api::Notification::get_payload_format |
( |
| ) |
const |
|
inline |
Get the value of the 'payload_format' attribute.
◆ get_self_link()
| const StringPiece google_storage_api::Notification::get_self_link |
( |
| ) |
const |
|
inline |
Get the value of the 'selfLink' attribute.
◆ get_topic()
| const StringPiece google_storage_api::Notification::get_topic |
( |
| ) |
const |
|
inline |
Get the value of the 'topic' attribute.
◆ GetTypeName()
| const StringPiece google_storage_api::Notification::GetTypeName |
( |
| ) |
const |
|
inline |
◆ has_custom_attributes()
| bool google_storage_api::Notification::has_custom_attributes |
( |
| ) |
const |
|
inline |
Determine if the 'custom_attributes' attribute was set.
- Returns
- true if the '
custom_attributes' attribute was set.
◆ has_etag()
| bool google_storage_api::Notification::has_etag |
( |
| ) |
const |
|
inline |
Determine if the 'etag' attribute was set.
- Returns
- true if the '
etag' attribute was set.
◆ has_event_types()
| bool google_storage_api::Notification::has_event_types |
( |
| ) |
const |
|
inline |
Determine if the 'event_types' attribute was set.
- Returns
- true if the '
event_types' attribute was set.
◆ has_id()
| bool google_storage_api::Notification::has_id |
( |
| ) |
const |
|
inline |
Determine if the 'id' attribute was set.
- Returns
- true if the '
id' attribute was set.
◆ has_kind()
| bool google_storage_api::Notification::has_kind |
( |
| ) |
const |
|
inline |
Determine if the 'kind' attribute was set.
- Returns
- true if the '
kind' attribute was set.
◆ has_object_name_prefix()
| bool google_storage_api::Notification::has_object_name_prefix |
( |
| ) |
const |
|
inline |
Determine if the 'object_name_prefix' attribute was set.
- Returns
- true if the '
object_name_prefix' attribute was set.
◆ has_payload_format()
| bool google_storage_api::Notification::has_payload_format |
( |
| ) |
const |
|
inline |
Determine if the 'payload_format' attribute was set.
- Returns
- true if the '
payload_format' attribute was set.
◆ has_self_link()
| bool google_storage_api::Notification::has_self_link |
( |
| ) |
const |
|
inline |
Determine if the 'selfLink' attribute was set.
- Returns
- true if the '
selfLink' attribute was set.
◆ has_topic()
| bool google_storage_api::Notification::has_topic |
( |
| ) |
const |
|
inline |
Determine if the 'topic' attribute was set.
- Returns
- true if the '
topic' attribute was set.
◆ mutable_custom_attributes()
| client::JsonCppAssociativeArray<string > google_storage_api::Notification::mutable_custom_attributes |
( |
| ) |
|
|
inline |
Gets a reference to a mutable value of the 'custom_attributes' property.
An optional list of additional attributes to attach to each Cloud PubSub message published for this notification subscription.
- Returns
- The result can be modified to change the attribute value.
◆ mutable_event_types()
| client::JsonCppArray<string > google_storage_api::Notification::mutable_event_types |
( |
| ) |
|
|
inline |
Gets a reference to a mutable value of the 'event_types' property.
If present, only send notifications about listed event types. If empty, sent notifications for all event types.
- Returns
- The result can be modified to change the attribute value.
◆ New()
Creates a new default instance.
- Returns
- Ownership is passed back to the caller.
◆ set_etag()
| void google_storage_api::Notification::set_etag |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'etag' attribute.
HTTP 1.1 Entity tag for this subscription notification.
- Parameters
-
◆ set_id()
| void google_storage_api::Notification::set_id |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'id' attribute.
The ID of the notification.
- Parameters
-
◆ set_kind()
| void google_storage_api::Notification::set_kind |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'kind' attribute.
The kind of item this is. For notifications, this is always storage::notification.
- Parameters
-
◆ set_object_name_prefix()
| void google_storage_api::Notification::set_object_name_prefix |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'object_name_prefix' attribute.
If present, only apply this notification configuration to object names that begin with this prefix.
- Parameters
-
◆ set_payload_format()
| void google_storage_api::Notification::set_payload_format |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'payload_format' attribute.
The desired content of the Payload.
- Parameters
-
◆ set_self_link()
| void google_storage_api::Notification::set_self_link |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'selfLink' attribute.
The canonical URL of this notification.
- Parameters
-
◆ set_topic()
| void google_storage_api::Notification::set_topic |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'topic' attribute.
The Cloud PubSub topic to which this subscription publishes. Formatted as: '//pubsub.googleapis.com/projects/{project-identifier}/topics/{my-topic}'.
- Parameters
-
The documentation for this class was generated from the following files: