Class Contact

    • Method Detail

      • contactArn

        public final String contactArn()

        The Amazon Resource Name (ARN) of the contact or escalation plan.

        Returns:
        The Amazon Resource Name (ARN) of the contact or escalation plan.
      • alias

        public final String alias()

        The unique and identifiable alias of the contact or escalation plan.

        Returns:
        The unique and identifiable alias of the contact or escalation plan.
      • displayName

        public final String displayName()

        The full name of the contact or escalation plan.

        Returns:
        The full name of the contact or escalation plan.
      • type

        public final ContactType type()

        Refers to the type of contact. A single contact is type PERSONAL and an escalation plan is type ESCALATION.

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

        Returns:
        Refers to the type of contact. A single contact is type PERSONAL and an escalation plan is type ESCALATION.
        See Also:
        ContactType
      • typeAsString

        public final String typeAsString()

        Refers to the type of contact. A single contact is type PERSONAL and an escalation plan is type ESCALATION.

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

        Returns:
        Refers to the type of contact. A single contact is type PERSONAL and an escalation plan is type ESCALATION.
        See Also:
        ContactType
      • serializableBuilderClass

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

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

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • 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)