Class InstanceProperties
java.lang.Object
com.azure.resourcemanager.weightsandbiases.models.InstanceProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<InstanceProperties>
public final class InstanceProperties
extends Object
implements com.azure.json.JsonSerializable<InstanceProperties>
Properties specific to Instance.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InstancePropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of InstanceProperties from the JsonReader.Get the marketplace property: Marketplace details of the resource.Get the partnerProperties property: partner properties.Get the provisioningState property: Provisioning state of the resource.Get the singleSignOnProperties property: Single sign-on properties.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) user()Get the user property: Details of the user.voidvalidate()Validates the instance.withMarketplace(MarketplaceDetails marketplace) Set the marketplace property: Marketplace details of the resource.withPartnerProperties(PartnerProperties partnerProperties) Set the partnerProperties property: partner properties.withSingleSignOnProperties(SingleSignOnPropertiesV2 singleSignOnProperties) Set the singleSignOnProperties property: Single sign-on properties.withUser(UserDetails user) Set the user property: Details of the user.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
-
InstanceProperties
public InstanceProperties()Creates an instance of InstanceProperties class.
-
-
Method Details
-
marketplace
Get the marketplace property: Marketplace details of the resource.- Returns:
- the marketplace value.
-
withMarketplace
Set the marketplace property: Marketplace details of the resource.- Parameters:
marketplace- the marketplace value to set.- Returns:
- the InstanceProperties object itself.
-
user
Get the user property: Details of the user.- Returns:
- the user value.
-
withUser
Set the user property: Details of the user.- Parameters:
user- the user value to set.- Returns:
- the InstanceProperties object itself.
-
provisioningState
Get the provisioningState property: Provisioning state of the resource.- Returns:
- the provisioningState value.
-
partnerProperties
Get the partnerProperties property: partner properties.- Returns:
- the partnerProperties value.
-
withPartnerProperties
Set the partnerProperties property: partner properties.- Parameters:
partnerProperties- the partnerProperties value to set.- Returns:
- the InstanceProperties object itself.
-
singleSignOnProperties
Get the singleSignOnProperties property: Single sign-on properties.- Returns:
- the singleSignOnProperties value.
-
withSingleSignOnProperties
public InstanceProperties withSingleSignOnProperties(SingleSignOnPropertiesV2 singleSignOnProperties) Set the singleSignOnProperties property: Single sign-on properties.- Parameters:
singleSignOnProperties- the singleSignOnProperties value to set.- Returns:
- the InstanceProperties 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<InstanceProperties>- Throws:
IOException
-
fromJson
Reads an instance of InstanceProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of InstanceProperties 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 InstanceProperties.
-