Interface PolicyGeneration.Builder

    • Method Detail

      • jobId

        PolicyGeneration.Builder jobId​(String jobId)

        The JobId that is returned by the StartPolicyGeneration operation. The JobId can be used with GetGeneratedPolicy to retrieve the generated policies or used with CancelPolicyGeneration to cancel the policy generation request.

        Parameters:
        jobId - The JobId that is returned by the StartPolicyGeneration operation. The JobId can be used with GetGeneratedPolicy to retrieve the generated policies or used with CancelPolicyGeneration to cancel the policy generation request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • principalArn

        PolicyGeneration.Builder principalArn​(String principalArn)

        The ARN of the IAM entity (user or role) for which you are generating a policy.

        Parameters:
        principalArn - The ARN of the IAM entity (user or role) for which you are generating a policy.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • status

        PolicyGeneration.Builder status​(String status)

        The status of the policy generation request.

        Parameters:
        status - The status of the policy generation request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        JobStatus, JobStatus
      • status

        PolicyGeneration.Builder status​(JobStatus status)

        The status of the policy generation request.

        Parameters:
        status - The status of the policy generation request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        JobStatus, JobStatus
      • startedOn

        PolicyGeneration.Builder startedOn​(Instant startedOn)

        A timestamp of when the policy generation started.

        Parameters:
        startedOn - A timestamp of when the policy generation started.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • completedOn

        PolicyGeneration.Builder completedOn​(Instant completedOn)

        A timestamp of when the policy generation was completed.

        Parameters:
        completedOn - A timestamp of when the policy generation was completed.
        Returns:
        Returns a reference to this object so that method calls can be chained together.