@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class NotificationChannel extends Object implements Serializable, Cloneable, StructuredPojo
Information about a notification channel. A notification channel is used to notify you when DevOps Guru creates an insight. The one supported notification channel is Amazon Simple Notification Service (Amazon SNS).
If you use an Amazon SNS topic in another account, you must attach a policy to it that grants DevOps Guru permission to it notifications. DevOps Guru adds the required policy on your behalf to send notifications using Amazon SNS in your account. For more information, see Permissions for cross account Amazon SNS topics.
If you use an Amazon SNS topic that is encrypted by an AWS Key Management Service customer-managed key (CMK), then you must add permissions to the CMK. For more information, see Permissions for AWS KMS–encrypted Amazon SNS topics.
Constructor and Description |
---|
NotificationChannel() |
Modifier and Type | Method and Description |
---|---|
NotificationChannel |
clone() |
boolean |
equals(Object obj) |
NotificationChannelConfig |
getConfig()
A
NotificationChannelConfig object that contains information about configured notification channels. |
String |
getId()
The ID of a notification channel.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setConfig(NotificationChannelConfig config)
A
NotificationChannelConfig object that contains information about configured notification channels. |
void |
setId(String id)
The ID of a notification channel.
|
String |
toString()
Returns a string representation of this object.
|
NotificationChannel |
withConfig(NotificationChannelConfig config)
A
NotificationChannelConfig object that contains information about configured notification channels. |
NotificationChannel |
withId(String id)
The ID of a notification channel.
|
public void setId(String id)
The ID of a notification channel.
id
- The ID of a notification channel.public String getId()
The ID of a notification channel.
public NotificationChannel withId(String id)
The ID of a notification channel.
id
- The ID of a notification channel.public void setConfig(NotificationChannelConfig config)
A NotificationChannelConfig
object that contains information about configured notification channels.
config
- A NotificationChannelConfig
object that contains information about configured notification
channels.public NotificationChannelConfig getConfig()
A NotificationChannelConfig
object that contains information about configured notification channels.
NotificationChannelConfig
object that contains information about configured notification
channels.public NotificationChannel withConfig(NotificationChannelConfig config)
A NotificationChannelConfig
object that contains information about configured notification channels.
config
- A NotificationChannelConfig
object that contains information about configured notification
channels.public String toString()
toString
in class Object
Object.toString()
public NotificationChannel clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.