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

com.amazonaws.services.devicefarm.model.UpdateNetworkProfileRequest 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.AmazonWebServiceRequest;

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

    /**
     * 

* The Amazon Resource Name (ARN) of the project for which you want to update network profile settings. *

*/ private String arn; /** *

* The name of the network profile about which you are returning information. *

*/ private String name; /** *

* The description of the network profile about which you are returning information. *

*/ private String description; /** *

* The type of network profile to return information about. 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 project for which you want to update network profile settings. *

* * @param arn * The Amazon Resource Name (ARN) of the project for which you want to update network profile settings. */ public void setArn(String arn) { this.arn = arn; } /** *

* The Amazon Resource Name (ARN) of the project for which you want to update network profile settings. *

* * @return The Amazon Resource Name (ARN) of the project for which you want to update network profile settings. */ public String getArn() { return this.arn; } /** *

* The Amazon Resource Name (ARN) of the project for which you want to update network profile settings. *

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

* The name of the network profile about which you are returning information. *

* * @param name * The name of the network profile about which you are returning information. */ public void setName(String name) { this.name = name; } /** *

* The name of the network profile about which you are returning information. *

* * @return The name of the network profile about which you are returning information. */ public String getName() { return this.name; } /** *

* The name of the network profile about which you are returning information. *

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

* The description of the network profile about which you are returning information. *

* * @param description * The description of the network profile about which you are returning information. */ public void setDescription(String description) { this.description = description; } /** *

* The description of the network profile about which you are returning information. *

* * @return The description of the network profile about which you are returning information. */ public String getDescription() { return this.description; } /** *

* The description of the network profile about which you are returning information. *

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

* The type of network profile to return information about. Valid values are listed here. *

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

* The type of network profile to return information about. Valid values are listed here. *

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

* The type of network profile to return information about. Valid values are listed here. *

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

* The type of network profile to return information about. Valid values are listed here. *

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

* The type of network profile to return information about. Valid values are listed here. *

* * @param type * The type of network profile to return information about. Valid values are listed here. * @return Returns a reference to this object so that method calls can be chained together. * @see NetworkProfileType */ public UpdateNetworkProfileRequest 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 UpdateNetworkProfileRequest 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 UpdateNetworkProfileRequest 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 UpdateNetworkProfileRequest 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 UpdateNetworkProfileRequest 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 UpdateNetworkProfileRequest 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 UpdateNetworkProfileRequest 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 UpdateNetworkProfileRequest 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 UpdateNetworkProfileRequest 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 UpdateNetworkProfileRequest == false) return false; UpdateNetworkProfileRequest other = (UpdateNetworkProfileRequest) 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 UpdateNetworkProfileRequest clone() { return (UpdateNetworkProfileRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy