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

com.amazonaws.services.identitymanagement.model.GetAccountSummaryResult Maven / Gradle / Ivy

/*
 * Copyright 2010-2014 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;

import java.io.Serializable;

/**
 * 

* Contains the result of a successful invocation of the * GetAccountSummary action. *

*/ public class GetAccountSummaryResult implements Serializable { /** * A set of key value pairs containing account-level information.

* SummaryMap contains the following keys:

    *
  • AccessKeysPerUserQuota - Maximum number of access * keys that can be created per user

  • *
  • AccountMFAEnabled - 1 if the root account has an * MFA device assigned to it, 0 otherwise

  • *
  • AssumeRolePolicySizeQuota - Maximum allowed size * for assume role policy documents (in kilobytes)

  • *
  • GroupPolicySizeQuota - Maximum allowed size for * Group policy documents (in kilobytes)

  • Groups * - Number of Groups for the AWS account

  • *
  • GroupsPerUserQuota - Maximum number of groups a * user can belong to

  • GroupsQuota - Maximum * groups allowed for the AWS account

  • *
  • InstanceProfiles - Number of instance profiles for * the AWS account

  • InstanceProfilesQuota - * Maximum instance profiles allowed for the AWS account

  • *
  • MFADevices - Number of MFA devices, either * assigned or unassigned

  • MFADevicesInUse - * Number of MFA devices that have been assigned to an IAM user or to the * root account

  • RolePolicySizeQuota - Maximum * allowed size for role policy documents (in kilobytes)

  • *
  • Roles - Number of roles for the AWS account

  • *
  • RolesQuota - Maximum roles allowed for the AWS * account

  • ServerCertificates - Number of server * certificates for the AWS account

  • *
  • ServerCertificatesQuota - Maximum server * certificates allowed for the AWS account

  • *
  • SigningCertificatesPerUserQuota - Maximum number * of X509 certificates allowed for a user

  • *
  • UserPolicySizeQuota - Maximum allowed size for * user policy documents (in kilobytes)

  • Users - * Number of users for the AWS account

  • *
  • UsersQuota - Maximum users allowed for the AWS * account

*/ private java.util.Map summaryMap; /** * A set of key value pairs containing account-level information.

* SummaryMap contains the following keys:

    *
  • AccessKeysPerUserQuota - Maximum number of access * keys that can be created per user

  • *
  • AccountMFAEnabled - 1 if the root account has an * MFA device assigned to it, 0 otherwise

  • *
  • AssumeRolePolicySizeQuota - Maximum allowed size * for assume role policy documents (in kilobytes)

  • *
  • GroupPolicySizeQuota - Maximum allowed size for * Group policy documents (in kilobytes)

  • Groups * - Number of Groups for the AWS account

  • *
  • GroupsPerUserQuota - Maximum number of groups a * user can belong to

  • GroupsQuota - Maximum * groups allowed for the AWS account

  • *
  • InstanceProfiles - Number of instance profiles for * the AWS account

  • InstanceProfilesQuota - * Maximum instance profiles allowed for the AWS account

  • *
  • MFADevices - Number of MFA devices, either * assigned or unassigned

  • MFADevicesInUse - * Number of MFA devices that have been assigned to an IAM user or to the * root account

  • RolePolicySizeQuota - Maximum * allowed size for role policy documents (in kilobytes)

  • *
  • Roles - Number of roles for the AWS account

  • *
  • RolesQuota - Maximum roles allowed for the AWS * account

  • ServerCertificates - Number of server * certificates for the AWS account

  • *
  • ServerCertificatesQuota - Maximum server * certificates allowed for the AWS account

  • *
  • SigningCertificatesPerUserQuota - Maximum number * of X509 certificates allowed for a user

  • *
  • UserPolicySizeQuota - Maximum allowed size for * user policy documents (in kilobytes)

  • Users - * Number of users for the AWS account

  • *
  • UsersQuota - Maximum users allowed for the AWS * account

* * @return A set of key value pairs containing account-level information.

* SummaryMap contains the following keys:

    *
  • AccessKeysPerUserQuota - Maximum number of access * keys that can be created per user

  • *
  • AccountMFAEnabled - 1 if the root account has an * MFA device assigned to it, 0 otherwise

  • *
  • AssumeRolePolicySizeQuota - Maximum allowed size * for assume role policy documents (in kilobytes)

  • *
  • GroupPolicySizeQuota - Maximum allowed size for * Group policy documents (in kilobytes)

  • Groups * - Number of Groups for the AWS account

  • *
  • GroupsPerUserQuota - Maximum number of groups a * user can belong to

  • GroupsQuota - Maximum * groups allowed for the AWS account

  • *
  • InstanceProfiles - Number of instance profiles for * the AWS account

  • InstanceProfilesQuota - * Maximum instance profiles allowed for the AWS account

  • *
  • MFADevices - Number of MFA devices, either * assigned or unassigned

  • MFADevicesInUse - * Number of MFA devices that have been assigned to an IAM user or to the * root account

  • RolePolicySizeQuota - Maximum * allowed size for role policy documents (in kilobytes)

  • *
  • Roles - Number of roles for the AWS account

  • *
  • RolesQuota - Maximum roles allowed for the AWS * account

  • ServerCertificates - Number of server * certificates for the AWS account

  • *
  • ServerCertificatesQuota - Maximum server * certificates allowed for the AWS account

  • *
  • SigningCertificatesPerUserQuota - Maximum number * of X509 certificates allowed for a user

  • *
  • UserPolicySizeQuota - Maximum allowed size for * user policy documents (in kilobytes)

  • Users - * Number of users for the AWS account

  • *
  • UsersQuota - Maximum users allowed for the AWS * account

*/ public java.util.Map getSummaryMap() { if (summaryMap == null) { summaryMap = new java.util.HashMap(); } return summaryMap; } /** * A set of key value pairs containing account-level information.

* SummaryMap contains the following keys:

    *
  • AccessKeysPerUserQuota - Maximum number of access * keys that can be created per user

  • *
  • AccountMFAEnabled - 1 if the root account has an * MFA device assigned to it, 0 otherwise

  • *
  • AssumeRolePolicySizeQuota - Maximum allowed size * for assume role policy documents (in kilobytes)

  • *
  • GroupPolicySizeQuota - Maximum allowed size for * Group policy documents (in kilobytes)

  • Groups * - Number of Groups for the AWS account

  • *
  • GroupsPerUserQuota - Maximum number of groups a * user can belong to

  • GroupsQuota - Maximum * groups allowed for the AWS account

  • *
  • InstanceProfiles - Number of instance profiles for * the AWS account

  • InstanceProfilesQuota - * Maximum instance profiles allowed for the AWS account

  • *
  • MFADevices - Number of MFA devices, either * assigned or unassigned

  • MFADevicesInUse - * Number of MFA devices that have been assigned to an IAM user or to the * root account

  • RolePolicySizeQuota - Maximum * allowed size for role policy documents (in kilobytes)

  • *
  • Roles - Number of roles for the AWS account

  • *
  • RolesQuota - Maximum roles allowed for the AWS * account

  • ServerCertificates - Number of server * certificates for the AWS account

  • *
  • ServerCertificatesQuota - Maximum server * certificates allowed for the AWS account

  • *
  • SigningCertificatesPerUserQuota - Maximum number * of X509 certificates allowed for a user

  • *
  • UserPolicySizeQuota - Maximum allowed size for * user policy documents (in kilobytes)

  • Users - * Number of users for the AWS account

  • *
  • UsersQuota - Maximum users allowed for the AWS * account

* * @param summaryMap A set of key value pairs containing account-level information.

* SummaryMap contains the following keys:

    *
  • AccessKeysPerUserQuota - Maximum number of access * keys that can be created per user

  • *
  • AccountMFAEnabled - 1 if the root account has an * MFA device assigned to it, 0 otherwise

  • *
  • AssumeRolePolicySizeQuota - Maximum allowed size * for assume role policy documents (in kilobytes)

  • *
  • GroupPolicySizeQuota - Maximum allowed size for * Group policy documents (in kilobytes)

  • Groups * - Number of Groups for the AWS account

  • *
  • GroupsPerUserQuota - Maximum number of groups a * user can belong to

  • GroupsQuota - Maximum * groups allowed for the AWS account

  • *
  • InstanceProfiles - Number of instance profiles for * the AWS account

  • InstanceProfilesQuota - * Maximum instance profiles allowed for the AWS account

  • *
  • MFADevices - Number of MFA devices, either * assigned or unassigned

  • MFADevicesInUse - * Number of MFA devices that have been assigned to an IAM user or to the * root account

  • RolePolicySizeQuota - Maximum * allowed size for role policy documents (in kilobytes)

  • *
  • Roles - Number of roles for the AWS account

  • *
  • RolesQuota - Maximum roles allowed for the AWS * account

  • ServerCertificates - Number of server * certificates for the AWS account

  • *
  • ServerCertificatesQuota - Maximum server * certificates allowed for the AWS account

  • *
  • SigningCertificatesPerUserQuota - Maximum number * of X509 certificates allowed for a user

  • *
  • UserPolicySizeQuota - Maximum allowed size for * user policy documents (in kilobytes)

  • Users - * Number of users for the AWS account

  • *
  • UsersQuota - Maximum users allowed for the AWS * account

*/ public void setSummaryMap(java.util.Map summaryMap) { this.summaryMap = summaryMap; } /** * A set of key value pairs containing account-level information.

* SummaryMap contains the following keys:

    *
  • AccessKeysPerUserQuota - Maximum number of access * keys that can be created per user

  • *
  • AccountMFAEnabled - 1 if the root account has an * MFA device assigned to it, 0 otherwise

  • *
  • AssumeRolePolicySizeQuota - Maximum allowed size * for assume role policy documents (in kilobytes)

  • *
  • GroupPolicySizeQuota - Maximum allowed size for * Group policy documents (in kilobytes)

  • Groups * - Number of Groups for the AWS account

  • *
  • GroupsPerUserQuota - Maximum number of groups a * user can belong to

  • GroupsQuota - Maximum * groups allowed for the AWS account

  • *
  • InstanceProfiles - Number of instance profiles for * the AWS account

  • InstanceProfilesQuota - * Maximum instance profiles allowed for the AWS account

  • *
  • MFADevices - Number of MFA devices, either * assigned or unassigned

  • MFADevicesInUse - * Number of MFA devices that have been assigned to an IAM user or to the * root account

  • RolePolicySizeQuota - Maximum * allowed size for role policy documents (in kilobytes)

  • *
  • Roles - Number of roles for the AWS account

  • *
  • RolesQuota - Maximum roles allowed for the AWS * account

  • ServerCertificates - Number of server * certificates for the AWS account

  • *
  • ServerCertificatesQuota - Maximum server * certificates allowed for the AWS account

  • *
  • SigningCertificatesPerUserQuota - Maximum number * of X509 certificates allowed for a user

  • *
  • UserPolicySizeQuota - Maximum allowed size for * user policy documents (in kilobytes)

  • Users - * Number of users for the AWS account

  • *
  • UsersQuota - Maximum users allowed for the AWS * account

*

* Returns a reference to this object so that method calls can be chained together. * * @param summaryMap A set of key value pairs containing account-level information.

* SummaryMap contains the following keys:

    *
  • AccessKeysPerUserQuota - Maximum number of access * keys that can be created per user

  • *
  • AccountMFAEnabled - 1 if the root account has an * MFA device assigned to it, 0 otherwise

  • *
  • AssumeRolePolicySizeQuota - Maximum allowed size * for assume role policy documents (in kilobytes)

  • *
  • GroupPolicySizeQuota - Maximum allowed size for * Group policy documents (in kilobytes)

  • Groups * - Number of Groups for the AWS account

  • *
  • GroupsPerUserQuota - Maximum number of groups a * user can belong to

  • GroupsQuota - Maximum * groups allowed for the AWS account

  • *
  • InstanceProfiles - Number of instance profiles for * the AWS account

  • InstanceProfilesQuota - * Maximum instance profiles allowed for the AWS account

  • *
  • MFADevices - Number of MFA devices, either * assigned or unassigned

  • MFADevicesInUse - * Number of MFA devices that have been assigned to an IAM user or to the * root account

  • RolePolicySizeQuota - Maximum * allowed size for role policy documents (in kilobytes)

  • *
  • Roles - Number of roles for the AWS account

  • *
  • RolesQuota - Maximum roles allowed for the AWS * account

  • ServerCertificates - Number of server * certificates for the AWS account

  • *
  • ServerCertificatesQuota - Maximum server * certificates allowed for the AWS account

  • *
  • SigningCertificatesPerUserQuota - Maximum number * of X509 certificates allowed for a user

  • *
  • UserPolicySizeQuota - Maximum allowed size for * user policy documents (in kilobytes)

  • Users - * Number of users for the AWS account

  • *
  • UsersQuota - Maximum users allowed for the AWS * account

* * @return A reference to this updated object so that method calls can be chained * together. */ public GetAccountSummaryResult withSummaryMap(java.util.Map summaryMap) { setSummaryMap(summaryMap); return this; } /** * A set of key value pairs containing account-level information.

* SummaryMap contains the following keys:

    *
  • AccessKeysPerUserQuota - Maximum number of access * keys that can be created per user

  • *
  • AccountMFAEnabled - 1 if the root account has an * MFA device assigned to it, 0 otherwise

  • *
  • AssumeRolePolicySizeQuota - Maximum allowed size * for assume role policy documents (in kilobytes)

  • *
  • GroupPolicySizeQuota - Maximum allowed size for * Group policy documents (in kilobytes)

  • Groups * - Number of Groups for the AWS account

  • *
  • GroupsPerUserQuota - Maximum number of groups a * user can belong to

  • GroupsQuota - Maximum * groups allowed for the AWS account

  • *
  • InstanceProfiles - Number of instance profiles for * the AWS account

  • InstanceProfilesQuota - * Maximum instance profiles allowed for the AWS account

  • *
  • MFADevices - Number of MFA devices, either * assigned or unassigned

  • MFADevicesInUse - * Number of MFA devices that have been assigned to an IAM user or to the * root account

  • RolePolicySizeQuota - Maximum * allowed size for role policy documents (in kilobytes)

  • *
  • Roles - Number of roles for the AWS account

  • *
  • RolesQuota - Maximum roles allowed for the AWS * account

  • ServerCertificates - Number of server * certificates for the AWS account

  • *
  • ServerCertificatesQuota - Maximum server * certificates allowed for the AWS account

  • *
  • SigningCertificatesPerUserQuota - Maximum number * of X509 certificates allowed for a user

  • *
  • UserPolicySizeQuota - Maximum allowed size for * user policy documents (in kilobytes)

  • Users - * Number of users for the AWS account

  • *
  • UsersQuota - Maximum users allowed for the AWS * account

*

* The method adds a new key-value pair into SummaryMap parameter, and * returns a reference to this object so that method calls can be chained * together. * * @param key The key of the entry to be added into SummaryMap. * @param value The corresponding value of the entry to be added into SummaryMap. */ public GetAccountSummaryResult addSummaryMapEntry(String key, Integer value) { if (null == this.summaryMap) { this.summaryMap = new java.util.HashMap(); } if (this.summaryMap.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.summaryMap.put(key, value); return this; } /** * Removes all the entries added into SummaryMap. *

* Returns a reference to this object so that method calls can be chained together. */ public GetAccountSummaryResult clearSummaryMapEntries() { this.summaryMap = null; return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getSummaryMap() != null) sb.append("SummaryMap: " + getSummaryMap() ); sb.append("}"); return sb.toString(); } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSummaryMap() == null) ? 0 : getSummaryMap().hashCode()); return hashCode; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetAccountSummaryResult == false) return false; GetAccountSummaryResult other = (GetAccountSummaryResult)obj; if (other.getSummaryMap() == null ^ this.getSummaryMap() == null) return false; if (other.getSummaryMap() != null && other.getSummaryMap().equals(this.getSummaryMap()) == false) return false; return true; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy