LineRegistration Class

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

Implements

public final class LineRegistration
implements JsonSerializable<LineRegistration>

The properties corresponding to a line channel registration.

Constructor Summary

Constructor Description
LineRegistration()

Creates an instance of LineRegistration class.

Method Summary

Modifier and Type Method and Description
String channelAccessToken()

Get the channelAccessToken property: Access token for the line channel registration.

String channelSecret()

Get the channelSecret property: Secret for the line channel registration.

static LineRegistration fromJson(JsonReader jsonReader)

Reads an instance of LineRegistration from the JsonReader.

String generatedId()

Get the generatedId property: Id generated for the line channel registration.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

LineRegistration withChannelAccessToken(String channelAccessToken)

Set the channelAccessToken property: Access token for the line channel registration.

LineRegistration withChannelSecret(String channelSecret)

Set the channelSecret property: Secret for the line channel registration.

Methods inherited from java.lang.Object

Constructor Details

LineRegistration

public LineRegistration()

Creates an instance of LineRegistration class.

Method Details

channelAccessToken

public String channelAccessToken()

Get the channelAccessToken property: Access token for the line channel registration.

Returns:

the channelAccessToken value.

channelSecret

public String channelSecret()

Get the channelSecret property: Secret for the line channel registration.

Returns:

the channelSecret value.

fromJson

public static LineRegistration fromJson(JsonReader jsonReader)

Reads an instance of LineRegistration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

generatedId

public String generatedId()

Get the generatedId property: Id generated for the line channel registration.

Returns:

the generatedId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withChannelAccessToken

public LineRegistration withChannelAccessToken(String channelAccessToken)

Set the channelAccessToken property: Access token for the line channel registration.

Parameters:

channelAccessToken - the channelAccessToken value to set.

Returns:

the LineRegistration object itself.

withChannelSecret

public LineRegistration withChannelSecret(String channelSecret)

Set the channelSecret property: Secret for the line channel registration.

Parameters:

channelSecret - the channelSecret value to set.

Returns:

the LineRegistration object itself.

Applies to