InviteCodeGenerateRequest Class

  • java.lang.Object
    • com.azure.resourcemanager.education.models.InviteCodeGenerateRequest

Implements

public final class InviteCodeGenerateRequest
implements JsonSerializable<InviteCodeGenerateRequest>

invite code generate request.

Constructor Summary

Constructor Description
InviteCodeGenerateRequest()

Creates an instance of InviteCodeGenerateRequest class.

Method Summary

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

Reads an instance of InviteCodeGenerateRequest from the JsonReader.

Float maxStudentCount()

Get the maxStudentCount property: the total number of students that can be accepted to the lab.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

InviteCodeGenerateRequest withMaxStudentCount(Float maxStudentCount)

Set the maxStudentCount property: the total number of students that can be accepted to the lab.

Methods inherited from java.lang.Object

Constructor Details

InviteCodeGenerateRequest

public InviteCodeGenerateRequest()

Creates an instance of InviteCodeGenerateRequest class.

Method Details

fromJson

public static InviteCodeGenerateRequest fromJson(JsonReader jsonReader)

Reads an instance of InviteCodeGenerateRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

maxStudentCount

public Float maxStudentCount()

Get the maxStudentCount property: the total number of students that can be accepted to the lab.

Returns:

the maxStudentCount value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withMaxStudentCount

public InviteCodeGenerateRequest withMaxStudentCount(Float maxStudentCount)

Set the maxStudentCount property: the total number of students that can be accepted to the lab.

Parameters:

maxStudentCount - the maxStudentCount value to set.

Returns:

the InviteCodeGenerateRequest object itself.

Applies to