UserMetricsModelInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. trafficmanager. fluent. models. UserMetricsModelInner
- com.
- com.
public final class UserMetricsModelInner
extends ProxyResource
Class representing Traffic Manager User Metrics.
Constructor Summary
Constructor | Description |
---|---|
UserMetricsModelInner() |
Creates an instance of User |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
User |
fromJson(JsonReader jsonReader)
Reads an instance of User |
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. |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
User |
withId(String id)
Set the id property: Fully qualified resource Id for the resource. |
User |
withKey(String key)
Set the key property: The key returned by the User Metrics operation. |
User |
withName(String name)
Set the name property: The name of the resource. |
User |
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:
Returns:
Throws:
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:
key
public String key()
Get the key property: The key returned by the User Metrics operation.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
UserMetricsModelInner.name()Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
UserMetricsModelInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource. Ex- Microsoft.Network/trafficManagerProfiles.
Overrides:
UserMetricsModelInner.type()Returns:
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:
Returns:
withKey
public UserMetricsModelInner withKey(String key)
Set the key property: The key returned by the User Metrics operation.
Parameters:
Returns:
withName
public UserMetricsModelInner withName(String name)
Set the name property: The name of the resource.
Parameters:
Returns:
withType
public UserMetricsModelInner withType(String type)
Set the type property: The type of the resource. Ex- Microsoft.Network/trafficManagerProfiles.
Parameters:
Returns:
Applies to
Azure SDK for Java