public class SetVaultNotificationsRequest extends AmazonWebServiceRequest implements java.io.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 .
| コンストラクタと説明 |
|---|
SetVaultNotificationsRequest()
Default constructor for a new SetVaultNotificationsRequest object.
|
SetVaultNotificationsRequest(java.lang.String accountId,
java.lang.String vaultName,
VaultNotificationConfig vaultNotificationConfig)
Constructs a new SetVaultNotificationsRequest object.
|
SetVaultNotificationsRequest(java.lang.String vaultName,
VaultNotificationConfig vaultNotificationConfig)
Constructs a new SetVaultNotificationsRequest object.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAccountId()
The
AccountId is the AWS Account ID. |
java.lang.String |
getVaultName()
The name of the vault.
|
VaultNotificationConfig |
getVaultNotificationConfig()
Provides options for specifying notification configuration.
|
int |
hashCode() |
void |
setAccountId(java.lang.String accountId)
The
AccountId is the AWS Account ID. |
void |
setVaultName(java.lang.String vaultName)
The name of the vault.
|
void |
setVaultNotificationConfig(VaultNotificationConfig vaultNotificationConfig)
Provides options for specifying notification configuration.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SetVaultNotificationsRequest |
withAccountId(java.lang.String accountId)
The
AccountId is the AWS Account ID. |
SetVaultNotificationsRequest |
withVaultName(java.lang.String vaultName)
The name of the vault.
|
SetVaultNotificationsRequest |
withVaultNotificationConfig(VaultNotificationConfig vaultNotificationConfig)
Provides options for specifying notification configuration.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentialspublic SetVaultNotificationsRequest()
public SetVaultNotificationsRequest(java.lang.String vaultName,
VaultNotificationConfig vaultNotificationConfig)
vaultName - The name of the vault.vaultNotificationConfig - Provides options for specifying
notification configuration.public SetVaultNotificationsRequest(java.lang.String accountId,
java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.String getVaultName()
public void setVaultName(java.lang.String vaultName)
vaultName - The name of the vault.public SetVaultNotificationsRequest withVaultName(java.lang.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 java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object