@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Topic extends Object implements Serializable, Cloneable, StructuredPojo
The topic of the notification.
| Constructor and Description |
|---|
Topic() |
| Modifier and Type | Method and Description |
|---|---|
Topic |
clone() |
boolean |
equals(Object obj) |
NotificationResource |
getResource() |
String |
getRole()
The role of the resource mentioned in a notification.
|
String |
getSubject()
The subject of the resource mentioned in a notification.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setResource(NotificationResource resource) |
void |
setRole(String role)
The role of the resource mentioned in a notification.
|
void |
setSubject(String subject)
The subject of the resource mentioned in a notification.
|
String |
toString()
Returns a string representation of this object.
|
Topic |
withResource(NotificationResource resource) |
Topic |
withRole(NotificationRole role)
The role of the resource mentioned in a notification.
|
Topic |
withRole(String role)
The role of the resource mentioned in a notification.
|
Topic |
withSubject(String subject)
The subject of the resource mentioned in a notification.
|
public void setResource(NotificationResource resource)
resource - public NotificationResource getResource()
public Topic withResource(NotificationResource resource)
resource - public void setRole(String role)
The role of the resource mentioned in a notification.
role - The role of the resource mentioned in a notification.NotificationRolepublic String getRole()
The role of the resource mentioned in a notification.
NotificationRolepublic Topic withRole(String role)
The role of the resource mentioned in a notification.
role - The role of the resource mentioned in a notification.NotificationRolepublic Topic withRole(NotificationRole role)
The role of the resource mentioned in a notification.
role - The role of the resource mentioned in a notification.NotificationRolepublic void setSubject(String subject)
The subject of the resource mentioned in a notification.
subject - The subject of the resource mentioned in a notification.public String getSubject()
The subject of the resource mentioned in a notification.
public Topic withSubject(String subject)
The subject of the resource mentioned in a notification.
subject - The subject of the resource mentioned in a notification.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.