Class RelayAuthentication
- java.lang.Object
-
- software.amazon.awssdk.services.mailmanager.model.RelayAuthentication
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<RelayAuthentication.Builder,RelayAuthentication>
@Generated("software.amazon.awssdk:codegen") public final class RelayAuthentication extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RelayAuthentication.Builder,RelayAuthentication>
Authentication for the relay destination server—specify the secretARN where the SMTP credentials are stored, or specify an empty NoAuthentication structure if the relay destination server does not require SMTP credential authentication.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRelayAuthentication.Builderstatic classRelayAuthentication.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RelayAuthentication.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)static RelayAuthenticationfromNoAuthentication(Consumer<NoAuthentication.Builder> noAuthentication)Create an instance of this class withnoAuthentication()initialized to the given value.static RelayAuthenticationfromNoAuthentication(NoAuthentication noAuthentication)Create an instance of this class withnoAuthentication()initialized to the given value.static RelayAuthenticationfromSecretArn(String secretArn)Create an instance of this class withsecretArn()initialized to the given value.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()NoAuthenticationnoAuthentication()Keep an empty structure if the relay destination server does not require SMTP credential authentication.List<SdkField<?>>sdkFields()StringsecretArn()The ARN of the secret created in secrets manager where the relay server's SMTP credentials are stored.static Class<? extends RelayAuthentication.Builder>serializableBuilderClass()RelayAuthentication.BuildertoBuilder()StringtoString()Returns a string representation of this object.RelayAuthentication.Typetype()Retrieve an enum value representing which member of this object is populated.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
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.
-
toBuilder
public RelayAuthentication.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<RelayAuthentication.Builder,RelayAuthentication>
-
builder
public static RelayAuthentication.Builder builder()
-
serializableBuilderClass
public static Class<? extends RelayAuthentication.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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.
-
fromNoAuthentication
public static RelayAuthentication fromNoAuthentication(NoAuthentication noAuthentication)
Create an instance of this class withnoAuthentication()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 withnoAuthentication()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 withsecretArn()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.
-
type
public RelayAuthentication.Type type()
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beRelayAuthentication.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beRelayAuthentication.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
-