Twitter Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. Twitter
- com.
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: |
static Twitter |
fromJson(JsonReader jsonReader)
Reads an instance of Twitter from the Json |
Twitter |
registration()
Get the registration property: The configuration settings of the app registration for the Twitter provider. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
withEnabled(Boolean enabled)
Set the enabled property: |
|
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
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:
fromJson
public static Twitter fromJson(JsonReader jsonReader)
Reads an instance of Twitter from the JsonReader.
Parameters:
Returns:
Throws:
registration
public TwitterRegistration registration()
Get the registration property: The configuration settings of the app registration for the Twitter provider.
Returns:
toJson
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:
Returns:
withRegistration
public Twitter withRegistration(TwitterRegistration registration)
Set the registration property: The configuration settings of the app registration for the Twitter provider.
Parameters:
Returns:
Applies to
Azure SDK for Java