GitHub Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. GitHub
- com.
Implements
public final class GitHub
implements JsonSerializable<GitHub>
The configuration settings of the GitHub provider.
Constructor Summary
Constructor | Description |
---|---|
GitHub() |
Creates an instance of Git |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
enabled()
Get the enabled property: |
static
Git |
fromJson(JsonReader jsonReader)
Reads an instance of Git |
Login |
login()
Get the login property: The configuration settings of the login flow. |
Client |
registration()
Get the registration property: The configuration settings of the app registration for the Git |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Git |
withEnabled(Boolean enabled)
Set the enabled property: |
Git |
withLogin(LoginScopes login)
Set the login property: The configuration settings of the login flow. |
Git |
withRegistration(ClientRegistration registration)
Set the registration property: The configuration settings of the app registration for the Git |
Methods inherited from java.lang.Object
Constructor Details
GitHub
public GitHub()
Creates an instance of GitHub class.
Method Details
enabled
public Boolean enabled()
Get the enabled property: false
if the GitHub provider should not be enabled despite the set registration; otherwise, true
.
Returns:
fromJson
public static GitHub fromJson(JsonReader jsonReader)
Reads an instance of GitHub from the JsonReader.
Parameters:
Returns:
Throws:
login
public LoginScopes login()
Get the login property: The configuration settings of the login flow.
Returns:
registration
public ClientRegistration registration()
Get the registration property: The configuration settings of the app registration for the GitHub provider.
Returns:
toJson
validate
public void validate()
Validates the instance.
withEnabled
public GitHub withEnabled(Boolean enabled)
Set the enabled property: false
if the GitHub provider should not be enabled despite the set registration; otherwise, true
.
Parameters:
Returns:
withLogin
public GitHub withLogin(LoginScopes login)
Set the login property: The configuration settings of the login flow.
Parameters:
Returns:
withRegistration
public GitHub withRegistration(ClientRegistration registration)
Set the registration property: The configuration settings of the app registration for the GitHub provider.
Parameters:
Returns:
Applies to
Azure SDK for Java