public class SetVaultNotificationsRequest extends AmazonWebServiceRequest implements Serializable
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 .
NOOP
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
copyPrivateRequestParameters, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
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.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()
Copyright © 2014. All rights reserved.