Class RelayAuthentication

    • Method Detail

      • noAuthentication

        public final NoAuthentication noAuthentication()

        Keep an empty structure if the relay destination server does not require SMTP credential authentication.

        Returns:
        Keep an empty structure if the relay destination server does not require SMTP credential authentication.
      • secretArn

        public final String secretArn()

        The ARN of the secret created in secrets manager where the relay server's SMTP credentials are stored.

        Returns:
        The ARN of the secret created in secrets manager where the relay server's SMTP credentials are stored.
      • 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)
      • fromNoAuthentication

        public static RelayAuthentication fromNoAuthentication​(NoAuthentication noAuthentication)
        Create an instance of this class with noAuthentication() initialized to the given value.

        Keep an empty structure if the relay destination server does not require SMTP credential authentication.

        Parameters:
        noAuthentication - Keep an empty structure if the relay destination server does not require SMTP credential authentication.
      • fromNoAuthentication

        public static RelayAuthentication fromNoAuthentication​(Consumer<NoAuthentication.Builder> noAuthentication)
        Create an instance of this class with noAuthentication() initialized to the given value.

        Keep an empty structure if the relay destination server does not require SMTP credential authentication.

        Parameters:
        noAuthentication - Keep an empty structure if the relay destination server does not require SMTP credential authentication.
      • fromSecretArn

        public static RelayAuthentication fromSecretArn​(String secretArn)
        Create an instance of this class with secretArn() initialized to the given value.

        The ARN of the secret created in secrets manager where the relay server's SMTP credentials are stored.

        Parameters:
        secretArn - The ARN of the secret created in secrets manager where the relay server's SMTP credentials are stored.