Class GalleryList
java.lang.Object
com.azure.resourcemanager.compute.models.GalleryList
- All Implemented Interfaces:
com.azure.json.JsonSerializable<GalleryList>
public final class GalleryList
extends Object
implements com.azure.json.JsonSerializable<GalleryList>
The List Galleries operation response.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GalleryListfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of GalleryList from the JsonReader.nextLink()Get the nextLink property: The uri to fetch the next page of galleries.Get the securityProfile property: The security profile of a gallery image version.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.value()Get the value property: A list of galleries.withNextLink(String nextLink) Set the nextLink property: The uri to fetch the next page of galleries.withSecurityProfile(ImageVersionSecurityProfile securityProfile) Set the securityProfile property: The security profile of a gallery image version.withValue(List<GalleryInner> value) Set the value property: A list of galleries.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
GalleryList
public GalleryList()Creates an instance of GalleryList class.
-
-
Method Details
-
value
Get the value property: A list of galleries.- Returns:
- the value value.
-
withValue
Set the value property: A list of galleries.- Parameters:
value- the value value to set.- Returns:
- the GalleryList object itself.
-
nextLink
Get the nextLink property: The uri to fetch the next page of galleries. Call ListNext() with this to fetch the next page of galleries.- Returns:
- the nextLink value.
-
withNextLink
Set the nextLink property: The uri to fetch the next page of galleries. Call ListNext() with this to fetch the next page of galleries.- Parameters:
nextLink- the nextLink value to set.- Returns:
- the GalleryList object itself.
-
securityProfile
Get the securityProfile property: The security profile of a gallery image version.- Returns:
- the securityProfile value.
-
withSecurityProfile
Set the securityProfile property: The security profile of a gallery image version.- Parameters:
securityProfile- the securityProfile value to set.- Returns:
- the GalleryList object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<GalleryList>- Throws:
IOException
-
fromJson
Reads an instance of GalleryList from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of GalleryList if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the GalleryList.
-