Share via


SecurityProfile Class

  • java.lang.Object
    • com.azure.resourcemanager.labservices.models.SecurityProfile

Implements

public final class SecurityProfile
implements JsonSerializable<SecurityProfile>

The lab security profile.

Constructor Summary

Constructor Description
SecurityProfile()

Creates an instance of SecurityProfile class.

Method Summary

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

Reads an instance of SecurityProfile from the JsonReader.

EnableState openAccess()

Get the openAccess property: Whether any user or only specified users can register to a lab.

String registrationCode()

Get the registrationCode property: The registration code for the lab.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SecurityProfile withOpenAccess(EnableState openAccess)

Set the openAccess property: Whether any user or only specified users can register to a lab.

Methods inherited from java.lang.Object

Constructor Details

SecurityProfile

public SecurityProfile()

Creates an instance of SecurityProfile class.

Method Details

fromJson

public static SecurityProfile fromJson(JsonReader jsonReader)

Reads an instance of SecurityProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

openAccess

public EnableState openAccess()

Get the openAccess property: Whether any user or only specified users can register to a lab.

Returns:

the openAccess value.

registrationCode

public String registrationCode()

Get the registrationCode property: The registration code for the lab.

Returns:

the registrationCode value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withOpenAccess

public SecurityProfile withOpenAccess(EnableState openAccess)

Set the openAccess property: Whether any user or only specified users can register to a lab.

Parameters:

openAccess - the openAccess value to set.

Returns:

the SecurityProfile object itself.

Applies to