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

com.amazonaws.services.devicefarm.model.NetworkProfile Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Device Farm module holds the client classes that are used for communicating with AWS Device Farm

There is a newer version: 1.12.778
Show newest version
/*
 * Copyright 2019-2024 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.devicefarm.model;

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

/**
 * 

* An array of settings that describes characteristics of a network profile. *

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

* The Amazon Resource Name (ARN) of the network profile. *

*/ private String arn; /** *

* The name of the network profile. *

*/ private String name; /** *

* The description of the network profile. *

*/ private String description; /** *

* The type of network profile. Valid values are listed here. *

*/ private String type; /** *

* The data throughput rate in bits per second, as an integer from 0 to 104857600. *

*/ private Long uplinkBandwidthBits; /** *

* The data throughput rate in bits per second, as an integer from 0 to 104857600. *

*/ private Long downlinkBandwidthBits; /** *

* Delay time for all packets to destination in milliseconds as an integer from 0 to 2000. *

*/ private Long uplinkDelayMs; /** *

* Delay time for all packets to destination in milliseconds as an integer from 0 to 2000. *

*/ private Long downlinkDelayMs; /** *

* Time variation in the delay of received packets in milliseconds as an integer from 0 to 2000. *

*/ private Long uplinkJitterMs; /** *

* Time variation in the delay of received packets in milliseconds as an integer from 0 to 2000. *

*/ private Long downlinkJitterMs; /** *

* Proportion of transmitted packets that fail to arrive from 0 to 100 percent. *

*/ private Integer uplinkLossPercent; /** *

* Proportion of received packets that fail to arrive from 0 to 100 percent. *

*/ private Integer downlinkLossPercent; /** *

* The Amazon Resource Name (ARN) of the network profile. *

* * @param arn * The Amazon Resource Name (ARN) of the network profile. */ public void setArn(String arn) { this.arn = arn; } /** *

* The Amazon Resource Name (ARN) of the network profile. *

* * @return The Amazon Resource Name (ARN) of the network profile. */ public String getArn() { return this.arn; } /** *

* The Amazon Resource Name (ARN) of the network profile. *

* * @param arn * The Amazon Resource Name (ARN) of the network profile. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkProfile withArn(String arn) { setArn(arn); return this; } /** *

* The name of the network profile. *

* * @param name * The name of the network profile. */ public void setName(String name) { this.name = name; } /** *

* The name of the network profile. *

* * @return The name of the network profile. */ public String getName() { return this.name; } /** *

* The name of the network profile. *

* * @param name * The name of the network profile. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkProfile withName(String name) { setName(name); return this; } /** *

* The description of the network profile. *

* * @param description * The description of the network profile. */ public void setDescription(String description) { this.description = description; } /** *

* The description of the network profile. *

* * @return The description of the network profile. */ public String getDescription() { return this.description; } /** *

* The description of the network profile. *

* * @param description * The description of the network profile. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkProfile withDescription(String description) { setDescription(description); return this; } /** *

* The type of network profile. Valid values are listed here. *

* * @param type * The type of network profile. Valid values are listed here. * @see NetworkProfileType */ public void setType(String type) { this.type = type; } /** *

* The type of network profile. Valid values are listed here. *

* * @return The type of network profile. Valid values are listed here. * @see NetworkProfileType */ public String getType() { return this.type; } /** *

* The type of network profile. Valid values are listed here. *

* * @param type * The type of network profile. Valid values are listed here. * @return Returns a reference to this object so that method calls can be chained together. * @see NetworkProfileType */ public NetworkProfile withType(String type) { setType(type); return this; } /** *

* The type of network profile. Valid values are listed here. *

* * @param type * The type of network profile. Valid values are listed here. * @see NetworkProfileType */ public void setType(NetworkProfileType type) { withType(type); } /** *

* The type of network profile. Valid values are listed here. *

* * @param type * The type of network profile. Valid values are listed here. * @return Returns a reference to this object so that method calls can be chained together. * @see NetworkProfileType */ public NetworkProfile withType(NetworkProfileType type) { this.type = type.toString(); return this; } /** *

* The data throughput rate in bits per second, as an integer from 0 to 104857600. *

* * @param uplinkBandwidthBits * The data throughput rate in bits per second, as an integer from 0 to 104857600. */ public void setUplinkBandwidthBits(Long uplinkBandwidthBits) { this.uplinkBandwidthBits = uplinkBandwidthBits; } /** *

* The data throughput rate in bits per second, as an integer from 0 to 104857600. *

* * @return The data throughput rate in bits per second, as an integer from 0 to 104857600. */ public Long getUplinkBandwidthBits() { return this.uplinkBandwidthBits; } /** *

* The data throughput rate in bits per second, as an integer from 0 to 104857600. *

* * @param uplinkBandwidthBits * The data throughput rate in bits per second, as an integer from 0 to 104857600. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkProfile withUplinkBandwidthBits(Long uplinkBandwidthBits) { setUplinkBandwidthBits(uplinkBandwidthBits); return this; } /** *

* The data throughput rate in bits per second, as an integer from 0 to 104857600. *

* * @param downlinkBandwidthBits * The data throughput rate in bits per second, as an integer from 0 to 104857600. */ public void setDownlinkBandwidthBits(Long downlinkBandwidthBits) { this.downlinkBandwidthBits = downlinkBandwidthBits; } /** *

* The data throughput rate in bits per second, as an integer from 0 to 104857600. *

* * @return The data throughput rate in bits per second, as an integer from 0 to 104857600. */ public Long getDownlinkBandwidthBits() { return this.downlinkBandwidthBits; } /** *

* The data throughput rate in bits per second, as an integer from 0 to 104857600. *

* * @param downlinkBandwidthBits * The data throughput rate in bits per second, as an integer from 0 to 104857600. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkProfile withDownlinkBandwidthBits(Long downlinkBandwidthBits) { setDownlinkBandwidthBits(downlinkBandwidthBits); return this; } /** *

* Delay time for all packets to destination in milliseconds as an integer from 0 to 2000. *

* * @param uplinkDelayMs * Delay time for all packets to destination in milliseconds as an integer from 0 to 2000. */ public void setUplinkDelayMs(Long uplinkDelayMs) { this.uplinkDelayMs = uplinkDelayMs; } /** *

* Delay time for all packets to destination in milliseconds as an integer from 0 to 2000. *

* * @return Delay time for all packets to destination in milliseconds as an integer from 0 to 2000. */ public Long getUplinkDelayMs() { return this.uplinkDelayMs; } /** *

* Delay time for all packets to destination in milliseconds as an integer from 0 to 2000. *

* * @param uplinkDelayMs * Delay time for all packets to destination in milliseconds as an integer from 0 to 2000. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkProfile withUplinkDelayMs(Long uplinkDelayMs) { setUplinkDelayMs(uplinkDelayMs); return this; } /** *

* Delay time for all packets to destination in milliseconds as an integer from 0 to 2000. *

* * @param downlinkDelayMs * Delay time for all packets to destination in milliseconds as an integer from 0 to 2000. */ public void setDownlinkDelayMs(Long downlinkDelayMs) { this.downlinkDelayMs = downlinkDelayMs; } /** *

* Delay time for all packets to destination in milliseconds as an integer from 0 to 2000. *

* * @return Delay time for all packets to destination in milliseconds as an integer from 0 to 2000. */ public Long getDownlinkDelayMs() { return this.downlinkDelayMs; } /** *

* Delay time for all packets to destination in milliseconds as an integer from 0 to 2000. *

* * @param downlinkDelayMs * Delay time for all packets to destination in milliseconds as an integer from 0 to 2000. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkProfile withDownlinkDelayMs(Long downlinkDelayMs) { setDownlinkDelayMs(downlinkDelayMs); return this; } /** *

* Time variation in the delay of received packets in milliseconds as an integer from 0 to 2000. *

* * @param uplinkJitterMs * Time variation in the delay of received packets in milliseconds as an integer from 0 to 2000. */ public void setUplinkJitterMs(Long uplinkJitterMs) { this.uplinkJitterMs = uplinkJitterMs; } /** *

* Time variation in the delay of received packets in milliseconds as an integer from 0 to 2000. *

* * @return Time variation in the delay of received packets in milliseconds as an integer from 0 to 2000. */ public Long getUplinkJitterMs() { return this.uplinkJitterMs; } /** *

* Time variation in the delay of received packets in milliseconds as an integer from 0 to 2000. *

* * @param uplinkJitterMs * Time variation in the delay of received packets in milliseconds as an integer from 0 to 2000. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkProfile withUplinkJitterMs(Long uplinkJitterMs) { setUplinkJitterMs(uplinkJitterMs); return this; } /** *

* Time variation in the delay of received packets in milliseconds as an integer from 0 to 2000. *

* * @param downlinkJitterMs * Time variation in the delay of received packets in milliseconds as an integer from 0 to 2000. */ public void setDownlinkJitterMs(Long downlinkJitterMs) { this.downlinkJitterMs = downlinkJitterMs; } /** *

* Time variation in the delay of received packets in milliseconds as an integer from 0 to 2000. *

* * @return Time variation in the delay of received packets in milliseconds as an integer from 0 to 2000. */ public Long getDownlinkJitterMs() { return this.downlinkJitterMs; } /** *

* Time variation in the delay of received packets in milliseconds as an integer from 0 to 2000. *

* * @param downlinkJitterMs * Time variation in the delay of received packets in milliseconds as an integer from 0 to 2000. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkProfile withDownlinkJitterMs(Long downlinkJitterMs) { setDownlinkJitterMs(downlinkJitterMs); return this; } /** *

* Proportion of transmitted packets that fail to arrive from 0 to 100 percent. *

* * @param uplinkLossPercent * Proportion of transmitted packets that fail to arrive from 0 to 100 percent. */ public void setUplinkLossPercent(Integer uplinkLossPercent) { this.uplinkLossPercent = uplinkLossPercent; } /** *

* Proportion of transmitted packets that fail to arrive from 0 to 100 percent. *

* * @return Proportion of transmitted packets that fail to arrive from 0 to 100 percent. */ public Integer getUplinkLossPercent() { return this.uplinkLossPercent; } /** *

* Proportion of transmitted packets that fail to arrive from 0 to 100 percent. *

* * @param uplinkLossPercent * Proportion of transmitted packets that fail to arrive from 0 to 100 percent. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkProfile withUplinkLossPercent(Integer uplinkLossPercent) { setUplinkLossPercent(uplinkLossPercent); return this; } /** *

* Proportion of received packets that fail to arrive from 0 to 100 percent. *

* * @param downlinkLossPercent * Proportion of received packets that fail to arrive from 0 to 100 percent. */ public void setDownlinkLossPercent(Integer downlinkLossPercent) { this.downlinkLossPercent = downlinkLossPercent; } /** *

* Proportion of received packets that fail to arrive from 0 to 100 percent. *

* * @return Proportion of received packets that fail to arrive from 0 to 100 percent. */ public Integer getDownlinkLossPercent() { return this.downlinkLossPercent; } /** *

* Proportion of received packets that fail to arrive from 0 to 100 percent. *

* * @param downlinkLossPercent * Proportion of received packets that fail to arrive from 0 to 100 percent. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkProfile withDownlinkLossPercent(Integer downlinkLossPercent) { setDownlinkLossPercent(downlinkLossPercent); 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 (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getType() != null) sb.append("Type: ").append(getType()).append(","); if (getUplinkBandwidthBits() != null) sb.append("UplinkBandwidthBits: ").append(getUplinkBandwidthBits()).append(","); if (getDownlinkBandwidthBits() != null) sb.append("DownlinkBandwidthBits: ").append(getDownlinkBandwidthBits()).append(","); if (getUplinkDelayMs() != null) sb.append("UplinkDelayMs: ").append(getUplinkDelayMs()).append(","); if (getDownlinkDelayMs() != null) sb.append("DownlinkDelayMs: ").append(getDownlinkDelayMs()).append(","); if (getUplinkJitterMs() != null) sb.append("UplinkJitterMs: ").append(getUplinkJitterMs()).append(","); if (getDownlinkJitterMs() != null) sb.append("DownlinkJitterMs: ").append(getDownlinkJitterMs()).append(","); if (getUplinkLossPercent() != null) sb.append("UplinkLossPercent: ").append(getUplinkLossPercent()).append(","); if (getDownlinkLossPercent() != null) sb.append("DownlinkLossPercent: ").append(getDownlinkLossPercent()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof NetworkProfile == false) return false; NetworkProfile other = (NetworkProfile) obj; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getType() == null ^ this.getType() == null) return false; if (other.getType() != null && other.getType().equals(this.getType()) == false) return false; if (other.getUplinkBandwidthBits() == null ^ this.getUplinkBandwidthBits() == null) return false; if (other.getUplinkBandwidthBits() != null && other.getUplinkBandwidthBits().equals(this.getUplinkBandwidthBits()) == false) return false; if (other.getDownlinkBandwidthBits() == null ^ this.getDownlinkBandwidthBits() == null) return false; if (other.getDownlinkBandwidthBits() != null && other.getDownlinkBandwidthBits().equals(this.getDownlinkBandwidthBits()) == false) return false; if (other.getUplinkDelayMs() == null ^ this.getUplinkDelayMs() == null) return false; if (other.getUplinkDelayMs() != null && other.getUplinkDelayMs().equals(this.getUplinkDelayMs()) == false) return false; if (other.getDownlinkDelayMs() == null ^ this.getDownlinkDelayMs() == null) return false; if (other.getDownlinkDelayMs() != null && other.getDownlinkDelayMs().equals(this.getDownlinkDelayMs()) == false) return false; if (other.getUplinkJitterMs() == null ^ this.getUplinkJitterMs() == null) return false; if (other.getUplinkJitterMs() != null && other.getUplinkJitterMs().equals(this.getUplinkJitterMs()) == false) return false; if (other.getDownlinkJitterMs() == null ^ this.getDownlinkJitterMs() == null) return false; if (other.getDownlinkJitterMs() != null && other.getDownlinkJitterMs().equals(this.getDownlinkJitterMs()) == false) return false; if (other.getUplinkLossPercent() == null ^ this.getUplinkLossPercent() == null) return false; if (other.getUplinkLossPercent() != null && other.getUplinkLossPercent().equals(this.getUplinkLossPercent()) == false) return false; if (other.getDownlinkLossPercent() == null ^ this.getDownlinkLossPercent() == null) return false; if (other.getDownlinkLossPercent() != null && other.getDownlinkLossPercent().equals(this.getDownlinkLossPercent()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); hashCode = prime * hashCode + ((getUplinkBandwidthBits() == null) ? 0 : getUplinkBandwidthBits().hashCode()); hashCode = prime * hashCode + ((getDownlinkBandwidthBits() == null) ? 0 : getDownlinkBandwidthBits().hashCode()); hashCode = prime * hashCode + ((getUplinkDelayMs() == null) ? 0 : getUplinkDelayMs().hashCode()); hashCode = prime * hashCode + ((getDownlinkDelayMs() == null) ? 0 : getDownlinkDelayMs().hashCode()); hashCode = prime * hashCode + ((getUplinkJitterMs() == null) ? 0 : getUplinkJitterMs().hashCode()); hashCode = prime * hashCode + ((getDownlinkJitterMs() == null) ? 0 : getDownlinkJitterMs().hashCode()); hashCode = prime * hashCode + ((getUplinkLossPercent() == null) ? 0 : getUplinkLossPercent().hashCode()); hashCode = prime * hashCode + ((getDownlinkLossPercent() == null) ? 0 : getDownlinkLossPercent().hashCode()); return hashCode; } @Override public NetworkProfile clone() { try { return (NetworkProfile) 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.devicefarm.model.transform.NetworkProfileMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy