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

com.amazonaws.services.route53resolver.model.ListResolverRuleAssociationsResult Maven / Gradle / Ivy

/*
 * 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.route53resolver.model;

import java.io.Serializable;
import javax.annotation.Generated;

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

    /**
     * 

* If more than MaxResults rule associations match the specified criteria, you can submit another * ListResolverRuleAssociation request to get the next group of results. In the next request, specify * the value of NextToken from the previous response. *

*/ private String nextToken; /** *

* The value that you specified for MaxResults in the request. *

*/ private Integer maxResults; /** *

* The associations that were created between Resolver rules and VPCs using the current Amazon Web Services account, * and that match the specified filters, if any. *

*/ private java.util.List resolverRuleAssociations; /** *

* If more than MaxResults rule associations match the specified criteria, you can submit another * ListResolverRuleAssociation request to get the next group of results. In the next request, specify * the value of NextToken from the previous response. *

* * @param nextToken * If more than MaxResults rule associations match the specified criteria, you can submit * another ListResolverRuleAssociation request to get the next group of results. In the next * request, specify the value of NextToken from the previous response. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** *

* If more than MaxResults rule associations match the specified criteria, you can submit another * ListResolverRuleAssociation request to get the next group of results. In the next request, specify * the value of NextToken from the previous response. *

* * @return If more than MaxResults rule associations match the specified criteria, you can submit * another ListResolverRuleAssociation request to get the next group of results. In the next * request, specify the value of NextToken from the previous response. */ public String getNextToken() { return this.nextToken; } /** *

* If more than MaxResults rule associations match the specified criteria, you can submit another * ListResolverRuleAssociation request to get the next group of results. In the next request, specify * the value of NextToken from the previous response. *

* * @param nextToken * If more than MaxResults rule associations match the specified criteria, you can submit * another ListResolverRuleAssociation request to get the next group of results. In the next * request, specify the value of NextToken from the previous response. * @return Returns a reference to this object so that method calls can be chained together. */ public ListResolverRuleAssociationsResult withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** *

* The value that you specified for MaxResults in the request. *

* * @param maxResults * The value that you specified for MaxResults in the request. */ public void setMaxResults(Integer maxResults) { this.maxResults = maxResults; } /** *

* The value that you specified for MaxResults in the request. *

* * @return The value that you specified for MaxResults in the request. */ public Integer getMaxResults() { return this.maxResults; } /** *

* The value that you specified for MaxResults in the request. *

* * @param maxResults * The value that you specified for MaxResults in the request. * @return Returns a reference to this object so that method calls can be chained together. */ public ListResolverRuleAssociationsResult withMaxResults(Integer maxResults) { setMaxResults(maxResults); return this; } /** *

* The associations that were created between Resolver rules and VPCs using the current Amazon Web Services account, * and that match the specified filters, if any. *

* * @return The associations that were created between Resolver rules and VPCs using the current Amazon Web Services * account, and that match the specified filters, if any. */ public java.util.List getResolverRuleAssociations() { return resolverRuleAssociations; } /** *

* The associations that were created between Resolver rules and VPCs using the current Amazon Web Services account, * and that match the specified filters, if any. *

* * @param resolverRuleAssociations * The associations that were created between Resolver rules and VPCs using the current Amazon Web Services * account, and that match the specified filters, if any. */ public void setResolverRuleAssociations(java.util.Collection resolverRuleAssociations) { if (resolverRuleAssociations == null) { this.resolverRuleAssociations = null; return; } this.resolverRuleAssociations = new java.util.ArrayList(resolverRuleAssociations); } /** *

* The associations that were created between Resolver rules and VPCs using the current Amazon Web Services account, * and that match the specified filters, if any. *

*

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

* * @param resolverRuleAssociations * The associations that were created between Resolver rules and VPCs using the current Amazon Web Services * account, and that match the specified filters, if any. * @return Returns a reference to this object so that method calls can be chained together. */ public ListResolverRuleAssociationsResult withResolverRuleAssociations(ResolverRuleAssociation... resolverRuleAssociations) { if (this.resolverRuleAssociations == null) { setResolverRuleAssociations(new java.util.ArrayList(resolverRuleAssociations.length)); } for (ResolverRuleAssociation ele : resolverRuleAssociations) { this.resolverRuleAssociations.add(ele); } return this; } /** *

* The associations that were created between Resolver rules and VPCs using the current Amazon Web Services account, * and that match the specified filters, if any. *

* * @param resolverRuleAssociations * The associations that were created between Resolver rules and VPCs using the current Amazon Web Services * account, and that match the specified filters, if any. * @return Returns a reference to this object so that method calls can be chained together. */ public ListResolverRuleAssociationsResult withResolverRuleAssociations(java.util.Collection resolverRuleAssociations) { setResolverRuleAssociations(resolverRuleAssociations); 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 (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()).append(","); if (getMaxResults() != null) sb.append("MaxResults: ").append(getMaxResults()).append(","); if (getResolverRuleAssociations() != null) sb.append("ResolverRuleAssociations: ").append(getResolverRuleAssociations()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListResolverRuleAssociationsResult == false) return false; ListResolverRuleAssociationsResult other = (ListResolverRuleAssociationsResult) obj; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == 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.getResolverRuleAssociations() == null ^ this.getResolverRuleAssociations() == null) return false; if (other.getResolverRuleAssociations() != null && other.getResolverRuleAssociations().equals(this.getResolverRuleAssociations()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); hashCode = prime * hashCode + ((getResolverRuleAssociations() == null) ? 0 : getResolverRuleAssociations().hashCode()); return hashCode; } @Override public ListResolverRuleAssociationsResult clone() { try { return (ListResolverRuleAssociationsResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy