UserMetricsModelInner Class

public final class UserMetricsModelInner
extends ProxyResource

Class representing Traffic Manager User Metrics.

Constructor Summary

Constructor Description
UserMetricsModelInner()

Creates an instance of UserMetricsModelInner class.

Method Summary

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

Reads an instance of UserMetricsModelInner from the JsonReader.

String id()

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

String key()

Get the key property: The key returned by the User Metrics operation.

String name()

Get the name property: The name of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

UserMetricsModelInner withId(String id)

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

UserMetricsModelInner withKey(String key)

Set the key property: The key returned by the User Metrics operation.

UserMetricsModelInner withName(String name)

Set the name property: The name of the resource.

UserMetricsModelInner withType(String type)

Set the type property: The type of the resource.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

UserMetricsModelInner

public UserMetricsModelInner()

Creates an instance of UserMetricsModelInner class.

Method Details

fromJson

public static UserMetricsModelInner fromJson(JsonReader jsonReader)

Reads an instance of UserMetricsModelInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of UserMetricsModelInner 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. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}.

Overrides:

UserMetricsModelInner.id()

Returns:

the id value.

key

public String key()

Get the key property: The key returned by the User Metrics operation.

Returns:

the key value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

UserMetricsModelInner.name()

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

UserMetricsModelInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource. Ex- Microsoft.Network/trafficManagerProfiles.

Overrides:

UserMetricsModelInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withId

public UserMetricsModelInner withId(String id)

Set the id property: Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}.

Parameters:

id - the id value to set.

Returns:

the UserMetricsModelInner object itself.

withKey

public UserMetricsModelInner withKey(String key)

Set the key property: The key returned by the User Metrics operation.

Parameters:

key - the key value to set.

Returns:

the UserMetricsModelInner object itself.

withName

public UserMetricsModelInner withName(String name)

Set the name property: The name of the resource.

Parameters:

name - the name value to set.

Returns:

the UserMetricsModelInner object itself.

withType

public UserMetricsModelInner withType(String type)

Set the type property: The type of the resource. Ex- Microsoft.Network/trafficManagerProfiles.

Parameters:

type - the type value to set.

Returns:

the UserMetricsModelInner object itself.

Applies to