com.google.api.services.migrationcenter.v1.model.DailyResourceUsageAggregation Maven / Gradle / Ivy
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/
package com.google.api.services.migrationcenter.v1.model;
/**
* Usage data aggregation for a single day.
*
* This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Migration Center API. For a detailed explanation see:
* https://developers.google.com/api-client-library/java/google-http-java-client/json
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class DailyResourceUsageAggregation extends com.google.api.client.json.GenericJson {
/**
* CPU usage.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private DailyResourceUsageAggregationCPU cpu;
/**
* Aggregation date. Day boundaries are at midnight UTC.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Date date;
/**
* Disk usage.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private DailyResourceUsageAggregationDisk disk;
/**
* Memory usage.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private DailyResourceUsageAggregationMemory memory;
/**
* Network usage.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private DailyResourceUsageAggregationNetwork network;
/**
* CPU usage.
* @return value or {@code null} for none
*/
public DailyResourceUsageAggregationCPU getCpu() {
return cpu;
}
/**
* CPU usage.
* @param cpu cpu or {@code null} for none
*/
public DailyResourceUsageAggregation setCpu(DailyResourceUsageAggregationCPU cpu) {
this.cpu = cpu;
return this;
}
/**
* Aggregation date. Day boundaries are at midnight UTC.
* @return value or {@code null} for none
*/
public Date getDate() {
return date;
}
/**
* Aggregation date. Day boundaries are at midnight UTC.
* @param date date or {@code null} for none
*/
public DailyResourceUsageAggregation setDate(Date date) {
this.date = date;
return this;
}
/**
* Disk usage.
* @return value or {@code null} for none
*/
public DailyResourceUsageAggregationDisk getDisk() {
return disk;
}
/**
* Disk usage.
* @param disk disk or {@code null} for none
*/
public DailyResourceUsageAggregation setDisk(DailyResourceUsageAggregationDisk disk) {
this.disk = disk;
return this;
}
/**
* Memory usage.
* @return value or {@code null} for none
*/
public DailyResourceUsageAggregationMemory getMemory() {
return memory;
}
/**
* Memory usage.
* @param memory memory or {@code null} for none
*/
public DailyResourceUsageAggregation setMemory(DailyResourceUsageAggregationMemory memory) {
this.memory = memory;
return this;
}
/**
* Network usage.
* @return value or {@code null} for none
*/
public DailyResourceUsageAggregationNetwork getNetwork() {
return network;
}
/**
* Network usage.
* @param network network or {@code null} for none
*/
public DailyResourceUsageAggregation setNetwork(DailyResourceUsageAggregationNetwork network) {
this.network = network;
return this;
}
@Override
public DailyResourceUsageAggregation set(String fieldName, Object value) {
return (DailyResourceUsageAggregation) super.set(fieldName, value);
}
@Override
public DailyResourceUsageAggregation clone() {
return (DailyResourceUsageAggregation) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy