Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
/**
* 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;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* An arm role receiver.
*/
public class ArmRoleReceiver {
/**
* The name of the arm role receiver. Names must be unique across all
* receivers within an action group.
*/
@JsonProperty(value = "name", required = true)
private String name;

/**
* The arm role id.
*/
@JsonProperty(value = "roleId", required = true)
private String roleId;

/**
* Get the name of the arm role receiver. Names must be unique across all receivers within an action group.
*
* @return the name value
*/
public String name() {
return this.name;
}

/**
* Set the name of the arm role receiver. Names must be unique across all receivers within an action group.
*
* @param name the name value to set
* @return the ArmRoleReceiver object itself.
*/
public ArmRoleReceiver withName(String name) {
this.name = name;
return this;
}

/**
* Get the arm role id.
*
* @return the roleId value
*/
public String roleId() {
return this.roleId;
}

/**
* Set the arm role id.
*
* @param roleId the roleId value to set
* @return the ArmRoleReceiver object itself.
*/
public ArmRoleReceiver withRoleId(String roleId) {
this.roleId = roleId;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/**
* 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;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* The fully qualified metric namespace name.
*/
public class MetricNamespaceName {
/**
* The metric namespace name.
*/
@JsonProperty(value = "metricNamespaceName")
private String metricNamespaceName;

/**
* Get the metric namespace name.
*
* @return the metricNamespaceName value
*/
public String metricNamespaceName() {
return this.metricNamespaceName;
}

/**
* Set the metric namespace name.
*
* @param metricNamespaceName the metricNamespaceName value to set
* @return the MetricNamespaceName object itself.
*/
public MetricNamespaceName withMetricNamespaceName(String metricNamespaceName) {
this.metricNamespaceName = metricNamespaceName;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public class MetricTrigger {
/**
* time aggregation type. How the data that is collected should be combined
* over time. The default value is Average. Possible values include:
* 'Average', 'Minimum', 'Maximum', 'Total', 'Count'.
* 'Average', 'Minimum', 'Maximum', 'Total', 'Count', 'Last'.
*/
@JsonProperty(value = "timeAggregation", required = true)
private TimeAggregationType timeAggregation;
Expand Down Expand Up @@ -173,7 +173,7 @@ public MetricTrigger withTimeWindow(Period timeWindow) {
}

/**
* Get time aggregation type. How the data that is collected should be combined over time. The default value is Average. Possible values include: 'Average', 'Minimum', 'Maximum', 'Total', 'Count'.
* Get time aggregation type. How the data that is collected should be combined over time. The default value is Average. Possible values include: 'Average', 'Minimum', 'Maximum', 'Total', 'Count', 'Last'.
*
* @return the timeAggregation value
*/
Expand All @@ -182,7 +182,7 @@ public TimeAggregationType timeAggregation() {
}

/**
* Set time aggregation type. How the data that is collected should be combined over time. The default value is Average. Possible values include: 'Average', 'Minimum', 'Maximum', 'Total', 'Count'.
* Set time aggregation type. How the data that is collected should be combined over time. The default value is Average. Possible values include: 'Average', 'Minimum', 'Maximum', 'Total', 'Count', 'Last'.
*
* @param timeAggregation the timeAggregation value to set
* @return the MetricTrigger object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ public enum TimeAggregationType {
TOTAL("Total"),

/** Enum value Count. */
COUNT("Count");
COUNT("Count"),

/** Enum value Last. */
LAST("Last");

/** The actual serialized value for a TimeAggregationType instance. */
private String value;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
/**
* 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.
*/
public class MetricNamespaceInner {
/**
* The ID of the metricNamespace.
*/
@JsonProperty(value = "id")
private String id;

/**
* The type of the namespace.
*/
@JsonProperty(value = "type")
private String type;

/**
* The name of the namespace.
*/
@JsonProperty(value = "name")
private String name;

/**
* Properties which include the fully qualified namespace name.
*/
@JsonProperty(value = "properties")
private MetricNamespaceName properties;

/**
* Get the ID of the metricNamespace.
*
* @return the id value
*/
public String id() {
return this.id;
}

/**
* 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.
*
* @return the type value
*/
public String type() {
return this.type;
}

/**
* 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.
*
* @return the name value
*/
public String name() {
return this.name;
}

/**
* 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.
*
* @return the properties value
*/
public MetricNamespaceName properties() {
return this.properties;
}

/**
* 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;
}

}
Loading