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

com.amazonaws.services.directconnect.model.ListVirtualInterfaceTestHistoryRequest Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.780
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.directconnect.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 ListVirtualInterfaceTestHistoryRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The ID of the virtual interface failover test. *

*/ private String testId; /** *

* The ID of the virtual interface that was tested. *

*/ private String virtualInterfaceId; /** *

* The BGP peers that were placed in the DOWN state during the virtual interface failover test. *

*/ private com.amazonaws.internal.SdkInternalList bgpPeers; /** *

* The status of the virtual interface failover test. *

*/ private String status; /** *

* The maximum number of results to return with a single call. To retrieve the remaining results, make another call * with the returned nextToken value. *

*

* If MaxResults is given a value larger than 100, only 100 results are returned. *

*/ private Integer maxResults; /** *

* The token for the next page of results. *

*/ private String nextToken; /** *

* The ID of the virtual interface failover test. *

* * @param testId * The ID of the virtual interface failover test. */ public void setTestId(String testId) { this.testId = testId; } /** *

* The ID of the virtual interface failover test. *

* * @return The ID of the virtual interface failover test. */ public String getTestId() { return this.testId; } /** *

* The ID of the virtual interface failover test. *

* * @param testId * The ID of the virtual interface failover test. * @return Returns a reference to this object so that method calls can be chained together. */ public ListVirtualInterfaceTestHistoryRequest withTestId(String testId) { setTestId(testId); return this; } /** *

* The ID of the virtual interface that was tested. *

* * @param virtualInterfaceId * The ID of the virtual interface that was tested. */ public void setVirtualInterfaceId(String virtualInterfaceId) { this.virtualInterfaceId = virtualInterfaceId; } /** *

* The ID of the virtual interface that was tested. *

* * @return The ID of the virtual interface that was tested. */ public String getVirtualInterfaceId() { return this.virtualInterfaceId; } /** *

* The ID of the virtual interface that was tested. *

* * @param virtualInterfaceId * The ID of the virtual interface that was tested. * @return Returns a reference to this object so that method calls can be chained together. */ public ListVirtualInterfaceTestHistoryRequest withVirtualInterfaceId(String virtualInterfaceId) { setVirtualInterfaceId(virtualInterfaceId); return this; } /** *

* The BGP peers that were placed in the DOWN state during the virtual interface failover test. *

* * @return The BGP peers that were placed in the DOWN state during the virtual interface failover test. */ public java.util.List getBgpPeers() { if (bgpPeers == null) { bgpPeers = new com.amazonaws.internal.SdkInternalList(); } return bgpPeers; } /** *

* The BGP peers that were placed in the DOWN state during the virtual interface failover test. *

* * @param bgpPeers * The BGP peers that were placed in the DOWN state during the virtual interface failover test. */ public void setBgpPeers(java.util.Collection bgpPeers) { if (bgpPeers == null) { this.bgpPeers = null; return; } this.bgpPeers = new com.amazonaws.internal.SdkInternalList(bgpPeers); } /** *

* The BGP peers that were placed in the DOWN state during the virtual interface failover test. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setBgpPeers(java.util.Collection)} or {@link #withBgpPeers(java.util.Collection)} if you want to override * the existing values. *

* * @param bgpPeers * The BGP peers that were placed in the DOWN state during the virtual interface failover test. * @return Returns a reference to this object so that method calls can be chained together. */ public ListVirtualInterfaceTestHistoryRequest withBgpPeers(String... bgpPeers) { if (this.bgpPeers == null) { setBgpPeers(new com.amazonaws.internal.SdkInternalList(bgpPeers.length)); } for (String ele : bgpPeers) { this.bgpPeers.add(ele); } return this; } /** *

* The BGP peers that were placed in the DOWN state during the virtual interface failover test. *

* * @param bgpPeers * The BGP peers that were placed in the DOWN state during the virtual interface failover test. * @return Returns a reference to this object so that method calls can be chained together. */ public ListVirtualInterfaceTestHistoryRequest withBgpPeers(java.util.Collection bgpPeers) { setBgpPeers(bgpPeers); return this; } /** *

* The status of the virtual interface failover test. *

* * @param status * The status of the virtual interface failover test. */ public void setStatus(String status) { this.status = status; } /** *

* The status of the virtual interface failover test. *

* * @return The status of the virtual interface failover test. */ public String getStatus() { return this.status; } /** *

* The status of the virtual interface failover test. *

* * @param status * The status of the virtual interface failover test. * @return Returns a reference to this object so that method calls can be chained together. */ public ListVirtualInterfaceTestHistoryRequest withStatus(String status) { setStatus(status); return this; } /** *

* The maximum number of results to return with a single call. To retrieve the remaining results, make another call * with the returned nextToken value. *

*

* If MaxResults is given a value larger than 100, only 100 results are returned. *

* * @param maxResults * The maximum number of results to return with a single call. To retrieve the remaining results, make * another call with the returned nextToken value.

*

* If MaxResults is given a value larger than 100, only 100 results are returned. */ public void setMaxResults(Integer maxResults) { this.maxResults = maxResults; } /** *

* The maximum number of results to return with a single call. To retrieve the remaining results, make another call * with the returned nextToken value. *

*

* If MaxResults is given a value larger than 100, only 100 results are returned. *

* * @return The maximum number of results to return with a single call. To retrieve the remaining results, make * another call with the returned nextToken value.

*

* If MaxResults is given a value larger than 100, only 100 results are returned. */ public Integer getMaxResults() { return this.maxResults; } /** *

* The maximum number of results to return with a single call. To retrieve the remaining results, make another call * with the returned nextToken value. *

*

* If MaxResults is given a value larger than 100, only 100 results are returned. *

* * @param maxResults * The maximum number of results to return with a single call. To retrieve the remaining results, make * another call with the returned nextToken value.

*

* If MaxResults is given a value larger than 100, only 100 results are returned. * @return Returns a reference to this object so that method calls can be chained together. */ public ListVirtualInterfaceTestHistoryRequest withMaxResults(Integer maxResults) { setMaxResults(maxResults); return this; } /** *

* The token for the next page of results. *

* * @param nextToken * The token for the next page of results. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** *

* The token for the next page of results. *

* * @return The token for the next page of results. */ public String getNextToken() { return this.nextToken; } /** *

* The token for the next page of results. *

* * @param nextToken * The token for the next page of results. * @return Returns a reference to this object so that method calls can be chained together. */ public ListVirtualInterfaceTestHistoryRequest withNextToken(String nextToken) { setNextToken(nextToken); 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 (getTestId() != null) sb.append("TestId: ").append(getTestId()).append(","); if (getVirtualInterfaceId() != null) sb.append("VirtualInterfaceId: ").append(getVirtualInterfaceId()).append(","); if (getBgpPeers() != null) sb.append("BgpPeers: ").append(getBgpPeers()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getMaxResults() != null) sb.append("MaxResults: ").append(getMaxResults()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListVirtualInterfaceTestHistoryRequest == false) return false; ListVirtualInterfaceTestHistoryRequest other = (ListVirtualInterfaceTestHistoryRequest) obj; if (other.getTestId() == null ^ this.getTestId() == null) return false; if (other.getTestId() != null && other.getTestId().equals(this.getTestId()) == false) return false; if (other.getVirtualInterfaceId() == null ^ this.getVirtualInterfaceId() == null) return false; if (other.getVirtualInterfaceId() != null && other.getVirtualInterfaceId().equals(this.getVirtualInterfaceId()) == false) return false; if (other.getBgpPeers() == null ^ this.getBgpPeers() == null) return false; if (other.getBgpPeers() != null && other.getBgpPeers().equals(this.getBgpPeers()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getMaxResults() == null ^ this.getMaxResults() == null) return false; if (other.getMaxResults() != null && other.getMaxResults().equals(this.getMaxResults()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTestId() == null) ? 0 : getTestId().hashCode()); hashCode = prime * hashCode + ((getVirtualInterfaceId() == null) ? 0 : getVirtualInterfaceId().hashCode()); hashCode = prime * hashCode + ((getBgpPeers() == null) ? 0 : getBgpPeers().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); return hashCode; } @Override public ListVirtualInterfaceTestHistoryRequest clone() { return (ListVirtualInterfaceTestHistoryRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy