GitHub Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.GitHub

Implements

public final class GitHub
implements JsonSerializable<GitHub>

The configuration settings of the GitHub provider.

Constructor Summary

Constructor Description
GitHub()

Creates an instance of GitHub class.

Method Summary

Modifier and Type Method and Description
Boolean enabled()

Get the enabled property: false if the GitHub provider should not be enabled despite the set registration; otherwise, true.

static GitHub fromJson(JsonReader jsonReader)

Reads an instance of GitHub from the JsonReader.

LoginScopes login()

Get the login property: The configuration settings of the login flow.

ClientRegistration registration()

Get the registration property: The configuration settings of the app registration for the GitHub provider.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

GitHub withEnabled(Boolean enabled)

Set the enabled property: false if the GitHub provider should not be enabled despite the set registration; otherwise, true.

GitHub withLogin(LoginScopes login)

Set the login property: The configuration settings of the login flow.

GitHub withRegistration(ClientRegistration registration)

Set the registration property: The configuration settings of the app registration for the GitHub provider.

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:

the enabled value.

fromJson

public static GitHub fromJson(JsonReader jsonReader)

Reads an instance of GitHub from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of GitHub if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the GitHub.

login

public LoginScopes login()

Get the login property: The configuration settings of the login flow.

Returns:

the login value.

registration

public ClientRegistration registration()

Get the registration property: The configuration settings of the app registration for the GitHub provider.

Returns:

the registration value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

enabled - the enabled value to set.

Returns:

the GitHub object itself.

withLogin

public GitHub withLogin(LoginScopes login)

Set the login property: The configuration settings of the login flow.

Parameters:

login - the login value to set.

Returns:

the GitHub object itself.

withRegistration

public GitHub withRegistration(ClientRegistration registration)

Set the registration property: The configuration settings of the app registration for the GitHub provider.

Parameters:

registration - the registration value to set.

Returns:

the GitHub object itself.

Applies to