UserSourceInfo Class

  • java.lang.Object
    • com.azure.resourcemanager.appplatform.models.UserSourceInfo

Implements

public class UserSourceInfo
implements JsonSerializable<UserSourceInfo>

Source information for a deployment.

Constructor Summary

Constructor Description
UserSourceInfo()

Creates an instance of UserSourceInfo class.

Method Summary

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

Reads an instance of UserSourceInfo from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Type of the source uploaded.

void validate()

Validates the instance.

String version()

Get the version property: Version of the source.

UserSourceInfo withVersion(String version)

Set the version property: Version of the source.

Methods inherited from java.lang.Object

Constructor Details

UserSourceInfo

public UserSourceInfo()

Creates an instance of UserSourceInfo class.

Method Details

fromJson

public static UserSourceInfo fromJson(JsonReader jsonReader)

Reads an instance of UserSourceInfo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Type of the source uploaded.

Returns:

the type value.

validate

public void validate()

Validates the instance.

version

public String version()

Get the version property: Version of the source.

Returns:

the version value.

withVersion

public UserSourceInfo withVersion(String version)

Set the version property: Version of the source.

Parameters:

version - the version value to set.

Returns:

the UserSourceInfo object itself.

Applies to