All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.solidfire.element.api.ClusterStats Maven / Gradle / Ivy

The newest version!
/*
 * Copyright © 2014-2016 NetApp, Inc. All Rights Reserved.
 *
 * 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.
 */
/*
 * DO NOT EDIT THIS CODE BY HAND! It has been generated with jsvcgen.
 */
package com.solidfire.element.api;

import com.solidfire.gson.Gson;
import com.solidfire.core.client.Attributes;
import com.solidfire.gson.annotations.SerializedName;
import com.solidfire.core.annotation.Since;
import com.solidfire.core.javautil.Optional;
import java.io.Serializable;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Objects;

/**
 * ClusterStats  
 **/

public class ClusterStats implements Serializable {

    public static final long serialVersionUID = -8071979927197008409L;
    @SerializedName("clusterUtilization") private Double clusterUtilization;
    @SerializedName("clientQueueDepth") private Long clientQueueDepth;
    @SerializedName("normalizedIOPS") private Long normalizedIOPS;
    @SerializedName("readBytes") private Long readBytes;
    @SerializedName("readLatencyUSecTotal") private Long readLatencyUSecTotal;
    @SerializedName("readOps") private Long readOps;
    @SerializedName("servicesCount") private Long servicesCount;
    @SerializedName("servicesTotal") private Long servicesTotal;
    @SerializedName("timestamp") private String timestamp;
    @SerializedName("writeBytes") private Long writeBytes;
    @SerializedName("writeLatencyUSecTotal") private Long writeLatencyUSecTotal;
    @SerializedName("writeOps") private Long writeOps;
    @SerializedName("actualIOPS") private Optional actualIOPS;
    @SerializedName("averageIOPSize") private Optional averageIOPSize;
    @SerializedName("latencyUSec") private Optional latencyUSec;
    @SerializedName("readBytesLastSample") private Optional readBytesLastSample;
    @SerializedName("readLatencyUSec") private Optional readLatencyUSec;
    @SerializedName("readOpsLastSample") private Optional readOpsLastSample;
    @SerializedName("samplePeriodMsec") private Optional samplePeriodMsec;
    @SerializedName("unalignedReads") private Optional unalignedReads;
    @SerializedName("unalignedWrites") private Optional unalignedWrites;
    @SerializedName("writeBytesLastSample") private Optional writeBytesLastSample;
    @SerializedName("writeLatencyUSec") private Optional writeLatencyUSec;
    @SerializedName("writeOpsLastSample") private Optional writeOpsLastSample;
    // empty constructor
    @Since("7.0")
    public ClusterStats() {}

    
    // parameterized constructor
    @Since("7.0")
    public ClusterStats(
        Double clusterUtilization,
        Long clientQueueDepth,
        Long normalizedIOPS,
        Long readBytes,
        Long readLatencyUSecTotal,
        Long readOps,
        Long servicesCount,
        Long servicesTotal,
        String timestamp,
        Long writeBytes,
        Long writeLatencyUSecTotal,
        Long writeOps,
        Optional actualIOPS,
        Optional averageIOPSize,
        Optional latencyUSec,
        Optional readBytesLastSample,
        Optional readLatencyUSec,
        Optional readOpsLastSample,
        Optional samplePeriodMsec,
        Optional unalignedReads,
        Optional unalignedWrites,
        Optional writeBytesLastSample,
        Optional writeLatencyUSec,
        Optional writeOpsLastSample
    )
    {
        this.clusterUtilization = clusterUtilization;
        this.clientQueueDepth = clientQueueDepth;
        this.normalizedIOPS = normalizedIOPS;
        this.readBytes = readBytes;
        this.readLatencyUSecTotal = readLatencyUSecTotal;
        this.readOps = readOps;
        this.servicesCount = servicesCount;
        this.servicesTotal = servicesTotal;
        this.timestamp = timestamp;
        this.writeBytes = writeBytes;
        this.writeLatencyUSecTotal = writeLatencyUSecTotal;
        this.writeOps = writeOps;
        this.actualIOPS = (actualIOPS == null) ? Optional.empty() : actualIOPS;
        this.averageIOPSize = (averageIOPSize == null) ? Optional.empty() : averageIOPSize;
        this.latencyUSec = (latencyUSec == null) ? Optional.empty() : latencyUSec;
        this.readBytesLastSample = (readBytesLastSample == null) ? Optional.empty() : readBytesLastSample;
        this.readLatencyUSec = (readLatencyUSec == null) ? Optional.empty() : readLatencyUSec;
        this.readOpsLastSample = (readOpsLastSample == null) ? Optional.empty() : readOpsLastSample;
        this.samplePeriodMsec = (samplePeriodMsec == null) ? Optional.empty() : samplePeriodMsec;
        this.unalignedReads = (unalignedReads == null) ? Optional.empty() : unalignedReads;
        this.unalignedWrites = (unalignedWrites == null) ? Optional.empty() : unalignedWrites;
        this.writeBytesLastSample = (writeBytesLastSample == null) ? Optional.empty() : writeBytesLastSample;
        this.writeLatencyUSec = (writeLatencyUSec == null) ? Optional.empty() : writeLatencyUSec;
        this.writeOpsLastSample = (writeOpsLastSample == null) ? Optional.empty() : writeOpsLastSample;
    }

