Class DBSnapshotAttribute

    • Constructor Detail

      • DBSnapshotAttribute

        public DBSnapshotAttribute()
    • Method Detail

      • setAttributeName

        public void setAttributeName​(String attributeName)

        The name of the manual DB snapshot attribute.

        An attribute name of restore applies to the list of AWS accounts that have permission to copy or restore the manual DB snapshot.

        Parameters:
        attributeName - The name of the manual DB snapshot attribute.

        An attribute name of restore applies to the list of AWS accounts that have permission to copy or restore the manual DB snapshot.

      • getAttributeName

        public String getAttributeName()

        The name of the manual DB snapshot attribute.

        An attribute name of restore applies to the list of AWS accounts that have permission to copy or restore the manual DB snapshot.

        Returns:
        The name of the manual DB snapshot attribute.

        An attribute name of restore applies to the list of AWS accounts that have permission to copy or restore the manual DB snapshot.

      • withAttributeName

        public DBSnapshotAttribute withAttributeName​(String attributeName)

        The name of the manual DB snapshot attribute.

        An attribute name of restore applies to the list of AWS accounts that have permission to copy or restore the manual DB snapshot.

        Parameters:
        attributeName - The name of the manual DB snapshot attribute.

        An attribute name of restore applies to the list of AWS accounts that have permission to copy or restore the manual DB snapshot.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getAttributeValues

        public List<String> getAttributeValues()

        The value(s) for the manual DB snapshot attribute.

        If the AttributeName field is restore, then this field returns a list of AWS account ids that are authorized to copy or restore the manual DB snapshot. If a value of all is in the list, then the manual DB snapshot is public and available for any AWS account to copy or restore.

        Returns:
        The value(s) for the manual DB snapshot attribute.

        If the AttributeName field is restore, then this field returns a list of AWS account ids that are authorized to copy or restore the manual DB snapshot. If a value of all is in the list, then the manual DB snapshot is public and available for any AWS account to copy or restore.

      • setAttributeValues

        public void setAttributeValues​(Collection<String> attributeValues)

        The value(s) for the manual DB snapshot attribute.

        If the AttributeName field is restore, then this field returns a list of AWS account ids that are authorized to copy or restore the manual DB snapshot. If a value of all is in the list, then the manual DB snapshot is public and available for any AWS account to copy or restore.

        Parameters:
        attributeValues - The value(s) for the manual DB snapshot attribute.

        If the AttributeName field is restore, then this field returns a list of AWS account ids that are authorized to copy or restore the manual DB snapshot. If a value of all is in the list, then the manual DB snapshot is public and available for any AWS account to copy or restore.

      • withAttributeValues

        public DBSnapshotAttribute withAttributeValues​(String... attributeValues)

        The value(s) for the manual DB snapshot attribute.

        If the AttributeName field is restore, then this field returns a list of AWS account ids that are authorized to copy or restore the manual DB snapshot. If a value of all is in the list, then the manual DB snapshot is public and available for any AWS account to copy or restore.

        NOTE: This method appends the values to the existing list (if any). Use setAttributeValues(java.util.Collection) or withAttributeValues(java.util.Collection) if you want to override the existing values.

        Parameters:
        attributeValues - The value(s) for the manual DB snapshot attribute.

        If the AttributeName field is restore, then this field returns a list of AWS account ids that are authorized to copy or restore the manual DB snapshot. If a value of all is in the list, then the manual DB snapshot is public and available for any AWS account to copy or restore.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withAttributeValues

        public DBSnapshotAttribute withAttributeValues​(Collection<String> attributeValues)

        The value(s) for the manual DB snapshot attribute.

        If the AttributeName field is restore, then this field returns a list of AWS account ids that are authorized to copy or restore the manual DB snapshot. If a value of all is in the list, then the manual DB snapshot is public and available for any AWS account to copy or restore.

        Parameters:
        attributeValues - The value(s) for the manual DB snapshot attribute.

        If the AttributeName field is restore, then this field returns a list of AWS account ids that are authorized to copy or restore the manual DB snapshot. If a value of all is in the list, then the manual DB snapshot is public and available for any AWS account to copy or restore.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object