public final class DeadLetterPolicy
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Cloud Pub/Sub API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
DeadLetterPolicy() |
Modifier and Type | Method and Description |
---|---|
DeadLetterPolicy |
clone() |
java.lang.String |
getDeadLetterTopic()
The name of the topic to which dead letter messages should be published.
|
java.lang.Integer |
getMaxDeliveryAttempts()
The maximum number of delivery attempts for any message.
|
DeadLetterPolicy |
set(java.lang.String fieldName,
java.lang.Object value) |
DeadLetterPolicy |
setDeadLetterTopic(java.lang.String deadLetterTopic)
The name of the topic to which dead letter messages should be published.
|
DeadLetterPolicy |
setMaxDeliveryAttempts(java.lang.Integer maxDeliveryAttempts)
The maximum number of delivery attempts for any message.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getDeadLetterTopic()
null
for nonepublic DeadLetterPolicy setDeadLetterTopic(java.lang.String deadLetterTopic)
deadLetterTopic
- deadLetterTopic or null
for nonepublic java.lang.Integer getMaxDeliveryAttempts()
null
for nonepublic DeadLetterPolicy setMaxDeliveryAttempts(java.lang.Integer maxDeliveryAttempts)
maxDeliveryAttempts
- maxDeliveryAttempts or null
for nonepublic DeadLetterPolicy set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public DeadLetterPolicy clone()
clone
in class com.google.api.client.json.GenericJson