    /** 
     * The amount of cluster capacity being utilized.
     **/
    public Double getClusterUtilization() { return this.clusterUtilization; }
   
    public void setClusterUtilization(Double clusterUtilization) { 
        this.clusterUtilization = clusterUtilization;
    }
    /** 
     * 
     **/
    public Long getClientQueueDepth() { return this.clientQueueDepth; }
   
    public void setClientQueueDepth(Long clientQueueDepth) { 
        this.clientQueueDepth = clientQueueDepth;
    }
    /** 
     * 
     **/
    public Long getNormalizedIOPS() { return this.normalizedIOPS; }
   
    public void setNormalizedIOPS(Long normalizedIOPS) { 
        this.normalizedIOPS = normalizedIOPS;
    }
    /** 
     * Total bytes read by clients.
     **/
    public Long getReadBytes() { return this.readBytes; }
   
    public void setReadBytes(Long readBytes) { 
        this.readBytes = readBytes;
    }
    /** 
     * 
     **/
    public Long getReadLatencyUSecTotal() { return this.readLatencyUSecTotal; }
   
    public void setReadLatencyUSecTotal(Long readLatencyUSecTotal) { 
        this.readLatencyUSecTotal = readLatencyUSecTotal;
    }
    /** 
     * Total read operations.
     **/
    public Long getReadOps() { return this.readOps; }
   
    public void setReadOps(Long readOps) { 
        this.readOps = readOps;
    }
    /** 
     * Services count
     **/
    public Long getServicesCount() { return this.servicesCount; }
   
    public void setServicesCount(Long servicesCount) { 
        this.servicesCount = servicesCount;
    }
    /** 
     * Total services.
     **/
    public Long getServicesTotal() { return this.servicesTotal; }
   
    public void setServicesTotal(Long servicesTotal) { 
        this.servicesTotal = servicesTotal;
    }
    /** 
     * Current time in UTC format. ISO 8601 date string.
     **/
    public String getTimestamp() { return this.timestamp; }
   
    public void setTimestamp(String timestamp) { 
        this.timestamp = timestamp;
    }
    /** 
     * Total bytes written by clients.
     **/
    public Long getWriteBytes() { return this.writeBytes; }
   
    public void setWriteBytes(Long writeBytes) { 
        this.writeBytes = writeBytes;
    }
    /** 
     * 
     **/
    public Long getWriteLatencyUSecTotal() { return this.writeLatencyUSecTotal; }
   
    public void setWriteLatencyUSecTotal(Long writeLatencyUSecTotal) { 
        this.writeLatencyUSecTotal = writeLatencyUSecTotal;
    }
    /** 
     * Total write operations.
     **/
    public Long getWriteOps() { return this.writeOps; }
   
    public void setWriteOps(Long writeOps) { 
        this.writeOps = writeOps;
    }
    /** 
     * 
     **/
    public Optional getActualIOPS() { return this.actualIOPS; }
   
    public void setActualIOPS(Optional actualIOPS) { 
        this.actualIOPS = (actualIOPS == null) ? Optional.empty() : actualIOPS;
    }
    /** 
     * 
     **/
    public Optional getAverageIOPSize() { return this.averageIOPSize; }
   
    public void setAverageIOPSize(Optional averageIOPSize) { 
        this.averageIOPSize = (averageIOPSize == null) ? Optional.empty() : averageIOPSize;
    }
    /** 
     * 
     **/
    public Optional getLatencyUSec() { return this.latencyUSec; }
   
    public void setLatencyUSec(Optional latencyUSec) { 
        this.latencyUSec = (latencyUSec == null) ? Optional.empty() : latencyUSec;
    }
    /** 
     * 
     **/
    public Optional getReadBytesLastSample() { return this.readBytesLastSample; }
   
    public void setReadBytesLastSample(Optional readBytesLastSample) { 
        this.readBytesLastSample = (readBytesLastSample == null) ? Optional.empty() : readBytesLastSample;
    }
    /** 
     * 
     **/
    public Optional getReadLatencyUSec() { return this.readLatencyUSec; }
   
    public void setReadLatencyUSec(Optional readLatencyUSec) { 
        this.readLatencyUSec = (readLatencyUSec == null) ? Optional.empty() : readLatencyUSec;
    }
    /** 
     * 
     **/
    public Optional getReadOpsLastSample() { return this.readOpsLastSample; }
   
    public void setReadOpsLastSample(Optional readOpsLastSample) { 
        this.readOpsLastSample = (readOpsLastSample == null) ? Optional.empty() : readOpsLastSample;
    }
    /** 
     * 
     **/
    public Optional getSamplePeriodMsec() { return this.samplePeriodMsec; }
   
    public void setSamplePeriodMsec(Optional samplePeriodMsec) { 
        this.samplePeriodMsec = (samplePeriodMsec == null) ? Optional.empty() : samplePeriodMsec;
    }
    /** 
     * 
     **/
    public Optional getUnalignedReads() { return this.unalignedReads; }
   
    public void setUnalignedReads(Optional unalignedReads) { 
        this.unalignedReads = (unalignedReads == null) ? Optional.empty() : unalignedReads;
    }
    /** 
     * 
     **/
    public Optional getUnalignedWrites() { return this.unalignedWrites; }
   
    public void setUnalignedWrites(Optional unalignedWrites) { 
        this.unalignedWrites = (unalignedWrites == null) ? Optional.empty() : unalignedWrites;
    }
    /** 
     * 
     **/
    public Optional getWriteBytesLastSample() { return this.writeBytesLastSample; }
   
    public void setWriteBytesLastSample(Optional writeBytesLastSample) { 
        this.writeBytesLastSample = (writeBytesLastSample == null) ? Optional.empty() : writeBytesLastSample;
    }
    /** 
     * 
     **/
    public Optional getWriteLatencyUSec() { return this.writeLatencyUSec; }
   
    public void setWriteLatencyUSec(Optional writeLatencyUSec) { 
        this.writeLatencyUSec = (writeLatencyUSec == null) ? Optional.empty() : writeLatencyUSec;
    }
    /** 
     * 
     **/
    public Optional getWriteOpsLastSample() { return this.writeOpsLastSample; }
   
