Class OAuth2AuthenticationSettingsContract
- java.lang.Object
-
- com.azure.resourcemanager.apimanagement.models.OAuth2AuthenticationSettingsContract
-
public final class OAuth2AuthenticationSettingsContract extends Object
API OAuth2 Authentication settings details.
-
-
Constructor Summary
Constructors Constructor Description OAuth2AuthenticationSettingsContract()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
authorizationServerId()
Get the authorizationServerId property: OAuth authorization server identifier.String
scope()
Get the scope property: operations scope.void
validate()
Validates the instance.OAuth2AuthenticationSettingsContract
withAuthorizationServerId(String authorizationServerId)
Set the authorizationServerId property: OAuth authorization server identifier.OAuth2AuthenticationSettingsContract
withScope(String scope)
Set the scope property: operations scope.
-
-
-
Method Detail
-
authorizationServerId
public String authorizationServerId()
Get the authorizationServerId property: OAuth authorization server identifier.- Returns:
- the authorizationServerId value.
-
withAuthorizationServerId
public OAuth2AuthenticationSettingsContract withAuthorizationServerId(String authorizationServerId)
Set the authorizationServerId property: OAuth authorization server identifier.- Parameters:
authorizationServerId
- the authorizationServerId value to set.- Returns:
- the OAuth2AuthenticationSettingsContract object itself.
-
scope
public String scope()
Get the scope property: operations scope.- Returns:
- the scope value.
-
withScope
public OAuth2AuthenticationSettingsContract withScope(String scope)
Set the scope property: operations scope.- Parameters:
scope
- the scope value to set.- Returns:
- the OAuth2AuthenticationSettingsContract object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-