Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010-2015 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.identitymanagement.model;
 

Contains the response to a successful GetAccountAuthorizationDetails request.

 
 public class GetAccountAuthorizationDetailsResult implements SerializableCloneable {

    
A list containing information about IAM users.
 
A list containing information about IAM groups.
 
A list containing information about IAM roles.
 
A list containing information about managed policies.
 
A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items.
 
     private Boolean isTruncated;

    
If IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

Constraints:
Length: 1 - 320
Pattern: [\u0020-\u00FF]*

 
     private String marker;

    
A list containing information about IAM users.

Returns:
A list containing information about IAM users.
 
     public java.util.List<UserDetailgetUserDetailList() {
         if ( == null) {
                = new com.amazonaws.internal.ListWithAutoConstructFlag<UserDetail>();
               .setAutoConstruct(true);
         }
         return ;
     }
    
    
A list containing information about IAM users.

Parameters:
userDetailList A list containing information about IAM users.
 
     public void setUserDetailList(java.util.Collection<UserDetailuserDetailList) {
         if (userDetailList == null) {
             this. = null;
             return;
         }
         com.amazonaws.internal.ListWithAutoConstructFlag<UserDetailuserDetailListCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<UserDetail>(userDetailList.size());
         userDetailListCopy.addAll(userDetailList);
         this. = userDetailListCopy;
     }
    
    
A list containing information about IAM users.

NOTE: This method appends the values to the existing list (if any). Use setUserDetailList(java.util.Collection) or withUserDetailList(java.util.Collection) if you want to override the existing values.

Returns a reference to this object so that method calls can be chained together.

Parameters:
userDetailList A list containing information about IAM users.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (getUserDetailList() == nullsetUserDetailList(new java.util.ArrayList<UserDetail>(userDetailList.length));
        for (UserDetail value : userDetailList) {
            getUserDetailList().add(value);
        }
        return this;
    }
    
    
A list containing information about IAM users.

Returns a reference to this object so that method calls can be chained together.

Parameters:
userDetailList A list containing information about IAM users.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (userDetailList == null) {
            this. = null;
        } else {
            com.amazonaws.internal.ListWithAutoConstructFlag<UserDetailuserDetailListCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<UserDetail>(userDetailList.size());
            userDetailListCopy.addAll(userDetailList);
            this. = userDetailListCopy;
        }
        return this;
    }

    
A list containing information about IAM groups.

Returns:
A list containing information about IAM groups.
        if ( == null) {
              .setAutoConstruct(true);
        }
        return ;
    }
    
    
A list containing information about IAM groups.

Parameters:
groupDetailList A list containing information about IAM groups.
    public void setGroupDetailList(java.util.Collection<GroupDetailgroupDetailList) {
        if (groupDetailList == null) {
            this. = null;
            return;
        }
        groupDetailListCopy.addAll(groupDetailList);
        this. = groupDetailListCopy;
    }
    
    
A list containing information about IAM groups.

NOTE: This method appends the values to the existing list (if any). Use setGroupDetailList(java.util.Collection) or withGroupDetailList(java.util.Collection) if you want to override the existing values.

Returns a reference to this object so that method calls can be chained together.

Parameters:
groupDetailList A list containing information about IAM groups.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (getGroupDetailList() == nullsetGroupDetailList(new java.util.ArrayList<GroupDetail>(groupDetailList.length));
        for (GroupDetail value : groupDetailList) {
            getGroupDetailList().add(value);
        }
        return this;
    }
    
    
A list containing information about IAM groups.

Returns a reference to this object so that method calls can be chained together.

Parameters:
groupDetailList A list containing information about IAM groups.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (groupDetailList == null) {
            this. = null;
        } else {
            com.amazonaws.internal.ListWithAutoConstructFlag<GroupDetailgroupDetailListCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<GroupDetail>(groupDetailList.size());
            groupDetailListCopy.addAll(groupDetailList);
            this. = groupDetailListCopy;
        }
        return this;
    }

    
A list containing information about IAM roles.

Returns:
A list containing information about IAM roles.
        if ( == null) {
              .setAutoConstruct(true);
        }
        return ;
    }
    
    
A list containing information about IAM roles.

Parameters:
roleDetailList A list containing information about IAM roles.
    public void setRoleDetailList(java.util.Collection<RoleDetailroleDetailList) {
        if (roleDetailList == null) {
            this. = null;
            return;
        }
        roleDetailListCopy.addAll(roleDetailList);
        this. = roleDetailListCopy;
    }
    
    
A list containing information about IAM roles.

NOTE: This method appends the values to the existing list (if any). Use setRoleDetailList(java.util.Collection) or withRoleDetailList(java.util.Collection) if you want to override the existing values.

Returns a reference to this object so that method calls can be chained together.

Parameters:
roleDetailList A list containing information about IAM roles.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (getRoleDetailList() == nullsetRoleDetailList(new java.util.ArrayList<RoleDetail>(roleDetailList.length));
        for (RoleDetail value : roleDetailList) {
            getRoleDetailList().add(value);
        }
        return this;
    }
    
    
A list containing information about IAM roles.

Returns a reference to this object so that method calls can be chained together.

Parameters:
roleDetailList A list containing information about IAM roles.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (roleDetailList == null) {
            this. = null;
        } else {
            com.amazonaws.internal.ListWithAutoConstructFlag<RoleDetailroleDetailListCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<RoleDetail>(roleDetailList.size());
            roleDetailListCopy.addAll(roleDetailList);
            this. = roleDetailListCopy;
        }
        return this;
    }

    
A list containing information about managed policies.

Returns:
A list containing information about managed policies.
        if ( == null) {
              .setAutoConstruct(true);
        }
        return ;
    }
    
    
A list containing information about managed policies.

Parameters:
policies A list containing information about managed policies.
    public void setPolicies(java.util.Collection<ManagedPolicyDetailpolicies) {
        if (policies == null) {
            this. = null;
            return;
        }
        policiesCopy.addAll(policies);
        this. = policiesCopy;
    }
    
    
A list containing information about managed policies.

NOTE: This method appends the values to the existing list (if any). Use setPolicies(java.util.Collection) or withPolicies(java.util.Collection) if you want to override the existing values.

Returns a reference to this object so that method calls can be chained together.

Parameters:
policies A list containing information about managed policies.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (getPolicies() == nullsetPolicies(new java.util.ArrayList<ManagedPolicyDetail>(policies.length));
        for (ManagedPolicyDetail value : policies) {
            getPolicies().add(value);
        }
        return this;
    }
    
    
A list containing information about managed policies.

Returns a reference to this object so that method calls can be chained together.

Parameters:
policies A list containing information about managed policies.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (policies == null) {
            this. = null;
        } else {
            policiesCopy.addAll(policies);
            this. = policiesCopy;
        }
        return this;
    }

    
A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items.

Returns:
A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items.
    public Boolean isTruncated() {
        return ;
    }
    
    
A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items.

Parameters:
isTruncated A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items.
    public void setIsTruncated(Boolean isTruncated) {
        this. = isTruncated;
    }
    
    
A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items.

Returns a reference to this object so that method calls can be chained together.

Parameters:
isTruncated A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = isTruncated;
        return this;
    }

    
A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items.

Returns:
A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items.
    public Boolean getIsTruncated() {
        return ;
    }

    
If IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

Constraints:
Length: 1 - 320
Pattern: [\u0020-\u00FF]*

Returns:
If IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.
    public String getMarker() {
        return ;
    }
    
    
If IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

Constraints:
Length: 1 - 320
Pattern: [\u0020-\u00FF]*

Parameters:
marker If IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.
    public void setMarker(String marker) {
        this. = marker;
    }
    
    
If IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 320
Pattern: [\u0020-\u00FF]*

Parameters:
marker If IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = marker;
        return this;
    }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getUserDetailList() != nullsb.append("UserDetailList: " + getUserDetailList() + ",");
        if (getGroupDetailList() != nullsb.append("GroupDetailList: " + getGroupDetailList() + ",");
        if (getRoleDetailList() != nullsb.append("RoleDetailList: " + getRoleDetailList() + ",");
        if (getPolicies() != nullsb.append("Policies: " + getPolicies() + ",");
        if (isTruncated() != nullsb.append("IsTruncated: " + isTruncated() + ",");
        if (getMarker() != nullsb.append("Marker: " + getMarker() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getUserDetailList() == null) ? 0 : getUserDetailList().hashCode()); 
        hashCode = prime * hashCode + ((getGroupDetailList() == null) ? 0 : getGroupDetailList().hashCode()); 
        hashCode = prime * hashCode + ((getRoleDetailList() == null) ? 0 : getRoleDetailList().hashCode()); 
        hashCode = prime * hashCode + ((getPolicies() == null) ? 0 : getPolicies().hashCode()); 
        hashCode = prime * hashCode + ((isTruncated() == null) ? 0 : isTruncated().hashCode()); 
        hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof GetAccountAuthorizationDetailsResult == falsereturn false;
        
        if (other.getUserDetailList() == null ^ this.getUserDetailList() == nullreturn false;
        if (other.getUserDetailList() != null && other.getUserDetailList().equals(this.getUserDetailList()) == falsereturn false
        if (other.getGroupDetailList() == null ^ this.getGroupDetailList() == nullreturn false;
        if (other.getGroupDetailList() != null && other.getGroupDetailList().equals(this.getGroupDetailList()) == falsereturn false
        if (other.getRoleDetailList() == null ^ this.getRoleDetailList() == nullreturn false;
        if (other.getRoleDetailList() != null && other.getRoleDetailList().equals(this.getRoleDetailList()) == falsereturn false
        if (other.getPolicies() == null ^ this.getPolicies() == nullreturn false;
        if (other.getPolicies() != null && other.getPolicies().equals(this.getPolicies()) == falsereturn false
        if (other.isTruncated() == null ^ this.isTruncated() == nullreturn false;
        if (other.isTruncated() != null && other.isTruncated().equals(this.isTruncated()) == falsereturn false
        if (other.getMarker() == null ^ this.getMarker() == nullreturn false;
        if (other.getMarker() != null && other.getMarker().equals(this.getMarker()) == falsereturn false
        return true;
    }
    
    @Override
        try {
            return (GetAccountAuthorizationDetailsResultsuper.clone();
        
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException(
                    "Got a CloneNotSupportedException from Object.clone() "
                    + "even though we're Cloneable!",
                    e);
        }
        
    }
}
    
New to GrepCode? Check out our FAQ X