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

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

Go to download

The AWS Java SDK for Amazon Route 53 Resolver module holds the client classes that are used for communicating with Amazon Route 53 Resolver Service

There is a newer version: 1.12.772
Show newest version
/*
 * Copyright 2016-2021 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 ListResolverQueryLogConfigsResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {

    /**
     * 

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

*/ private String nextToken; /** *

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

*/ private Integer totalCount; /** *

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

*/ private Integer totalFilteredCount; /** *

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

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

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

* * @param nextToken * If there are more than MaxResults query logging configurations, you can submit another * ListResolverQueryLogConfigs request to get the next group of configurations. 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 configurations, you can submit another * ListResolverQueryLogConfigs request to get the next group of configurations. In the next request, * specify the value of NextToken from the previous response. *

* * @return If there are more than MaxResults query logging configurations, you can submit another * ListResolverQueryLogConfigs request to get the next group of configurations. 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 configurations, you can submit another * ListResolverQueryLogConfigs request to get the next group of configurations. In the next request, * specify the value of NextToken from the previous response. *

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

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

* * @param totalCount * The total number of query logging configurations that were created by the current account in the specified * Region. This count can differ from the number of query logging configurations that are returned in a * ListResolverQueryLogConfigs 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 configurations that were created by the current account in the specified * Region. This count can differ from the number of query logging configurations that are returned in a * ListResolverQueryLogConfigs response, depending on the values that you specify in the request. *

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

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

* * @param totalCount * The total number of query logging configurations that were created by the current account in the specified * Region. This count can differ from the number of query logging configurations that are returned in a * ListResolverQueryLogConfigs 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 ListResolverQueryLogConfigsResult withTotalCount(Integer totalCount) { setTotalCount(totalCount); return this; } /** *

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

* * @param totalFilteredCount * The total number of query logging configurations that were created by the current account in the specified * Region and that match the filters that were specified in the ListResolverQueryLogConfigs * request. For the total number of query logging configurations 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 configurations that were created by the current account in the specified Region * and that match the filters that were specified in the ListResolverQueryLogConfigs request. For the * total number of query logging configurations that were created by the current account in the specified Region, * see TotalCount. *

* * @return The total number of query logging configurations that were created by the current account in the * specified Region and that match the filters that were specified in the * ListResolverQueryLogConfigs request. For the total number of query logging configurations * 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 configurations that were created by the current account in the specified Region * and that match the filters that were specified in the ListResolverQueryLogConfigs request. For the * total number of query logging configurations that were created by the current account in the specified Region, * see TotalCount. *

* * @param totalFilteredCount * The total number of query logging configurations that were created by the current account in the specified * Region and that match the filters that were specified in the ListResolverQueryLogConfigs * request. For the total number of query logging configurations 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 ListResolverQueryLogConfigsResult withTotalFilteredCount(Integer totalFilteredCount) { setTotalFilteredCount(totalFilteredCount); return this; } /** *

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

* * @return A list that contains one ResolverQueryLogConfig element for each query logging configuration * that matches the values that you specified for Filter. */ public java.util.List getResolverQueryLogConfigs() { return resolverQueryLogConfigs; } /** *

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

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

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

*

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

* * @param resolverQueryLogConfigs * A list that contains one ResolverQueryLogConfig element for each query logging configuration * 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 ListResolverQueryLogConfigsResult withResolverQueryLogConfigs(ResolverQueryLogConfig... resolverQueryLogConfigs) { if (this.resolverQueryLogConfigs == null) { setResolverQueryLogConfigs(new java.util.ArrayList(resolverQueryLogConfigs.length)); } for (ResolverQueryLogConfig ele : resolverQueryLogConfigs) { this.resolverQueryLogConfigs.add(ele); } return this; } /** *

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

* * @param resolverQueryLogConfigs * A list that contains one ResolverQueryLogConfig element for each query logging configuration * 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 ListResolverQueryLogConfigsResult withResolverQueryLogConfigs(java.util.Collection resolverQueryLogConfigs) { setResolverQueryLogConfigs(resolverQueryLogConfigs); 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 (getResolverQueryLogConfigs() != null) sb.append("ResolverQueryLogConfigs: ").append(getResolverQueryLogConfigs()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListResolverQueryLogConfigsResult == false) return false; ListResolverQueryLogConfigsResult other = (ListResolverQueryLogConfigsResult) 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.getResolverQueryLogConfigs() == null ^ this.getResolverQueryLogConfigs() == null) return false; if (other.getResolverQueryLogConfigs() != null && other.getResolverQueryLogConfigs().equals(this.getResolverQueryLogConfigs()) == 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 + ((getResolverQueryLogConfigs() == null) ? 0 : getResolverQueryLogConfigs().hashCode()); return hashCode; } @Override public ListResolverQueryLogConfigsResult clone() { try { return (ListResolverQueryLogConfigsResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy