Partager via


FeatureResultInner Class

  • java.lang.Object
    • com.azure.resourcemanager.resources.fluent.models.FeatureResultInner

Implements

public final class FeatureResultInner
implements JsonSerializable<FeatureResultInner>

Previewed feature information.

Constructor Summary

Constructor Description
FeatureResultInner()

Creates an instance of FeatureResultInner class.

Method Summary

Modifier and Type Method and Description
static FeatureResultInner fromJson(JsonReader jsonReader)

Reads an instance of FeatureResultInner from the JsonReader.

String id()

Get the id property: The resource ID of the feature.

String name()

Get the name property: The name of the feature.

FeatureProperties properties()

Get the properties property: Properties of the previewed feature.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The resource type of the feature.

void validate()

Validates the instance.

FeatureResultInner withId(String id)

Set the id property: The resource ID of the feature.

FeatureResultInner withName(String name)

Set the name property: The name of the feature.

FeatureResultInner withProperties(FeatureProperties properties)

Set the properties property: Properties of the previewed feature.

FeatureResultInner withType(String type)

Set the type property: The resource type of the feature.

Methods inherited from java.lang.Object

Constructor Details

FeatureResultInner

public FeatureResultInner()

Creates an instance of FeatureResultInner class.

Method Details

fromJson

public static FeatureResultInner fromJson(JsonReader jsonReader)

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.

id

public String id()

Get the id property: The resource ID of the feature.

Returns:

the id value.

name

public String name()

Get the name property: The name of the feature.

Returns:

the name value.

properties

public FeatureProperties properties()

Get the properties property: Properties of the previewed feature.

Returns:

the properties value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The resource type of the feature.

Returns:

the type value.

validate

public void validate()

Validates the instance.

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.

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.

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.

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.

Applies to