Class AdmCredential
- java.lang.Object
-
- com.azure.resourcemanager.notificationhubs.models.AdmCredential
-
public final class AdmCredential extends Object
Description of a NotificationHub AdmCredential.
-
-
Constructor Summary
Constructors Constructor Description AdmCredential()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
authTokenUrl()
Get the authTokenUrl property: The URL of the authorization token.String
clientId()
Get the clientId property: The client identifier.String
clientSecret()
Get the clientSecret property: The credential secret access key.void
validate()
Validates the instance.AdmCredential
withAuthTokenUrl(String authTokenUrl)
Set the authTokenUrl property: The URL of the authorization token.AdmCredential
withClientId(String clientId)
Set the clientId property: The client identifier.AdmCredential
withClientSecret(String clientSecret)
Set the clientSecret property: The credential secret access key.
-
-
-
Method Detail
-
clientId
public String clientId()
Get the clientId property: The client identifier.- Returns:
- the clientId value.
-
withClientId
public AdmCredential withClientId(String clientId)
Set the clientId property: The client identifier.- Parameters:
clientId
- the clientId value to set.- Returns:
- the AdmCredential object itself.
-
clientSecret
public String clientSecret()
Get the clientSecret property: The credential secret access key.- Returns:
- the clientSecret value.
-
withClientSecret
public AdmCredential withClientSecret(String clientSecret)
Set the clientSecret property: The credential secret access key.- Parameters:
clientSecret
- the clientSecret value to set.- Returns:
- the AdmCredential object itself.
-
authTokenUrl
public String authTokenUrl()
Get the authTokenUrl property: The URL of the authorization token.- Returns:
- the authTokenUrl value.
-
withAuthTokenUrl
public AdmCredential withAuthTokenUrl(String authTokenUrl)
Set the authTokenUrl property: The URL of the authorization token.- Parameters:
authTokenUrl
- the authTokenUrl value to set.- Returns:
- the AdmCredential object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-