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 Details

    • InstanceProperties

      public InstanceProperties()
      Creates an instance of InstanceProperties class.
  • Method Details

    • marketplace

      public MarketplaceDetails marketplace()
      Get the marketplace property: Marketplace details of the resource.
      Returns:
      the marketplace value.
    • withMarketplace

      public InstanceProperties withMarketplace(MarketplaceDetails marketplace)
      Set the marketplace property: Marketplace details of the resource.
      Parameters:
      marketplace - the marketplace value to set.
      Returns:
      the InstanceProperties object itself.
    • user

      public UserDetails user()
      Get the user property: Details of the user.
      Returns:
      the user value.
    • withUser

      public InstanceProperties withUser(UserDetails user)
      Set the user property: Details of the user.
      Parameters:
      user - the user value to set.
      Returns:
      the InstanceProperties object itself.
    • provisioningState

      public ResourceProvisioningState provisioningState()
      Get the provisioningState property: Provisioning state of the resource.
      Returns:
      the provisioningState value.
    • partnerProperties

      public PartnerProperties partnerProperties()
      Get the partnerProperties property: partner properties.
      Returns:
      the partnerProperties value.
    • withPartnerProperties

      public InstanceProperties withPartnerProperties(PartnerProperties partnerProperties)
      Set the partnerProperties property: partner properties.
      Parameters:
      partnerProperties - the partnerProperties value to set.
      Returns:
      the InstanceProperties object itself.
    • singleSignOnProperties

      public SingleSignOnPropertiesV2 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<InstanceProperties>
      Throws:
      IOException
    • fromJson

      public static InstanceProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.