Class UserImportJobType

    • Method Detail

      • jobName

        public final String jobName()

        The job name for the user import job.

        Returns:
        The job name for the user import job.
      • jobId

        public final String jobId()

        The job ID for the user import job.

        Returns:
        The job ID for the user import job.
      • userPoolId

        public final String userPoolId()

        The user pool ID for the user pool that the users are being imported into.

        Returns:
        The user pool ID for the user pool that the users are being imported into.
      • preSignedUrl

        public final String preSignedUrl()

        The pre-signed URL to be used to upload the .csv file.

        Returns:
        The pre-signed URL to be used to upload the .csv file.
      • creationDate

        public final Instant creationDate()

        The date and time when the item was created. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java Date object.

        Returns:
        The date and time when the item was created. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java Date object.
      • startDate

        public final Instant startDate()

        The date when the user import job was started.

        Returns:
        The date when the user import job was started.
      • completionDate

        public final Instant completionDate()

        The date when the user import job was completed.

        Returns:
        The date when the user import job was completed.
      • status

        public final UserImportJobStatusType status()

        The status of the user import job. One of the following:

        • Created - The job was created but not started.

        • Pending - A transition state. You have started the job, but it has not begun importing users yet.

        • InProgress - The job has started, and users are being imported.

        • Stopping - You have stopped the job, but the job has not stopped importing users yet.

        • Stopped - You have stopped the job, and the job has stopped importing users.

        • Succeeded - The job has completed successfully.

        • Failed - The job has stopped due to an error.

        • Expired - You created a job, but did not start the job within 24-48 hours. All data associated with the job was deleted, and the job can't be started.

        If the service returns an enum value that is not available in the current SDK version, status will return UserImportJobStatusType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from statusAsString().

        Returns:
        The status of the user import job. One of the following:

        • Created - The job was created but not started.

        • Pending - A transition state. You have started the job, but it has not begun importing users yet.

        • InProgress - The job has started, and users are being imported.

        • Stopping - You have stopped the job, but the job has not stopped importing users yet.

        • Stopped - You have stopped the job, and the job has stopped importing users.

        • Succeeded - The job has completed successfully.

        • Failed - The job has stopped due to an error.

        • Expired - You created a job, but did not start the job within 24-48 hours. All data associated with the job was deleted, and the job can't be started.

        See Also:
        UserImportJobStatusType
      • statusAsString

        public final String statusAsString()

        The status of the user import job. One of the following:

        • Created - The job was created but not started.

        • Pending - A transition state. You have started the job, but it has not begun importing users yet.

        • InProgress - The job has started, and users are being imported.

        • Stopping - You have stopped the job, but the job has not stopped importing users yet.

        • Stopped - You have stopped the job, and the job has stopped importing users.

        • Succeeded - The job has completed successfully.

        • Failed - The job has stopped due to an error.

        • Expired - You created a job, but did not start the job within 24-48 hours. All data associated with the job was deleted, and the job can't be started.

        If the service returns an enum value that is not available in the current SDK version, status will return UserImportJobStatusType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from statusAsString().

        Returns:
        The status of the user import job. One of the following:

        • Created - The job was created but not started.

        • Pending - A transition state. You have started the job, but it has not begun importing users yet.

        • InProgress - The job has started, and users are being imported.

        • Stopping - You have stopped the job, but the job has not stopped importing users yet.

        • Stopped - You have stopped the job, and the job has stopped importing users.

        • Succeeded - The job has completed successfully.

        • Failed - The job has stopped due to an error.

        • Expired - You created a job, but did not start the job within 24-48 hours. All data associated with the job was deleted, and the job can't be started.

        See Also:
        UserImportJobStatusType
      • cloudWatchLogsRoleArn

        public final String cloudWatchLogsRoleArn()

        The role Amazon Resource Name (ARN) for the Amazon CloudWatch Logging role for the user import job. For more information, see "Creating the CloudWatch Logs IAM Role" in the Amazon Cognito Developer Guide.

        Returns:
        The role Amazon Resource Name (ARN) for the Amazon CloudWatch Logging role for the user import job. For more information, see "Creating the CloudWatch Logs IAM Role" in the Amazon Cognito Developer Guide.
      • importedUsers

        public final Long importedUsers()

        The number of users that were successfully imported.

        Returns:
        The number of users that were successfully imported.
      • skippedUsers

        public final Long skippedUsers()

        The number of users that were skipped.

        Returns:
        The number of users that were skipped.
      • failedUsers

        public final Long failedUsers()

        The number of users that couldn't be imported.

        Returns:
        The number of users that couldn't be imported.
      • completionMessage

        public final String completionMessage()

        The message returned when the user import job is completed.

        Returns:
        The message returned when the user import job is completed.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        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.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)