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

com.amazonaws.services.route53profiles.model.ListProfileResourceAssociationsResult Maven / Gradle / Ivy

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

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

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

    /**
     * 

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

*/ private String nextToken; /** *

* Information about the profile resource association that you specified in a * GetProfileResourceAssociation request. *

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

* If more than MaxResults resource associations match the specified criteria, you can submit another * ListProfileResourceAssociations 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 resource associations match the specified criteria, you can submit * another ListProfileResourceAssociations 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 resource associations match the specified criteria, you can submit another * ListProfileResourceAssociations 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 resource associations match the specified criteria, you can submit * another ListProfileResourceAssociations 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 resource associations match the specified criteria, you can submit another * ListProfileResourceAssociations 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 resource associations match the specified criteria, you can submit * another ListProfileResourceAssociations 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 ListProfileResourceAssociationsResult withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** *

* Information about the profile resource association that you specified in a * GetProfileResourceAssociation request. *

* * @return Information about the profile resource association that you specified in a * GetProfileResourceAssociation request. */ public java.util.List getProfileResourceAssociations() { return profileResourceAssociations; } /** *

* Information about the profile resource association that you specified in a * GetProfileResourceAssociation request. *

* * @param profileResourceAssociations * Information about the profile resource association that you specified in a * GetProfileResourceAssociation request. */ public void setProfileResourceAssociations(java.util.Collection profileResourceAssociations) { if (profileResourceAssociations == null) { this.profileResourceAssociations = null; return; } this.profileResourceAssociations = new java.util.ArrayList(profileResourceAssociations); } /** *

* Information about the profile resource association that you specified in a * GetProfileResourceAssociation request. *

*

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

* * @param profileResourceAssociations * Information about the profile resource association that you specified in a * GetProfileResourceAssociation request. * @return Returns a reference to this object so that method calls can be chained together. */ public ListProfileResourceAssociationsResult withProfileResourceAssociations(ProfileResourceAssociation... profileResourceAssociations) { if (this.profileResourceAssociations == null) { setProfileResourceAssociations(new java.util.ArrayList(profileResourceAssociations.length)); } for (ProfileResourceAssociation ele : profileResourceAssociations) { this.profileResourceAssociations.add(ele); } return this; } /** *

* Information about the profile resource association that you specified in a * GetProfileResourceAssociation request. *

* * @param profileResourceAssociations * Information about the profile resource association that you specified in a * GetProfileResourceAssociation request. * @return Returns a reference to this object so that method calls can be chained together. */ public ListProfileResourceAssociationsResult withProfileResourceAssociations(java.util.Collection profileResourceAssociations) { setProfileResourceAssociations(profileResourceAssociations); 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 (getProfileResourceAssociations() != null) sb.append("ProfileResourceAssociations: ").append(getProfileResourceAssociations()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListProfileResourceAssociationsResult == false) return false; ListProfileResourceAssociationsResult other = (ListProfileResourceAssociationsResult) obj; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; if (other.getProfileResourceAssociations() == null ^ this.getProfileResourceAssociations() == null) return false; if (other.getProfileResourceAssociations() != null && other.getProfileResourceAssociations().equals(this.getProfileResourceAssociations()) == 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 + ((getProfileResourceAssociations() == null) ? 0 : getProfileResourceAssociations().hashCode()); return hashCode; } @Override public ListProfileResourceAssociationsResult clone() { try { return (ListProfileResourceAssociationsResult) 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