    public void setWriteOpsLastSample(Optional writeOpsLastSample) { 
        this.writeOpsLastSample = (writeOpsLastSample == null) ? Optional.empty() : writeOpsLastSample;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        ClusterStats that = (ClusterStats) o;

        return 
            Objects.equals(clusterUtilization, that.clusterUtilization) && 
            Objects.equals(clientQueueDepth, that.clientQueueDepth) && 
            Objects.equals(normalizedIOPS, that.normalizedIOPS) && 
            Objects.equals(readBytes, that.readBytes) && 
            Objects.equals(readLatencyUSecTotal, that.readLatencyUSecTotal) && 
            Objects.equals(readOps, that.readOps) && 
            Objects.equals(servicesCount, that.servicesCount) && 
            Objects.equals(servicesTotal, that.servicesTotal) && 
            Objects.equals(timestamp, that.timestamp) && 
            Objects.equals(writeBytes, that.writeBytes) && 
            Objects.equals(writeLatencyUSecTotal, that.writeLatencyUSecTotal) && 
            Objects.equals(writeOps, that.writeOps) && 
            Objects.equals(actualIOPS, that.actualIOPS) && 
            Objects.equals(averageIOPSize, that.averageIOPSize) && 
            Objects.equals(latencyUSec, that.latencyUSec) && 
            Objects.equals(readBytesLastSample, that.readBytesLastSample) && 
            Objects.equals(readLatencyUSec, that.readLatencyUSec) && 
            Objects.equals(readOpsLastSample, that.readOpsLastSample) && 
            Objects.equals(samplePeriodMsec, that.samplePeriodMsec) && 
            Objects.equals(unalignedReads, that.unalignedReads) && 
            Objects.equals(unalignedWrites, that.unalignedWrites) && 
            Objects.equals(writeBytesLastSample, that.writeBytesLastSample) && 
            Objects.equals(writeLatencyUSec, that.writeLatencyUSec) && 
            Objects.equals(writeOpsLastSample, that.writeOpsLastSample);
    }

    @Override
    public int hashCode() {
        return Objects.hash( clusterUtilization,clientQueueDepth,normalizedIOPS,readBytes,readLatencyUSecTotal,readOps,servicesCount,servicesTotal,timestamp,writeBytes,writeLatencyUSecTotal,writeOps,actualIOPS,averageIOPSize,latencyUSec,readBytesLastSample,readLatencyUSec,readOpsLastSample,samplePeriodMsec,unalignedReads,unalignedWrites,writeBytesLastSample,writeLatencyUSec,writeOpsLastSample );
    }


