/** * 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.batch.protocol.models; import org.joda.time.DateTime; import com.fasterxml.jackson.annotation.JsonProperty; /** * Contains utilization and resource usage statistics for the lifetime of a * pool. */ public class PoolStatistics { /** * The URL for the statistics. */ @JsonProperty(required = true) private String url; /** * The start time of the time range covered by the statistics. */ @JsonProperty(required = true) private DateTime startTime; /** * The time at which the statistics were last updated. All statistics are * limited to the range between startTime and lastUpdateTime. */ @JsonProperty(required = true) private DateTime lastUpdateTime; /** * Statistics related to pool usage, such as the amount of core-time used. */ private UsageStatistics usageStats; /** * Statistics related to resource consumption by compute nodes in the pool. */ private ResourceStatistics resourceStats; /** * Get the url value. * * @return the url value */ public String url() { return this.url; } /** * Set the url value. * * @param url the url value to set * @return the PoolStatistics object itself. */ public PoolStatistics withUrl(String url) { this.url = url; return this; } /** * Get the startTime value. * * @return the startTime value */ public DateTime startTime() { return this.startTime; } /** * Set the startTime value. * * @param startTime the startTime value to set * @return the PoolStatistics object itself. */ public PoolStatistics withStartTime(DateTime startTime) { this.startTime = startTime; return this; } /** * Get the lastUpdateTime value. * * @return the lastUpdateTime value */ public DateTime lastUpdateTime() { return this.lastUpdateTime; } /** * Set the lastUpdateTime value. * * @param lastUpdateTime the lastUpdateTime value to set * @return the PoolStatistics object itself. */ public PoolStatistics withLastUpdateTime(DateTime lastUpdateTime) { this.lastUpdateTime = lastUpdateTime; return this; } /** * Get the usageStats value. * * @return the usageStats value */ public UsageStatistics usageStats() { return this.usageStats; } /** * Set the usageStats value. * * @param usageStats the usageStats value to set * @return the PoolStatistics object itself. */ public PoolStatistics withUsageStats(UsageStatistics usageStats) { this.usageStats = usageStats; return this; } /** * Get the resourceStats value. * * @return the resourceStats value */ public ResourceStatistics resourceStats() { return this.resourceStats; } /** * Set the resourceStats value. * * @param resourceStats the resourceStats value to set * @return the PoolStatistics object itself. */ public PoolStatistics withResourceStats(ResourceStatistics resourceStats) { this.resourceStats = resourceStats; return this; } }