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

com.amazonaws.services.costexplorer.model.NetworkResourceUtilization Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Cost Explorer module holds the client classes that are used for communicating with AWS Cost Explorer Service

The newest version!
/*
 * Copyright 2020-2025 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file 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.
 */
package com.amazonaws.services.costexplorer.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* The network field that contains a list of network metrics that are associated with the current instance. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class NetworkResourceUtilization implements Serializable, Cloneable, StructuredPojo { /** *

* The network inbound throughput utilization measured in Bytes per second (Bps). *

*/ private String networkInBytesPerSecond; /** *

* The network outbound throughput utilization measured in Bytes per second (Bps). *

*/ private String networkOutBytesPerSecond; /** *

* The network inbound packets that are measured in packets per second. *

*/ private String networkPacketsInPerSecond; /** *

* The network outbound packets that are measured in packets per second. *

*/ private String networkPacketsOutPerSecond; /** *

* The network inbound throughput utilization measured in Bytes per second (Bps). *

* * @param networkInBytesPerSecond * The network inbound throughput utilization measured in Bytes per second (Bps). */ public void setNetworkInBytesPerSecond(String networkInBytesPerSecond) { this.networkInBytesPerSecond = networkInBytesPerSecond; } /** *

* The network inbound throughput utilization measured in Bytes per second (Bps). *

* * @return The network inbound throughput utilization measured in Bytes per second (Bps). */ public String getNetworkInBytesPerSecond() { return this.networkInBytesPerSecond; } /** *

* The network inbound throughput utilization measured in Bytes per second (Bps). *

* * @param networkInBytesPerSecond * The network inbound throughput utilization measured in Bytes per second (Bps). * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkResourceUtilization withNetworkInBytesPerSecond(String networkInBytesPerSecond) { setNetworkInBytesPerSecond(networkInBytesPerSecond); return this; } /** *

* The network outbound throughput utilization measured in Bytes per second (Bps). *

* * @param networkOutBytesPerSecond * The network outbound throughput utilization measured in Bytes per second (Bps). */ public void setNetworkOutBytesPerSecond(String networkOutBytesPerSecond) { this.networkOutBytesPerSecond = networkOutBytesPerSecond; } /** *

* The network outbound throughput utilization measured in Bytes per second (Bps). *

* * @return The network outbound throughput utilization measured in Bytes per second (Bps). */ public String getNetworkOutBytesPerSecond() { return this.networkOutBytesPerSecond; } /** *

* The network outbound throughput utilization measured in Bytes per second (Bps). *

* * @param networkOutBytesPerSecond * The network outbound throughput utilization measured in Bytes per second (Bps). * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkResourceUtilization withNetworkOutBytesPerSecond(String networkOutBytesPerSecond) { setNetworkOutBytesPerSecond(networkOutBytesPerSecond); return this; } /** *

* The network inbound packets that are measured in packets per second. *

* * @param networkPacketsInPerSecond * The network inbound packets that are measured in packets per second. */ public void setNetworkPacketsInPerSecond(String networkPacketsInPerSecond) { this.networkPacketsInPerSecond = networkPacketsInPerSecond; } /** *

* The network inbound packets that are measured in packets per second. *

* * @return The network inbound packets that are measured in packets per second. */ public String getNetworkPacketsInPerSecond() { return this.networkPacketsInPerSecond; } /** *

* The network inbound packets that are measured in packets per second. *

* * @param networkPacketsInPerSecond * The network inbound packets that are measured in packets per second. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkResourceUtilization withNetworkPacketsInPerSecond(String networkPacketsInPerSecond) { setNetworkPacketsInPerSecond(networkPacketsInPerSecond); return this; } /** *

* The network outbound packets that are measured in packets per second. *

* * @param networkPacketsOutPerSecond * The network outbound packets that are measured in packets per second. */ public void setNetworkPacketsOutPerSecond(String networkPacketsOutPerSecond) { this.networkPacketsOutPerSecond = networkPacketsOutPerSecond; } /** *

* The network outbound packets that are measured in packets per second. *

* * @return The network outbound packets that are measured in packets per second. */ public String getNetworkPacketsOutPerSecond() { return this.networkPacketsOutPerSecond; } /** *

* The network outbound packets that are measured in packets per second. *

* * @param networkPacketsOutPerSecond * The network outbound packets that are measured in packets per second. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkResourceUtilization withNetworkPacketsOutPerSecond(String networkPacketsOutPerSecond) { setNetworkPacketsOutPerSecond(networkPacketsOutPerSecond); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getNetworkInBytesPerSecond() != null) sb.append("NetworkInBytesPerSecond: ").append(getNetworkInBytesPerSecond()).append(","); if (getNetworkOutBytesPerSecond() != null) sb.append("NetworkOutBytesPerSecond: ").append(getNetworkOutBytesPerSecond()).append(","); if (getNetworkPacketsInPerSecond() != null) sb.append("NetworkPacketsInPerSecond: ").append(getNetworkPacketsInPerSecond()).append(","); if (getNetworkPacketsOutPerSecond() != null) sb.append("NetworkPacketsOutPerSecond: ").append(getNetworkPacketsOutPerSecond()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof NetworkResourceUtilization == false) return false; NetworkResourceUtilization other = (NetworkResourceUtilization) obj; if (other.getNetworkInBytesPerSecond() == null ^ this.getNetworkInBytesPerSecond() == null) return false; if (other.getNetworkInBytesPerSecond() != null && other.getNetworkInBytesPerSecond().equals(this.getNetworkInBytesPerSecond()) == false) return false; if (other.getNetworkOutBytesPerSecond() == null ^ this.getNetworkOutBytesPerSecond() == null) return false; if (other.getNetworkOutBytesPerSecond() != null && other.getNetworkOutBytesPerSecond().equals(this.getNetworkOutBytesPerSecond()) == false) return false; if (other.getNetworkPacketsInPerSecond() == null ^ this.getNetworkPacketsInPerSecond() == null) return false; if (other.getNetworkPacketsInPerSecond() != null && other.getNetworkPacketsInPerSecond().equals(this.getNetworkPacketsInPerSecond()) == false) return false; if (other.getNetworkPacketsOutPerSecond() == null ^ this.getNetworkPacketsOutPerSecond() == null) return false; if (other.getNetworkPacketsOutPerSecond() != null && other.getNetworkPacketsOutPerSecond().equals(this.getNetworkPacketsOutPerSecond()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getNetworkInBytesPerSecond() == null) ? 0 : getNetworkInBytesPerSecond().hashCode()); hashCode = prime * hashCode + ((getNetworkOutBytesPerSecond() == null) ? 0 : getNetworkOutBytesPerSecond().hashCode()); hashCode = prime * hashCode + ((getNetworkPacketsInPerSecond() == null) ? 0 : getNetworkPacketsInPerSecond().hashCode()); hashCode = prime * hashCode + ((getNetworkPacketsOutPerSecond() == null) ? 0 : getNetworkPacketsOutPerSecond().hashCode()); return hashCode; } @Override public NetworkResourceUtilization clone() { try { return (NetworkResourceUtilization) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.costexplorer.model.transform.NetworkResourceUtilizationMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy