Package com.adyen.model.management
Class Url
- java.lang.Object
-
- com.adyen.model.management.Url
-
public class Url extends Object
Url
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ENCRYPTEDstatic StringJSON_PROPERTY_PASSWORDstatic StringJSON_PROPERTY_URLstatic StringJSON_PROPERTY_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)Indicates if the message sent to this URL should be encrypted.booleanequals(Object o)Return true if this Url object is equal to 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)The password for authentication of the notifications.voidsetEncrypted(Boolean encrypted)Indicates if the message sent to this URL should be encrypted.voidsetPassword(String password)The password for authentication of the notifications.voidsetUrl(String url)The URL in the format: http(s)://domain.com.voidsetUsername(String username)The username for authentication of the notifications.StringtoJson()Convert an instance of Url to an JSON stringStringtoString()Urlurl(String url)The URL in the format: http(s)://domain.com.Urlusername(String username)The username for authentication of the notifications.
-
-
-
Field Detail
-
JSON_PROPERTY_ENCRYPTED
public static final String JSON_PROPERTY_ENCRYPTED
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PASSWORD
public static final String JSON_PROPERTY_PASSWORD
- See Also:
- Constant Field Values
-
JSON_PROPERTY_URL
public static final String JSON_PROPERTY_URL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_USERNAME
public static final String JSON_PROPERTY_USERNAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
encrypted
public Url encrypted(Boolean encrypted)
Indicates if the message sent to this URL should be encrypted.- Parameters:
encrypted-- Returns:
- the current
Urlinstance, allowing for method chaining
-
getEncrypted
public Boolean getEncrypted()
Indicates if the message sent to this URL should be encrypted.- Returns:
- encrypted
-
setEncrypted
public void setEncrypted(Boolean encrypted)
Indicates if the message sent to this URL should be encrypted.- Parameters:
encrypted-
-
password
public Url password(String password)
The password for authentication of the notifications.- Parameters:
password-- Returns:
- the current
Urlinstance, allowing for method chaining
-
getPassword
public String getPassword()
The password for authentication of the notifications.- Returns:
- password
-
setPassword
public void setPassword(String password)
The password for authentication of the notifications.- Parameters:
password-
-
url
public Url url(String url)
The URL in the format: http(s)://domain.com.- Parameters:
url-- Returns:
- the current
Urlinstance, allowing for method chaining
-
getUrl
public String getUrl()
The URL in the format: http(s)://domain.com.- Returns:
- url
-
setUrl
public void setUrl(String url)
The URL in the format: http(s)://domain.com.- Parameters:
url-
-
username
public Url username(String username)
The username for authentication of the notifications.- Parameters:
username-- Returns:
- the current
Urlinstance, allowing for method chaining
-
getUsername
public String getUsername()
The username for authentication of the notifications.- Returns:
- username
-
setUsername
public void setUsername(String username)
The username for authentication of the notifications.- Parameters:
username-
-
equals
public boolean equals(Object o)
Return true if this Url object is equal to o.
-
fromJson
public static Url fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of Url given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Url
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to Url
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of Url to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-