@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EbsSnapshotConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
The proposed access control configuration for an Amazon EBS volume snapshot. You can propose a configuration for a new Amazon EBS volume snapshot or an Amazon EBS volume snapshot that you own by specifying the user IDs, groups, and optional KMS encryption key. For more information, see ModifySnapshotAttribute.
Constructor and Description |
---|
EbsSnapshotConfiguration() |
Modifier and Type | Method and Description |
---|---|
EbsSnapshotConfiguration |
clone() |
boolean |
equals(Object obj) |
List<String> |
getGroups()
The groups that have access to the Amazon EBS volume snapshot.
|
String |
getKmsKeyId()
The KMS key identifier for an encrypted Amazon EBS volume snapshot.
|
List<String> |
getUserIds()
The IDs of the Amazon Web Services accounts that have access to the Amazon EBS volume snapshot.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setGroups(Collection<String> groups)
The groups that have access to the Amazon EBS volume snapshot.
|
void |
setKmsKeyId(String kmsKeyId)
The KMS key identifier for an encrypted Amazon EBS volume snapshot.
|
void |
setUserIds(Collection<String> userIds)
The IDs of the Amazon Web Services accounts that have access to the Amazon EBS volume snapshot.
|
String |
toString()
Returns a string representation of this object.
|
EbsSnapshotConfiguration |
withGroups(Collection<String> groups)
The groups that have access to the Amazon EBS volume snapshot.
|
EbsSnapshotConfiguration |
withGroups(String... groups)
The groups that have access to the Amazon EBS volume snapshot.
|
EbsSnapshotConfiguration |
withKmsKeyId(String kmsKeyId)
The KMS key identifier for an encrypted Amazon EBS volume snapshot.
|
EbsSnapshotConfiguration |
withUserIds(Collection<String> userIds)
The IDs of the Amazon Web Services accounts that have access to the Amazon EBS volume snapshot.
|
EbsSnapshotConfiguration |
withUserIds(String... userIds)
The IDs of the Amazon Web Services accounts that have access to the Amazon EBS volume snapshot.
|
public List<String> getUserIds()
The IDs of the Amazon Web Services accounts that have access to the Amazon EBS volume snapshot.
If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
userIds
, then the access preview uses the existing shared userIds
for the snapshot.
If the access preview is for a new resource and you do not specify the userIds
, then the access
preview considers the snapshot without any userIds
.
To propose deletion of existing shared accountIds
, you can specify an empty list for
userIds
.
If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
userIds
, then the access preview uses the existing shared userIds
for the
snapshot.
If the access preview is for a new resource and you do not specify the userIds
, then the
access preview considers the snapshot without any userIds
.
To propose deletion of existing shared accountIds
, you can specify an empty list for
userIds
.
public void setUserIds(Collection<String> userIds)
The IDs of the Amazon Web Services accounts that have access to the Amazon EBS volume snapshot.
If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
userIds
, then the access preview uses the existing shared userIds
for the snapshot.
If the access preview is for a new resource and you do not specify the userIds
, then the access
preview considers the snapshot without any userIds
.
To propose deletion of existing shared accountIds
, you can specify an empty list for
userIds
.
userIds
- The IDs of the Amazon Web Services accounts that have access to the Amazon EBS volume snapshot.
If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
userIds
, then the access preview uses the existing shared userIds
for the
snapshot.
If the access preview is for a new resource and you do not specify the userIds
, then the
access preview considers the snapshot without any userIds
.
To propose deletion of existing shared accountIds
, you can specify an empty list for
userIds
.
public EbsSnapshotConfiguration withUserIds(String... userIds)
The IDs of the Amazon Web Services accounts that have access to the Amazon EBS volume snapshot.
If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
userIds
, then the access preview uses the existing shared userIds
for the snapshot.
If the access preview is for a new resource and you do not specify the userIds
, then the access
preview considers the snapshot without any userIds
.
To propose deletion of existing shared accountIds
, you can specify an empty list for
userIds
.
NOTE: This method appends the values to the existing list (if any). Use
setUserIds(java.util.Collection)
or withUserIds(java.util.Collection)
if you want to override
the existing values.
userIds
- The IDs of the Amazon Web Services accounts that have access to the Amazon EBS volume snapshot.
If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
userIds
, then the access preview uses the existing shared userIds
for the
snapshot.
If the access preview is for a new resource and you do not specify the userIds
, then the
access preview considers the snapshot without any userIds
.
To propose deletion of existing shared accountIds
, you can specify an empty list for
userIds
.
public EbsSnapshotConfiguration withUserIds(Collection<String> userIds)
The IDs of the Amazon Web Services accounts that have access to the Amazon EBS volume snapshot.
If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
userIds
, then the access preview uses the existing shared userIds
for the snapshot.
If the access preview is for a new resource and you do not specify the userIds
, then the access
preview considers the snapshot without any userIds
.
To propose deletion of existing shared accountIds
, you can specify an empty list for
userIds
.
userIds
- The IDs of the Amazon Web Services accounts that have access to the Amazon EBS volume snapshot.
If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
userIds
, then the access preview uses the existing shared userIds
for the
snapshot.
If the access preview is for a new resource and you do not specify the userIds
, then the
access preview considers the snapshot without any userIds
.
To propose deletion of existing shared accountIds
, you can specify an empty list for
userIds
.
public List<String> getGroups()
The groups that have access to the Amazon EBS volume snapshot. If the value all
is specified, then
the Amazon EBS volume snapshot is public.
If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the groups
, then the access preview uses the existing shared groups
for the snapshot.
If the access preview is for a new resource and you do not specify the groups
, then the access
preview considers the snapshot without any groups
.
To propose deletion of existing shared groups
, you can specify an empty list for groups
.
all
is
specified, then the Amazon EBS volume snapshot is public.
If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
groups
, then the access preview uses the existing shared groups
for the
snapshot.
If the access preview is for a new resource and you do not specify the groups
, then the
access preview considers the snapshot without any groups
.
To propose deletion of existing shared groups
, you can specify an empty list for
groups
.
public void setGroups(Collection<String> groups)
The groups that have access to the Amazon EBS volume snapshot. If the value all
is specified, then
the Amazon EBS volume snapshot is public.
If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the groups
, then the access preview uses the existing shared groups
for the snapshot.
If the access preview is for a new resource and you do not specify the groups
, then the access
preview considers the snapshot without any groups
.
To propose deletion of existing shared groups
, you can specify an empty list for groups
.
groups
- The groups that have access to the Amazon EBS volume snapshot. If the value all
is specified,
then the Amazon EBS volume snapshot is public.
If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
groups
, then the access preview uses the existing shared groups
for the
snapshot.
If the access preview is for a new resource and you do not specify the groups
, then the
access preview considers the snapshot without any groups
.
To propose deletion of existing shared groups
, you can specify an empty list for
groups
.
public EbsSnapshotConfiguration withGroups(String... groups)
The groups that have access to the Amazon EBS volume snapshot. If the value all
is specified, then
the Amazon EBS volume snapshot is public.
If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the groups
, then the access preview uses the existing shared groups
for the snapshot.
If the access preview is for a new resource and you do not specify the groups
, then the access
preview considers the snapshot without any groups
.
To propose deletion of existing shared groups
, you can specify an empty list for groups
.
NOTE: This method appends the values to the existing list (if any). Use
setGroups(java.util.Collection)
or withGroups(java.util.Collection)
if you want to override the
existing values.
groups
- The groups that have access to the Amazon EBS volume snapshot. If the value all
is specified,
then the Amazon EBS volume snapshot is public.
If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
groups
, then the access preview uses the existing shared groups
for the
snapshot.
If the access preview is for a new resource and you do not specify the groups
, then the
access preview considers the snapshot without any groups
.
To propose deletion of existing shared groups
, you can specify an empty list for
groups
.
public EbsSnapshotConfiguration withGroups(Collection<String> groups)
The groups that have access to the Amazon EBS volume snapshot. If the value all
is specified, then
the Amazon EBS volume snapshot is public.
If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the groups
, then the access preview uses the existing shared groups
for the snapshot.
If the access preview is for a new resource and you do not specify the groups
, then the access
preview considers the snapshot without any groups
.
To propose deletion of existing shared groups
, you can specify an empty list for groups
.
groups
- The groups that have access to the Amazon EBS volume snapshot. If the value all
is specified,
then the Amazon EBS volume snapshot is public.
If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
groups
, then the access preview uses the existing shared groups
for the
snapshot.
If the access preview is for a new resource and you do not specify the groups
, then the
access preview considers the snapshot without any groups
.
To propose deletion of existing shared groups
, you can specify an empty list for
groups
.
public void setKmsKeyId(String kmsKeyId)
The KMS key identifier for an encrypted Amazon EBS volume snapshot. The KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.
If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
kmsKeyId
, or you specify an empty string, then the access preview uses the existing
kmsKeyId
of the snapshot.
If the access preview is for a new resource and you do not specify the kmsKeyId
, the access preview
considers the snapshot as unencrypted.
kmsKeyId
- The KMS key identifier for an encrypted Amazon EBS volume snapshot. The KMS key identifier is the key ARN,
key ID, alias ARN, or alias name for the KMS key.
If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
kmsKeyId
, or you specify an empty string, then the access preview uses the existing
kmsKeyId
of the snapshot.
If the access preview is for a new resource and you do not specify the kmsKeyId
, the access
preview considers the snapshot as unencrypted.
public String getKmsKeyId()
The KMS key identifier for an encrypted Amazon EBS volume snapshot. The KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.
If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
kmsKeyId
, or you specify an empty string, then the access preview uses the existing
kmsKeyId
of the snapshot.
If the access preview is for a new resource and you do not specify the kmsKeyId
, the access preview
considers the snapshot as unencrypted.
If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
kmsKeyId
, or you specify an empty string, then the access preview uses the existing
kmsKeyId
of the snapshot.
If the access preview is for a new resource and you do not specify the kmsKeyId
, the access
preview considers the snapshot as unencrypted.
public EbsSnapshotConfiguration withKmsKeyId(String kmsKeyId)
The KMS key identifier for an encrypted Amazon EBS volume snapshot. The KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.
If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
kmsKeyId
, or you specify an empty string, then the access preview uses the existing
kmsKeyId
of the snapshot.
If the access preview is for a new resource and you do not specify the kmsKeyId
, the access preview
considers the snapshot as unencrypted.
kmsKeyId
- The KMS key identifier for an encrypted Amazon EBS volume snapshot. The KMS key identifier is the key ARN,
key ID, alias ARN, or alias name for the KMS key.
If the configuration is for an existing Amazon EBS volume snapshot and you do not specify the
kmsKeyId
, or you specify an empty string, then the access preview uses the existing
kmsKeyId
of the snapshot.
If the access preview is for a new resource and you do not specify the kmsKeyId
, the access
preview considers the snapshot as unencrypted.
public String toString()
toString
in class Object
Object.toString()
public EbsSnapshotConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.