public final class OperationMetricSpecification extends Object
| Constructor and Description |
|---|
OperationMetricSpecification() |
| Modifier and Type | Method and Description |
|---|---|
String |
aggregationType()
Get the aggregationType property: The type of metric aggregation.
|
List<OperationMetricAvailability> |
availabilities()
Get the availabilities property: Defines how often data for metrics becomes available.
|
List<OperationMetricDimension> |
dimensions()
Get the dimensions property: Defines the metric dimension.
|
String |
displayDescription()
Get the displayDescription property: The description of the metric.
|
String |
displayName()
Get the displayName property: Localized display name of the metric.
|
String |
enableRegionalMdmAccount()
Get the enableRegionalMdmAccount property: Whether or not the service is using regional MDM accounts.
|
String |
name()
Get the name property: The name of the metric.
|
String |
sourceMdmAccount()
Get the sourceMdmAccount property: The name of the MDM account.
|
String |
sourceMdmNamespace()
Get the sourceMdmNamespace property: The name of the MDM namespace.
|
String |
unit()
Get the unit property: The unit that the metric is measured in.
|
void |
validate()
Validates the instance.
|
OperationMetricSpecification |
withAggregationType(String aggregationType)
Set the aggregationType property: The type of metric aggregation.
|
OperationMetricSpecification |
withAvailabilities(List<OperationMetricAvailability> availabilities)
Set the availabilities property: Defines how often data for metrics becomes available.
|
OperationMetricSpecification |
withDimensions(List<OperationMetricDimension> dimensions)
Set the dimensions property: Defines the metric dimension.
|
OperationMetricSpecification |
withDisplayDescription(String displayDescription)
Set the displayDescription property: The description of the metric.
|
OperationMetricSpecification |
withDisplayName(String displayName)
Set the displayName property: Localized display name of the metric.
|
OperationMetricSpecification |
withEnableRegionalMdmAccount(String enableRegionalMdmAccount)
Set the enableRegionalMdmAccount property: Whether or not the service is using regional MDM accounts.
|
OperationMetricSpecification |
withName(String name)
Set the name property: The name of the metric.
|
OperationMetricSpecification |
withSourceMdmAccount(String sourceMdmAccount)
Set the sourceMdmAccount property: The name of the MDM account.
|
OperationMetricSpecification |
withSourceMdmNamespace(String sourceMdmNamespace)
Set the sourceMdmNamespace property: The name of the MDM namespace.
|
OperationMetricSpecification |
withUnit(String unit)
Set the unit property: The unit that the metric is measured in.
|
public String name()
public OperationMetricSpecification withName(String name)
name - the name value to set.public String displayName()
public OperationMetricSpecification withDisplayName(String displayName)
displayName - the displayName value to set.public String displayDescription()
public OperationMetricSpecification withDisplayDescription(String displayDescription)
displayDescription - the displayDescription value to set.public String unit()
public OperationMetricSpecification withUnit(String unit)
unit - the unit value to set.public String aggregationType()
public OperationMetricSpecification withAggregationType(String aggregationType)
aggregationType - the aggregationType value to set.public String enableRegionalMdmAccount()
public OperationMetricSpecification withEnableRegionalMdmAccount(String enableRegionalMdmAccount)
enableRegionalMdmAccount - the enableRegionalMdmAccount value to set.public String sourceMdmAccount()
public OperationMetricSpecification withSourceMdmAccount(String sourceMdmAccount)
sourceMdmAccount - the sourceMdmAccount value to set.public String sourceMdmNamespace()
public OperationMetricSpecification withSourceMdmNamespace(String sourceMdmNamespace)
sourceMdmNamespace - the sourceMdmNamespace value to set.public List<OperationMetricAvailability> availabilities()
public OperationMetricSpecification withAvailabilities(List<OperationMetricAvailability> availabilities)
availabilities - the availabilities value to set.public List<OperationMetricDimension> dimensions()
public OperationMetricSpecification withDimensions(List<OperationMetricDimension> dimensions)
dimensions - the dimensions value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.