Partager via


UserArtifactSource Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.UserArtifactSource

Implements

public final class UserArtifactSource
implements JsonSerializable<UserArtifactSource>

The source image from which the Image Version is going to be created.

Constructor Summary

Constructor Description
UserArtifactSource()

Creates an instance of UserArtifactSource class.

Method Summary

Modifier and Type Method and Description
String defaultConfigurationLink()

Get the defaultConfigurationLink property: Optional.

static UserArtifactSource fromJson(JsonReader jsonReader)

Reads an instance of UserArtifactSource from the JsonReader.

String mediaLink()

Get the mediaLink property: Required.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

UserArtifactSource withDefaultConfigurationLink(String defaultConfigurationLink)

Set the defaultConfigurationLink property: Optional.

UserArtifactSource withMediaLink(String mediaLink)

Set the mediaLink property: Required.

Methods inherited from java.lang.Object

Constructor Details

UserArtifactSource

public UserArtifactSource()

Creates an instance of UserArtifactSource class.

Method Details

defaultConfigurationLink

public String defaultConfigurationLink()

Get the defaultConfigurationLink property: Optional. The defaultConfigurationLink of the artifact, must be a readable storage page blob.

Returns:

the defaultConfigurationLink value.

fromJson

public static UserArtifactSource fromJson(JsonReader jsonReader)

Reads an instance of UserArtifactSource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

mediaLink

public String mediaLink()

Get the mediaLink property: Required. The mediaLink of the artifact, must be a readable storage page blob.

Returns:

the mediaLink value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDefaultConfigurationLink

public UserArtifactSource withDefaultConfigurationLink(String defaultConfigurationLink)

Set the defaultConfigurationLink property: Optional. The defaultConfigurationLink of the artifact, must be a readable storage page blob.

Parameters:

defaultConfigurationLink - the defaultConfigurationLink value to set.

Returns:

the UserArtifactSource object itself.

withMediaLink

public UserArtifactSource withMediaLink(String mediaLink)

Set the mediaLink property: Required. The mediaLink of the artifact, must be a readable storage page blob.

Parameters:

mediaLink - the mediaLink value to set.

Returns:

the UserArtifactSource object itself.

Applies to