com.amazonaws.services.private5g.model.ListNetworkSitesRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-private5g Show documentation
/*
* 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.private5g.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 ListNetworkSitesRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The filters. Add filters to your request to return a more specific list of results. Use filters to match the
* status of the network sites.
*
*
* -
*
* STATUS
- The status (AVAILABLE
| CREATED
| DELETED
|
* DEPROVISIONING
| PROVISIONING
).
*
*
*
*
* Filter values are case sensitive. If you specify multiple values for a filter, the values are joined with an
* OR
, and the request returns all results that match any of the specified values.
*
*/
private java.util.Map> filters;
/**
*
* The maximum number of results to return.
*
*/
private Integer maxResults;
/**
*
* The Amazon Resource Name (ARN) of the network.
*
*/
private String networkArn;
/**
*
* The token for the next page of results.
*
*/
private String startToken;
/**
*
* The filters. Add filters to your request to return a more specific list of results. Use filters to match the
* status of the network sites.
*
*
* -
*
* STATUS
- The status (AVAILABLE
| CREATED
| DELETED
|
* DEPROVISIONING
| PROVISIONING
).
*
*
*
*
* Filter values are case sensitive. If you specify multiple values for a filter, the values are joined with an
* OR
, and the request returns all results that match any of the specified values.
*
*
* @return The filters. Add filters to your request to return a more specific list of results. Use filters to match
* the status of the network sites.
*
* -
*
* STATUS
- The status (AVAILABLE
| CREATED
| DELETED
|
* DEPROVISIONING
| PROVISIONING
).
*
*
*
*
* Filter values are case sensitive. If you specify multiple values for a filter, the values are joined with
* an OR
, and the request returns all results that match any of the specified values.
*/
public java.util.Map> getFilters() {
return filters;
}
/**
*
* The filters. Add filters to your request to return a more specific list of results. Use filters to match the
* status of the network sites.
*
*
* -
*
* STATUS
- The status (AVAILABLE
| CREATED
| DELETED
|
* DEPROVISIONING
| PROVISIONING
).
*
*
*
*
* Filter values are case sensitive. If you specify multiple values for a filter, the values are joined with an
* OR
, and the request returns all results that match any of the specified values.
*
*
* @param filters
* The filters. Add filters to your request to return a more specific list of results. Use filters to match
* the status of the network sites.
*
* -
*
* STATUS
- The status (AVAILABLE
| CREATED
| DELETED
|
* DEPROVISIONING
| PROVISIONING
).
*
*
*
*
* Filter values are case sensitive. If you specify multiple values for a filter, the values are joined with
* an OR
, and the request returns all results that match any of the specified values.
*/
public void setFilters(java.util.Map> filters) {
this.filters = filters;
}
/**
*
* The filters. Add filters to your request to return a more specific list of results. Use filters to match the
* status of the network sites.
*
*
* -
*
* STATUS
- The status (AVAILABLE
| CREATED
| DELETED
|
* DEPROVISIONING
| PROVISIONING
).
*
*
*
*
* Filter values are case sensitive. If you specify multiple values for a filter, the values are joined with an
* OR
, and the request returns all results that match any of the specified values.
*
*
* @param filters
* The filters. Add filters to your request to return a more specific list of results. Use filters to match
* the status of the network sites.
*
* -
*
* STATUS
- The status (AVAILABLE
| CREATED
| DELETED
|
* DEPROVISIONING
| PROVISIONING
).
*
*
*
*
* Filter values are case sensitive. If you specify multiple values for a filter, the values are joined with
* an OR
, and the request returns all results that match any of the specified values.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListNetworkSitesRequest withFilters(java.util.Map> filters) {
setFilters(filters);
return this;
}
/**
* Add a single Filters entry
*
* @see ListNetworkSitesRequest#withFilters
* @returns a reference to this object so that method calls can be chained together.
*/
public ListNetworkSitesRequest addFiltersEntry(String key, java.util.List value) {
if (null == this.filters) {
this.filters = new java.util.HashMap>();
}
if (this.filters.containsKey(key))
throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
this.filters.put(key, value);
return this;
}
/**
* Removes all the entries added into Filters.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListNetworkSitesRequest clearFiltersEntries() {
this.filters = null;
return this;
}
/**
*
* The maximum number of results to return.
*
*
* @param maxResults
* The maximum number of results to return.
*/
public void setMaxResults(Integer maxResults) {
this.maxResults = maxResults;
}
/**
*
* The maximum number of results to return.
*
*
* @return The maximum number of results to return.
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
*
* The maximum number of results to return.
*
*
* @param maxResults
* The maximum number of results to return.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListNetworkSitesRequest withMaxResults(Integer maxResults) {
setMaxResults(maxResults);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the network.
*
*
* @param networkArn
* The Amazon Resource Name (ARN) of the network.
*/
public void setNetworkArn(String networkArn) {
this.networkArn = networkArn;
}
/**
*
* The Amazon Resource Name (ARN) of the network.
*
*
* @return The Amazon Resource Name (ARN) of the network.
*/
public String getNetworkArn() {
return this.networkArn;
}
/**
*
* The Amazon Resource Name (ARN) of the network.
*
*
* @param networkArn
* The Amazon Resource Name (ARN) of the network.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListNetworkSitesRequest withNetworkArn(String networkArn) {
setNetworkArn(networkArn);
return this;
}
/**
*
* The token for the next page of results.
*
*
* @param startToken
* The token for the next page of results.
*/
public void setStartToken(String startToken) {
this.startToken = startToken;
}
/**
*
* The token for the next page of results.
*
*
* @return The token for the next page of results.
*/
public String getStartToken() {
return this.startToken;
}
/**
*
* The token for the next page of results.
*
*
* @param startToken
* The token for the next page of results.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListNetworkSitesRequest withStartToken(String startToken) {
setStartToken(startToken);
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 (getFilters() != null)
sb.append("Filters: ").append(getFilters()).append(",");
if (getMaxResults() != null)
sb.append("MaxResults: ").append(getMaxResults()).append(",");
if (getNetworkArn() != null)
sb.append("NetworkArn: ").append(getNetworkArn()).append(",");
if (getStartToken() != null)
sb.append("StartToken: ").append(getStartToken());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ListNetworkSitesRequest == false)
return false;
ListNetworkSitesRequest other = (ListNetworkSitesRequest) obj;
if (other.getFilters() == null ^ this.getFilters() == null)
return false;
if (other.getFilters() != null && other.getFilters().equals(this.getFilters()) == 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.getNetworkArn() == null ^ this.getNetworkArn() == null)
return false;
if (other.getNetworkArn() != null && other.getNetworkArn().equals(this.getNetworkArn()) == false)
return false;
if (other.getStartToken() == null ^ this.getStartToken() == null)
return false;
if (other.getStartToken() != null && other.getStartToken().equals(this.getStartToken()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getFilters() == null) ? 0 : getFilters().hashCode());
hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode());
hashCode = prime * hashCode + ((getNetworkArn() == null) ? 0 : getNetworkArn().hashCode());
hashCode = prime * hashCode + ((getStartToken() == null) ? 0 : getStartToken().hashCode());
return hashCode;
}
@Override
public ListNetworkSitesRequest clone() {
return (ListNetworkSitesRequest) super.clone();
}
}