    public java.util.Map toMap() {
        java.util.Map map = new HashMap<>();
        map.put("clusterUtilization", clusterUtilization);
        map.put("clientQueueDepth", clientQueueDepth);
        map.put("normalizedIOPS", normalizedIOPS);
        map.put("readBytes", readBytes);
        map.put("readLatencyUSecTotal", readLatencyUSecTotal);
        map.put("readOps", readOps);
        map.put("servicesCount", servicesCount);
        map.put("servicesTotal", servicesTotal);
        map.put("timestamp", timestamp);
        map.put("writeBytes", writeBytes);
        map.put("writeLatencyUSecTotal", writeLatencyUSecTotal);
        map.put("writeOps", writeOps);
        map.put("actualIOPS", actualIOPS);
        map.put("averageIOPSize", averageIOPSize);
        map.put("latencyUSec", latencyUSec);
        map.put("readBytesLastSample", readBytesLastSample);
        map.put("readLatencyUSec", readLatencyUSec);
        map.put("readOpsLastSample", readOpsLastSample);
        map.put("samplePeriodMsec", samplePeriodMsec);
        map.put("unalignedReads", unalignedReads);
        map.put("unalignedWrites", unalignedWrites);
        map.put("writeBytesLastSample", writeBytesLastSample);
        map.put("writeLatencyUSec", writeLatencyUSec);
        map.put("writeOpsLastSample", writeOpsLastSample);
        return map;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder();
        Gson gson = new Gson();
        sb.append( "{ " );

        sb.append(" clusterUtilization : ").append(gson.toJson(clusterUtilization)).append(",");
        sb.append(" clientQueueDepth : ").append(gson.toJson(clientQueueDepth)).append(",");
        sb.append(" normalizedIOPS : ").append(gson.toJson(normalizedIOPS)).append(",");
        sb.append(" readBytes : ").append(gson.toJson(readBytes)).append(",");
        sb.append(" readLatencyUSecTotal : ").append(gson.toJson(readLatencyUSecTotal)).append(",");
        sb.append(" readOps : ").append(gson.toJson(readOps)).append(",");
        sb.append(" servicesCount : ").append(gson.toJson(servicesCount)).append(",");
        sb.append(" servicesTotal : ").append(gson.toJson(servicesTotal)).append(",");
        sb.append(" timestamp : ").append(gson.toJson(timestamp)).append(",");
        sb.append(" writeBytes : ").append(gson.toJson(writeBytes)).append(",");
        sb.append(" writeLatencyUSecTotal : ").append(gson.toJson(writeLatencyUSecTotal)).append(",");
        sb.append(" writeOps : ").append(gson.toJson(writeOps)).append(",");
        if(null != actualIOPS && actualIOPS.isPresent()){
            sb.append(" actualIOPS : ").append(gson.toJson(actualIOPS)).append(",");
        }
        else{
            sb.append(" actualIOPS : ").append("null").append(",");
        }
        if(null != averageIOPSize && averageIOPSize.isPresent()){
            sb.append(" averageIOPSize : ").append(gson.toJson(averageIOPSize)).append(",");
        }
        else{
            sb.append(" averageIOPSize : ").append("null").append(",");
        }
        if(null != latencyUSec && latencyUSec.isPresent()){
            sb.append(" latencyUSec : ").append(gson.toJson(latencyUSec)).append(",");
        }
        else{
            sb.append(" latencyUSec : ").append("null").append(",");
        }
        if(null != readBytesLastSample && readBytesLastSample.isPresent()){
            sb.append(" readBytesLastSample : ").append(gson.toJson(readBytesLastSample)).append(",");
        }
        else{
            sb.append(" readBytesLastSample : ").append("null").append(",");
        }
        if(null != readLatencyUSec && readLatencyUSec.isPresent()){
            sb.append(" readLatencyUSec : ").append(gson.toJson(readLatencyUSec)).append(",");
        }
        else{
            sb.append(" readLatencyUSec : ").append("null").append(",");
        }
        if(null != readOpsLastSample && readOpsLastSample.isPresent()){
            sb.append(" readOpsLastSample : ").append(gson.toJson(readOpsLastSample)).append(",");
        }
        else{
            sb.append(" readOpsLastSample : ").append("null").append(",");
        }
        if(null != samplePeriodMsec && samplePeriodMsec.isPresent()){
            sb.append(" samplePeriodMsec : ").append(gson.toJson(samplePeriodMsec)).append(",");
        }
        else{
            sb.append(" samplePeriodMsec : ").append("null").append(",");
        }
        if(null != unalignedReads && unalignedReads.isPresent()){
            sb.append(" unalignedReads : ").append(gson.toJson(unalignedReads)).append(",");
        }
        else{
            sb.append(" unalignedReads : ").append("null").append(",");
        }
        if(null != unalignedWrites && unalignedWrites.isPresent()){
            sb.append(" unalignedWrites : ").append(gson.toJson(unalignedWrites)).append(",");
        }
        else{
            sb.append(" unalignedWrites : ").append("null").append(",");
        }
        if(null != writeBytesLastSample && writeBytesLastSample.isPresent()){
            sb.append(" writeBytesLastSample : ").append(gson.toJson(writeBytesLastSample)).append(",");
        }
        else{
            sb.append(" writeBytesLastSample : ").append("null").append(",");
        }
        if(null != writeLatencyUSec && writeLatencyUSec.isPresent()){
            sb.append(" writeLatencyUSec : ").append(gson.toJson(writeLatencyUSec)).append(",");
        }
        else{
            sb.append(" writeLatencyUSec : ").append("null").append(",");
        }
        if(null != writeOpsLastSample && writeOpsLastSample.isPresent()){
            sb.append(" writeOpsLastSample : ").append(gson.toJson(writeOpsLastSample)).append(",");
        }
        else{
            sb.append(" writeOpsLastSample : ").append("null").append(",");
        }
        sb.append( " }" );

        if(sb.lastIndexOf(", }") != -1)
            sb.deleteCharAt(sb.lastIndexOf(", }"));

        return sb.toString();
    }

    public static Builder builder() {
        return new Builder();
    }

    public final Builder asBuilder() {
        return new Builder().buildFrom(this);
    }

    public static class Builder {
        private Double clusterUtilization;
        private Long clientQueueDepth;
        private Long normalizedIOPS;
        private Long readBytes;
        private Long readLatencyUSecTotal;
        private Long readOps;
        private Long servicesCount;
        private Long servicesTotal;
        private String timestamp;
        private Long writeBytes;
        private Long writeLatencyUSecTotal;
        private Long writeOps;
        private Optional actualIOPS;
        private Optional averageIOPSize;
        private Optional latencyUSec;
        private Optional readBytesLastSample;
        private Optional readLatencyUSec;
        private Optional readOpsLastSample;
        private Optional samplePeriodMsec;
        private Optional unalignedReads;
        private Optional unalignedWrites;
        private Optional writeBytesLastSample;
        private Optional writeLatencyUSec;
        private Optional writeOpsLastSample;

        private Builder() { }

        public ClusterStats build() {
            return new ClusterStats (
                         this.clusterUtilization,
                         this.clientQueueDepth,
                         this.normalizedIOPS,
                         this.readBytes,
                         this.readLatencyUSecTotal,
                         this.readOps,
                         this.servicesCount,
                         this.servicesTotal,
                         this.timestamp,
                         this.writeBytes,
                         this.writeLatencyUSecTotal,
                         this.writeOps,
                         this.actualIOPS,
                         this.averageIOPSize,
                         this.latencyUSec,
                         this.readBytesLastSample,
                         this.readLatencyUSec,
                         this.readOpsLastSample,
                         this.samplePeriodMsec,
                         this.unalignedReads,
                         this.unalignedWrites,
                         this.writeBytesLastSample,
                         this.writeLatencyUSec,
                         this.writeOpsLastSample);
        }

        private ClusterStats.Builder buildFrom(final ClusterStats req) {
            this.clusterUtilization = req.clusterUtilization;
            this.clientQueueDepth = req.clientQueueDepth;
            this.normalizedIOPS = req.normalizedIOPS;
            this.readBytes = req.readBytes;
            this.readLatencyUSecTotal = req.readLatencyUSecTotal;
            this.readOps = req.readOps;
            this.servicesCount = req.servicesCount;
            this.servicesTotal = req.servicesTotal;
            this.timestamp = req.timestamp;
            this.writeBytes = req.writeBytes;
            this.writeLatencyUSecTotal = req.writeLatencyUSecTotal;
            this.writeOps = req.writeOps;
            this.actualIOPS = req.actualIOPS;
            this.averageIOPSize = req.averageIOPSize;
            this.latencyUSec = req.latencyUSec;
            this.readBytesLastSample = req.readBytesLastSample;
            this.readLatencyUSec = req.readLatencyUSec;
            this.readOpsLastSample = req.readOpsLastSample;
            this.samplePeriodMsec = req.samplePeriodMsec;
            this.unalignedReads = req.unalignedReads;
            this.unalignedWrites = req.unalignedWrites;
            this.writeBytesLastSample = req.writeBytesLastSample;
            this.writeLatencyUSec = req.writeLatencyUSec;
            this.writeOpsLastSample = req.writeOpsLastSample;

            return this;
        }

        public ClusterStats.Builder clusterUtilization(final Double clusterUtilization) {
            this.clusterUtilization = clusterUtilization;
            return this;
        }

        public ClusterStats.Builder clientQueueDepth(final Long clientQueueDepth) {
            this.clientQueueDepth = clientQueueDepth;
            return this;
        }

        public ClusterStats.Builder normalizedIOPS(final Long normalizedIOPS) {
            this.normalizedIOPS = normalizedIOPS;
            return this;
        }

        public ClusterStats.Builder readBytes(final Long readBytes) {
            this.readBytes = readBytes;
            return this;
        }

        public ClusterStats.Builder readLatencyUSecTotal(final Long readLatencyUSecTotal) {
            this.readLatencyUSecTotal = readLatencyUSecTotal;
            return this;
        }

        public ClusterStats.Builder readOps(final Long readOps) {
            this.readOps = readOps;
            return this;
        }

        public ClusterStats.Builder servicesCount(final Long servicesCount) {
            this.servicesCount = servicesCount;
            return this;
        }

        public ClusterStats.Builder servicesTotal(final Long servicesTotal) {
            this.servicesTotal = servicesTotal;
            return this;
        }

        public ClusterStats.Builder timestamp(final String timestamp) {
            this.timestamp = timestamp;
            return this;
        }

        public ClusterStats.Builder writeBytes(final Long writeBytes) {
            this.writeBytes = writeBytes;
            return this;
        }

        public ClusterStats.Builder writeLatencyUSecTotal(final Long writeLatencyUSecTotal) {
            this.writeLatencyUSecTotal = writeLatencyUSecTotal;
            return this;
        }

        public ClusterStats.Builder writeOps(final Long writeOps) {
            this.writeOps = writeOps;
            return this;
        }

        public ClusterStats.Builder optionalActualIOPS(final Long actualIOPS) {
            this.actualIOPS = (actualIOPS == null) ? Optional.empty() : Optional.of(actualIOPS);
            return this;
        }

        public ClusterStats.Builder optionalAverageIOPSize(final Long averageIOPSize) {
            this.averageIOPSize = (averageIOPSize == null) ? Optional.empty() : Optional.of(averageIOPSize);
            return this;
        }

        public ClusterStats.Builder optionalLatencyUSec(final Long latencyUSec) {
            this.latencyUSec = (latencyUSec == null) ? Optional.empty() : Optional.of(latencyUSec);
            return this;
        }

        public ClusterStats.Builder optionalReadBytesLastSample(final Long readBytesLastSample) {
            this.readBytesLastSample = (readBytesLastSample == null) ? Optional.empty() : Optional.of(readBytesLastSample);
            return this;
        }

        public ClusterStats.Builder optionalReadLatencyUSec(final Long readLatencyUSec) {
            this.readLatencyUSec = (readLatencyUSec == null) ? Optional.empty() : Optional.of(readLatencyUSec);
            return this;
        }

        public ClusterStats.Builder optionalReadOpsLastSample(final Long readOpsLastSample) {
            this.readOpsLastSample = (readOpsLastSample == null) ? Optional.empty() : Optional.of(readOpsLastSample);
            return this;
        }

        public ClusterStats.Builder optionalSamplePeriodMsec(final Long samplePeriodMsec) {
            this.samplePeriodMsec = (samplePeriodMsec == null) ? Optional.empty() : Optional.of(samplePeriodMsec);
            return this;
        }

        public ClusterStats.Builder optionalUnalignedReads(final Long unalignedReads) {
            this.unalignedReads = (unalignedReads == null) ? Optional.empty() : Optional.of(unalignedReads);
            return this;
        }

        public ClusterStats.Builder optionalUnalignedWrites(final Long unalignedWrites) {
            this.unalignedWrites = (unalignedWrites == null) ? Optional.empty() : Optional.of(unalignedWrites);
            return this;
        }

        public ClusterStats.Builder optionalWriteBytesLastSample(final Long writeBytesLastSample) {
            this.writeBytesLastSample = (writeBytesLastSample == null) ? Optional.empty() : Optional.of(writeBytesLastSample);
            return this;
        }

        public ClusterStats.Builder optionalWriteLatencyUSec(final Long writeLatencyUSec) {
            this.writeLatencyUSec = (writeLatencyUSec == null) ? Optional.empty() : Optional.of(writeLatencyUSec);
            return this;
        }

        public ClusterStats.Builder optionalWriteOpsLastSample(final Long writeOpsLastSample) {
            this.writeOpsLastSample = (writeOpsLastSample == null) ? Optional.empty() : Optional.of(writeOpsLastSample);
            return this;
        }

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy