Class Iam


  • public class Iam
    extends java.lang.Object
    • Method Detail

      • async

        public AsyncIam async()
        Switches to the async SDK.
        Returns:
        The async SDK
      • listUsers

        public IamListUsersResponse listUsers​(IamListUsersRequest request)
        List Users
        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        The response from the API call
        Throws:
        java.lang.RuntimeException - subclass if the API call fails
      • listUsers

        public IamListUsersResponse listUsers​(IamListUsersRequest request,
                                              java.util.Optional<Options> options)
        List Users
        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        The response from the API call
        Throws:
        java.lang.RuntimeException - subclass if the API call fails
      • getUser

        public IamGetUserResponse getUser​(IamGetUserRequest request)
        Get User
        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        The response from the API call
        Throws:
        java.lang.RuntimeException - subclass if the API call fails
      • getUser

        public IamGetUserResponse getUser​(IamGetUserRequest request,
                                          java.util.Optional<Options> options)
        Get User
        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        The response from the API call
        Throws:
        java.lang.RuntimeException - subclass if the API call fails
      • deleteUser

        public IamDeleteUserResponse deleteUser​(java.lang.String xAccountId,
                                                java.lang.String id)
        Delete User
        Parameters:
        xAccountId - The account identifier
        id -
        Returns:
        The response from the API call
        Throws:
        java.lang.RuntimeException - subclass if the API call fails
      • deleteUser

        public IamDeleteUserResponse deleteUser​(java.lang.String xAccountId,
                                                java.lang.String id,
                                                java.util.Optional<Options> options)
        Delete User
        Parameters:
        xAccountId - The account identifier
        id -
        options - additional options
        Returns:
        The response from the API call
        Throws:
        java.lang.RuntimeException - subclass if the API call fails
      • updateUser

        public IamUpdateUserResponse updateUser​(java.lang.String xAccountId,
                                                java.lang.String id,
                                                IamUpdateUserRequestDto iamUpdateUserRequestDto)
        Update User
        Parameters:
        xAccountId - The account identifier
        id -
        iamUpdateUserRequestDto -
        Returns:
        The response from the API call
        Throws:
        java.lang.RuntimeException - subclass if the API call fails
      • updateUser

        public IamUpdateUserResponse updateUser​(java.lang.String xAccountId,
                                                java.lang.String id,
                                                IamUpdateUserRequestDto iamUpdateUserRequestDto,
                                                java.util.Optional<Options> options)
        Update User
        Parameters:
        xAccountId - The account identifier
        id -
        iamUpdateUserRequestDto -
        options - additional options
        Returns:
        The response from the API call
        Throws:
        java.lang.RuntimeException - subclass if the API call fails
      • listRoles

        public IamListRolesResponse listRoles​(IamListRolesRequest request)
        List Roles
        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        The response from the API call
        Throws:
        java.lang.RuntimeException - subclass if the API call fails
      • listRoles

        public IamListRolesResponse listRoles​(IamListRolesRequest request,
                                              java.util.Optional<Options> options)
        List Roles
        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        The response from the API call
        Throws:
        java.lang.RuntimeException - subclass if the API call fails
      • getRole

        public IamGetRoleResponse getRole​(IamGetRoleRequest request)
        Get Role
        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        The response from the API call
        Throws:
        java.lang.RuntimeException - subclass if the API call fails
      • getRole

        public IamGetRoleResponse getRole​(IamGetRoleRequest request,
                                          java.util.Optional<Options> options)
        Get Role
        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        The response from the API call
        Throws:
        java.lang.RuntimeException - subclass if the API call fails
      • listGroups

        public IamListGroupsResponse listGroups​(IamListGroupsRequest request)
        List Groups
        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        The response from the API call
        Throws:
        java.lang.RuntimeException - subclass if the API call fails
      • listGroups

        public IamListGroupsResponse listGroups​(IamListGroupsRequest request,
                                                java.util.Optional<Options> options)
        List Groups
        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        The response from the API call
        Throws:
        java.lang.RuntimeException - subclass if the API call fails
      • getGroup

        public IamGetGroupResponse getGroup​(IamGetGroupRequest request)
        Get Group
        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        The response from the API call
        Throws:
        java.lang.RuntimeException - subclass if the API call fails
      • getGroup

        public IamGetGroupResponse getGroup​(IamGetGroupRequest request,
                                            java.util.Optional<Options> options)
        Get Group
        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        The response from the API call
        Throws:
        java.lang.RuntimeException - subclass if the API call fails
      • listPolicies

        public IamListPoliciesResponse listPolicies​(IamListPoliciesRequest request)
        List Policies
        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        The response from the API call
        Throws:
        java.lang.RuntimeException - subclass if the API call fails
      • listPolicies

        public IamListPoliciesResponse listPolicies​(IamListPoliciesRequest request,
                                                    java.util.Optional<Options> options)
        List Policies
        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        The response from the API call
        Throws:
        java.lang.RuntimeException - subclass if the API call fails
      • getPolicy

        public IamGetPolicyResponse getPolicy​(IamGetPolicyRequest request)
        Get Policy
        Parameters:
        request - The request object containing all the parameters for the API call.
        Returns:
        The response from the API call
        Throws:
        java.lang.RuntimeException - subclass if the API call fails
      • getPolicy

        public IamGetPolicyResponse getPolicy​(IamGetPolicyRequest request,
                                              java.util.Optional<Options> options)
        Get Policy
        Parameters:
        request - The request object containing all the parameters for the API call.
        options - additional options
        Returns:
        The response from the API call
        Throws:
        java.lang.RuntimeException - subclass if the API call fails