|
Did this page help you?Yes No Tell us about it... |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.glacier.model.SetVaultNotificationsRequest
public class SetVaultNotificationsRequest
Container for the parameters to the SetVaultNotifications operation
.
This operation configures notifications that will be sent when specific events happen to a vault. By default, you don't get any notifications.
To configure vault notifications, send a PUT request to the notification-configuration
subresource of the vault. The request should
include a JSON document that provides an Amazon SNS topic and specific events for which you want Amazon Glacier to send notifications to the topic.
Amazon SNS topics must grant permission to the vault to be allowed to publish notifications to the topic. You can configure a vault to publish a notification for the following vault events:
An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM) .
For conceptual information and underlying REST API, go to Configuring Vault Notifications in Amazon Glacier and Set Vault Notification Configuration in the Amazon Glacier Developer Guide .
AmazonGlacier.setVaultNotifications(SetVaultNotificationsRequest)
,
Serialized FormConstructor Summary | |
---|---|
SetVaultNotificationsRequest()
Default constructor for a new SetVaultNotificationsRequest object. |
|
SetVaultNotificationsRequest(String accountId,
String vaultName,
VaultNotificationConfig vaultNotificationConfig)
Constructs a new SetVaultNotificationsRequest object. |
|
SetVaultNotificationsRequest(String vaultName,
VaultNotificationConfig vaultNotificationConfig)
Constructs a new SetVaultNotificationsRequest object. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getAccountId()
The AccountId is the AWS Account ID. |
String |
getVaultName()
The name of the vault. |
VaultNotificationConfig |
getVaultNotificationConfig()
Provides options for specifying notification configuration. |
int |
hashCode()
|
void |
setAccountId(String accountId)
The AccountId is the AWS Account ID. |
void |
setVaultName(String vaultName)
The name of the vault. |
void |
setVaultNotificationConfig(VaultNotificationConfig vaultNotificationConfig)
Provides options for specifying notification configuration. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
SetVaultNotificationsRequest |
withAccountId(String accountId)
The AccountId is the AWS Account ID. |
SetVaultNotificationsRequest |
withVaultName(String vaultName)
The name of the vault. |
SetVaultNotificationsRequest |
withVaultNotificationConfig(VaultNotificationConfig vaultNotificationConfig)
Provides options for specifying notification configuration. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SetVaultNotificationsRequest()
public SetVaultNotificationsRequest(String vaultName, VaultNotificationConfig vaultNotificationConfig)
vaultName
- The name of the vault.vaultNotificationConfig
- Provides options for specifying
notification configuration.public SetVaultNotificationsRequest(String accountId, String vaultName, VaultNotificationConfig vaultNotificationConfig)
accountId
- The AccountId
is the AWS Account ID. You
can specify either the AWS Account ID or optionally a '-', in which
case Amazon Glacier uses the AWS Account ID associated with the
credentials used to sign the request. If you specify your Account ID,
do not include hyphens in it.vaultName
- The name of the vault.vaultNotificationConfig
- Provides options for specifying
notification configuration.Method Detail |
---|
public String getAccountId()
AccountId
is the AWS Account ID. You can specify
either the AWS Account ID or optionally a '-', in which case Amazon
Glacier uses the AWS Account ID associated with the credentials used
to sign the request. If you specify your Account ID, do not include
hyphens in it.
AccountId
is the AWS Account ID. You can specify
either the AWS Account ID or optionally a '-', in which case Amazon
Glacier uses the AWS Account ID associated with the credentials used
to sign the request. If you specify your Account ID, do not include
hyphens in it.public void setAccountId(String accountId)
AccountId
is the AWS Account ID. You can specify
either the AWS Account ID or optionally a '-', in which case Amazon
Glacier uses the AWS Account ID associated with the credentials used
to sign the request. If you specify your Account ID, do not include
hyphens in it.
accountId
- The AccountId
is the AWS Account ID. You can specify
either the AWS Account ID or optionally a '-', in which case Amazon
Glacier uses the AWS Account ID associated with the credentials used
to sign the request. If you specify your Account ID, do not include
hyphens in it.public SetVaultNotificationsRequest withAccountId(String accountId)
AccountId
is the AWS Account ID. You can specify
either the AWS Account ID or optionally a '-', in which case Amazon
Glacier uses the AWS Account ID associated with the credentials used
to sign the request. If you specify your Account ID, do not include
hyphens in it.
Returns a reference to this object so that method calls can be chained together.
accountId
- The AccountId
is the AWS Account ID. You can specify
either the AWS Account ID or optionally a '-', in which case Amazon
Glacier uses the AWS Account ID associated with the credentials used
to sign the request. If you specify your Account ID, do not include
hyphens in it.
public String getVaultName()
public void setVaultName(String vaultName)
vaultName
- The name of the vault.public SetVaultNotificationsRequest withVaultName(String vaultName)
Returns a reference to this object so that method calls can be chained together.
vaultName
- The name of the vault.
public VaultNotificationConfig getVaultNotificationConfig()
public void setVaultNotificationConfig(VaultNotificationConfig vaultNotificationConfig)
vaultNotificationConfig
- Provides options for specifying notification configuration.public SetVaultNotificationsRequest withVaultNotificationConfig(VaultNotificationConfig vaultNotificationConfig)
Returns a reference to this object so that method calls can be chained together.
vaultNotificationConfig
- Provides options for specifying notification configuration.
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |