Class FeatureResultInner

java.lang.Object
com.azure.resourcemanager.resources.fluent.models.FeatureResultInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<FeatureResultInner>

public final class FeatureResultInner extends Object implements com.azure.json.JsonSerializable<FeatureResultInner>
Previewed feature information.
  • Constructor Details

    • FeatureResultInner

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

    • name

      public String name()
      Get the name property: The name of the feature.
      Returns:
      the name value.
    • withName

      public FeatureResultInner withName(String name)
      Set the name property: The name of the feature.
      Parameters:
      name - the name value to set.
      Returns:
      the FeatureResultInner object itself.
    • properties

      public FeatureProperties properties()
      Get the properties property: Properties of the previewed feature.
      Returns:
      the properties value.
    • withProperties

      public FeatureResultInner withProperties(FeatureProperties properties)
      Set the properties property: Properties of the previewed feature.
      Parameters:
      properties - the properties value to set.
      Returns:
      the FeatureResultInner object itself.
    • id

      public String id()
      Get the id property: The resource ID of the feature.
      Returns:
      the id value.
    • withId

      public FeatureResultInner withId(String id)
      Set the id property: The resource ID of the feature.
      Parameters:
      id - the id value to set.
      Returns:
      the FeatureResultInner object itself.
    • type

      public String type()
      Get the type property: The resource type of the feature.
      Returns:
      the type value.
    • withType

      public FeatureResultInner withType(String type)
      Set the type property: The resource type of the feature.
      Parameters:
      type - the type value to set.
      Returns:
      the FeatureResultInner 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<FeatureResultInner>
      Throws:
      IOException
    • fromJson

      public static FeatureResultInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of FeatureResultInner from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of FeatureResultInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the FeatureResultInner.