Share via


RegistrationParameter Class

  • java.lang.Object
    • com.azure.resourcemanager.azurestack.models.RegistrationParameter

Implements

public final class RegistrationParameter
implements JsonSerializable<RegistrationParameter>

Registration resource.

Constructor Summary

Constructor Description
RegistrationParameter()

Creates an instance of RegistrationParameter class.

Method Summary

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

Reads an instance of RegistrationParameter from the JsonReader.

Location location()

Get the location property: Location of the resource.

String registrationToken()

Get the registrationToken property: The token identifying registered Azure Stack.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RegistrationParameter withLocation(Location location)

Set the location property: Location of the resource.

RegistrationParameter withRegistrationToken(String registrationToken)

Set the registrationToken property: The token identifying registered Azure Stack.

Methods inherited from java.lang.Object

Constructor Details

RegistrationParameter

public RegistrationParameter()

Creates an instance of RegistrationParameter class.

Method Details

fromJson

public static RegistrationParameter fromJson(JsonReader jsonReader)

Reads an instance of RegistrationParameter from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

location

public Location location()

Get the location property: Location of the resource.

Returns:

the location value.

registrationToken

public String registrationToken()

Get the registrationToken property: The token identifying registered Azure Stack.

Returns:

the registrationToken value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withLocation

public RegistrationParameter withLocation(Location location)

Set the location property: Location of the resource.

Parameters:

location - the location value to set.

Returns:

the RegistrationParameter object itself.

withRegistrationToken

public RegistrationParameter withRegistrationToken(String registrationToken)

Set the registrationToken property: The token identifying registered Azure Stack.

Parameters:

registrationToken - the registrationToken value to set.

Returns:

the RegistrationParameter object itself.

Applies to