Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. See License.txt in the project root for
license information.
Code generated by Microsoft (R) AutoRest Code Generator.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.monitor.implementation;
import com.microsoft.azure.management.monitor.MetricNamespaceName;
import com.fasterxml.jackson.annotation.JsonProperty;
Metric namespace class specifies the metadata for a metric namespace.
/**
* Metric namespace class specifies the metadata for a metric namespace.
*/
public class MetricNamespaceInner {
The ID of the metricNamespace.
/**
* The ID of the metricNamespace.
*/
@JsonProperty(value = "id")
private String id;
The type of the namespace.
/**
* The type of the namespace.
*/
@JsonProperty(value = "type")
private String type;
The name of the namespace.
/**
* The name of the namespace.
*/
@JsonProperty(value = "name")
private String name;
Properties which include the fully qualified namespace name.
/**
* Properties which include the fully qualified namespace name.
*/
@JsonProperty(value = "properties")
private MetricNamespaceName properties;
Get the ID of the metricNamespace.
Returns: the id value
/**
* Get the ID of the metricNamespace.
*
* @return the id value
*/
public String id() {
return this.id;
}
Set the ID of the metricNamespace.
Params: - id – the id value to set
Returns: the MetricNamespaceInner object itself.
/**
* Set the ID of the metricNamespace.
*
* @param id the id value to set
* @return the MetricNamespaceInner object itself.
*/
public MetricNamespaceInner withId(String id) {
this.id = id;
return this;
}
Get the type of the namespace.
Returns: the type value
/**
* Get the type of the namespace.
*
* @return the type value
*/
public String type() {
return this.type;
}
Set the type of the namespace.
Params: - type – the type value to set
Returns: the MetricNamespaceInner object itself.
/**
* Set the type of the namespace.
*
* @param type the type value to set
* @return the MetricNamespaceInner object itself.
*/
public MetricNamespaceInner withType(String type) {
this.type = type;
return this;
}
Get the name of the namespace.
Returns: the name value
/**
* Get the name of the namespace.
*
* @return the name value
*/
public String name() {
return this.name;
}
Set the name of the namespace.
Params: - name – the name value to set
Returns: the MetricNamespaceInner object itself.
/**
* Set the name of the namespace.
*
* @param name the name value to set
* @return the MetricNamespaceInner object itself.
*/
public MetricNamespaceInner withName(String name) {
this.name = name;
return this;
}
Get properties which include the fully qualified namespace name.
Returns: the properties value
/**
* Get properties which include the fully qualified namespace name.
*
* @return the properties value
*/
public MetricNamespaceName properties() {
return this.properties;
}
Set properties which include the fully qualified namespace name.
Params: - properties – the properties value to set
Returns: the MetricNamespaceInner object itself.
/**
* Set properties which include the fully qualified namespace name.
*
* @param properties the properties value to set
* @return the MetricNamespaceInner object itself.
*/
public MetricNamespaceInner withProperties(MetricNamespaceName properties) {
this.properties = properties;
return this;
}
}