public class SetVaultNotificationsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
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 |
---|---|
SetVaultNotificationsRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getAccountId()
The
AccountId value is the AWS account ID of the account
that owns the vault. |
String |
getVaultName()
The name of the vault.
|
VaultNotificationConfig |
getVaultNotificationConfig()
Provides options for specifying notification configuration.
|
int |
hashCode() |
void |
setAccountId(String accountId)
The
AccountId value is the AWS account ID of the account
that owns the vault. |
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 value is the AWS account ID of the account
that owns the vault. |
SetVaultNotificationsRequest |
withVaultName(String vaultName)
The name of the vault.
|
SetVaultNotificationsRequest |
withVaultNotificationConfig(VaultNotificationConfig vaultNotificationConfig)
Provides options for specifying notification configuration.
|
getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
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
value is the AWS account
ID of the account that owns the vault. You can either specify an AWS
account ID or optionally a single '-
' (hyphen), in which
case Amazon Glacier uses the AWS account ID associated with the
credentials used to sign the request. If you use an account ID, do not
include any hyphens ('-') in the ID.vaultName
- The name of the vault.vaultNotificationConfig
- Provides options for specifying
notification configuration.public String getAccountId()
AccountId
value is the AWS account ID of the account
that owns the vault. You can either specify an AWS account ID or
optionally a single '-
' (hyphen), in which case Amazon
Glacier uses the AWS account ID associated with the credentials used
to sign the request. If you use an account ID, do not include any
hyphens ('-') in the ID.AccountId
value is the AWS account ID of the account
that owns the vault. You can either specify an AWS account ID or
optionally a single '-
' (hyphen), in which case Amazon
Glacier uses the AWS account ID associated with the credentials used
to sign the request. If you use an account ID, do not include any
hyphens ('-') in the ID.public void setAccountId(String accountId)
AccountId
value is the AWS account ID of the account
that owns the vault. You can either specify an AWS account ID or
optionally a single '-
' (hyphen), in which case Amazon
Glacier uses the AWS account ID associated with the credentials used
to sign the request. If you use an account ID, do not include any
hyphens ('-') in the ID.accountId
- The AccountId
value is the AWS account ID of the account
that owns the vault. You can either specify an AWS account ID or
optionally a single '-
' (hyphen), in which case Amazon
Glacier uses the AWS account ID associated with the credentials used
to sign the request. If you use an account ID, do not include any
hyphens ('-') in the ID.public SetVaultNotificationsRequest withAccountId(String accountId)
AccountId
value is the AWS account ID of the account
that owns the vault. You can either specify an AWS account ID or
optionally a single '-
' (hyphen), in which case Amazon
Glacier uses the AWS account ID associated with the credentials used
to sign the request. If you use an account ID, do not include any
hyphens ('-') in the ID.
Returns a reference to this object so that method calls can be chained together.
accountId
- The AccountId
value is the AWS account ID of the account
that owns the vault. You can either specify an AWS account ID or
optionally a single '-
' (hyphen), in which case Amazon
Glacier uses the AWS account ID associated with the credentials used
to sign the request. If you use an account ID, do not include any
hyphens ('-') in the ID.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 SetVaultNotificationsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.