public GetAccessGrantsLocationResult withIAMRoleArn(String iAMRoleArn) {
        setIAMRoleArn(iAMRoleArn);
        return this;
    }
<p>
The Amazon Resource Name (ARN) of the IAM role for the registered location. S3 Access Grants assumes this role to
manage access to the registered location.
</p>

@param iAMRoleArn
       The Amazon Resource Name (ARN) of the IAM role for the registered location. S3 Access Grants assumes this
       role to manage access to the registered location.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-s3control/src/main/java/com/amazonaws/services/s3control/model/GetAccessGrantsLocationResult.java