SharingProfile Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. SharingProfile
- com.
Implements
public final class SharingProfile
implements JsonSerializable<SharingProfile>
Profile for gallery sharing to subscription or tenant.
Constructor Summary
Constructor | Description |
---|---|
SharingProfile() |
Creates an instance of Sharing |
Method Summary
Modifier and Type | Method and Description |
---|---|
Community |
communityGalleryInfo()
Get the community |
static
Sharing |
fromJson(JsonReader jsonReader)
Reads an instance of Sharing |
List<Sharing |
groups()
Get the groups property: A list of sharing profile groups. |
Gallery |
permissions()
Get the permissions property: This property allows you to specify the permission of sharing gallery. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Sharing |
withCommunityGalleryInfo(CommunityGalleryInfo communityGalleryInfo)
Set the community |
Sharing |
withPermissions(GallerySharingPermissionTypes permissions)
Set the permissions property: This property allows you to specify the permission of sharing gallery. |
Methods inherited from java.lang.Object
Constructor Details
SharingProfile
public SharingProfile()
Creates an instance of SharingProfile class.
Method Details
communityGalleryInfo
public CommunityGalleryInfo communityGalleryInfo()
Get the communityGalleryInfo property: Information of community gallery if current gallery is shared to community.
Returns:
fromJson
public static SharingProfile fromJson(JsonReader jsonReader)
Reads an instance of SharingProfile from the JsonReader.
Parameters:
Returns:
Throws:
groups
public List
Get the groups property: A list of sharing profile groups.
Returns:
permissions
public GallerySharingPermissionTypes permissions()
Get the permissions property: This property allows you to specify the permission of sharing gallery. Possible values are: **Private,** **Groups,** **Community.**.
Returns:
toJson
validate
public void validate()
Validates the instance.
withCommunityGalleryInfo
public SharingProfile withCommunityGalleryInfo(CommunityGalleryInfo communityGalleryInfo)
Set the communityGalleryInfo property: Information of community gallery if current gallery is shared to community.
Parameters:
Returns:
withPermissions
public SharingProfile withPermissions(GallerySharingPermissionTypes permissions)
Set the permissions property: This property allows you to specify the permission of sharing gallery. Possible values are: **Private,** **Groups,** **Community.**.
Parameters:
Returns:
Applies to
Azure SDK for Java