Class SharingProfile
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.SharingProfile
-
public final class SharingProfile extends Object
Profile for gallery sharing to subscription or tenant.
-
-
Constructor Summary
Constructors Constructor Description SharingProfile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectcommunityGalleryInfo()Get the communityGalleryInfo property: Information of community gallery if current gallery is shared to community.List<SharingProfileGroup>groups()Get the groups property: A list of sharing profile groups.GallerySharingPermissionTypespermissions()Get the permissions property: This property allows you to specify the permission of sharing gallery.voidvalidate()Validates the instance.SharingProfilewithCommunityGalleryInfo(Object communityGalleryInfo)Set the communityGalleryInfo property: Information of community gallery if current gallery is shared to community.SharingProfilewithPermissions(GallerySharingPermissionTypes permissions)Set the permissions property: This property allows you to specify the permission of sharing gallery.
-
-
-
Method Detail
-
permissions
public GallerySharingPermissionTypes permissions()
Get the permissions property: This property allows you to specify the permission of sharing gallery. <br><br> Possible values are: <br><br> **Private** <br><br> **Groups**.- Returns:
- the permissions value.
-
withPermissions
public SharingProfile withPermissions(GallerySharingPermissionTypes permissions)
Set the permissions property: This property allows you to specify the permission of sharing gallery. <br><br> Possible values are: <br><br> **Private** <br><br> **Groups**.- Parameters:
permissions- the permissions value to set.- Returns:
- the SharingProfile object itself.
-
groups
public List<SharingProfileGroup> groups()
Get the groups property: A list of sharing profile groups.- Returns:
- the groups value.
-
communityGalleryInfo
public Object communityGalleryInfo()
Get the communityGalleryInfo property: Information of community gallery if current gallery is shared to community.- Returns:
- the communityGalleryInfo value.
-
withCommunityGalleryInfo
public SharingProfile withCommunityGalleryInfo(Object communityGalleryInfo)
Set the communityGalleryInfo property: Information of community gallery if current gallery is shared to community.- Parameters:
communityGalleryInfo- the communityGalleryInfo value to set.- Returns:
- the SharingProfile object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-