Package model
Class CreateWebhookRequestAuthenticationBasic
- java.lang.Object
-
- model.CreateWebhookRequestAuthenticationBasic
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class CreateWebhookRequestAuthenticationBasic extends Object
The basic authentication configuration. Null if basic is not being used.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateWebhookRequestAuthenticationBasic.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_PASSWORDstatic StringSERIALIZED_NAME_USERNAME
-
Constructor Summary
Constructors Constructor Description CreateWebhookRequestAuthenticationBasic()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static CreateWebhookRequestAuthenticationBasicfromJson(String jsonString)Create an instance of CreateWebhookRequestAuthenticationBasic given an JSON stringStringgetPassword()The password to be used for basic authentication.StringgetUsername()The username that will be used for basic authenticationinthashCode()CreateWebhookRequestAuthenticationBasicpassword(String password)voidsetPassword(String password)voidsetUsername(String username)StringtoJson()Convert an instance of CreateWebhookRequestAuthenticationBasic to an JSON stringStringtoString()CreateWebhookRequestAuthenticationBasicusername(String username)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_USERNAME
public static final String SERIALIZED_NAME_USERNAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PASSWORD
public static final String SERIALIZED_NAME_PASSWORD
- See Also:
- Constant Field Values
-
-
Method Detail
-
username
public CreateWebhookRequestAuthenticationBasic username(String username)
-
getUsername
@Nullable public String getUsername()
The username that will be used for basic authentication- Returns:
- username
-
setUsername
public void setUsername(String username)
-
password
public CreateWebhookRequestAuthenticationBasic password(String password)
-
getPassword
@Nullable public String getPassword()
The password to be used for basic authentication.- Returns:
- password
-
setPassword
public void setPassword(String password)
-
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 CreateWebhookRequestAuthenticationBasic
-
fromJson
public static CreateWebhookRequestAuthenticationBasic fromJson(String jsonString) throws IOException
Create an instance of CreateWebhookRequestAuthenticationBasic given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateWebhookRequestAuthenticationBasic
- Throws:
IOException- if the JSON string is invalid with respect to CreateWebhookRequestAuthenticationBasic
-
toJson
public String toJson()
Convert an instance of CreateWebhookRequestAuthenticationBasic to an JSON string- Returns:
- JSON string
-
-