Share via


SiteInfo Class

  • java.lang.Object
    • com.azure.resourcemanager.botservice.models.SiteInfo

Implements

public final class SiteInfo
implements JsonSerializable<SiteInfo>

Site information for WebChat or DirectLine Channels to identify which site to regenerate keys for.

Constructor Summary

Constructor Description
SiteInfo()

Creates an instance of SiteInfo class.

Method Summary

Modifier and Type Method and Description
static SiteInfo fromJson(JsonReader jsonReader)

Reads an instance of SiteInfo from the JsonReader.

Key key()

Get the key property: Determines which key is to be regenerated.

String siteName()

Get the siteName property: The site name.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SiteInfo withKey(Key key)

Set the key property: Determines which key is to be regenerated.

SiteInfo withSiteName(String siteName)

Set the siteName property: The site name.

Methods inherited from java.lang.Object

Constructor Details

SiteInfo

public SiteInfo()

Creates an instance of SiteInfo class.

Method Details

fromJson

public static SiteInfo fromJson(JsonReader jsonReader)

Reads an instance of SiteInfo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

key

public Key key()

Get the key property: Determines which key is to be regenerated.

Returns:

the key value.

siteName

public String siteName()

Get the siteName property: The site name.

Returns:

the siteName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withKey

public SiteInfo withKey(Key key)

Set the key property: Determines which key is to be regenerated.

Parameters:

key - the key value to set.

Returns:

the SiteInfo object itself.

withSiteName

public SiteInfo withSiteName(String siteName)

Set the siteName property: The site name.

Parameters:

siteName - the siteName value to set.

Returns:

the SiteInfo object itself.

Applies to