İngilizce dilinde oku

Aracılığıyla paylaş


CustomContainerUserSourceInfo Class

public final class CustomContainerUserSourceInfo
extends UserSourceInfo

Custom container user source info.

Constructor Summary

Constructor Description
CustomContainerUserSourceInfo()

Creates an instance of CustomContainerUserSourceInfo class.

Method Summary

Modifier and Type Method and Description
CustomContainer customContainer()

Get the customContainer property: Custom container payload.

static CustomContainerUserSourceInfo fromJson(JsonReader jsonReader)

Reads an instance of CustomContainerUserSourceInfo from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Type of the source uploaded.

void validate()

Validates the instance.

CustomContainerUserSourceInfo withCustomContainer(CustomContainer customContainer)

Set the customContainer property: Custom container payload.

CustomContainerUserSourceInfo withVersion(String version)

Set the version property: Version of the source.

Methods inherited from UserSourceInfo

Methods inherited from java.lang.Object

Constructor Details

CustomContainerUserSourceInfo

public CustomContainerUserSourceInfo()

Creates an instance of CustomContainerUserSourceInfo class.

Method Details

customContainer

public CustomContainer customContainer()

Get the customContainer property: Custom container payload.

Returns:

the customContainer value.

fromJson

public static CustomContainerUserSourceInfo fromJson(JsonReader jsonReader)

Reads an instance of CustomContainerUserSourceInfo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

CustomContainerUserSourceInfo.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Type of the source uploaded.

Overrides:

CustomContainerUserSourceInfo.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

CustomContainerUserSourceInfo.validate()

withCustomContainer

public CustomContainerUserSourceInfo withCustomContainer(CustomContainer customContainer)

Set the customContainer property: Custom container payload.

Parameters:

customContainer - the customContainer value to set.

Returns:

the CustomContainerUserSourceInfo object itself.

withVersion

public CustomContainerUserSourceInfo withVersion(String version)

Set the version property: Version of the source.

Overrides:

CustomContainerUserSourceInfo.withVersion(String version)

Parameters:

version

Applies to

Azure SDK for Java

Latest