/* * Copyright 2018-2023 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 DescribeDirectConnectGatewayAssociationProposalsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The ID of the Direct Connect gateway. *
*/ private String directConnectGatewayId; /** ** The ID of the proposal. *
*/ private String proposalId; /** ** The ID of the associated gateway. *
*/ private String associatedGatewayId; /** *
* 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.
*
* The token for the next page of results. *
*/ private String nextToken; /** ** The ID of the Direct Connect gateway. *
* * @param directConnectGatewayId * The ID of the Direct Connect gateway. */ public void setDirectConnectGatewayId(String directConnectGatewayId) { this.directConnectGatewayId = directConnectGatewayId; } /** ** The ID of the Direct Connect gateway. *
* * @return The ID of the Direct Connect gateway. */ public String getDirectConnectGatewayId() { return this.directConnectGatewayId; } /** ** The ID of the Direct Connect gateway. *
* * @param directConnectGatewayId * The ID of the Direct Connect gateway. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeDirectConnectGatewayAssociationProposalsRequest withDirectConnectGatewayId(String directConnectGatewayId) { setDirectConnectGatewayId(directConnectGatewayId); return this; } /** ** The ID of the proposal. *
* * @param proposalId * The ID of the proposal. */ public void setProposalId(String proposalId) { this.proposalId = proposalId; } /** ** The ID of the proposal. *
* * @return The ID of the proposal. */ public String getProposalId() { return this.proposalId; } /** ** The ID of the proposal. *
* * @param proposalId * The ID of the proposal. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeDirectConnectGatewayAssociationProposalsRequest withProposalId(String proposalId) { setProposalId(proposalId); return this; } /** ** The ID of the associated gateway. *
* * @param associatedGatewayId * The ID of the associated gateway. */ public void setAssociatedGatewayId(String associatedGatewayId) { this.associatedGatewayId = associatedGatewayId; } /** ** The ID of the associated gateway. *
* * @return The ID of the associated gateway. */ public String getAssociatedGatewayId() { return this.associatedGatewayId; } /** ** The ID of the associated gateway. *
* * @param associatedGatewayId * The ID of the associated gateway. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeDirectConnectGatewayAssociationProposalsRequest withAssociatedGatewayId(String associatedGatewayId) { setAssociatedGatewayId(associatedGatewayId); 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.
*
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.
*
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.
*
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 DescribeDirectConnectGatewayAssociationProposalsRequest 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 DescribeDirectConnectGatewayAssociationProposalsRequest 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 (getDirectConnectGatewayId() != null) sb.append("DirectConnectGatewayId: ").append(getDirectConnectGatewayId()).append(","); if (getProposalId() != null) sb.append("ProposalId: ").append(getProposalId()).append(","); if (getAssociatedGatewayId() != null) sb.append("AssociatedGatewayId: ").append(getAssociatedGatewayId()).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 DescribeDirectConnectGatewayAssociationProposalsRequest == false) return false; DescribeDirectConnectGatewayAssociationProposalsRequest other = (DescribeDirectConnectGatewayAssociationProposalsRequest) obj; if (other.getDirectConnectGatewayId() == null ^ this.getDirectConnectGatewayId() == null) return false; if (other.getDirectConnectGatewayId() != null && other.getDirectConnectGatewayId().equals(this.getDirectConnectGatewayId()) == false) return false; if (other.getProposalId() == null ^ this.getProposalId() == null) return false; if (other.getProposalId() != null && other.getProposalId().equals(this.getProposalId()) == false) return false; if (other.getAssociatedGatewayId() == null ^ this.getAssociatedGatewayId() == null) return false; if (other.getAssociatedGatewayId() != null && other.getAssociatedGatewayId().equals(this.getAssociatedGatewayId()) == 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 + ((getDirectConnectGatewayId() == null) ? 0 : getDirectConnectGatewayId().hashCode()); hashCode = prime * hashCode + ((getProposalId() == null) ? 0 : getProposalId().hashCode()); hashCode = prime * hashCode + ((getAssociatedGatewayId() == null) ? 0 : getAssociatedGatewayId().hashCode()); hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); return hashCode; } @Override public DescribeDirectConnectGatewayAssociationProposalsRequest clone() { return (DescribeDirectConnectGatewayAssociationProposalsRequest) super.clone(); } }