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

com.amazonaws.services.route53resolver.model.ListResolverQueryLogConfigAssociationsResult 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 ListResolverQueryLogConfigAssociationsResult extends com.amazonaws.AmazonWebServiceResult implements Serializable,
        Cloneable {

    /**
     * 

* If there are more than MaxResults query logging associations, you can submit another * ListResolverQueryLogConfigAssociations request to get the next group of associations. In the next * request, specify the value of NextToken from the previous response. *

*/ private String nextToken; /** *

* The total number of query logging associations that were created by the current account in the specified Region. * This count can differ from the number of associations that are returned in a * ListResolverQueryLogConfigAssociations response, depending on the values that you specify in the * request. *

*/ private Integer totalCount; /** *

* The total number of query logging associations that were created by the current account in the specified Region * and that match the filters that were specified in the ListResolverQueryLogConfigAssociations * request. For the total number of associations that were created by the current account in the specified Region, * see TotalCount. *

*/ private Integer totalFilteredCount; /** *

* A list that contains one ResolverQueryLogConfigAssociations element for each query logging * association that matches the values that you specified for Filter. *

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

* If there are more than MaxResults query logging associations, you can submit another * ListResolverQueryLogConfigAssociations request to get the next group of associations. In the next * request, specify the value of NextToken from the previous response. *

* * @param nextToken * If there are more than MaxResults query logging associations, you can submit another * ListResolverQueryLogConfigAssociations request to get the next group of associations. In the * next request, specify the value of NextToken from the previous response. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** *

* If there are more than MaxResults query logging associations, you can submit another * ListResolverQueryLogConfigAssociations request to get the next group of associations. In the next * request, specify the value of NextToken from the previous response. *

* * @return If there are more than MaxResults query logging associations, you can submit another * ListResolverQueryLogConfigAssociations request to get the next group of associations. In the * next request, specify the value of NextToken from the previous response. */ public String getNextToken() { return this.nextToken; } /** *

* If there are more than MaxResults query logging associations, you can submit another * ListResolverQueryLogConfigAssociations request to get the next group of associations. In the next * request, specify the value of NextToken from the previous response. *

* * @param nextToken * If there are more than MaxResults query logging associations, you can submit another * ListResolverQueryLogConfigAssociations request to get the next group of associations. 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 ListResolverQueryLogConfigAssociationsResult withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** *

* The total number of query logging associations that were created by the current account in the specified Region. * This count can differ from the number of associations that are returned in a * ListResolverQueryLogConfigAssociations response, depending on the values that you specify in the * request. *

* * @param totalCount * The total number of query logging associations that were created by the current account in the specified * Region. This count can differ from the number of associations that are returned in a * ListResolverQueryLogConfigAssociations response, depending on the values that you specify in * the request. */ public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } /** *

* The total number of query logging associations that were created by the current account in the specified Region. * This count can differ from the number of associations that are returned in a * ListResolverQueryLogConfigAssociations response, depending on the values that you specify in the * request. *

* * @return The total number of query logging associations that were created by the current account in the specified * Region. This count can differ from the number of associations that are returned in a * ListResolverQueryLogConfigAssociations response, depending on the values that you specify in * the request. */ public Integer getTotalCount() { return this.totalCount; } /** *

* The total number of query logging associations that were created by the current account in the specified Region. * This count can differ from the number of associations that are returned in a * ListResolverQueryLogConfigAssociations response, depending on the values that you specify in the * request. *

* * @param totalCount * The total number of query logging associations that were created by the current account in the specified * Region. This count can differ from the number of associations that are returned in a * ListResolverQueryLogConfigAssociations response, depending on the values that you specify in * the request. * @return Returns a reference to this object so that method calls can be chained together. */ public ListResolverQueryLogConfigAssociationsResult withTotalCount(Integer totalCount) { setTotalCount(totalCount); return this; } /** *

* The total number of query logging associations that were created by the current account in the specified Region * and that match the filters that were specified in the ListResolverQueryLogConfigAssociations * request. For the total number of associations that were created by the current account in the specified Region, * see TotalCount. *

* * @param totalFilteredCount * The total number of query logging associations that were created by the current account in the specified * Region and that match the filters that were specified in the * ListResolverQueryLogConfigAssociations request. For the total number of associations that * were created by the current account in the specified Region, see TotalCount. */ public void setTotalFilteredCount(Integer totalFilteredCount) { this.totalFilteredCount = totalFilteredCount; } /** *

* The total number of query logging associations that were created by the current account in the specified Region * and that match the filters that were specified in the ListResolverQueryLogConfigAssociations * request. For the total number of associations that were created by the current account in the specified Region, * see TotalCount. *

* * @return The total number of query logging associations that were created by the current account in the specified * Region and that match the filters that were specified in the * ListResolverQueryLogConfigAssociations request. For the total number of associations that * were created by the current account in the specified Region, see TotalCount. */ public Integer getTotalFilteredCount() { return this.totalFilteredCount; } /** *

* The total number of query logging associations that were created by the current account in the specified Region * and that match the filters that were specified in the ListResolverQueryLogConfigAssociations * request. For the total number of associations that were created by the current account in the specified Region, * see TotalCount. *

* * @param totalFilteredCount * The total number of query logging associations that were created by the current account in the specified * Region and that match the filters that were specified in the * ListResolverQueryLogConfigAssociations request. For the total number of associations that * were created by the current account in the specified Region, see TotalCount. * @return Returns a reference to this object so that method calls can be chained together. */ public ListResolverQueryLogConfigAssociationsResult withTotalFilteredCount(Integer totalFilteredCount) { setTotalFilteredCount(totalFilteredCount); return this; } /** *

* A list that contains one ResolverQueryLogConfigAssociations element for each query logging * association that matches the values that you specified for Filter. *

* * @return A list that contains one ResolverQueryLogConfigAssociations element for each query logging * association that matches the values that you specified for Filter. */ public java.util.List getResolverQueryLogConfigAssociations() { return resolverQueryLogConfigAssociations; } /** *

* A list that contains one ResolverQueryLogConfigAssociations element for each query logging * association that matches the values that you specified for Filter. *

* * @param resolverQueryLogConfigAssociations * A list that contains one ResolverQueryLogConfigAssociations element for each query logging * association that matches the values that you specified for Filter. */ public void setResolverQueryLogConfigAssociations(java.util.Collection resolverQueryLogConfigAssociations) { if (resolverQueryLogConfigAssociations == null) { this.resolverQueryLogConfigAssociations = null; return; } this.resolverQueryLogConfigAssociations = new java.util.ArrayList(resolverQueryLogConfigAssociations); } /** *

* A list that contains one ResolverQueryLogConfigAssociations element for each query logging * association that matches the values that you specified for Filter. *

*

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

* * @param resolverQueryLogConfigAssociations * A list that contains one ResolverQueryLogConfigAssociations element for each query logging * association that matches the values that you specified for Filter. * @return Returns a reference to this object so that method calls can be chained together. */ public ListResolverQueryLogConfigAssociationsResult withResolverQueryLogConfigAssociations( ResolverQueryLogConfigAssociation... resolverQueryLogConfigAssociations) { if (this.resolverQueryLogConfigAssociations == null) { setResolverQueryLogConfigAssociations(new java.util.ArrayList(resolverQueryLogConfigAssociations.length)); } for (ResolverQueryLogConfigAssociation ele : resolverQueryLogConfigAssociations) { this.resolverQueryLogConfigAssociations.add(ele); } return this; } /** *

* A list that contains one ResolverQueryLogConfigAssociations element for each query logging * association that matches the values that you specified for Filter. *

* * @param resolverQueryLogConfigAssociations * A list that contains one ResolverQueryLogConfigAssociations element for each query logging * association that matches the values that you specified for Filter. * @return Returns a reference to this object so that method calls can be chained together. */ public ListResolverQueryLogConfigAssociationsResult withResolverQueryLogConfigAssociations( java.util.Collection resolverQueryLogConfigAssociations) { setResolverQueryLogConfigAssociations(resolverQueryLogConfigAssociations); 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 (getTotalCount() != null) sb.append("TotalCount: ").append(getTotalCount()).append(","); if (getTotalFilteredCount() != null) sb.append("TotalFilteredCount: ").append(getTotalFilteredCount()).append(","); if (getResolverQueryLogConfigAssociations() != null) sb.append("ResolverQueryLogConfigAssociations: ").append(getResolverQueryLogConfigAssociations()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListResolverQueryLogConfigAssociationsResult == false) return false; ListResolverQueryLogConfigAssociationsResult other = (ListResolverQueryLogConfigAssociationsResult) obj; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; if (other.getTotalCount() == null ^ this.getTotalCount() == null) return false; if (other.getTotalCount() != null && other.getTotalCount().equals(this.getTotalCount()) == false) return false; if (other.getTotalFilteredCount() == null ^ this.getTotalFilteredCount() == null) return false; if (other.getTotalFilteredCount() != null && other.getTotalFilteredCount().equals(this.getTotalFilteredCount()) == false) return false; if (other.getResolverQueryLogConfigAssociations() == null ^ this.getResolverQueryLogConfigAssociations() == null) return false; if (other.getResolverQueryLogConfigAssociations() != null && other.getResolverQueryLogConfigAssociations().equals(this.getResolverQueryLogConfigAssociations()) == 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 + ((getTotalCount() == null) ? 0 : getTotalCount().hashCode()); hashCode = prime * hashCode + ((getTotalFilteredCount() == null) ? 0 : getTotalFilteredCount().hashCode()); hashCode = prime * hashCode + ((getResolverQueryLogConfigAssociations() == null) ? 0 : getResolverQueryLogConfigAssociations().hashCode()); return hashCode; } @Override public ListResolverQueryLogConfigAssociationsResult clone() { try { return (ListResolverQueryLogConfigAssociationsResult) 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