Class EmailTargetDetail

java.lang.Object
software.amazon.awssdk.services.partnercentralmarketing.model.EmailTargetDetail
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<EmailTargetDetail.Builder,EmailTargetDetail>

@Generated("software.amazon.awssdk:codegen") public final class EmailTargetDetail extends Object implements SdkPojo, Serializable, ToCopyableBuilder<EmailTargetDetail.Builder,EmailTargetDetail>

The campaign's attached recipient list, as read — metadata only.

No URL and no `S3Uri`, presigned or otherwise. The file is a list of email addresses belonging to people who are not the partner, so there is no read path for the bytes at all; what a caller needs is whether the list was accepted and how many recipients it resolved to.

The three counts describe the file as it was read when attached. They are absent for a list attached before the service began reading lists at upload.

See Also:
  • Method Details

    • scanStatus

      public final ScanStatus scanStatus()

      The scan verdict for the attached list.

      If the service returns an enum value that is not available in the current SDK version, scanStatus will return ScanStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from scanStatusAsString().

      Returns:
      The scan verdict for the attached list.
      See Also:
    • scanStatusAsString

      public final String scanStatusAsString()

      The scan verdict for the attached list.

      If the service returns an enum value that is not available in the current SDK version, scanStatus will return ScanStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from scanStatusAsString().

      Returns:
      The scan verdict for the attached list.
      See Also:
    • attachedAt

      public final Instant attachedAt()

      When the list was attached.

      Returns:
      When the list was attached.
    • validCount

      public final Integer validCount()

      Distinct usable addresses — the recipients an email activation sends to.

      Returns:
      Distinct usable addresses — the recipients an email activation sends to.
    • rejectedCount

      public final Integer rejectedCount()

      Rows skipped because their email cell is not a usable address.

      Returns:
      Rows skipped because their email cell is not a usable address.
    • duplicateCount

      public final Integer duplicateCount()

      Rows repeating an address already counted. Not an error: each address is sent to once.

      Returns:
      Rows repeating an address already counted. Not an error: each address is sent to once.
    • fileName

      public final String fileName()

      The display name of the uploaded file, as the partner named it, with no path: for example Q4 leads.csv. Absent for a list attached before the service kept the name. There is no link to the file: the list is never downloadable from the campaign.

      Returns:
      The display name of the uploaded file, as the partner named it, with no path: for example Q4 leads.csv. Absent for a list attached before the service kept the name. There is no link to the file: the list is never downloadable from the campaign.
    • toBuilder

      public EmailTargetDetail.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<EmailTargetDetail.Builder,EmailTargetDetail>
      Returns:
      a builder for type T
    • builder

      public static EmailTargetDetail.Builder builder()
    • serializableBuilderClass

      public static Class<? extends EmailTargetDetail.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Description copied from interface: SdkPojo
      Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • toString

      public final String toString()
      Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo
      Returns:
      The mapping between the field name and its corresponding field.