Twitter Class

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

Implements

public final class Twitter
implements JsonSerializable<Twitter>

The configuration settings of the Twitter provider.

Constructor Summary

Constructor Description
Twitter()

Creates an instance of Twitter class.

Method Summary

Modifier and Type Method and Description
Boolean enabled()

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

static Twitter fromJson(JsonReader jsonReader)

Reads an instance of Twitter from the JsonReader.

TwitterRegistration registration()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Twitter withEnabled(Boolean enabled)

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

Twitter withRegistration(TwitterRegistration registration)

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

Methods inherited from java.lang.Object

Constructor Details

Twitter

public Twitter()

Creates an instance of Twitter class.

Method Details

enabled

public Boolean enabled()

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

Returns:

the enabled value.

fromJson

public static Twitter fromJson(JsonReader jsonReader)

Reads an instance of Twitter from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of Twitter 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 Twitter.

registration

public TwitterRegistration registration()

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

Returns:

the registration value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEnabled

public Twitter withEnabled(Boolean enabled)

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

Parameters:

enabled - the enabled value to set.

Returns:

the Twitter object itself.

withRegistration

public Twitter withRegistration(TwitterRegistration registration)

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

Parameters:

registration - the registration value to set.

Returns:

the Twitter object itself.

Applies to