Share via


ProfileInner Class

public final class ProfileInner
extends Resource

Defines an Network Experiment Profile and lists of Experiments.

Constructor Summary

Constructor Description
ProfileInner()

Creates an instance of ProfileInner class.

Method Summary

Modifier and Type Method and Description
State enabledState()

Get the enabledState property: The state of the Experiment.

String etag()

Get the etag property: Gets a unique read-only string that changes whenever the resource is updated.

static ProfileInner fromJson(JsonReader jsonReader)

Reads an instance of ProfileInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String name()

Get the name property: The name of the resource.

NetworkExperimentResourceState resourceState()

Get the resourceState property: Resource status.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

ProfileInner withEnabledState(State enabledState)

Set the enabledState property: The state of the Experiment.

ProfileInner withEtag(String etag)

Set the etag property: Gets a unique read-only string that changes whenever the resource is updated.

ProfileInner withLocation(String location)
ProfileInner withTags(Map<String,String> tags)

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

ProfileInner

public ProfileInner()

Creates an instance of ProfileInner class.

Method Details

enabledState

public State enabledState()

Get the enabledState property: The state of the Experiment.

Returns:

the enabledState value.

etag

public String etag()

Get the etag property: Gets a unique read-only string that changes whenever the resource is updated.

Returns:

the etag value.

fromJson

public static ProfileInner fromJson(JsonReader jsonReader)

Reads an instance of ProfileInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ProfileInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

ProfileInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ProfileInner.name()

Returns:

the name value.

resourceState

public NetworkExperimentResourceState resourceState()

Get the resourceState property: Resource status.

Returns:

the resourceState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ProfileInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ProfileInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withEnabledState

public ProfileInner withEnabledState(State enabledState)

Set the enabledState property: The state of the Experiment.

Parameters:

enabledState - the enabledState value to set.

Returns:

the ProfileInner object itself.

withEtag

public ProfileInner withEtag(String etag)

Set the etag property: Gets a unique read-only string that changes whenever the resource is updated.

Parameters:

etag - the etag value to set.

Returns:

the ProfileInner object itself.

withLocation

public ProfileInner withLocation(String location)

Overrides:

ProfileInner.withLocation(String location)

Parameters:

location

withTags

public ProfileInner withTags(Map<String,String> tags)

Overrides:

ProfileInner.withTags(Map<String,String> tags)

Parameters:

tags

Applies to