-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4de175e
commit ad8ca47
Showing
3 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package com.resend.services.domains.model; | ||
|
||
/** | ||
* Enum representing the TLS settings for a domain. | ||
*/ | ||
public enum Tls { | ||
/** | ||
* Represents an enforced TLS setting. | ||
*/ | ||
ENFORCED("enforced"), | ||
/** | ||
* Represents an opportunistic TLS setting. | ||
*/ | ||
OPPORTUNISTIC("opportunistic"); | ||
|
||
/** | ||
* Holds the string representation of the enum value. | ||
*/ | ||
private final String value; | ||
|
||
/** | ||
* Constructor for the Tls enum. | ||
* | ||
* @param value The string representation of the TLS setting. | ||
*/ | ||
Tls(String value) { | ||
this.value = value; | ||
} | ||
|
||
/** | ||
* Retrieves the string representation of the TLS setting. | ||
* | ||
* @return The string representation of the TLS setting. | ||
*/ | ||
public String getValue() { | ||
return value; | ||
} | ||
|
||
/** | ||
* Returns the string representation of the TLS setting. | ||
* | ||
* @return The string representation of the TLS setting. | ||
*/ | ||
@Override | ||
public String toString() { | ||
return this.value; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters