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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FeatureResultInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of FeatureResultInner from the JsonReader.id()Get the id property: The resource ID of the feature.name()Get the name property: The name of the feature.Get the properties property: Properties of the previewed feature.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The resource type of the feature.voidvalidate()Validates the instance.Set the id property: The resource ID of the feature.Set the name property: The name of the feature.withProperties(FeatureProperties properties) Set the properties property: Properties of the previewed feature.Set the type property: The resource type of the feature.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
-
FeatureResultInner
public FeatureResultInner()Creates an instance of FeatureResultInner class.
-
-
Method Details
-
name
Get the name property: The name of the feature.- Returns:
- the name value.
-
withName
Set the name property: The name of the feature.- Parameters:
name- the name value to set.- Returns:
- the FeatureResultInner object itself.
-
properties
Get the properties property: Properties of the previewed feature.- Returns:
- the properties value.
-
withProperties
Set the properties property: Properties of the previewed feature.- Parameters:
properties- the properties value to set.- Returns:
- the FeatureResultInner object itself.
-
id
Get the id property: The resource ID of the feature.- Returns:
- the id value.
-
withId
Set the id property: The resource ID of the feature.- Parameters:
id- the id value to set.- Returns:
- the FeatureResultInner object itself.
-
type
Get the type property: The resource type of the feature.- Returns:
- the type value.
-
withType
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<FeatureResultInner>- Throws:
IOException
-
fromJson
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.
-