Package com.adyen.model.management
Class Url
- java.lang.Object
-
- com.adyen.model.management.Url
-
public class Url extends Object
Url
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUrl.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ENCRYPTEDstatic StringSERIALIZED_NAME_PASSWORDstatic StringSERIALIZED_NAME_URLstatic StringSERIALIZED_NAME_USERNAME
-
Constructor Summary
Constructors Constructor Description Url()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Urlencrypted(Boolean encrypted)booleanequals(Object o)static UrlfromJson(String jsonString)Create an instance of Url given an JSON stringBooleangetEncrypted()Indicates if the message sent to this URL should be encrypted.StringgetPassword()The password for authentication of the notifications.StringgetUrl()The URL in the format: http(s)://domain.com.StringgetUsername()The username for authentication of the notifications.inthashCode()Urlpassword(String password)voidsetEncrypted(Boolean encrypted)voidsetPassword(String password)voidsetUrl(String url)voidsetUsername(String username)StringtoJson()Convert an instance of Url to an JSON stringStringtoString()Urlurl(String url)Urlusername(String username)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_ENCRYPTED
public static final String SERIALIZED_NAME_ENCRYPTED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PASSWORD
public static final String SERIALIZED_NAME_PASSWORD
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_URL
public static final String SERIALIZED_NAME_URL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_USERNAME
public static final String SERIALIZED_NAME_USERNAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getEncrypted
public Boolean getEncrypted()
Indicates if the message sent to this URL should be encrypted.- Returns:
- encrypted
-
setEncrypted
public void setEncrypted(Boolean encrypted)
-
getPassword
public String getPassword()
The password for authentication of the notifications.- Returns:
- password
-
setPassword
public void setPassword(String password)
-
getUrl
public String getUrl()
The URL in the format: http(s)://domain.com.- Returns:
- url
-
setUrl
public void setUrl(String url)
-
getUsername
public String getUsername()
The username for authentication of the notifications.- Returns:
- username
-
setUsername
public void setUsername(String username)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to Url
-
fromJson
public static Url fromJson(String jsonString) throws IOException
Create an instance of Url given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Url
- Throws:
IOException- if the JSON string is invalid with respect to Url
-
toJson
public String toJson()
Convert an instance of Url to an JSON string- Returns:
- JSON string
-
-