Interface ProtectionError.Builder

  • Method Details

    • recordName

      ProtectionError.Builder recordName(String recordName)

      The name in the failing entry.

      Parameters:
      recordName - The name in the failing entry.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • recordType

      ProtectionError.Builder recordType(String recordType)

      The record type in the failing entry.

      Parameters:
      recordType - The record type in the failing entry.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • recordType

      ProtectionError.Builder recordType(RRType recordType)

      The record type in the failing entry.

      Parameters:
      recordType - The record type in the failing entry.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • code

      The reason that the entry failed. Valid values include the following:

      • InvalidInput means that the entry isn't valid. For example, the name isn't a valid DNS name, the name isn't in the hosted zone, the record type can't be protected, or the same name and type appear more than once in the request.

      • ProtectionAlreadyExists means that a protection already exists for the name and type.

      • ProtectionNotFound means that no protection exists for the name and type.

      Parameters:
      code - The reason that the entry failed. Valid values include the following:

      • InvalidInput means that the entry isn't valid. For example, the name isn't a valid DNS name, the name isn't in the hosted zone, the record type can't be protected, or the same name and type appear more than once in the request.

      • ProtectionAlreadyExists means that a protection already exists for the name and type.

      • ProtectionNotFound means that no protection exists for the name and type.

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

      ProtectionError.Builder message(String message)

      A message that explains why Route 53 couldn't process the entry.

      Parameters:
      message - A message that explains why Route 53 couldn't process the entry.
      Returns:
      Returns a reference to this object so that method calls can be chained together.